/drivers/mtd/nand/ |
H A D | nuc900_nand.c | 22 #include <linux/mtd/nand.h> 81 struct nuc900_nand *nand; local 83 nand = container_of(mtd, struct nuc900_nand, mtd); 85 ret = (unsigned char)read_data_reg(nand); 94 struct nuc900_nand *nand; local 96 nand = container_of(mtd, struct nuc900_nand, mtd); 99 buf[i] = (unsigned char)read_data_reg(nand); 106 struct nuc900_nand *nand; local 108 nand = container_of(mtd, struct nuc900_nand, mtd); 111 write_data_reg(nand, bu 114 nuc900_check_rb(struct nuc900_nand *nand) argument 127 struct nuc900_nand *nand; local 140 struct nuc900_nand *nand; local 219 nuc900_nand_enable(struct nuc900_nand *nand) argument [all...] |
H A D | jz4740_nand.c | 23 #include <linux/mtd/nand.h> 83 struct jz_nand *nand = mtd_to_jz_nand(mtd); local 88 ctrl = readl(nand->base + JZ_REG_NAND_CTRL); 94 banknr = nand->banks[chipnr] - 1; 95 chip->IO_ADDR_R = nand->bank_base[banknr]; 96 chip->IO_ADDR_W = nand->bank_base[banknr]; 98 writel(ctrl, nand->base + JZ_REG_NAND_CTRL); 100 nand->selected_bank = banknr; 105 struct jz_nand *nand = mtd_to_jz_nand(mtd); local 108 void __iomem *bank_base = nand 133 struct jz_nand *nand = mtd_to_jz_nand(mtd); local 139 struct jz_nand *nand = mtd_to_jz_nand(mtd); local 168 struct jz_nand *nand = mtd_to_jz_nand(mtd); local 221 struct jz_nand *nand = mtd_to_jz_nand(mtd); local 326 jz_nand_detect_bank(struct platform_device *pdev, struct jz_nand *nand, unsigned char bank, size_t chipnr, uint8_t *nand_maf_id, uint8_t *nand_dev_id) argument 411 struct jz_nand *nand; local 548 struct jz_nand *nand = platform_get_drvdata(pdev); local [all...] |
H A D | docg4.c | 4 * mtd nand driver for M-Systems DiskOnChip G4 44 #include <linux/mtd/nand.h> 71 * it does not use mtd nand's method for marking bad blocks (using oob area). 98 * Functions with names prefixed with docg4_ are mtd / nand interface functions 245 struct nand_chip *nand = mtd->priv; local 250 p[i] = readw(nand->IO_ADDR_R); 256 struct nand_chip *nand = mtd->priv; local 261 writew(p[i], nand->IO_ADDR_W); 297 static int docg4_wait(struct mtd_info *mtd, struct nand_chip *nand) argument 300 struct docg4_priv *doc = nand 321 struct nand_chip *nand = mtd->priv; local 340 struct nand_chip *nand = mtd->priv; local 378 struct nand_chip *nand = mtd->priv; local 467 struct nand_chip *nand = mtd->priv; local 548 struct nand_chip *nand = mtd->priv; local 585 struct nand_chip *nand = mtd->priv; local 602 struct nand_chip *nand = mtd->priv; local 629 struct nand_chip *nand = mtd->priv; local 694 struct nand_chip *nand = mtd->priv; local 756 read_page(struct mtd_info *mtd, struct nand_chip *nand, uint8_t *buf, int page, bool use_ecc) argument 824 docg4_read_page_raw(struct mtd_info *mtd, struct nand_chip *nand, uint8_t *buf, int oob_required, int page) argument 830 docg4_read_page(struct mtd_info *mtd, struct nand_chip *nand, uint8_t *buf, int oob_required, int page) argument 836 docg4_read_oob(struct mtd_info *mtd, struct nand_chip *nand, int page) argument 877 struct nand_chip *nand = mtd->priv; local 923 write_page(struct mtd_info *mtd, struct nand_chip *nand, const uint8_t *buf, bool use_ecc) argument 979 docg4_write_page_raw(struct mtd_info *mtd, struct nand_chip *nand, const uint8_t *buf, int oob_required) argument 985 docg4_write_page(struct mtd_info *mtd, struct nand_chip *nand, const uint8_t *buf, int oob_required) argument 991 docg4_write_oob(struct mtd_info *mtd, struct nand_chip *nand, int page) argument 1019 struct nand_chip *nand = mtd->priv; local 1092 struct nand_chip *nand = mtd->priv; local 1205 struct nand_chip *nand = mtd->priv; local 1264 struct nand_chip *nand = mtd->priv; local 1289 struct nand_chip *nand; local 1360 struct nand_chip *nand = mtd->priv; local [all...] |
H A D | fsmc_nand.c | 2 * 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 701 * @chip: nand chip info structure 887 if (of_get_property(np, "nand-skip-bbtscan", NULL)) 927 struct nand_chip *nand; local 1011 nand [all...] |
H A D | denali.c | 43 #define DENALI_NAND_NAME "denali-nand" 1488 denali->mtd.name = "denali-nand"; 1490 denali->mtd.priv = &denali->nand; 1493 denali->nand.select_chip = denali_select_chip; 1494 denali->nand.cmdfunc = denali_cmdfunc; 1495 denali->nand.read_byte = denali_read_byte; 1496 denali->nand.waitfunc = denali_waitfunc; 1501 * with the nand subsystem 1535 * support for multi nand 1536 * MTD known nothing about multi nand, s [all...] |
H A D | cafe_nand.c | 16 #include <linux/mtd/nand.h> 60 struct nand_chip nand; member in struct:cafe_priv 370 * @chip: nand chip info structure 667 cafe->nand.cmdfunc = cafe_nand_cmdfunc; 668 cafe->nand.dev_ready = cafe_device_ready; 669 cafe->nand.read_byte = cafe_read_byte; 670 cafe->nand.read_buf = cafe_read_buf; 671 cafe->nand.write_buf = cafe_write_buf; 672 cafe->nand.select_chip = cafe_select_chip; 674 cafe->nand [all...] |
H A D | Makefile | 2 # linux/drivers/nand/Makefile 5 obj-$(CONFIG_MTD_NAND) += nand.o 50 obj-$(CONFIG_MTD_NAND_GPMI_NAND) += gpmi-nand/ 54 nand-objs := nand_base.o nand_bbt.o nand_timings.o
|
H A D | omap2.c | 20 #include <linux/mtd/nand.h> 31 #include <linux/platform_data/mtd-nand-omap2.h> 33 #define DRIVER_NAME "omap2-nand" 154 struct nand_chip nand; member in struct:omap_nand_info 269 struct nand_chip *nand = mtd->priv; local 271 ioread8_rep(nand->IO_ADDR_R, buf, len); 288 iowrite8(*p++, info->nand.IO_ADDR_W); 305 struct nand_chip *nand = mtd->priv; local 307 ioread16_rep(nand->IO_ADDR_R, buf, len / 2); 326 iowrite16(*p++, info->nand [all...] |
H A D | fsl_elbc_nand.c | 37 #include <linux/mtd/nand.h> 151 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = ctrl->nand; 201 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = ctrl->nand; 252 * for small page nand only 1 bit is used. 306 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = ctrl->nand; 530 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = priv->ctrl->nand; 549 * This is workaround for the weird elbc hangs during nand write, 568 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = priv->ctrl->nand; 585 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = priv->ctrl->nand; 609 struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = priv->ctrl->nand; [all...] |
H A D | diskonchip.c | 2 * drivers/mtd/nand/diskonchip.c 30 #include <linux/mtd/nand.h> 1434 struct nand_chip *nand; local 1529 nand = mtd->priv; 1530 doc = nand->priv; 1570 nand = (struct nand_chip *) (mtd + 1); 1571 doc = (struct doc_priv *) (nand + 1); 1572 nand->bbt_td = (struct nand_bbt_descr *) (doc + 1); 1573 nand->bbt_md = nand 1643 struct nand_chip *nand; local [all...] |
H A D | sh_flctl.c | 2 * SuperH FLCTL nand controller 42 #include <linux/mtd/nand.h> 1086 struct nand_chip *nand; local 1126 nand = &flctl->chip; 1127 flctl_mtd->priv = nand; 1136 nand->chip_delay = 20; 1138 nand->read_byte = flctl_read_byte; 1139 nand->write_buf = flctl_write_buf; 1140 nand->read_buf = flctl_read_buf; 1141 nand [all...] |
H A D | r852.h | 13 #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 D | sm_common.c | 10 #include <linux/mtd/nand.h> 51 it will work correctly for 256 byte nand */
|
H A D | nandsim.c | 36 #include <linux/mtd/nand.h> 168 MODULE_PARM_DESC(cache_file, "File to use to cache nand pages instead of memory"); 320 /* Slab allocator for nand pages */ 2232 struct nandsim *nand; local 2249 nand = (struct nandsim *)(chip + 1); 2250 chip->priv = (void *)nand; 2283 nand->geom.idbytes = 4; 2285 nand->geom.idbytes = 2; 2286 nand->regs.status = NS_STATUS_OK(nand); [all...] |
H A D | mpc5121_nfc.c | 10 * of drivers/mtd/nand/mxc_nand.c. Reworked and extended 36 #include <linux/mtd/nand.h> 306 struct nand_chip *nand = mtd->priv; local 307 struct mpc5121_nfc_prv *prv = nand->priv; 409 struct nand_chip *nand = mtd->priv; local 410 struct mpc5121_nfc_prv *prv = nand->priv;
|
/drivers/mtd/nand/gpmi-nand/ |
H A D | Makefile | 2 gpmi_nand-objs += gpmi-nand.o
|
H A D | gpmi-lib.c | 25 #include "gpmi-nand.h" 332 struct nand_chip *nand = &this->nand; local 354 if (nand->numchips > 2) { 358 } else if (nand->numchips > 1) { 777 * The GPMI-clock is the internal clock in the gpmi nand controller. 778 * If you set 100MHz to gpmi nand controller, the GPMI-clock's period 781 * <2> Secondly, we should know what's the frequency on the nand chip pins. 782 * The frequency on the nand chip pins is derived from the GPMI-clock. 787 * F : the frequency on the nand chi 921 struct nand_chip *nand = &this->nand; local [all...] |
H A D | gpmi-nand.h | 20 #include <linux/mtd/nand.h> 162 struct nand_chip nand; member in struct:gpmi_nand_data
|
/drivers/mtd/nand/bcm47xxnflash/ |
H A D | bcm47xxnflash.h | 9 #include <linux/mtd/nand.h>
|
/drivers/staging/goldfish/ |
H A D | goldfish_nand.c | 47 struct goldfish_nand *nand = mtd->priv; local 48 struct cmd_params *cps = nand->cmd_params; 49 unsigned char __iomem *base = nand->base; 67 cps->dev = mtd - nand->mtd; 80 struct goldfish_nand *nand = mtd->priv; local 82 unsigned char __iomem *base = nand->base; 84 mutex_lock(&nand->lock); 86 writel(mtd - nand->mtd, base + NAND_DEV); 94 mutex_unlock(&nand->lock); 285 struct goldfish_nand *nand) 284 nand_setup_cmd_params(struct platform_device *pdev, struct goldfish_nand *nand) argument 301 goldfish_nand_init_device(struct platform_device *pdev, struct goldfish_nand *nand, int id) argument 378 struct goldfish_nand *nand; local 423 struct goldfish_nand *nand = platform_get_drvdata(pdev); local [all...] |
/drivers/watchdog/ |
H A D | rc32434_wdt.c | 72 /* 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/mtd/ |
H A D | Makefile | 33 obj-y += chips/ lpddr/ maps/ devices/ nand/ onenand/ tests/
|
/drivers/of/ |
H A D | of_mtd.c | 11 #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); 64 ret = of_property_read_u32(np, "nand-ecc-step-size", &val); 71 * correspnding step size as defined by 'nand-ecc-size' 81 ret = of_property_read_u32(np, "nand [all...] |
/drivers/pinctrl/qcom/ |
H A D | pinctrl-ipq8064.c | 519 FUNCTION(nand), 583 PINGROUP(34, nand, pdm, NA, NA, NA, NA, NA, NA, NA, NA), 584 PINGROUP(35, nand, pdm, NA, NA, NA, NA, NA, NA, NA, NA), 585 PINGROUP(36, nand, NA, NA, NA, NA, NA, NA, NA, NA, NA), 586 PINGROUP(37, nand, NA, NA, NA, NA, NA, NA, NA, NA, NA), 587 PINGROUP(38, nand, sdc1, NA, NA, NA, NA, NA, NA, NA, NA), 588 PINGROUP(39, nand, sdc1, NA, NA, NA, NA, NA, NA, NA, NA), 589 PINGROUP(40, nand, sdc1, NA, NA, NA, NA, NA, NA, NA, NA), 590 PINGROUP(41, nand, sdc1, NA, NA, NA, NA, NA, NA, NA, NA), 591 PINGROUP(42, nand, sdc [all...] |
/drivers/clk/sirf/ |
H A D | clk-atlas6.c | 47 .name = "nand", 65 spi1, pwmc, efuse, pulse, dmac0, dmac1, nand, audio, usp0, usp1, enumerator in enum:atlas6_clk_index
|