/linux-6.3-rc2/include/linux/mtd/ |
A D | mtd.h | 23 struct mtd_info; 185 int (*get_wunit)(struct mtd_info *mtd, 238 struct mtd_info { struct 347 void (*_sync) (struct mtd_info *mtd); argument 394 struct mtd_info *parent; argument 403 static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd) in mtd_get_master() argument 654 struct mtd_info *master = mtd_get_master((struct mtd_info *)mtd); in mtd_has_oob() 666 struct mtd_info *master = mtd_get_master((struct mtd_info *)mtd); in mtd_can_have_bb() 684 extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); 693 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);
|
A D | concat.h | 12 struct mtd_info *mtd_concat_create( 13 struct mtd_info *subdev[], /* subdevices to concatenate */ 17 void mtd_concat_destroy(struct mtd_info *mtd);
|
/linux-6.3-rc2/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 …]
|
A D | powernv_flash.c | 31 struct mtd_info mtd; 46 static int powernv_flash_async_op(struct mtd_info *mtd, enum flash_op op, in powernv_flash_async_op() 138 static int powernv_flash_read(struct mtd_info *mtd, loff_t from, size_t len, in powernv_flash_read() 155 static int powernv_flash_write(struct mtd_info *mtd, loff_t to, size_t len, in powernv_flash_write() 168 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) in powernv_flash_erase() 186 struct mtd_info *mtd) in powernv_flash_set_driver_info()
|
/linux-6.3-rc2/drivers/mtd/ |
A D | mtdcore.c | 387 struct mtd_info *mtd; in mtd_reboot_notifier() 506 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() 916 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read() 930 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read() 1113 struct mtd_info *mtd; in register_mtd_user() 1139 struct mtd_info *mtd; in unregister_mtd_user() 1165 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device() 1235 struct mtd_info *mtd = NULL; in of_get_mtd_device_by_node() 1236 struct mtd_info *tmp; in of_get_mtd_device_by_node() 1437 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 | 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 | mtdpart.c | 35 static struct mtd_info *allocate_partition(struct mtd_info *parent, in allocate_partition() 39 struct mtd_info *master = mtd_get_master(parent); in allocate_partition() 44 struct mtd_info *child; in allocate_partition() 219 struct mtd_info *mtd = dev_get_drvdata(dev); in offset_show() 246 struct mtd_info *child; in mtd_add_partition() 301 struct mtd_info *child, *next; in __mtd_del_partition() 328 struct mtd_info *child, *next; in __del_mtd_partitions() 352 int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions() 354 struct mtd_info *master = mtd_get_master(mtd); in del_mtd_partitions() 516 struct mtd_info *master, in mtd_part_do_parse() [all …]
|
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 …]
|
/linux-6.3-rc2/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 | 74 static void cfi_amdstd_sync (struct mtd_info *); 75 static int cfi_amdstd_suspend (struct mtd_info *); 76 static void cfi_amdstd_resume (struct mtd_info *); 94 static void cfi_amdstd_destroy(struct mtd_info *); 97 static struct mtd_info *cfi_amdstd_setup (struct mtd_info *); 323 static void fixup_use_secsi(struct mtd_info *mtd) in fixup_use_secsi() 366 static void fixup_sst39vf(struct mtd_info *mtd) in fixup_sst39vf() 444 static void fixup_quirks(struct mtd_info *mtd) in fixup_quirks() 606 struct mtd_info *mtd; in cfi_cmdset_0002() 767 static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) in cfi_amdstd_setup() [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() 192 typedef struct mtd_info *cfi_cmdset_fn_t(struct map_info *, int); 198 static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, in cfi_cmdset_unknown() 219 struct mtd_info *mtd; in cfi_cmdset_unknown() 232 static struct mtd_info *check_cmd_set(struct map_info *map, int primary) in check_cmd_set()
|
/linux-6.3-rc2/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-6.3-rc2/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() 184 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) in mpc5121_nfc_send_read_id() 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() 323 struct mtd_info *mtd = nand_to_mtd(chip); in mpc5121_nfc_command() 514 static int mpc5121_nfc_read_hw_config(struct mtd_info *mtd) in mpc5121_nfc_read_hw_config() 624 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-6.3-rc2/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() 1683 static void onenand_panic_wait(struct mtd_info *mtd) in onenand_panic_wait() 2407 static void onenand_sync(struct mtd_info *mtd) in onenand_sync() 2652 static void onenand_unlock_all(struct mtd_info *mtd) in onenand_unlock_all() 3655 static int onenand_chip_probe(struct mtd_info *mtd) in onenand_chip_probe() 3700 static int onenand_probe(struct mtd_info *mtd) in onenand_probe() 3795 static int onenand_suspend(struct mtd_info *mtd) in onenand_suspend() 3804 static void onenand_resume(struct mtd_info *mtd) in onenand_resume() 3825 int onenand_scan(struct mtd_info *mtd, int maxchips) in onenand_scan() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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()
|