| /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);
|
| /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 | 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 …]
|
| 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/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 | 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 …]
|
| H A 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 …]
|
| 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 | cfi_cmdset_0020.c | 38 static int cfi_staa_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); 39 static int cfi_staa_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 40 static int cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, 42 static int cfi_staa_erase_varsize(struct mtd_info *, struct erase_info *); 43 static void cfi_staa_sync (struct mtd_info *); 44 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 45 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 46 static int cfi_staa_suspend (struct mtd_info *); 47 static void cfi_staa_resume (struct mtd_info *); 49 static void cfi_staa_destroy(struct mtd_info *); [all …]
|
| /linux/drivers/mtd/ |
| 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/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 *mtd) in mpc5121_nfc_send_read_id() [all …]
|
| 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/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/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() 616 static int s5pc110_read_bufferram(struct mtd_info *mtd, int area, in s5pc110_read_bufferram() 688 static int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe() 694 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait() 727 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 …]
|
| /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/nand/spi/ |
| H A D | winbond.c | 135 static int w25m02gv_ooblayout_ecc(struct mtd_info *mtd, int section, in w25m02gv_ooblayout_ecc() 147 static int w25m02gv_ooblayout_free(struct mtd_info *mtd, int section, in w25m02gv_ooblayout_free() 174 static int w25n01kv_ooblayout_ecc(struct mtd_info *mtd, int section, in w25n01kv_ooblayout_ecc() 186 static int w25n02kv_ooblayout_ecc(struct mtd_info *mtd, int section, in w25n02kv_ooblayout_ecc() 198 static int w25n02kv_ooblayout_free(struct mtd_info *mtd, int section, in w25n02kv_ooblayout_free() 220 static int w25n01jw_ooblayout_ecc(struct mtd_info *mtd, int section, in w25n01jw_ooblayout_ecc() 232 static int w25n01jw_ooblayout_free(struct mtd_info *mtd, int section, in w25n01jw_ooblayout_free() 250 static int w35n01jw_ooblayout_ecc(struct mtd_info *mtd, int section, in w35n01jw_ooblayout_ecc() 262 static int w35n01jw_ooblayout_free(struct mtd_info *mtd, int section, in w35n01jw_ooblayout_free()
|