Home
last modified time | relevance | path

Searched refs:nand (Results 1 – 12 of 12) sorted by relevance

/drivers/mtd/devices/
Dgoldfish_nand.c42 struct goldfish_nand *nand = mtd->priv; in goldfish_nand_cmd_with_params() local
43 struct cmd_params *cps = nand->cmd_params; in goldfish_nand_cmd_with_params()
44 unsigned char __iomem *base = nand->base; in goldfish_nand_cmd_with_params()
62 cps->dev = mtd - nand->mtd; in goldfish_nand_cmd_with_params()
75 struct goldfish_nand *nand = mtd->priv; in goldfish_nand_cmd() local
78 unsigned char __iomem *base = nand->base; in goldfish_nand_cmd()
80 spin_lock_irqsave(&nand->lock, irq_flags); in goldfish_nand_cmd()
83 writel(mtd - nand->mtd, base + NAND_DEV); in goldfish_nand_cmd()
91 spin_unlock_irqrestore(&nand->lock, irq_flags); in goldfish_nand_cmd()
287 static int nand_setup_cmd_params(struct goldfish_nand *nand) in nand_setup_cmd_params() argument
[all …]
/drivers/mtd/nand/
Dcafe_nand.c58 struct nand_chip nand; member
673 cafe->nand.buffers = (void *)cafe->dmabuf + 2112; in cafe_nand_probe()
681 cafe->nand.cmdfunc = cafe_nand_cmdfunc; in cafe_nand_probe()
682 cafe->nand.dev_ready = cafe_device_ready; in cafe_nand_probe()
683 cafe->nand.read_byte = cafe_read_byte; in cafe_nand_probe()
684 cafe->nand.read_buf = cafe_read_buf; in cafe_nand_probe()
685 cafe->nand.write_buf = cafe_write_buf; in cafe_nand_probe()
686 cafe->nand.select_chip = cafe_select_chip; in cafe_nand_probe()
688 cafe->nand.chip_delay = 0; in cafe_nand_probe()
691 cafe->nand.options = NAND_USE_FLASH_BBT | NAND_NO_AUTOINCR | NAND_OWN_BUFFERS; in cafe_nand_probe()
[all …]
Ddiskonchip.c1502 struct nand_chip *nand; in doc_probe() local
1594 nand = mtd->priv; in doc_probe()
1595 doc = nand->priv; in doc_probe()
1636 nand = (struct nand_chip *) (mtd + 1); in doc_probe()
1637 doc = (struct doc_priv *) (nand + 1); in doc_probe()
1638 nand->bbt_td = (struct nand_bbt_descr *) (doc + 1); in doc_probe()
1639 nand->bbt_md = nand->bbt_td + 1; in doc_probe()
1641 mtd->priv = nand; in doc_probe()
1644 nand->priv = doc; in doc_probe()
1645 nand->select_chip = doc200x_select_chip; in doc_probe()
[all …]
Dsh_flctl.c771 struct nand_chip *nand; in flctl_probe() local
803 nand = &flctl->chip; in flctl_probe()
804 flctl_mtd->priv = nand; in flctl_probe()
809 nand->options = NAND_NO_AUTOINCR; in flctl_probe()
813 nand->chip_delay = 20; in flctl_probe()
815 nand->read_byte = flctl_read_byte; in flctl_probe()
816 nand->write_buf = flctl_write_buf; in flctl_probe()
817 nand->read_buf = flctl_read_buf; in flctl_probe()
818 nand->verify_buf = flctl_verify_buf; in flctl_probe()
819 nand->select_chip = flctl_select_chip; in flctl_probe()
[all …]
Dnandsim.c2226 struct nandsim *nand; in ns_init_module() local
2243 nand = (struct nandsim *)(chip + 1); in ns_init_module()
2244 chip->priv = (void *)nand; in ns_init_module()
2266 nand->geom.idbytes = 4; in ns_init_module()
2268 nand->geom.idbytes = 2; in ns_init_module()
2269 nand->regs.status = NS_STATUS_OK(nand); in ns_init_module()
2270 nand->nxstate = STATE_UNKNOWN; in ns_init_module()
2271 nand->options |= OPT_PAGE256; /* temporary value */ in ns_init_module()
2272 nand->ids[0] = first_id_byte; in ns_init_module()
2273 nand->ids[1] = second_id_byte; in ns_init_module()
[all …]
DMakefile5 obj-$(CONFIG_MTD_NAND) += nand.o nand_ecc.o
40 nand-objs := nand_base.o nand_bbt.o
DKconfig1 # drivers/mtd/nand/Kconfig
10 <http://www.linux-mtd.infradead.org/doc/nand.html>.
103 will be called bf5xx-nand.
373 MTD nand layer.
Dmxc_nand.c105 struct nand_chip nand; member
283 struct nand_chip *this = &host->nand; in send_read_id()
865 this = &host->nand; in mxcnd_probe()
/drivers/watchdog/
Drc32434_wdt.c68 #define SET_BITS(addr, or, nand) \ argument
69 writel((readl(&addr) | or) & ~nand, &addr)
73 u32 or, nand; in rc32434_wdt_start() local
80 nand = 1 << RC32434_ERR_WNE; in rc32434_wdt_start()
84 nand |= 1 << RC32434_ERR_WTO; in rc32434_wdt_start()
86 SET_BITS(wdt_reg->errcs, or, nand); in rc32434_wdt_start()
89 nand = 1 << RC32434_WTC_TO; in rc32434_wdt_start()
92 SET_BITS(wdt_reg->wtc, or, nand); in rc32434_wdt_start()
/drivers/mtd/
DMakefile32 obj-y += chips/ lpddr/ maps/ devices/ nand/ onenand/ tests/
DKconfig323 source "drivers/mtd/nand/Kconfig"
/drivers/mfd/
Dtc6393xb.c122 static int tc6393xb_nand_enable(struct platform_device *nand) in tc6393xb_nand_enable() argument
124 struct platform_device *dev = to_platform_device(nand->dev.parent); in tc6393xb_nand_enable()