| /linux/include/linux/mtd/ |
| A D | mtd.h | 23 struct mtd_info; 178 int (*get_wunit)(struct mtd_info *mtd, 234 struct mtd_info { struct 343 void (*_sync) (struct mtd_info *mtd); argument 390 struct mtd_info *parent; argument 401 static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd) in mtd_get_master() argument 652 struct mtd_info *master = mtd_get_master((struct mtd_info *)mtd); in mtd_has_oob() 664 struct mtd_info *master = mtd_get_master((struct mtd_info *)mtd); in mtd_can_have_bb() 682 extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); 690 void (*add)(struct mtd_info *mtd); [all …]
|
| A D | onenand.h | 22 extern int onenand_scan(struct mtd_info *mtd, int max_chips); 24 extern void onenand_release(struct mtd_info *mtd); 105 int (*wait)(struct mtd_info *mtd, int state); 106 int (*bbt_wait)(struct mtd_info *mtd, int state); 107 void (*unlock_all)(struct mtd_info *mtd); 108 int (*read_bufferram)(struct mtd_info *mtd, int area, 110 int (*write_bufferram)(struct mtd_info *mtd, int area, 115 int (*chip_probe)(struct mtd_info *mtd); 117 int (*scan_bbt)(struct mtd_info *mtd); 118 int (*enable)(struct mtd_info *mtd); [all …]
|
| A D | partitions.h | 62 struct mtd_info; 83 int (*parse_fn)(struct mtd_info *, const struct mtd_partition **, 110 int mtd_add_partition(struct mtd_info *master, const char *name, 112 int mtd_del_partition(struct mtd_info *master, int partno); 113 uint64_t mtd_get_device_size(const struct mtd_info *mtd);
|
| /linux/drivers/mtd/devices/ |
| A D | mtdram.c | 35 static struct mtd_info *mtd_info; variable 117 if (mtd_info) { in cleanup_mtdram() 118 mtd_device_unregister(mtd_info); in cleanup_mtdram() 119 vfree(mtd_info->priv); in cleanup_mtdram() 120 kfree(mtd_info); in cleanup_mtdram() 161 mtd_info = kmalloc(sizeof(struct mtd_info), GFP_KERNEL); in init_mtdram() 162 if (!mtd_info) in init_mtdram() 167 kfree(mtd_info); in init_mtdram() 168 mtd_info = NULL; in init_mtdram() 174 kfree(mtd_info); in init_mtdram() [all …]
|
| A D | slram.c | 61 struct mtd_info *mtdinfo; 76 static int slram_erase(struct mtd_info *, struct erase_info *); 77 static int slram_point(struct mtd_info *, loff_t, size_t, size_t *, void **, 79 static int slram_unpoint(struct mtd_info *, loff_t, size_t); 80 static int slram_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); 83 static int slram_erase(struct mtd_info *mtd, struct erase_info *instr) in slram_erase() 92 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, in slram_point() 102 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in slram_unpoint() 107 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, in slram_read() 117 static int slram_write(struct mtd_info *mtd, loff_t to, size_t len, in slram_write() [all …]
|
| /linux/drivers/mtd/ |
| A D | mtdcore.c | 341 struct mtd_info *mtd = s->private; in mtd_partid_debug_show() 352 struct mtd_info *mtd = s->private; in mtd_partname_debug_show() 404 struct mtd_info *mtd; in mtd_reboot_notifier() 523 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() 852 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read() 866 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read() 1051 struct mtd_info *mtd; in register_mtd_user() 1077 struct mtd_info *mtd; in unregister_mtd_user() 1103 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device() 1347 static void mtd_update_ecc_stats(struct mtd_info *mtd, struct mtd_info *master, in mtd_update_ecc_stats() [all …]
|
| A D | mtdconcat.c | 30 struct mtd_info mtd; 32 struct mtd_info **subdev; 62 struct mtd_info *subdev = concat->subdev[i]; in concat_read() 113 struct mtd_info *subdev = concat->subdev[i]; in concat_panic_write() 155 struct mtd_info *subdev = concat->subdev[i]; in concat_write() 213 struct mtd_info *subdev = concat->subdev[i]; in concat_writev() 269 struct mtd_info *subdev = concat->subdev[i]; in concat_read_oob() 329 struct mtd_info *subdev = concat->subdev[i]; in concat_write_oob() 366 struct mtd_info *subdev; in concat_erase() 637 struct mtd_info *mtd_concat_create(struct mtd_info *subdev[], /* subdevices to concatenate */ in mtd_concat_create() [all …]
|
| A D | mtdpart.c | 34 static struct mtd_info *allocate_partition(struct mtd_info *parent, in allocate_partition() 38 struct mtd_info *master = mtd_get_master(parent); in allocate_partition() 43 struct mtd_info *child; in allocate_partition() 218 struct mtd_info *mtd = dev_get_drvdata(dev); in offset_show() 245 struct mtd_info *child; in mtd_add_partition() 300 struct mtd_info *child, *next; in __mtd_del_partition() 327 struct mtd_info *child, *next; in __del_mtd_partitions() 351 int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions() 353 struct mtd_info *master = mtd_get_master(mtd); in del_mtd_partitions() 515 struct mtd_info *master, in mtd_part_do_parse() [all …]
|
| A D | mtdcore.h | 10 struct mtd_info *__mtd_next_device(int i); 11 int __must_check add_mtd_device(struct mtd_info *mtd); 12 int del_mtd_device(struct mtd_info *mtd); 13 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int); 14 int del_mtd_partitions(struct mtd_info *); 18 int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
|
| A D | mtdpstore.c | 16 struct mtd_info *mtd; 30 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_isbad() 52 struct mtd_info *mtd = cxt->mtd; in mtdpstore_panic_block_isbad() 63 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_used() 73 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_unused() 83 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_mark_unused() 110 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_is_used() 128 struct mtd_info *mtd = cxt->mtd; in mtdpstore_is_empty() 142 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_removed() 152 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_clear_removed() [all …]
|
| A D | mtdchar.c | 35 struct mtd_info *mtd; 50 struct mtd_info *mtd; in mtdchar_open() 94 struct mtd_info *mtd = mfi->mtd; in mtdchar_close() 131 struct mtd_info *mtd = mfi->mtd; in mtdchar_read() 221 struct mtd_info *mtd = mfi->mtd; in mtdchar_write() 312 struct mtd_info *mtd = mfi->mtd; in otp_select_filemode() 627 struct mtd_info *mtd = mfi->mtd; in mtdchar_ioctl() 1028 struct mtd_info *mtd = mfi->mtd; in mtdchar_unlocked_ioctl() 1054 struct mtd_info *mtd = mfi->mtd; in mtdchar_compat_ioctl() 1142 struct mtd_info *mtd = mfi->mtd; in mtdchar_get_unmapped_area() [all …]
|
| /linux/drivers/mtd/chips/ |
| A D | map_absent.c | 30 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 31 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 32 static int map_absent_erase (struct mtd_info *, struct erase_info *); 33 static void map_absent_sync (struct mtd_info *); 34 static struct mtd_info *map_absent_probe(struct map_info *map); 35 static void map_absent_destroy (struct mtd_info *); 45 static struct mtd_info *map_absent_probe(struct map_info *map) in map_absent_probe() 47 struct mtd_info *mtd; in map_absent_probe() 82 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) in map_absent_erase() 87 static void map_absent_sync(struct mtd_info *mtd) in map_absent_sync() [all …]
|
| A D | map_rom.c | 20 static void maprom_nop (struct mtd_info *); 21 static struct mtd_info *map_rom_probe(struct map_info *map); 22 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info); 23 static int maprom_point (struct mtd_info *mtd, loff_t from, size_t len, 25 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 43 static struct mtd_info *map_rom_probe(struct map_info *map) in map_rom_probe() 45 struct mtd_info *mtd; in map_rom_probe() 72 static int maprom_point(struct mtd_info *mtd, loff_t from, size_t len, in maprom_point() 86 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in maprom_unpoint() 100 static void maprom_nop(struct mtd_info *mtd) in maprom_nop() [all …]
|
| A D | map_ram.c | 18 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 20 static int mapram_erase (struct mtd_info *, struct erase_info *); 21 static void mapram_nop (struct mtd_info *); 22 static struct mtd_info *map_ram_probe(struct map_info *map); 23 static int mapram_point (struct mtd_info *mtd, loff_t from, size_t len, 25 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 34 static struct mtd_info *map_ram_probe(struct map_info *map) in map_ram_probe() 36 struct mtd_info *mtd; in map_ram_probe() 86 static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len, in mapram_point() 100 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mapram_unpoint() [all …]
|
| A D | cfi_cmdset_0001.c | 67 static void cfi_intelext_sync (struct mtd_info *); 83 static int cfi_intelext_suspend (struct mtd_info *); 84 static void cfi_intelext_resume (struct mtd_info *); 87 static void cfi_intelext_destroy(struct mtd_info *); 91 static struct mtd_info *cfi_intelext_setup (struct mtd_info *); 249 static void fixup_st_m28w320ct(struct mtd_info *mtd) in fixup_st_m28w320ct() 278 static void fixup_LH28F640BF(struct mtd_info *mtd) in fixup_LH28F640BF() 298 static void fixup_use_point(struct mtd_info *mtd) in fixup_use_point() 484 struct mtd_info *mtd; in cfi_cmdset_0001() 600 static struct mtd_info *cfi_intelext_setup(struct mtd_info *mtd) in cfi_intelext_setup() [all …]
|
| A D | cfi_cmdset_0002.c | 69 static void cfi_amdstd_sync (struct mtd_info *); 70 static int cfi_amdstd_suspend (struct mtd_info *); 71 static void cfi_amdstd_resume (struct mtd_info *); 89 static void cfi_amdstd_destroy(struct mtd_info *); 92 static struct mtd_info *cfi_amdstd_setup (struct mtd_info *); 318 static void fixup_use_secsi(struct mtd_info *mtd) in fixup_use_secsi() 361 static void fixup_sst39vf(struct mtd_info *mtd) in fixup_sst39vf() 591 struct mtd_info *mtd; in cfi_cmdset_0002() 752 static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) in cfi_amdstd_setup() 3065 static int cfi_amdstd_reset(struct mtd_info *mtd) in cfi_amdstd_reset() [all …]
|
| A D | gen_probe.c | 15 static struct mtd_info *check_cmd_set(struct map_info *, int); 21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) in mtd_do_chip_probe() 23 struct mtd_info *mtd; in mtd_do_chip_probe() 193 typedef struct mtd_info *cfi_cmdset_fn_t(struct map_info *, int); 199 static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, in cfi_cmdset_unknown() 220 struct mtd_info *mtd; in cfi_cmdset_unknown() 233 static struct mtd_info *check_cmd_set(struct map_info *map, int primary) in check_cmd_set()
|
| /linux/drivers/mtd/nand/raw/ |
| A D | mpc5121_nfc.c | 119 static void mpc5121_nfc_done(struct mtd_info *mtd); 122 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read() 202 struct mtd_info *mtd = data; in mpc5121_nfc_irq() 213 static void mpc5121_nfc_done(struct mtd_info *mtd) in mpc5121_nfc_done() 256 struct mtd_info *mtd = nand_to_mtd(nand); in mpc5121_nfc_select_chip() 270 static int ads5121_chipselect_init(struct mtd_info *mtd) in ads5121_chipselect_init() 294 struct mtd_info *mtd = nand_to_mtd(nand); in ads5121_select_chip() 324 struct mtd_info *mtd = nand_to_mtd(chip); in mpc5121_nfc_command() 515 static int mpc5121_nfc_read_hw_config(struct mtd_info *mtd) in mpc5121_nfc_read_hw_config() 626 struct mtd_info *mtd; in mpc5121_nfc_probe() [all …]
|
| A D | sm_common.c | 12 static int oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_ooblayout_ecc() 24 static int oob_sm_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_ooblayout_free() 61 static int oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_ecc() 73 static int oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_free() 101 struct mtd_info *mtd = nand_to_mtd(chip); in sm_block_markbad() 163 struct mtd_info *mtd = nand_to_mtd(chip); in sm_attach_chip() 185 int sm_register_device(struct mtd_info *mtd, int smartmedia) in sm_register_device()
|
| /linux/drivers/mtd/tests/ |
| A D | mtd_test.h | 16 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum); 17 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 19 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 22 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf); 23 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size,
|
| A D | mtd_test.c | 10 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) in mtdtest_erase_eraseblock() 29 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad() 41 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_scan_for_bad_eraseblocks() 61 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_erase_good_eraseblocks() 79 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) in mtdtest_read() 96 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, in mtdtest_write()
|
| /linux/drivers/mtd/nand/onenand/ |
| A D | onenand_base.c | 553 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait() 698 static void onenand_setup_wait(struct mtd_info *mtd) in onenand_setup_wait() 1671 static void onenand_panic_wait(struct mtd_info *mtd) in onenand_panic_wait() 2395 static void onenand_sync(struct mtd_info *mtd) in onenand_sync() 2640 static void onenand_unlock_all(struct mtd_info *mtd) in onenand_unlock_all() 3643 static int onenand_chip_probe(struct mtd_info *mtd) in onenand_chip_probe() 3688 static int onenand_probe(struct mtd_info *mtd) in onenand_probe() 3783 static int onenand_suspend(struct mtd_info *mtd) in onenand_suspend() 3792 static void onenand_resume(struct mtd_info *mtd) in onenand_resume() 3813 int onenand_scan(struct mtd_info *mtd, int maxchips) in onenand_scan() [all …]
|
| A D | onenand_samsung.c | 123 struct mtd_info *mtd; 310 static int s3c_onenand_wait(struct mtd_info *mtd, int state) in s3c_onenand_wait() 688 static int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe() 727 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status() 772 static void s3c_unlock_all(struct mtd_info *mtd) in s3c_unlock_all() 801 static void s3c_onenand_setup(struct mtd_info *mtd) in s3c_onenand_setup() 838 struct mtd_info *mtd; in s3c_onenand_probe() 845 size = sizeof(struct mtd_info) + sizeof(struct onenand_chip); in s3c_onenand_probe() 948 struct mtd_info *mtd = platform_get_drvdata(pdev); in s3c_onenand_remove() 957 struct mtd_info *mtd = dev_get_drvdata(dev); in s3c_pm_ops_suspend() [all …]
|
| /linux/drivers/mtd/lpddr/ |
| A D | lpddr_cmds.c | 19 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, 21 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, 23 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, 25 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr); 26 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 27 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 28 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, 30 static int lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len); 35 struct mtd_info *lpddr_cmdset(struct map_info *map) in lpddr_cmdset() 40 struct mtd_info *mtd; in lpddr_cmdset() [all …]
|
| /linux/drivers/mtd/ubi/ |
| A D | gluebi.c | 44 struct mtd_info mtd; 84 static int gluebi_get_device(struct mtd_info *mtd) in gluebi_get_device() 130 static void gluebi_put_device(struct mtd_info *mtd) in gluebi_put_device() 153 static int gluebi_read(struct mtd_info *mtd, loff_t from, size_t len, in gluebi_read() 193 static int gluebi_write(struct mtd_info *mtd, loff_t to, size_t len, in gluebi_write() 234 static int gluebi_erase(struct mtd_info *mtd, struct erase_info *instr) in gluebi_erase() 282 struct mtd_info *mtd; in gluebi_create() 351 struct mtd_info *mtd; in gluebi_remove() 483 struct mtd_info *mtd = &gluebi->mtd; in ubi_gluebi_exit()
|