| /linux/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, 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 …]
|
| 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 *mtd); [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);
|
| H A D | blktrans.h | 14 struct mtd_info; 22 struct mtd_info *mtd; 66 void (*add_mtd)(struct mtd_blktrans_ops *tr, struct mtd_info *mtd);
|
| /linux/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() 119 vfree(mtd_info->priv); in cleanup_mtdram() [all …]
|
| H 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()
|
| H A D | pmc551.c | 127 struct mtd_info *nextpmc551; 130 static struct mtd_info *pmc551list; 132 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, 135 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) in pmc551_erase() 189 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_point() 215 static int pmc551_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in pmc551_unpoint() 223 static int pmc551_read(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_read() 279 static int pmc551_write(struct mtd_info *mtd, loff_t to, size_t len, in pmc551_write() 656 struct mtd_info *mtd; in init_pmc551() 718 mtd = kzalloc_obj(struct mtd_info); in init_pmc551() [all …]
|
| /linux/drivers/mtd/ |
| H A D | mtdcore.c | 47 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() 54 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() 79 struct mtd_info *__mtd_next_device(int i) in __mtd_next_device() 95 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() 119 struct mtd_info *mtd = container_of(kref, struct mtd_info, refcnt); in mtd_device_release() 149 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() 188 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() 197 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() 206 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() 215 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_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,
|
| /linux/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 *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 …]
|
| 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 *mtd, loff_t from, size_t len, in maprom_point() [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() 91 static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len, in mapram_point() [all …]
|
| H 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()
|
| H A D | chipreg.c | 55 struct mtd_info *do_map_probe(const char *name, struct map_info *map) in do_map_probe() 58 struct mtd_info *ret; in do_map_probe() 83 void map_destroy(struct mtd_info *mtd) in map_destroy()
|
| H A D | fwh_lock.h | 80 static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) in fwh_lock_varsize() 91 static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) in fwh_unlock_varsize() 101 static void fixup_use_fwh_lock(struct mtd_info *mtd) in fixup_use_fwh_lock()
|
| /linux/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,
|
| H A D | mtd_test.c | 10 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) in mtdtest_erase_eraseblock() 30 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad() 42 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_scan_for_bad_eraseblocks() 63 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_erase_good_eraseblocks() 82 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) in mtdtest_read() 100 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, in mtdtest_write()
|
| /linux/drivers/mtd/nand/raw/ |
| H 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/nand/onenand/ |
| H A 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 …]
|
| H 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() 376 static int s3c_onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, in s3c_onenand_command() 475 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) in s3c_get_bufferram() 494 static int onenand_read_bufferram(struct mtd_info *mtd, int area, in onenand_read_bufferram() 505 static int onenand_write_bufferram(struct mtd_info *mtd, int area, in onenand_write_bufferram() 621 static int s5pc110_read_bufferram(struct mtd_info *mtd, int area, in s5pc110_read_bufferram() 693 static int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe() 699 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait() 732 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status() [all …]
|
| H A D | onenand_bbt.c | 56 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd, int chip) in create_bbt() 131 static inline int onenand_memory_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_memory_bbt() 144 static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in onenand_isbad_bbt() 181 static int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_scan_bbt() 229 int onenand_default_bbt(struct mtd_info *mtd) in onenand_default_bbt()
|
| /linux/drivers/mtd/lpddr/ |
| H 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 …]
|
| H A D | lpddr2_nvm.c | 233 static int lpddr2_nvm_do_block_op(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_do_block_op() 298 static int lpddr2_nvm_read(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_read() 316 static int lpddr2_nvm_write(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_write() 372 static int lpddr2_nvm_erase(struct mtd_info *mtd, struct erase_info *instr) in lpddr2_nvm_erase() 381 static int lpddr2_nvm_unlock(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_unlock() 390 static int lpddr2_nvm_lock(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_lock() 396 static const struct mtd_info lpddr2_nvm_mtd_info = { 413 struct mtd_info *mtd; in lpddr2_nvm_probe()
|
| /linux/drivers/mtd/ubi/ |
| H 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()
|
| /linux/drivers/mtd/maps/ |
| H A D | uclinux.c | 42 static struct mtd_info *uclinux_ram_mtdinfo; 54 static int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len, in uclinux_point() 69 struct mtd_info *mtd; in uclinux_mtd_init()
|