/linux-master/include/linux/platform_data/ |
H A D | mtd-nand-omap2.h | 9 #include <linux/mtd/partitions.h>
|
/linux-master/drivers/mtd/ |
H A D | sm_ftl.c | 16 #include <linux/mtd/nand-ecc-sw-hamming.h> 241 struct mtd_info *mtd = ftl->trans->mtd; local 282 ret = mtd_read_oob(mtd, sm_mkoffset(ftl, zone, block, boffset), &ops); 295 /* This should never happen, unless there is a bug in the mtd driver */ 327 struct mtd_info *mtd = ftl->trans->mtd; local 347 ret = mtd_write_oob(mtd, sm_mkoffset(ftl, zone, block, boffset), &ops); 468 struct mtd_info *mtd = ftl->trans->mtd; local 564 sm_get_media_info(struct sm_ftl *ftl, struct mtd_info *mtd) argument 1132 sm_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) argument [all...] |
/linux-master/arch/arm/mach-omap1/ |
H A D | board-palmte.c | 22 #include <linux/mtd/mtd.h> 23 #include <linux/mtd/partitions.h> 24 #include <linux/mtd/physmap.h>
|
/linux-master/arch/mips/loongson32/ls1b/ |
H A D | board.c | 7 #include <linux/mtd/partitions.h>
|
/linux-master/drivers/mtd/nand/raw/ |
H A D | nand_legacy.c | 195 struct mtd_info *mtd = nand_to_mtd(chip); local 198 if (mtd->oops_panic_write) 253 struct mtd_info *mtd = nand_to_mtd(chip); local 260 if (column >= mtd->writesize) { 262 column -= mtd->writesize; 392 struct mtd_info *mtd = nand_to_mtd(chip); local 396 column += mtd->writesize; 535 struct mtd_info *mtd = nand_to_mtd(chip); local 550 if (mtd->oops_panic_write) { 616 struct mtd_info *mtd local [all...] |
H A D | cs553x_nand.c | 11 * mtd-id for command line partitioning is cs553x_nand_cs[0-3] 20 #include <linux/mtd/mtd.h> 21 #include <linux/mtd/rawnand.h> 22 #include <linux/mtd/partitions.h> 396 struct mtd_info *mtd = nand_to_mtd(this); local 399 if (!mtd) 403 ret = mtd_device_unregister(mtd); 406 kfree(mtd->name);
|
H A D | au1550nd.c | 10 #include <linux/mtd/mtd.h> 11 #include <linux/mtd/rawnand.h> 12 #include <linux/mtd/partitions.h> 259 struct mtd_info *mtd; local 293 mtd = nand_to_mtd(this); 294 mtd->dev.parent = &pdev->dev; 325 mtd_device_register(mtd, pd->parts, pd->num_parts);
|
H A D | arasan-nand-controller.c | 22 #include <linux/mtd/mtd.h> 23 #include <linux/mtd/partitions.h> 24 #include <linux/mtd/rawnand.h> 396 struct mtd_info *mtd = nand_to_mtd(chip); local 398 unsigned int len = mtd->writesize + (oob_required ? mtd->oobsize : 0); 442 ret = nand_change_read_column_op(chip, mtd->writesize, chip->oob_poi, 443 mtd->oobsize, 0); 460 &chip->oob_poi[mtd 515 struct mtd_info *mtd = nand_to_mtd(chip); local 1111 struct mtd_info *mtd = nand_to_mtd(chip); local 1200 struct mtd_info *mtd = nand_to_mtd(chip); local 1276 struct mtd_info *mtd; local [all...] |
H A D | intel-nand-controller.c | 15 #include <linux/mtd/mtd.h> 16 #include <linux/mtd/rawnand.h> 17 #include <linux/mtd/nand.h> 236 static int ebu_nand_ooblayout_ecc(struct mtd_info *mtd, int section, argument 239 struct nand_chip *chip = mtd_to_nand(mtd); 250 static int ebu_nand_ooblayout_free(struct mtd_info *mtd, int section, argument 253 struct nand_chip *chip = mtd_to_nand(mtd); 259 oobregion->length = mtd->oobsize - oobregion->offset; 388 struct mtd_info *mtd local 411 struct mtd_info *mtd = nand_to_mtd(chip); local 447 struct mtd_info *mtd = nand_to_mtd(chip); local 582 struct mtd_info *mtd; local [all...] |
H A D | cadence-nand-controller.c | 16 #include <linux/mtd/mtd.h> 17 #include <linux/mtd/rawnand.h> 520 /* Sector size. There are few sectors per mtd->writesize */ 1219 struct mtd_info *mtd = nand_to_mtd(chip); local 1241 last_sec_size = mtd->writesize + mtd->oobsize; 1244 offset = mtd->writesize + cdns_chip->bbm_offs; 1404 struct mtd_info *mtd = nand_to_mtd(chip); local 1417 mtd 1435 struct mtd_info *mtd = nand_to_mtd(chip); local 1505 struct mtd_info *mtd = nand_to_mtd(chip); local 1518 struct mtd_info *mtd = nand_to_mtd(chip); local 1624 struct mtd_info *mtd = nand_to_mtd(chip); local 1711 struct mtd_info *mtd = nand_to_mtd(chip); local 2283 cadence_nand_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 2299 cadence_nand_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 2648 struct mtd_info *mtd = nand_to_mtd(chip); local 2746 struct mtd_info *mtd; local [all...] |
H A D | marvell_nand.c | 79 #include <linux/mtd/rawnand.h> 92 #include <linux/platform_data/mtd-nand-pxa3xx.h> 729 struct mtd_info *mtd = nand_to_mtd(chip); local 737 if (mtd->oops_panic_write) { 958 struct mtd_info *mtd = nand_to_mtd(chip); local 976 mtd->ecc_stats.failed++; 981 mtd->ecc_stats.corrected += bf; 987 * mtd->ecc_stats.corrected is updated, as well as max_bitflips, however 988 * mtd->ecc_stats.failure is not, the function will instead return a non-zero 995 struct mtd_info *mtd local 1245 struct mtd_info *mtd = nand_to_mtd(chip); local 1259 struct mtd_info *mtd = nand_to_mtd(chip); local 1374 struct mtd_info *mtd = nand_to_mtd(chip); local 1632 struct mtd_info *mtd = nand_to_mtd(chip); local 1690 struct mtd_info *mtd = nand_to_mtd(chip); local 1700 struct mtd_info *mtd = nand_to_mtd(chip); local 2199 marvell_nand_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 2215 marvell_nand_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 2244 marvell_nand_hw_ecc_controller_init(struct mtd_info *mtd, struct nand_ecc_ctrl *ecc) argument 2318 marvell_nand_ecc_init(struct mtd_info *mtd, struct nand_ecc_ctrl *ecc) argument 2495 struct mtd_info *mtd = nand_to_mtd(chip); local 2605 struct mtd_info *mtd; local [all...] |
H A D | sunxi_nand.c | 6 * https://github.com/yuq/sunxi-nfc-mtd 22 #include <linux/mtd/mtd.h> 23 #include <linux/mtd/rawnand.h> 24 #include <linux/mtd/partitions.h> 417 struct mtd_info *mtd = nand_to_mtd(nand); local 434 writel(mtd->writesize, nfc->regs + NFC_REG_SPARE_AREA); 605 struct mtd_info *mtd = nand_to_mtd(nand); local 607 int mod = mtd_div_by_ws(mtd->erasesize, mtd); 749 struct mtd_info *mtd = nand_to_mtd(nand); local 880 struct mtd_info *mtd = nand_to_mtd(nand); local 908 struct mtd_info *mtd = nand_to_mtd(nand); local 1073 struct mtd_info *mtd = nand_to_mtd(nand); local 1094 struct mtd_info *mtd = nand_to_mtd(nand); local 1153 struct mtd_info *mtd = nand_to_mtd(nand); local 1209 struct mtd_info *mtd = nand_to_mtd(nand); local 1246 struct mtd_info *mtd = nand_to_mtd(nand); local 1355 struct mtd_info *mtd = nand_to_mtd(nand); local 1559 sunxi_nand_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 1574 sunxi_nand_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 1624 struct mtd_info *mtd = nand_to_mtd(nand); local 1942 struct mtd_info *mtd; local [all...] |
H A D | nand_hynix.c | 410 struct mtd_info *mtd = nand_to_mtd(chip); local 491 mtd->oobsize = memorg->oobsize; 610 struct mtd_info *mtd = nand_to_mtd(chip); local 631 mtd->writesize = memorg->pagesize; 644 mtd->erasesize = SZ_1M << tmp; 648 mtd->erasesize = SZ_512K + SZ_256K; 652 mtd->erasesize = SZ_128K << tmp; 690 struct mtd_info *mtd = nand_to_mtd(chip); local 693 mtd_set_pairing_scheme(mtd, &dist3_pairing_scheme);
|
/linux-master/drivers/mtd/maps/ |
H A D | physmap-ixp4xx.c | 15 #include <linux/mtd/map.h> 16 #include <linux/mtd/xip.h>
|
/linux-master/drivers/mtd/nand/spi/ |
H A D | toshiba.c | 11 #include <linux/mtd/spinand.h> 41 static int tx58cxgxsxraix_ooblayout_ecc(struct mtd_info *mtd, int section, argument 47 region->offset = mtd->oobsize / 2; 48 region->length = mtd->oobsize / 2; 53 static int tx58cxgxsxraix_ooblayout_free(struct mtd_info *mtd, int section, argument 61 region->length = (mtd->oobsize / 2) - 2;
|
H A D | gigadevice.c | 9 #include <linux/mtd/spinand.h> 66 static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section, argument 78 static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section, argument 124 static int gd5fxgqx_variant2_ooblayout_ecc(struct mtd_info *mtd, int section, argument 136 static int gd5fxgqx_variant2_ooblayout_free(struct mtd_info *mtd, int section, argument 155 static int gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section, argument 167 static int gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section, argument
|
/linux-master/include/linux/mtd/ |
H A D | nand.h | 13 #include <linux/mtd/mtd.h> 400 * @mtd: MTD instance attached to the NAND device 415 * struct_nand_device->mtd except for the ->_read/write() hooks. 418 struct mtd_info mtd; member in struct:nand_device 446 * @mtd: MTD instance 448 * Return: the NAND device embedding @mtd. 450 static inline struct nand_device *mtd_to_nanddev(struct mtd_info *mtd) argument 452 return container_of(mtd, struct nand_device, mtd); 923 struct mtd_info *mtd = nanddev_to_mtd(nand); local [all...] |
H A D | cfi.h | 13 #include <linux/mtd/flashchip.h> 14 #include <linux/mtd/map.h> 15 #include <linux/mtd/cfi_endian.h> 16 #include <linux/mtd/xip.h> 353 void (*fixup)(struct mtd_info *mtd); 378 void cfi_fixup(struct mtd_info *mtd, struct cfi_fixup* fixups); 383 int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob,
|
H A D | spi-nor.h | 10 #include <linux/mtd/mtd.h> 344 * @mtd: an mtd_info structure 383 struct mtd_info mtd; member in struct:spi_nor 428 mtd_set_of_node(&nor->mtd, np); 433 return mtd_get_of_node(&nor->mtd);
|
/linux-master/drivers/mtd/spi-nor/ |
H A D | core.c | 16 #include <linux/mtd/mtd.h> 17 #include <linux/mtd/spi-nor.h> 1072 bool multi_die = nor->mtd.size != die_size; 1754 (unsigned long)(nor->mtd.size / SZ_2M)); 1789 static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr) argument 1791 struct spi_nor *nor = mtd_to_spi_nor(mtd); 1802 div_u64_rem(instr->len, mtd->erasesize, &rem); 1811 die_size = div_u64(mtd->size, n_dice); 1815 die_size = mtd 2051 spi_nor_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 2098 spi_nor_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 2546 struct mtd_info *mtd = &nor->mtd; local 3239 spi_nor_suspend(struct mtd_info *mtd) argument 3253 spi_nor_resume(struct mtd_info *mtd) argument 3265 spi_nor_get_device(struct mtd_info *mtd) argument 3282 spi_nor_put_device(struct mtd_info *mtd) argument 3394 struct mtd_info *mtd = &nor->mtd; local 3421 struct mtd_info *mtd = &nor->mtd; local [all...] |
/linux-master/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 23 #include <linux/mtd/mtd.h> 24 #include <linux/mtd/rawnand.h> 25 #include <linux/mtd/partitions.h> 902 static void brcmnand_set_cmd_addr(struct mtd_info *mtd, u64 addr) argument 904 struct nand_chip *chip = mtd_to_nand(mtd); 1247 * Set mtd->ooblayout to the appropriate mtd_ooblayout_ops given 1251 static int brcmnand_hamming_ooblayout_ecc(struct mtd_info *mtd, int section, argument 1254 struct nand_chip *chip = mtd_to_nand(mtd); 1269 static int brcmnand_hamming_ooblayout_free(struct mtd_info *mtd, in argument 1309 brcmnand_bch_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 1327 brcmnand_bch_ooblayout_free_lp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 1353 brcmnand_bch_ooblayout_free_sp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 1389 struct mtd_info *mtd = nand_to_mtd(&host->chip); local 1426 brcmnand_wp(struct mtd_info *mtd, int wp) argument 1714 struct mtd_info *mtd = nand_to_mtd(chip); local 1763 struct mtd_info *mtd = nand_to_mtd(chip); local 2039 brcmnand_read_by_pio(struct mtd_info *mtd, struct nand_chip *chip, u64 addr, unsigned int trans, u32 *buf, u8 *oob, u64 *err_addr) argument 2101 brcmstb_nand_verify_erased_page(struct mtd_info *mtd, struct nand_chip *chip, void *buf, u64 addr) argument 2139 brcmnand_read(struct mtd_info *mtd, struct nand_chip *chip, u64 addr, unsigned int trans, u32 *buf, u8 *oob) argument 2235 struct mtd_info *mtd = nand_to_mtd(chip); local 2250 struct mtd_info *mtd = nand_to_mtd(chip); local 2266 struct mtd_info *mtd = nand_to_mtd(chip); local 2275 struct mtd_info *mtd = nand_to_mtd(chip); local 2286 brcmnand_write(struct mtd_info *mtd, struct nand_chip *chip, u64 addr, const u32 *buf, u8 *oob) argument 2360 struct mtd_info *mtd = nand_to_mtd(chip); local 2373 struct mtd_info *mtd = nand_to_mtd(chip); local 2396 struct mtd_info *mtd = nand_to_mtd(chip); local 2493 struct mtd_info *mtd = nand_to_mtd(chip); local 2673 struct mtd_info *mtd = nand_to_mtd(&host->chip); local 2827 struct mtd_info *mtd = nand_to_mtd(chip); local 2871 struct mtd_info *mtd; local [all...] |
/linux-master/drivers/mtd/nand/ |
H A D | ecc-mxic.c | 17 #include <linux/mtd/mtd.h> 18 #include <linux/mtd/nand.h> 19 #include <linux/mtd/nand-ecc-mxic.h> 134 static int mxic_ecc_ooblayout_ecc(struct mtd_info *mtd, int section, argument 137 struct nand_device *nand = mtd_to_nanddev(mtd); 149 static int mxic_ecc_ooblayout_free(struct mtd_info *mtd, int section, argument 152 struct nand_device *nand = mtd_to_nanddev(mtd); 225 struct mtd_info *mtd = nanddev_to_mtd(nand); local 240 if (mtd 523 struct mtd_info *mtd = nanddev_to_mtd(nand); local 557 struct mtd_info *mtd = nanddev_to_mtd(nand); local [all...] |
/linux-master/fs/jffs2/ |
H A D | wbuf.c | 18 #include <linux/mtd/mtd.h> 20 #include <linux/mtd/rawnand.h> 237 ret = mtd_read(c->mtd, ofs, c->wbuf_pagesize, &retlen, c->wbuf_verify); 288 if (c->wbuf_ofs % c->mtd->erasesize) 348 ret = mtd_read(c->mtd, start, c->wbuf_ofs - start, &retlen, 425 mtd_write(c->mtd, ofs, towrite, &retlen, brokenbuf); 429 ret = mtd_write(c->mtd, ofs, towrite, &retlen, 632 mtd_write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, &retlen, 638 ret = mtd_write(c->mtd, [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/ |
H A D | eeprom.c | 7 #include <linux/mtd/mtd.h> 8 #include <linux/mtd/partitions.h> 35 struct mtd_info *mtd; local 43 list = of_get_property(np, "mediatek,mtd-eeprom", &size); 59 mtd = get_mtd_device_nm(part); 60 if (IS_ERR(mtd)) { 61 ret = PTR_ERR(mtd); 71 ret = mtd_read(mtd, offset, len, &retlen, eep); 72 put_mtd_device(mtd); [all...] |
/linux-master/arch/sh/boards/ |
H A D | board-magicpanelr2.c | 17 #include <linux/mtd/mtd.h> 18 #include <linux/mtd/partitions.h> 19 #include <linux/mtd/physmap.h> 20 #include <linux/mtd/map.h>
|