Searched refs:nand (Results 1 - 25 of 67) sorted by relevance

123

/drivers/mtd/nand/
H A Djz4740_nand.c23 #include <linux/mtd/nand.h>
79 struct jz_nand *nand = mtd_to_jz_nand(mtd); local
86 chip->IO_ADDR_W = nand->bank_base + JZ_NAND_MEM_ADDR_OFFSET;
88 chip->IO_ADDR_W = nand->bank_base + JZ_NAND_MEM_CMD_OFFSET;
90 chip->IO_ADDR_W = nand->bank_base;
92 reg = readl(nand->base + JZ_REG_NAND_CTRL);
97 writel(reg, nand->base + JZ_REG_NAND_CTRL);
105 struct jz_nand *nand = mtd_to_jz_nand(mtd); local
106 return gpio_get_value_cansleep(nand->pdata->busy_gpio);
111 struct jz_nand *nand local
140 struct jz_nand *nand = mtd_to_jz_nand(mtd); local
193 struct jz_nand *nand = mtd_to_jz_nand(mtd); local
294 struct jz_nand *nand; local
404 struct jz_nand *nand = platform_get_drvdata(pdev); local
[all...]
H A Dnuc900_nand.c23 #include <linux/mtd/nand.h>
82 struct nuc900_nand *nand; local
84 nand = container_of(mtd, struct nuc900_nand, mtd);
86 ret = (unsigned char)read_data_reg(nand);
95 struct nuc900_nand *nand; local
97 nand = container_of(mtd, struct nuc900_nand, mtd);
100 buf[i] = (unsigned char)read_data_reg(nand);
107 struct nuc900_nand *nand; local
109 nand = container_of(mtd, struct nuc900_nand, mtd);
112 write_data_reg(nand, bu
119 struct nuc900_nand *nand; local
131 nuc900_check_rb(struct nuc900_nand *nand) argument
144 struct nuc900_nand *nand; local
157 struct nuc900_nand *nand; local
244 nuc900_nand_enable(struct nuc900_nand *nand) argument
[all...]
H A Ddocg4.c4 * mtd nand driver for M-Systems DiskOnChip G4
44 #include <linux/mtd/nand.h>
51 * it does not use mtd nand's method for marking bad blocks (using oob area).
78 * Functions with names prefixed with docg4_ are mtd / nand interface functions
219 struct nand_chip *nand = mtd->priv; local
224 p[i] = readw(nand->IO_ADDR_R);
230 struct nand_chip *nand = mtd->priv; local
235 writew(p[i], nand->IO_ADDR_W);
275 static int docg4_wait(struct mtd_info *mtd, struct nand_chip *nand) argument
278 struct docg4_priv *doc = nand
299 struct nand_chip *nand = mtd->priv; local
318 struct nand_chip *nand = mtd->priv; local
356 struct nand_chip *nand = mtd->priv; local
445 struct nand_chip *nand = mtd->priv; local
526 struct nand_chip *nand = mtd->priv; local
563 struct nand_chip *nand = mtd->priv; local
580 struct nand_chip *nand = mtd->priv; local
607 struct nand_chip *nand = mtd->priv; local
664 struct nand_chip *nand = mtd->priv; local
717 read_page(struct mtd_info *mtd, struct nand_chip *nand, uint8_t *buf, int page, bool use_ecc) argument
788 docg4_read_page_raw(struct mtd_info *mtd, struct nand_chip *nand, uint8_t *buf, int page) argument
794 docg4_read_page(struct mtd_info *mtd, struct nand_chip *nand, uint8_t *buf, int page) argument
800 docg4_read_oob(struct mtd_info *mtd, struct nand_chip *nand, int page, int sndcmd) argument
856 struct nand_chip *nand = mtd->priv; local
900 write_page(struct mtd_info *mtd, struct nand_chip *nand, const uint8_t *buf, bool use_ecc) argument
954 docg4_write_page_raw(struct mtd_info *mtd, struct nand_chip *nand, const uint8_t *buf) argument
960 docg4_write_page(struct mtd_info *mtd, struct nand_chip *nand, const uint8_t *buf) argument
966 docg4_write_oob(struct mtd_info *mtd, struct nand_chip *nand, int page) argument
994 struct nand_chip *nand = mtd->priv; local
1054 struct nand_chip *nand = mtd->priv; local
1173 struct nand_chip *nand = mtd->priv; local
1234 struct nand_chip *nand = mtd->priv; local
1259 struct nand_chip *nand; local
1330 struct nand_chip *nand = mtd->priv; local
[all...]
H A Dnomadik_nand.c2 * drivers/mtd/nand/nomadik_nand.c
28 #include <linux/mtd/nand.h>
34 #include <mach/nand.h>
41 struct nand_chip nand; member in struct:nomadik_nand_host
66 struct nand_chip *nand = mtd->priv; local
67 struct nomadik_nand_host *host = nand->priv;
83 struct nand_chip *nand; local
131 nand = &host->nand;
132 mtd->priv = nand;
[all...]
H A Domap2.c19 #include <linux/mtd/nand.h>
26 #include <plat/nand.h>
28 #define DRIVER_NAME "omap2-nand"
116 struct nand_chip nand; member in struct:omap_nand_info
168 struct nand_chip *nand = mtd->priv; local
170 ioread8_rep(nand->IO_ADDR_R, buf, len);
187 iowrite8(*p++, info->nand.IO_ADDR_W);
203 struct nand_chip *nand = mtd->priv; local
205 ioread16_rep(nand->IO_ADDR_R, buf, len / 2);
224 iowrite16(*p++, info->nand
[all...]
H A Dfsmc_nand.c2 * drivers/mtd/nand/fsmc_nand.c
12 * Based on drivers/mtd/nand/nomadik_nand.c
31 #include <linux/mtd/nand.h>
255 * oobfree structure maintained already in generic nand driver
282 * @nand: Chip related info for a NAND flash.
303 struct nand_chip nand; member in struct:fsmc_nand_data
693 * @chip: nand chip info structure
877 if (of_get_property(np, "nand-skip-bbtscan", NULL))
901 struct nand_chip *nand; local
1026 nand
[all...]
H A Dcafe_nand.c16 #include <linux/mtd/nand.h>
60 struct nand_chip nand; member in struct:cafe_priv
376 * @chip: nand chip info structure
669 cafe->nand.buffers = (void *)cafe->dmabuf + 2112;
677 cafe->nand.cmdfunc = cafe_nand_cmdfunc;
678 cafe->nand.dev_ready = cafe_device_ready;
679 cafe->nand.read_byte = cafe_read_byte;
680 cafe->nand.read_buf = cafe_read_buf;
681 cafe->nand.write_buf = cafe_write_buf;
682 cafe->nand
[all...]
H A DMakefile2 # linux/drivers/nand/Makefile
5 obj-$(CONFIG_MTD_NAND) += nand.o
53 obj-$(CONFIG_MTD_NAND_GPMI_NAND) += gpmi-nand/
55 nand-objs := nand_base.o nand_bbt.o
H A Ddenali.c44 #define DENALI_NAND_NAME "denali-nand"
1524 denali->mtd.name = "denali-nand";
1526 denali->mtd.priv = &denali->nand;
1529 denali->nand.select_chip = denali_select_chip;
1530 denali->nand.cmdfunc = denali_cmdfunc;
1531 denali->nand.read_byte = denali_read_byte;
1532 denali->nand.waitfunc = denali_waitfunc;
1536 * with the nand subsystem */
1552 /* support for multi nand
1553 * MTD known nothing about multi nand,
[all...]
H A Dfsl_elbc_nand.c37 #include <linux/mtd/nand.h>
164 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = ctrl->nand;
214 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = ctrl->nand;
263 * for small page nand only 1 bit is used.
312 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = ctrl->nand;
536 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = priv->ctrl->nand;
555 * This is workaround for the weird elbc hangs during nand write,
574 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = priv->ctrl->nand;
591 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = priv->ctrl->nand;
616 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = priv->ctrl->nand;
[all...]
H A Ddiskonchip.c2 * drivers/mtd/nand/diskonchip.c
30 #include <linux/mtd/nand.h>
1500 struct nand_chip *nand; local
1592 nand = mtd->priv;
1593 doc = nand->priv;
1634 nand = (struct nand_chip *) (mtd + 1);
1635 doc = (struct doc_priv *) (nand + 1);
1636 nand->bbt_td = (struct nand_bbt_descr *) (doc + 1);
1637 nand->bbt_md = nand
1703 struct nand_chip *nand; local
[all...]
H A Dsh_flctl.c2 * SuperH FLCTL nand controller
33 #include <linux/mtd/nand.h>
847 struct nand_chip *nand; local
877 nand = &flctl->chip;
878 flctl_mtd->priv = nand;
884 nand->options = NAND_NO_AUTOINCR;
888 nand->chip_delay = 20;
890 nand->read_byte = flctl_read_byte;
891 nand->write_buf = flctl_write_buf;
892 nand
[all...]
H A Dh1910.c2 * drivers/mtd/nand/h1910.c
6 * Derived from drivers/mtd/nand/edb7312.c
24 #include <linux/mtd/nand.h>
91 printk("Failed to ioremap nand flash.\n");
H A Dspia.c2 * drivers/mtd/nand/spia.c
8 * to controllines (due to change in nand.c)
26 #include <linux/mtd/nand.h>
H A Dnand_ids.c12 #include <linux/mtd/nand.h>
H A Dr852.h13 #include <linux/mtd/nand.h>
17 /* nand interface + ecc
18 byte write/read does one cycle on nand data lines.
112 struct nand_chip *chip; /* nand chip backpointer */
H A Dsm_common.c10 #include <linux/mtd/nand.h>
50 it will work correctly for 256 byte nand */
H A Dnandsim.c36 #include <linux/mtd/nand.h>
169 MODULE_PARM_DESC(cache_file, "File to use to cache nand pages instead of memory");
319 /* Slab allocator for nand pages */
2239 struct nandsim *nand; local
2256 nand = (struct nandsim *)(chip + 1);
2257 chip->priv = (void *)nand;
2291 nand->geom.idbytes = 4;
2293 nand->geom.idbytes = 2;
2294 nand->regs.status = NS_STATUS_OK(nand);
[all...]
H A Ddavinci_nand.c33 #include <linux/mtd/nand.h>
37 #include <mach/nand.h>
107 struct nand_chip *nand = mtd->priv; local
116 nand->IO_ADDR_W = (void __iomem __force *)addr;
120 iowrite8(cmd, nand->IO_ADDR_W);
/drivers/mtd/nand/gpmi-nand/
H A DMakefile2 gpmi_nand-objs += gpmi-nand.o
H A Dgpmi-nand.h20 #include <linux/mtd/nand.h>
144 struct nand_chip nand; member in struct:gpmi_nand_data
H A Dgpmi-lib.c21 #include <linux/mtd/gpmi-nand.h>
26 #include "gpmi-nand.h"
264 struct nand_chip *nand = &this->nand; local
286 if (nand->numchips > 2) {
290 } else if (nand->numchips > 1) {
/drivers/watchdog/
H A Drc32434_wdt.c72 /* apply or and nand masks to data read from addr and write back */
73 #define SET_BITS(addr, or, nand) \
74 writel((readl(&addr) | or) & ~nand, &addr)
94 u32 or, nand; local
103 nand = 1 << RC32434_ERR_WNE;
107 nand |= 1 << RC32434_ERR_WTO;
109 SET_BITS(wdt_reg->errcs, or, nand);
115 nand = 1 << RC32434_WTC_TO;
118 SET_BITS(wdt_reg->wtc, or, nand);
/drivers/of/
H A Dof_mtd.c11 #include <linux/mtd/nand.h>
15 * It maps 'enum nand_ecc_modes_t' found in include/linux/mtd/nand.h
16 * into the device tree binding of 'nand-ecc', so that MTD
17 * device driver can get nand ecc from device tree.
29 * of_get_nand_ecc_mode - Get nand ecc mode for given device_node
32 * The function gets ecc mode string from property 'nand-ecc-mode',
40 err = of_property_read_string(np, "nand-ecc-mode", &pm);
53 * of_get_nand_bus_width - Get nand bus witdh for given device_node
62 if (of_property_read_u32(np, "nand-bus-width", &val))
76 * of_get_nand_on_flash_bbt - Get nand o
[all...]
/drivers/mtd/
H A DMakefile33 obj-y += chips/ lpddr/ maps/ devices/ nand/ onenand/ tests/

Completed in 773 milliseconds

123