• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/nand/

Lines Matching refs:prv

141 	struct mpc5121_nfc_prv *prv = chip->priv;
143 return in_be16(prv->regs + reg);
150 struct mpc5121_nfc_prv *prv = chip->priv;
152 out_be16(prv->regs + reg, val);
220 struct mpc5121_nfc_prv *prv = chip->priv;
223 wake_up(&prv->irq_waitq);
232 struct mpc5121_nfc_prv *prv = chip->priv;
237 rv = wait_event_timeout(prv->irq_waitq,
241 dev_warn(prv->dev,
287 struct mpc5121_nfc_prv *prv = chip->priv;
292 prv->csreg = of_iomap(dn, 0);
294 if (!prv->csreg)
298 prv->csreg += 9;
309 struct mpc5121_nfc_prv *prv = nand->priv;
312 v = in_8(prv->csreg);
321 out_8(prv->csreg, v);
339 struct mpc5121_nfc_prv *prv = chip->priv;
341 prv->column = (column >= 0) ? column : 0;
342 prv->spareonly = 0;
357 prv->column += 256;
363 prv->spareonly = 1;
400 prv->column = 1;
402 prv->column = 0;
412 struct mpc5121_nfc_prv *prv = nand->priv;
447 memcpy_toio(prv->regs + NFC_SPARE_AREA(s) + o,
451 prv->regs + NFC_SPARE_AREA(s) + o, blksize);
464 struct mpc5121_nfc_prv *prv = chip->priv;
465 uint c = prv->column;
469 if (prv->spareonly || c >= mtd->writesize) {
474 prv->column += len;
484 prv->column += l;
487 memcpy_toio(prv->regs + NFC_MAIN_AREA(0) + c, buf, l);
489 memcpy_fromio(buf, prv->regs + NFC_MAIN_AREA(0) + c, l);
563 struct mpc5121_nfc_prv *prv = chip->priv;
574 dev_err(prv->dev, "Missing 'fsl,mpc5121-reset' "
581 dev_err(prv->dev, "Error mapping reset module node!\n");
625 dev_notice(prv->dev, "Configured for "
639 struct mpc5121_nfc_prv *prv = chip->priv;
641 if (prv->clk) {
642 clk_disable(prv->clk);
643 clk_put(prv->clk);
646 if (prv->csreg)
647 iounmap(prv->csreg);
655 struct mpc5121_nfc_prv *prv;
678 prv = devm_kzalloc(dev, sizeof(*prv), GFP_KERNEL);
679 if (!prv) {
684 mtd = &prv->mtd;
685 chip = &prv->chip;
688 chip->priv = prv;
689 prv->dev = dev;
698 prv->irq = irq_of_parse_and_map(dn, 0);
699 if (prv->irq == NO_IRQ) {
724 prv->regs = devm_ioremap(dev, regs_paddr, regs_size);
725 if (!prv->regs) {
757 prv->clk = clk_get(dev, "nfc_clk");
758 if (!prv->clk) {
764 clk_enable(prv->clk);
797 init_waitqueue_head(&prv->irq_waitq);
798 retval = devm_request_irq(dev, prv->irq, &mpc5121_nfc_irq, 0, DRV_NAME,
808 devm_free_irq(dev, prv->irq, mtd);
833 devm_free_irq(dev, prv->irq, mtd);
849 devm_free_irq(dev, prv->irq, mtd);
862 devm_free_irq(dev, prv->irq, mtd);
877 struct mpc5121_nfc_prv *prv = chip->priv;
880 devm_free_irq(dev, prv->irq, mtd);