Searched refs:b47n (Results 1 – 3 of 3) sorted by relevance
/linux-4.4.14/drivers/mtd/nand/bcm47xxnflash/ |
D | ops_bcm4706.c | 93 struct bcm47xxnflash *b47n = (struct bcm47xxnflash *)nand_chip->priv; in bcm47xxnflash_ops_bcm4706_read() local 100 BUG_ON(b47n->curr_page_addr & ~nand_chip->pagemask); in bcm47xxnflash_ops_bcm4706_read() 109 bcma_cc_write32(b47n->cc, BCMA_CC_NFLASH_COL_ADDR, in bcm47xxnflash_ops_bcm4706_read() 110 b47n->curr_column); in bcm47xxnflash_ops_bcm4706_read() 111 bcma_cc_write32(b47n->cc, BCMA_CC_NFLASH_ROW_ADDR, in bcm47xxnflash_ops_bcm4706_read() 112 b47n->curr_page_addr); in bcm47xxnflash_ops_bcm4706_read() 118 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(b47n->cc, ctlcode)) in bcm47xxnflash_ops_bcm4706_read() 120 if (bcm47xxnflash_ops_bcm4706_poll(b47n->cc)) in bcm47xxnflash_ops_bcm4706_read() 128 if (bcm47xxnflash_ops_bcm4706_ctl_cmd(b47n->cc, in bcm47xxnflash_ops_bcm4706_read() 131 *dest = bcma_cc_read32(b47n->cc, BCMA_CC_NFLASH_DATA); in bcm47xxnflash_ops_bcm4706_read() [all …]
|
D | main.c | 29 struct bcm47xxnflash *b47n; in bcm47xxnflash_probe() local 32 b47n = devm_kzalloc(&pdev->dev, sizeof(*b47n), GFP_KERNEL); in bcm47xxnflash_probe() 33 if (!b47n) in bcm47xxnflash_probe() 36 b47n->nand_chip.priv = b47n; in bcm47xxnflash_probe() 37 b47n->mtd.dev.parent = &pdev->dev; in bcm47xxnflash_probe() 38 b47n->mtd.priv = &b47n->nand_chip; /* Required */ in bcm47xxnflash_probe() 39 b47n->cc = container_of(nflash, struct bcma_drv_cc, nflash); in bcm47xxnflash_probe() 41 if (b47n->cc->core->bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) { in bcm47xxnflash_probe() 42 err = bcm47xxnflash_ops_bcm4706_init(b47n); in bcm47xxnflash_probe() 52 err = mtd_device_parse_register(&b47n->mtd, probes, NULL, NULL, 0); in bcm47xxnflash_probe()
|
D | bcm47xxnflash.h | 24 int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n);
|