| /Linux-v6.6/include/linux/mtd/ |
| D | mtd.h | 23 struct mtd_info; 107 int (*ecc)(struct mtd_info *mtd, int section, 109 int (*free)(struct mtd_info *mtd, int section, 183 int (*get_info)(struct mtd_info *mtd, int wunit, 185 int (*get_wunit)(struct mtd_info *mtd, 238 struct mtd_info { struct 316 int (*_erase) (struct mtd_info *mtd, struct erase_info *instr); argument 317 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, argument 319 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); argument 320 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len, argument [all …]
|
| D | onenand.h | 22 extern int onenand_scan(struct mtd_info *mtd, int max_chips); 24 extern void onenand_release(struct mtd_info *mtd); 104 int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len); 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, 114 void (*mmcontrol)(struct mtd_info *mtd, int sync_read); 115 int (*chip_probe)(struct mtd_info *mtd); [all …]
|
| 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);
|
| 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-v6.6/drivers/mtd/devices/ |
| D | mtdram.c | 35 static struct mtd_info *mtd_info; variable 37 static int check_offs_len(struct mtd_info *mtd, loff_t ofs, uint64_t len) in check_offs_len() 56 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) in ram_erase() 65 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, in ram_point() 94 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in ram_unpoint() 99 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, in ram_read() 107 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, in ram_write() 117 if (mtd_info) { in cleanup_mtdram() 118 mtd_device_unregister(mtd_info); in cleanup_mtdram() 119 vfree(mtd_info->priv); in cleanup_mtdram() [all …]
|
| 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 *); 81 static int slram_write(struct mtd_info *, loff_t, size_t, size_t *, const 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() [all …]
|
| 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-v6.6/drivers/mtd/chips/ |
| 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() 72 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b… in map_absent_read() 77 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write() [all …]
|
| D | map_rom.c | 19 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 20 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 21 static void maprom_nop (struct mtd_info *); 22 static struct mtd_info *map_rom_probe(struct map_info *map); 23 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info); 24 static int maprom_point (struct mtd_info *mtd, loff_t from, size_t len, 26 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 44 static struct mtd_info *map_rom_probe(struct map_info *map) in map_rom_probe() 46 struct mtd_info *mtd; in map_rom_probe() 73 static int maprom_point(struct mtd_info *mtd, loff_t from, size_t len, in maprom_point() [all …]
|
| D | map_ram.c | 19 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 20 static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 21 static int mapram_erase (struct mtd_info *, struct erase_info *); 22 static void mapram_nop (struct mtd_info *); 23 static struct mtd_info *map_ram_probe(struct map_info *map); 24 static int mapram_point (struct mtd_info *mtd, loff_t from, size_t len, 26 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 35 static struct mtd_info *map_ram_probe(struct map_info *map) in map_ram_probe() 37 struct mtd_info *mtd; in map_ram_probe() 87 static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len, in mapram_point() [all …]
|
| D | cfi_cmdset_0001.c | 63 static int cfi_intelext_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 64 static int cfi_intelext_write_words(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 65 static int cfi_intelext_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 66 static int cfi_intelext_writev(struct mtd_info *, const struct kvec *, unsigned long, loff_t, size_… 67 static int cfi_intelext_erase_varsize(struct mtd_info *, struct erase_info *); 68 static void cfi_intelext_sync (struct mtd_info *); 69 static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 70 static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 71 static int cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs, 74 static int cfi_intelext_read_fact_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); [all …]
|
| D | cfi_cmdset_0002.c | 65 static int cfi_amdstd_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 66 static int cfi_amdstd_write_words(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 68 static int cfi_amdstd_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 70 static int cfi_amdstd_erase_chip(struct mtd_info *, struct erase_info *); 71 static int cfi_amdstd_erase_varsize(struct mtd_info *, struct erase_info *); 72 static void cfi_amdstd_sync (struct mtd_info *); 73 static int cfi_amdstd_suspend (struct mtd_info *); 74 static void cfi_amdstd_resume (struct mtd_info *); 76 static int cfi_amdstd_get_fact_prot_info(struct mtd_info *, size_t, 78 static int cfi_amdstd_get_user_prot_info(struct mtd_info *, size_t, [all …]
|
| 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-v6.6/drivers/mtd/ |
| D | mtdcore.c | 45 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() 52 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() 77 struct mtd_info *__mtd_next_device(int i) in __mtd_next_device() 93 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() 108 struct mtd_info *mtd = container_of(kref, struct mtd_info, refcnt); in mtd_device_release() 138 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() 177 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() 186 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() 195 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() 204 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() [all …]
|
| 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 *); 15 void release_mtd_partition(struct mtd_info *mtd); 19 int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
|
| D | mtdconcat.c | 30 struct mtd_info mtd; 32 struct mtd_info **subdev; 40 ((sizeof(struct mtd_concat) + (num_subdev) * sizeof(struct mtd_info *))) 54 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read() 62 struct mtd_info *subdev = concat->subdev[i]; in concat_read() 106 concat_panic_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_panic_write() 113 struct mtd_info *subdev = concat->subdev[i]; in concat_panic_write() 147 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write() 155 struct mtd_info *subdev = concat->subdev[i]; in concat_write() 185 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev() [all …]
|
| D | mtdpart.c | 29 static inline void free_partition(struct mtd_info *mtd) in free_partition() 35 void release_mtd_partition(struct mtd_info *mtd) in release_mtd_partition() 41 static struct mtd_info *allocate_partition(struct mtd_info *parent, in allocate_partition() 45 struct mtd_info *master = mtd_get_master(parent); in allocate_partition() 50 struct mtd_info *child; in allocate_partition() 225 struct mtd_info *mtd = dev_get_drvdata(dev); in offset_show() 236 static int mtd_add_partition_attrs(struct mtd_info *new) in mtd_add_partition_attrs() 245 int mtd_add_partition(struct mtd_info *parent, const char *name, in mtd_add_partition() 248 struct mtd_info *master = mtd_get_master(parent); in mtd_add_partition() 252 struct mtd_info *child; in mtd_add_partition() [all …]
|
| 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 …]
|
| 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() 340 static int mtdchar_writeoob(struct file *file, struct mtd_info *mtd, in mtdchar_writeoob() 344 struct mtd_info *master = mtd_get_master(mtd); in mtdchar_writeoob() 382 static int mtdchar_readoob(struct file *file, struct mtd_info *mtd, in mtdchar_readoob() 443 static int shrink_ecclayout(struct mtd_info *mtd, in shrink_ecclayout() [all …]
|
| /Linux-v6.6/drivers/mtd/tests/ |
| 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,
|
| 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-v6.6/drivers/mtd/nand/raw/ |
| 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() 131 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) in nfc_write() 140 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) in nfc_set() 146 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) in nfc_clear() 152 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) in mpc5121_nfc_send_addr() 160 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) in mpc5121_nfc_send_cmd() 168 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) in mpc5121_nfc_send_prog_page() 176 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) in mpc5121_nfc_send_read_page() 184 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) in mpc5121_nfc_send_read_id() [all …]
|
| 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-v6.6/drivers/mtd/nand/onenand/ |
| D | onenand_base.c | 66 static int flexonenand_ooblayout_ecc(struct mtd_info *mtd, int section, in flexonenand_ooblayout_ecc() 78 static int flexonenand_ooblayout_free(struct mtd_info *mtd, int section, in flexonenand_ooblayout_free() 102 static int onenand_ooblayout_128_ecc(struct mtd_info *mtd, int section, in onenand_ooblayout_128_ecc() 114 static int onenand_ooblayout_128_free(struct mtd_info *mtd, int section, in onenand_ooblayout_128_free() 138 static int onenand_ooblayout_32_64_ecc(struct mtd_info *mtd, int section, in onenand_ooblayout_32_64_ecc() 150 static int onenand_ooblayout_32_64_free(struct mtd_info *mtd, int section, in onenand_ooblayout_32_64_free() 377 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region() 398 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) in onenand_command() 553 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait() 651 static int onenand_interrupt_wait(struct mtd_info *mtd, int state) in onenand_interrupt_wait() [all …]
|
| /Linux-v6.6/drivers/mtd/lpddr/ |
| 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 …]
|