/linux-master/drivers/mtd/devices/ |
H A D | bcm47xxsflash.h | 5 #include <linux/mtd/mtd.h> 78 struct mtd_info mtd; member in struct:bcm47xxsflash
|
H A D | spear_smi.c | 30 #include <linux/mtd/mtd.h> 31 #include <linux/mtd/partitions.h> 32 #include <linux/mtd/spear_smi.h> 187 * @mtd: MTD info for each NOR-flash. 199 struct mtd_info mtd; member in struct:spear_snor_flash 208 static inline struct spear_snor_flash *get_flash_data(struct mtd_info *mtd) argument 210 return container_of(mtd, struct spear_snor_flash, mtd); 488 * @mtd 494 spear_mtd_erase(struct mtd_info *mtd, struct erase_info *e_info) argument 545 spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u8 *buf) argument 674 spear_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u8 *buf) argument [all...] |
/linux-master/drivers/mtd/ |
H A D | sm_ftl.h | 11 #include <linux/mtd/blktrans.h> 15 #include <linux/mtd/mtd.h>
|
H A D | mtdpart.c | 16 #include <linux/mtd/mtd.h> 17 #include <linux/mtd/partitions.h> 29 static inline void free_partition(struct mtd_info *mtd) argument 31 kfree(mtd->name); 32 kfree(mtd); 35 void release_mtd_partition(struct mtd_info *mtd) argument 37 WARN_ON(!list_empty(&mtd->part.node)); 38 free_partition(mtd); 116 printk(KERN_ERR "mtd partitio 225 struct mtd_info *mtd = dev_get_drvdata(dev); local 305 __mtd_del_partition(struct mtd_info *mtd) argument 330 __del_mtd_partitions(struct mtd_info *mtd) argument 353 del_mtd_partitions(struct mtd_info *mtd) argument 367 mtd_del_partition(struct mtd_info *mtd, int partno) argument 735 mtd_get_device_size(const struct mtd_info *mtd) argument [all...] |
H A D | rfd_ftl.c | 17 #include <linux/mtd/blktrans.h> 18 #include <linux/mtd/mtd.h> 127 part->mbd.mtd->name, block_no, i, entry); 134 part->mbd.mtd->name, entry); 159 part->total_blocks = (u32)part->mbd.mtd->size / part->block_size; 202 rc = mtd_read(part->mbd.mtd, i * part->block_size, 218 part->mbd.mtd->name); 225 part->mbd.mtd->name); 252 rc = mtd_read(part->mbd.mtd, add 747 rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) argument [all...] |
/linux-master/drivers/mtd/nand/raw/ |
H A D | nand_toshiba.c | 52 struct mtd_info *mtd = nand_to_mtd(chip); local 65 mtd->ecc_stats.failed++; 67 mtd->ecc_stats.corrected += bitflips; 85 mtd->ecc_stats.failed++; 88 max_bitflips = mtd->bitflip_threshold; 89 mtd->ecc_stats.corrected += max_bitflips; 124 struct mtd_info *mtd = nand_to_mtd(chip); local 143 mtd_set_ooblayout(mtd, nand_get_large_page_ooblayout()); 150 struct mtd_info *mtd = nand_to_mtd(chip); local 169 mtd 248 struct mtd_info *mtd = nand_to_mtd(chip); local [all...] |
H A D | xway_nand.c | 8 #include <linux/mtd/rawnand.h> 71 static u8 xway_readb(struct mtd_info *mtd, int op) argument 73 struct nand_chip *chip = mtd_to_nand(mtd); 79 static void xway_writeb(struct mtd_info *mtd, int op, u8 value) argument 81 struct nand_chip *chip = mtd_to_nand(mtd); 109 struct mtd_info *mtd = nand_to_mtd(chip); local 115 xway_writeb(mtd, NAND_WRITE_CMD, cmd); 117 xway_writeb(mtd, NAND_WRITE_ADDR, cmd); 168 struct mtd_info *mtd; local 184 mtd [all...] |
H A D | diskonchip.c | 28 #include <linux/mtd/mtd.h> 29 #include <linux/mtd/rawnand.h> 30 #include <linux/mtd/doc2000.h> 31 #include <linux/mtd/partitions.h> 32 #include <linux/mtd/inftl.h> 76 int (*late_init)(struct mtd_info *mtd); 362 static uint16_t __init doc200x_ident_chip(struct mtd_info *mtd, int nr) argument 364 struct nand_chip *this = mtd_to_nand(mtd); 393 static void __init doc2000_count_chips(struct mtd_info *mtd) argument 810 doc200x_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 822 doc200x_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 862 find_media_headers(struct mtd_info *mtd, u_char *buf, const char *id, int findmirror) argument 905 nftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) argument 1011 inftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) argument 1130 nftl_scan_bbt(struct mtd_info *mtd) argument 1165 inftl_scan_bbt(struct mtd_info *mtd) argument 1219 doc2000_init(struct mtd_info *mtd) argument 1232 doc2001_init(struct mtd_info *mtd) argument 1258 doc2001plus_init(struct mtd_info *mtd) argument 1304 struct mtd_info *mtd; local 1526 struct mtd_info *mtd, *nextmtd; local [all...] |
H A D | nand_bbt.c | 58 #include <linux/mtd/mtd.h> 59 #include <linux/mtd/bbm.h> 169 struct mtd_info *mtd = nand_to_mtd(this); local 193 res = mtd_read(mtd, from, len, &retlen, buf); 197 from & ~mtd->writesize); 201 from & ~mtd->writesize); 222 mtd->ecc_stats.bbtblocks++; 239 mtd->ecc_stats.badblocks++; 262 struct mtd_info *mtd local 290 struct mtd_info *mtd = nand_to_mtd(this); local 315 struct mtd_info *mtd = nand_to_mtd(this); local 356 struct mtd_info *mtd = nand_to_mtd(this); local 371 struct mtd_info *mtd = nand_to_mtd(this); local 392 struct mtd_info *mtd = nand_to_mtd(this); local 417 struct mtd_info *mtd = nand_to_mtd(this); local 494 struct mtd_info *mtd = nand_to_mtd(this); local 556 struct mtd_info *mtd = nand_to_mtd(this); local 749 struct mtd_info *mtd = nand_to_mtd(this); local 1075 struct mtd_info *mtd = nand_to_mtd(this); local 1132 struct mtd_info *mtd = nand_to_mtd(this); local 1193 struct mtd_info *mtd = nand_to_mtd(this); local 1245 struct mtd_info *mtd = nand_to_mtd(this); local [all...] |
H A D | plat_nand.c | 13 #include <linux/mtd/mtd.h> 14 #include <linux/mtd/platnand.h> 42 struct mtd_info *mtd; local 71 mtd = nand_to_mtd(&data->chip); 72 mtd->dev.parent = &pdev->dev; 108 err = mtd_device_parse_register(mtd, part_types, NULL,
|
H A D | hisi504_nand.c | 13 #include <linux/mtd/mtd.h> 20 #include <linux/mtd/rawnand.h> 23 #include <linux/mtd/partitions.h> 182 struct mtd_info *mtd = nand_to_mtd(chip); local 190 hinfc_write(host, ((mtd->oobsize & HINFC504_DMA_LEN_OOB_MASK) 254 struct mtd_info *mtd = nand_to_mtd(&host->chip); local 268 hinfc_write(host, mtd->writesize + mtd->oobsize, 389 static void set_addr(struct mtd_info *mtd, in argument 426 struct mtd_info *mtd = nand_to_mtd(chip); local 521 struct mtd_info *mtd = nand_to_mtd(chip); local 553 struct mtd_info *mtd = nand_to_mtd(chip); local 571 struct mtd_info *mtd = nand_to_mtd(chip); local 612 hisi_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 619 hisi_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 642 struct mtd_info *mtd = nand_to_mtd(chip); local 695 struct mtd_info *mtd = nand_to_mtd(chip); local 740 struct mtd_info *mtd; local [all...] |
H A D | s3c2410.c | 30 #include <linux/mtd/mtd.h> 31 #include <linux/mtd/rawnand.h> 32 #include <linux/mtd/partitions.h> 34 #include <linux/platform_data/mtd-nand-s3c2410.h> 73 static int s3c2410_ooblayout_ecc(struct mtd_info *mtd, int section, argument 85 static int s3c2410_ooblayout_free(struct mtd_info *mtd, int section, argument 102 /* controller and mtd information */ 149 /* mtd info */ 186 static struct s3c2410_nand_mtd *s3c2410_nand_mtd_toours(struct mtd_info *mtd) argument 192 s3c2410_nand_mtd_toinfo(struct mtd_info *mtd) argument 443 struct mtd_info *mtd = nand_to_mtd(chip); local 460 struct mtd_info *mtd = nand_to_mtd(chip); local 479 struct mtd_info *mtd = nand_to_mtd(chip); local 486 struct mtd_info *mtd = nand_to_mtd(chip); local 493 struct mtd_info *mtd = nand_to_mtd(chip); local 503 struct mtd_info *mtd = nand_to_mtd(chip); local 615 struct mtd_info *mtd = nand_to_mtd(chip); local 630 struct mtd_info *mtd = nand_to_mtd(chip); local 646 struct mtd_info *mtd = nand_to_mtd(chip); local 670 struct mtd_info *mtd = nand_to_mtd(this); local 693 struct mtd_info *mtd = nand_to_mtd(this); local 737 s3c2410_nand_add_partition(struct s3c2410_nand_info *info, struct s3c2410_nand_mtd *mtd, struct s3c2410_nand_set *set) argument 756 struct mtd_info *mtd = nand_to_mtd(chip); local 871 struct mtd_info *mtd = nand_to_mtd(chip); local 1108 struct mtd_info *mtd = nand_to_mtd(&nmtd->chip); local [all...] |
H A D | tegra_nand.c | 16 #include <linux/mtd/partitions.h> 17 #include <linux/mtd/rawnand.h> 203 static int tegra_nand_ooblayout_rs_ecc(struct mtd_info *mtd, int section, argument 206 struct nand_chip *chip = mtd_to_nand(mtd); 219 static int tegra_nand_ooblayout_no_free(struct mtd_info *mtd, int section, argument 230 static int tegra_nand_ooblayout_bch_ecc(struct mtd_info *mtd, int section, argument 233 struct nand_chip *chip = mtd_to_nand(mtd); 496 static int tegra_nand_page_xfer(struct mtd_info *mtd, struct nand_chip *chip, argument 521 addr1 |= mtd->writesize; 532 dma_addr = dma_map_single(ctrl->dev, buf, mtd 622 struct mtd_info *mtd = nand_to_mtd(chip); local 632 struct mtd_info *mtd = nand_to_mtd(chip); local 641 struct mtd_info *mtd = nand_to_mtd(chip); local 649 struct mtd_info *mtd = nand_to_mtd(chip); local 658 struct mtd_info *mtd = nand_to_mtd(chip); local 768 struct mtd_info *mtd = nand_to_mtd(chip); local 920 struct mtd_info *mtd = nand_to_mtd(chip); local 1074 struct mtd_info *mtd; local 1231 struct mtd_info *mtd = nand_to_mtd(chip); local [all...] |
H A D | rockchip-nand-controller.c | 15 #include <linux/mtd/mtd.h> 16 #include <linux/mtd/rawnand.h> 511 struct mtd_info *mtd = nand_to_mtd(chip); local 515 pages_per_blk = mtd->erasesize / mtd->writesize; 527 memset(nfc->page_buf, 0xff, mtd->writesize + mtd->oobsize); 584 rk_nfc_write_buf(nfc, buf, mtd->writesize + mtd 591 struct mtd_info *mtd = nand_to_mtd(chip); local 705 struct mtd_info *mtd = nand_to_mtd(chip); local 757 struct mtd_info *mtd = nand_to_mtd(chip); local 935 rk_nfc_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oob_region) argument 950 rk_nfc_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oob_region) argument 970 rk_nfc_ecc_init(struct device *dev, struct mtd_info *mtd) argument 1015 struct mtd_info *mtd = nand_to_mtd(chip); local 1108 struct mtd_info *mtd; local [all...] |
H A D | orion_nand.c | 15 #include <linux/mtd/mtd.h> 16 #include <linux/mtd/rawnand.h> 17 #include <linux/mtd/partitions.h> 22 #include <linux/platform_data/mtd-orion_nand.h> 102 struct mtd_info *mtd; local 115 mtd = nand_to_mtd(nc); 151 mtd->dev.parent = &pdev->dev; 188 mtd->name = "orion_nand"; 189 ret = mtd_device_register(mtd, boar [all...] |
/linux-master/drivers/mtd/nand/spi/ |
H A D | ato.c | 10 #include <linux/mtd/spinand.h> 30 static int ato25d1ga_ooblayout_ecc(struct mtd_info *mtd, int section, argument 41 static int ato25d1ga_ooblayout_free(struct mtd_info *mtd, int section, argument
|
H A D | micron.c | 11 #include <linux/mtd/spinand.h> 60 static int micron_8_ooblayout_ecc(struct mtd_info *mtd, int section, argument 66 region->offset = mtd->oobsize / 2; 67 region->length = mtd->oobsize / 2; 72 static int micron_8_ooblayout_free(struct mtd_info *mtd, int section, argument 80 region->length = (mtd->oobsize / 2) - 2; 90 static int micron_4_ooblayout_ecc(struct mtd_info *mtd, int section, argument 93 struct spinand_device *spinand = mtd_to_spinand(mtd); 96 mtd->ecc_step_size) 105 static int micron_4_ooblayout_free(struct mtd_info *mtd, in argument [all...] |
H A D | foresee.c | 10 #include <linux/mtd/spinand.h> 28 static int f35sqa002g_ooblayout_ecc(struct mtd_info *mtd, int section, argument 34 static int f35sqa002g_ooblayout_free(struct mtd_info *mtd, int section, argument
|
H A D | core.c | 16 #include <linux/mtd/spinand.h> 232 static int spinand_noecc_ooblayout_ecc(struct mtd_info *mtd, int section, argument 238 static int spinand_noecc_ooblayout_free(struct mtd_info *mtd, int section, argument 259 struct mtd_info *mtd = nanddev_to_mtd(nand); local 273 mtd_set_ooblayout(mtd, spinand->eccinfo.ooblayout); 275 mtd_set_ooblayout(mtd, &spinand_noecc_ooblayout); 302 struct mtd_info *mtd = spinand_to_mtd(spinand); local 315 mtd->ecc_stats.failed++; 317 mtd->ecc_stats.corrected += ret; 363 struct mtd_info *mtd local 424 struct mtd_info *mtd = spinand_to_mtd(spinand); local 633 spinand_mtd_read(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) argument 689 spinand_mtd_write(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) argument 744 spinand_mtd_block_isbad(struct mtd_info *mtd, loff_t offs) argument 783 spinand_mtd_block_markbad(struct mtd_info *mtd, loff_t offs) argument 827 spinand_mtd_erase(struct mtd_info *mtd, struct erase_info *einfo) argument 840 spinand_mtd_block_isreserved(struct mtd_info *mtd, loff_t offs) argument 1199 spinand_mtd_resume(struct mtd_info *mtd) argument 1218 struct mtd_info *mtd = spinand_to_mtd(spinand); local 1329 struct mtd_info *mtd; local 1363 struct mtd_info *mtd; local [all...] |
/linux-master/drivers/mtd/nand/raw/ingenic/ |
H A D | ingenic_nand_drv.c | 19 #include <linux/mtd/mtd.h> 20 #include <linux/mtd/rawnand.h> 21 #include <linux/mtd/partitions.h> 61 static inline struct ingenic_nand *to_ingenic_nand(struct mtd_info *mtd) argument 63 return container_of(mtd_to_nand(mtd), struct ingenic_nand, chip); 71 static int qi_lb60_ooblayout_ecc(struct mtd_info *mtd, int section, argument 74 struct nand_chip *chip = mtd_to_nand(mtd); 86 static int qi_lb60_ooblayout_free(struct mtd_info *mtd, int section, argument 89 struct nand_chip *chip = mtd_to_nand(mtd); 106 jz4725b_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 121 jz4725b_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 185 struct mtd_info *mtd = nand_to_mtd(chip); local 353 struct mtd_info *mtd; local [all...] |
/linux-master/drivers/mtd/lpddr/ |
H A D | qinfo_probe.c | 15 #include <linux/mtd/xip.h> 16 #include <linux/mtd/map.h> 17 #include <linux/mtd/pfow.h> 18 #include <linux/mtd/qinfo.h> 186 struct mtd_info *mtd = NULL; local 195 mtd = lpddr_cmdset(map); 196 if (mtd) { 197 if (mtd->size > map->size) { 199 "to %ldKiB\n", (unsigned long)mtd->size >> 10, 201 mtd [all...] |
/linux-master/drivers/mtd/maps/ |
H A D | pci.c | 3 * linux/drivers/mtd/maps/pci.c 16 #include <linux/mtd/mtd.h> 17 #include <linux/mtd/map.h> 18 #include <linux/mtd/partitions.h> 256 struct mtd_info *mtd = NULL; local 263 err = pci_request_regions(dev, "pci mtd"); 282 mtd = do_map_probe(info->map_name, &map->map); 284 if (!mtd) 287 mtd 307 struct mtd_info *mtd = pci_get_drvdata(dev); local [all...] |
H A D | esb2rom.c | 20 #include <linux/mtd/mtd.h> 21 #include <linux/mtd/map.h> 22 #include <linux/mtd/cfi.h> 23 #include <linux/mtd/flashchip.h> 109 struct mtd_info *mtd; member in struct:esb2rom_map_info 128 /* Free all of the mtd devices */ 132 mtd_device_unregister(map->mtd); 133 map_destroy(map->mtd); 314 map->mtd [all...] |
/linux-master/drivers/mtd/nand/ |
H A D | ecc-sw-bch.c | 14 #include <linux/mtd/nand.h> 15 #include <linux/mtd/nand-ecc-sw-bch.h> 173 struct mtd_info *mtd = nanddev_to_mtd(nand); local 179 if (mtd->oobsize < 64) { 184 if (!mtd->ooblayout) 185 mtd_set_ooblayout(mtd, nand_get_large_page_ooblayout()); 199 if (mtd->oobsize >= 64) 207 nsteps = mtd->writesize / conf->step_size; 212 nsteps = mtd->writesize / conf->step_size; 214 code_size = (mtd 295 struct mtd_info *mtd = nanddev_to_mtd(nand); local 332 struct mtd_info *mtd = nanddev_to_mtd(nand); local [all...] |
/linux-master/drivers/mtd/chips/ |
H A D | cfi_cmdset_0002.c | 35 #include <linux/mtd/map.h> 36 #include <linux/mtd/mtd.h> 37 #include <linux/mtd/cfi.h> 38 #include <linux/mtd/xip.h> 89 static int cfi_amdstd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, 101 static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 102 static int cfi_atmel_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 104 static int cfi_ppb_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 105 static int cfi_ppb_unlock(struct mtd_info *mtd, loff_ 224 fixup_amd_bootblock(struct mtd_info *mtd) argument 274 fixup_use_write_buffers(struct mtd_info *mtd) argument 290 fixup_convert_atmel_pri(struct mtd_info *mtd) argument 321 fixup_use_secsi(struct mtd_info *mtd) argument 328 fixup_use_erase_chip(struct mtd_info *mtd) argument 343 fixup_use_atmel_lock(struct mtd_info *mtd) argument 350 fixup_old_sst_eraseregion(struct mtd_info *mtd) argument 364 fixup_sst39vf(struct mtd_info *mtd) argument 375 fixup_sst39vf_rev_b(struct mtd_info *mtd) argument 388 fixup_sst38vf640x_sectorsize(struct mtd_info *mtd) argument 404 fixup_s29gl064n_sectors(struct mtd_info *mtd) argument 416 fixup_s29gl032n_sectors(struct mtd_info *mtd) argument 428 fixup_s29ns512p_sectors(struct mtd_info *mtd) argument 442 fixup_quirks(struct mtd_info *mtd) argument 604 struct mtd_info *mtd; local 765 cfi_amdstd_setup(struct mtd_info *mtd) argument 1235 cfi_amdstd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 1343 cfi_amdstd_secsi_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 1480 cfi_amdstd_otp_walk(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf, otp_op_t action, int user_regs) argument 1598 cfi_amdstd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, struct otp_info *buf) argument 1605 cfi_amdstd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, struct otp_info *buf) argument 1612 cfi_amdstd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 1620 cfi_amdstd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) argument 1628 cfi_amdstd_write_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, const u_char *buf) argument 1636 cfi_amdstd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) argument 1815 cfi_amdstd_write_words(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 2095 cfi_amdstd_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 2307 cfi_amdstd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) argument 2611 cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) argument 2618 cfi_amdstd_erase_chip(struct mtd_info *mtd, struct erase_info *instr) argument 2694 cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument 2699 cfi_atmel_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument 2791 cfi_ppb_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument 2798 cfi_ppb_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument 2903 cfi_ppb_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) argument 2910 cfi_amdstd_sync(struct mtd_info *mtd) argument 2972 cfi_amdstd_suspend(struct mtd_info *mtd) argument 3027 cfi_amdstd_resume(struct mtd_info *mtd) argument 3059 cfi_amdstd_reset(struct mtd_info *mtd) argument 3089 struct mtd_info *mtd; local 3097 cfi_amdstd_destroy(struct mtd_info *mtd) argument [all...] |