/kernel/linux/linux-6.6/include/linux/mtd/ |
H A 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, 189 struct module; /* only needed for owner field in mtd_info */ 210 * This struct is embedded in mtd_info and contains partition-specific 228 * This struct is embedded in mtd_info and contains master-specific 238 struct mtd_info { struct 252 * Any driver registering a struct mtd_info mus [all...] |
H 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); 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 *mt [all...] |
H 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);
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
H A D | mtd.h | 23 struct mtd_info; 102 int (*ecc)(struct mtd_info *mtd, int section, 104 int (*free)(struct mtd_info *mtd, int section, 178 int (*get_info)(struct mtd_info *mtd, int wunit, 180 int (*get_wunit)(struct mtd_info *mtd, 184 struct module; /* only needed for owner field in mtd_info */ 208 * This struct is embedded in mtd_info and contains partition-specific 226 * This struct is embedded in mtd_info and contains master-specific 235 struct mtd_info { struct 249 * Any driver registering a struct mtd_info mus [all...] |
H 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); 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 *mt [all...] |
H 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);
|
/kernel/linux/linux-5.10/drivers/mtd/devices/ |
H A 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() [all...] |
/kernel/linux/linux-6.6/drivers/mtd/devices/ |
H A 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() [all...] |
/kernel/linux/linux-6.6/drivers/mtd/ |
H A 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() 89 * the mtd_info will probably want to use the release() hook... 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 *mt in mtd_size_show() [all...] |
H 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 *); 15 void release_mtd_partition(struct mtd_info *mtd); 19 int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
|
H A D | mtdconcat.c | 25 * Subdev points to an array of pointers to struct mtd_info objects 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 *subde in concat_write() [all...] |
H A 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 *maste in mtd_add_partition() [all...] |
/kernel/linux/linux-5.10/drivers/mtd/chips/ |
H 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() 72 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in map_absent_read() 77 static int map_absent_write(struct mtd_info *mt [all...] |
H A D | map_rom.c | 18 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 19 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 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 *mt [all...] |
H A D | map_ram.c | 18 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 19 static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const 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 *mt [all...] |
/kernel/linux/linux-6.6/drivers/mtd/chips/ |
H 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() 72 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in map_absent_read() 77 static int map_absent_write(struct mtd_info *mt [all...] |
H A 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 *mt [all...] |
H A 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 *mt [all...] |
/kernel/linux/linux-5.10/drivers/mtd/ |
H A D | mtdcore.c | 43 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() 50 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() 123 * the mtd_info will probably want to use the release() hook... 127 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() 137 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() 176 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() 185 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 *mt in mtd_writesize_show() [all...] |
H A D | mtdcore.h | 9 struct mtd_info *__mtd_next_device(int i); 10 int __must_check add_mtd_device(struct mtd_info *mtd); 11 int del_mtd_device(struct mtd_info *mtd); 12 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int); 13 int del_mtd_partitions(struct mtd_info *); 17 int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
|
H A D | mtdconcat.c | 25 * Subdev points to an array of pointers to struct mtd_info objects 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 *subde in concat_write() [all...] |
H A D | mtdpart.c | 28 static inline void free_partition(struct mtd_info *mtd) in free_partition() 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 mtd_partition_offset_show() 230 static int mtd_add_partition_attrs(struct mtd_info *new) in mtd_add_partition_attrs() 239 int mtd_add_partition(struct mtd_info *parent, const char *name, in mtd_add_partition() 242 struct mtd_info *master = mtd_get_master(parent); in mtd_add_partition() 246 struct mtd_info *chil in mtd_add_partition() [all...] |
/kernel/linux/linux-5.10/drivers/mtd/tests/ |
H 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,
|
/kernel/linux/linux-6.6/drivers/mtd/tests/ |
H 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,
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H 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() 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 *mt [all...] |