/linux-4.4.14/include/linux/mtd/ |
D | mtd.h | 46 struct mtd_info *mtd; 114 struct mtd_info { struct 189 int (*_erase) (struct mtd_info *mtd, struct erase_info *instr); argument 190 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, argument 192 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); argument 193 unsigned long (*_get_unmapped_area) (struct mtd_info *mtd, argument 197 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len, argument 199 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len, argument 201 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len, argument 203 int (*_read_oob) (struct mtd_info *mtd, loff_t from, argument [all …]
|
D | nand.h | 27 struct mtd_info; 32 extern int nand_scan(struct mtd_info *mtd, int max_chips); 37 extern int nand_scan_ident(struct mtd_info *mtd, int max_chips, 39 extern int nand_scan_tail(struct mtd_info *mtd); 42 extern void nand_release(struct mtd_info *mtd); 45 extern void nand_wait_ready(struct mtd_info *mtd); 48 extern int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 51 extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 499 void (*hwctl)(struct mtd_info *mtd, int mode); 500 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat, [all …]
|
D | onenand.h | 25 extern int onenand_scan(struct mtd_info *mtd, int max_chips); 27 extern void onenand_release(struct mtd_info *mtd); 107 int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len); 108 int (*wait)(struct mtd_info *mtd, int state); 109 int (*bbt_wait)(struct mtd_info *mtd, int state); 110 void (*unlock_all)(struct mtd_info *mtd); 111 int (*read_bufferram)(struct mtd_info *mtd, int area, 113 int (*write_bufferram)(struct mtd_info *mtd, int area, 117 void (*mmcontrol)(struct mtd_info *mtd, int sync_read); 118 int (*chip_probe)(struct mtd_info *mtd); [all …]
|
D | nand_bch.h | 14 struct mtd_info; 24 int nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, 30 int nand_bch_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, 36 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, 48 nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_bch_calculate_ecc() 55 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_bch_correct_data() 62 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, in nand_bch_init()
|
D | partitions.h | 53 struct mtd_info; 75 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, 82 int mtd_is_partition(const struct mtd_info *mtd); 83 int mtd_add_partition(struct mtd_info *master, const char *name, 85 int mtd_del_partition(struct mtd_info *master, int partno); 86 uint64_t mtd_get_device_size(const struct mtd_info *mtd);
|
D | concat.h | 26 struct mtd_info *mtd_concat_create( 27 struct mtd_info *subdev[], /* subdevices to concatenate */ 31 void mtd_concat_destroy(struct mtd_info *mtd);
|
D | nand_ecc.h | 18 struct mtd_info; 29 int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code); 40 int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc);
|
D | bbm.h | 160 int (*isbad_bbt)(struct mtd_info *mtd, loff_t ofs, int allowbbt); 169 extern int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd); 170 extern int onenand_default_bbt(struct mtd_info *mtd);
|
D | blktrans.h | 29 struct mtd_info; 37 struct mtd_info *mtd; 81 void (*add_mtd)(struct mtd_blktrans_ops *tr, struct mtd_info *mtd);
|
D | nftl.h | 59 int nftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, 61 int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len,
|
D | inftl.h | 56 int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, 58 int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len,
|
D | cfi.h | 288 struct mtd_info *(*cmdset_setup)(struct map_info *); 359 void (*fixup)(struct mtd_info *mtd); 383 void cfi_fixup(struct mtd_info *mtd, struct cfi_fixup* fixups); 388 int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob,
|
D | spi-nor.h | 120 struct mtd_info; 155 struct mtd_info mtd;
|
D | mtdram.h | 5 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
|
D | sh_flctl.h | 146 struct mtd_info mtd; 187 static inline struct sh_flctl *mtd_to_flctl(struct mtd_info *mtdinfo) in mtd_to_flctl()
|
D | gen_probe.h | 35 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
|
D | map.h | 254 struct mtd_info *(*probe)(struct map_info *map); 255 void (*destroy)(struct mtd_info *); 264 struct mtd_info *do_map_probe(const char *name, struct map_info *map); 265 void map_destroy(struct mtd_info *mtd);
|
D | qinfo.h | 88 struct mtd_info *lpddr_cmdset(struct map_info *);
|
D | doc2000.h | 214 struct mtd_info *nextdoc;
|
/linux-4.4.14/drivers/mtd/devices/ |
D | mtdram.c | 33 static struct mtd_info *mtd_info; variable 35 static int check_offs_len(struct mtd_info *mtd, loff_t ofs, uint64_t len) in check_offs_len() 54 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) in ram_erase() 64 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, in ram_point() 72 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in ram_unpoint() 82 static unsigned long ram_get_unmapped_area(struct mtd_info *mtd, in ram_get_unmapped_area() 90 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, in ram_read() 98 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, in ram_write() 108 if (mtd_info) { in cleanup_mtdram() 109 mtd_device_unregister(mtd_info); in cleanup_mtdram() [all …]
|
D | slram.c | 60 struct mtd_info *mtdinfo; 75 static int slram_erase(struct mtd_info *, struct erase_info *); 76 static int slram_point(struct mtd_info *, loff_t, size_t, size_t *, void **, 78 static int slram_unpoint(struct mtd_info *, loff_t, size_t); 79 static int slram_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); 80 static int slram_write(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 82 static int slram_erase(struct mtd_info *mtd, struct erase_info *instr) in slram_erase() 96 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, in slram_point() 106 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in slram_unpoint() 111 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, in slram_read() [all …]
|
D | powernv_flash.c | 40 struct mtd_info mtd; 50 static int powernv_flash_async_op(struct mtd_info *mtd, enum flash_op op, in powernv_flash_async_op() 119 static int powernv_flash_read(struct mtd_info *mtd, loff_t from, size_t len, in powernv_flash_read() 135 static int powernv_flash_write(struct mtd_info *mtd, loff_t to, size_t len, in powernv_flash_write() 147 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) in powernv_flash_erase() 173 struct mtd_info *mtd) in powernv_flash_set_driver_info()
|
D | phram.c | 30 struct mtd_info mtd; 36 static int phram_erase(struct mtd_info *mtd, struct erase_info *instr) in phram_erase() 52 static int phram_point(struct mtd_info *mtd, loff_t from, size_t len, in phram_point() 60 static int phram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in phram_unpoint() 65 static int phram_read(struct mtd_info *mtd, loff_t from, size_t len, in phram_read() 75 static int phram_write(struct mtd_info *mtd, loff_t to, size_t len, in phram_write()
|
D | bcm47xxsflash.c | 67 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) in bcm47xxsflash_erase() 103 static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, in bcm47xxsflash_read() 119 static int bcm47xxsflash_write_st(struct mtd_info *mtd, u32 offset, size_t len, in bcm47xxsflash_write_st() 164 static int bcm47xxsflash_write_at(struct mtd_info *mtd, u32 offset, size_t len, in bcm47xxsflash_write_at() 207 static int bcm47xxsflash_write(struct mtd_info *mtd, loff_t to, size_t len, in bcm47xxsflash_write() 243 struct mtd_info *mtd = &b47s->mtd; in bcm47xxsflash_fill_mtd()
|
D | mtd_dataflash.c | 96 struct mtd_info mtd; 149 static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) in dataflash_erase() 235 static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len, in dataflash_read() 300 static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, in dataflash_write() 443 static int dataflash_get_otp_info(struct mtd_info *mtd, size_t len, in dataflash_get_otp_info() 502 static int dataflash_read_fact_otp(struct mtd_info *mtd, in dataflash_read_fact_otp() 519 static int dataflash_read_user_otp(struct mtd_info *mtd, in dataflash_read_user_otp() 536 static int dataflash_write_user_otp(struct mtd_info *mtd, in dataflash_write_user_otp() 592 static char *otp_setup(struct mtd_info *device, char revision) in otp_setup() 610 static char *otp_setup(struct mtd_info *device, char revision) in otp_setup() [all …]
|
D | pmc551.c | 131 struct mtd_info *nextpmc551; 134 static struct mtd_info *pmc551list; 136 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, 139 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) in pmc551_erase() 196 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_point() 222 static int pmc551_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in pmc551_unpoint() 230 static int pmc551_read(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_read() 287 static int pmc551_write(struct mtd_info *mtd, loff_t to, size_t len, in pmc551_write() 665 struct mtd_info *mtd; in init_pmc551() 727 mtd = kzalloc(sizeof(struct mtd_info), GFP_KERNEL); in init_pmc551() [all …]
|
D | ms02-nv.c | 54 static struct mtd_info *root_ms02nv_mtd; 57 static int ms02nv_read(struct mtd_info *mtd, loff_t from, in ms02nv_read() 67 static int ms02nv_write(struct mtd_info *mtd, loff_t to, in ms02nv_write() 110 struct mtd_info *mtd; in ms02nv_init_one() 252 struct mtd_info *mtd = root_ms02nv_mtd; in ms02nv_remove_one()
|
D | block2mtd.c | 38 struct mtd_info mtd; 84 static int block2mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in block2mtd_erase() 106 static int block2mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in block2mtd_read() 180 static int block2mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in block2mtd_write() 196 static void block2mtd_sync(struct mtd_info *mtd) in block2mtd_sync()
|
D | sst25l.c | 53 struct mtd_info mtd; 170 static int sst25l_erase(struct mtd_info *mtd, struct erase_info *instr) in sst25l_erase() 213 static int sst25l_read(struct mtd_info *mtd, loff_t from, size_t len, in sst25l_read() 256 static int sst25l_write(struct mtd_info *mtd, loff_t to, size_t len, in sst25l_write()
|
D | docg3.c | 857 static int doc_read_oob(struct mtd_info *mtd, loff_t from, in doc_read_oob() 985 static int doc_read(struct mtd_info *mtd, loff_t from, size_t len, in doc_read() 1030 static int doc_block_isbad(struct mtd_info *mtd, loff_t from) in doc_block_isbad() 1201 static int doc_erase(struct mtd_info *mtd, struct erase_info *info) in doc_erase() 1411 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, in doc_write_oob() 1507 static int doc_write(struct mtd_info *mtd, loff_t to, size_t len, in doc_write() 1532 struct mtd_info **docg3_floors = platform_get_drvdata(pdev); in sysfs_dev2docg3() 1828 static int __init doc_set_driver_info(int chip_id, struct mtd_info *mtd) in doc_set_driver_info() 1881 static struct mtd_info * __init 1887 struct mtd_info *mtd; in doc_probe_device() [all …]
|
D | lart.c | 361 static int flash_erase (struct mtd_info *mtd,struct erase_info *instr) in flash_erase() 434 static int flash_read (struct mtd_info *mtd,loff_t from,size_t len,size_t *retlen,u_char *buf) in flash_read() 509 static int flash_write (struct mtd_info *mtd,loff_t to,size_t len,size_t *retlen,const u_char *buf) in flash_write() 569 static struct mtd_info mtd;
|
D | ms02-nv.h | 95 struct mtd_info *next;
|
D | bcm47xxsflash.h | 73 struct mtd_info mtd;
|
D | spear_smi.c | 199 struct mtd_info mtd; 208 static inline struct spear_snor_flash *get_flash_data(struct mtd_info *mtd) in get_flash_data() 494 static int spear_mtd_erase(struct mtd_info *mtd, struct erase_info *e_info) in spear_mtd_erase() 548 static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in spear_mtd_read() 641 static int spear_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in spear_mtd_write()
|
D | docg3.h | 279 struct mtd_info *floors[DOC_MAX_NBFLOORS];
|
/linux-4.4.14/drivers/mtd/chips/ |
D | map_absent.c | 29 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 30 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 31 static int map_absent_erase (struct mtd_info *, struct erase_info *); 32 static void map_absent_sync (struct mtd_info *); 33 static struct mtd_info *map_absent_probe(struct map_info *map); 34 static void map_absent_destroy (struct mtd_info *); 44 static struct mtd_info *map_absent_probe(struct map_info *map) in map_absent_probe() 46 struct mtd_info *mtd; in map_absent_probe() 71 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() 76 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 | 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 unsigned long maprom_unmapped_area(struct mtd_info *, unsigned long, 41 static struct mtd_info *map_rom_probe(struct map_info *map) in map_rom_probe() 43 struct mtd_info *mtd; in map_rom_probe() 74 static unsigned long maprom_unmapped_area(struct mtd_info *mtd, in maprom_unmapped_area() 83 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read() [all …]
|
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 unsigned long mapram_unmapped_area(struct mtd_info *, unsigned long, 33 static struct mtd_info *map_ram_probe(struct map_info *map) in map_ram_probe() 35 struct mtd_info *mtd; in map_ram_probe() 90 static unsigned long mapram_unmapped_area(struct mtd_info *mtd, in mapram_unmapped_area() 99 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read() [all …]
|
D | cfi_cmdset_0002.c | 52 static int cfi_amdstd_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 53 static int cfi_amdstd_write_words(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 54 static int cfi_amdstd_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 55 static int cfi_amdstd_erase_chip(struct mtd_info *, struct erase_info *); 56 static int cfi_amdstd_erase_varsize(struct mtd_info *, struct erase_info *); 57 static void cfi_amdstd_sync (struct mtd_info *); 58 static int cfi_amdstd_suspend (struct mtd_info *); 59 static void cfi_amdstd_resume (struct mtd_info *); 61 static int cfi_amdstd_get_fact_prot_info(struct mtd_info *, size_t, 63 static int cfi_amdstd_get_user_prot_info(struct mtd_info *, size_t, [all …]
|
D | cfi_cmdset_0001.c | 61 static int cfi_intelext_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 62 static int cfi_intelext_write_words(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 63 static int cfi_intelext_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 64 static int cfi_intelext_writev(struct mtd_info *, const struct kvec *, unsigned long, loff_t, size_… 65 static int cfi_intelext_erase_varsize(struct mtd_info *, struct erase_info *); 66 static void cfi_intelext_sync (struct mtd_info *); 67 static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 68 static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 69 static int cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs, 72 static int cfi_intelext_read_fact_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); [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 = NULL; in mtd_do_chip_probe() 193 typedef struct mtd_info *cfi_cmdset_fn_t(struct map_info *, int); 199 static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, in cfi_cmdset_unknown() 217 struct mtd_info *mtd; in cfi_cmdset_unknown() 230 static struct mtd_info *check_cmd_set(struct map_info *map, int primary) in check_cmd_set()
|
D | cfi_cmdset_0020.c | 37 static int cfi_staa_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); 38 static int cfi_staa_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 39 static int cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, 41 static int cfi_staa_erase_varsize(struct mtd_info *, struct erase_info *); 42 static void cfi_staa_sync (struct mtd_info *); 43 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 44 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 45 static int cfi_staa_suspend (struct mtd_info *); 46 static void cfi_staa_resume (struct mtd_info *); 48 static void cfi_staa_destroy(struct mtd_info *); [all …]
|
D | chipreg.c | 57 struct mtd_info *do_map_probe(const char *name, struct map_info *map) in do_map_probe() 60 struct mtd_info *ret; in do_map_probe() 85 void map_destroy(struct mtd_info *mtd) in map_destroy()
|
D | fwh_lock.h | 79 static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) in fwh_lock_varsize() 90 static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) in fwh_unlock_varsize() 100 static void fixup_use_fwh_lock(struct mtd_info *mtd) in fixup_use_fwh_lock()
|
D | cfi_probe.c | 31 struct mtd_info *cfi_probe(struct map_info *map); 389 struct mtd_info *cfi_probe(struct map_info *map) in cfi_probe()
|
D | cfi_util.c | 336 void cfi_fixup(struct mtd_info *mtd, struct cfi_fixup *fixups) in cfi_fixup() 352 int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob, in cfi_varsize_frob()
|
/linux-4.4.14/drivers/mtd/ |
D | mtdcore.c | 55 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() 62 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() 88 struct mtd_info *__mtd_next_device(int i) in __mtd_next_device() 104 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() 114 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() 153 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() 163 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() 174 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() 184 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() 194 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() [all …]
|
D | mtdcore.h | 8 struct mtd_info *__mtd_next_device(int i); 9 int add_mtd_device(struct mtd_info *mtd); 10 int del_mtd_device(struct mtd_info *mtd); 11 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int); 12 int del_mtd_partitions(struct mtd_info *); 13 int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
|
D | mtdconcat.c | 44 struct mtd_info mtd; 46 struct mtd_info **subdev; 54 ((sizeof(struct mtd_concat) + (num_subdev) * sizeof(struct mtd_info *))) 68 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read() 76 struct mtd_info *subdev = concat->subdev[i]; in concat_read() 120 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write() 128 struct mtd_info *subdev = concat->subdev[i]; in concat_write() 158 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev() 186 struct mtd_info *subdev = concat->subdev[i]; in concat_writev() 233 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob() [all …]
|
D | mtdpart.c | 43 struct mtd_info mtd; 44 struct mtd_info *master; 61 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read() 80 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point() 89 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint() 96 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area() 108 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob() 146 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg() 154 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, in part_get_user_prot_info() 162 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg() [all …]
|
D | mtdsuper.c | 28 struct mtd_info *mtd = _mtd; in get_sb_mtd_compare() 48 struct mtd_info *mtd = _mtd; in get_sb_mtd_set() 61 struct mtd_info *mtd, in mount_mtd_aux() 107 struct mtd_info *mtd; in mount_mtd_nr() 142 struct mtd_info *mtd; in mount_mtd()
|
D | mtdoops.c | 63 struct mtd_info *mtd; 95 struct mtd_info *mtd = cxt->mtd; in mtdoops_erase_block() 158 struct mtd_info *mtd = cxt->mtd; in mtdoops_workfunc_erase() 212 struct mtd_info *mtd = cxt->mtd; in mtdoops_write() 252 struct mtd_info *mtd = cxt->mtd; in find_next_position() 324 static void mtdoops_notify_add(struct mtd_info *mtd) in mtdoops_notify_add() 376 static void mtdoops_notify_remove(struct mtd_info *mtd) in mtdoops_notify_remove()
|
D | mtdchar.c | 51 struct mtd_info *mtd; 66 struct mtd_info *mtd; in mtdchar_open() 116 struct mtd_info *mtd = mfi->mtd; in mtdchar_close() 153 struct mtd_info *mtd = mfi->mtd; in mtdchar_read() 239 struct mtd_info *mtd = mfi->mtd; in mtdchar_write() 334 struct mtd_info *mtd = mfi->mtd; in otp_select_filemode() 362 static int mtdchar_writeoob(struct file *file, struct mtd_info *mtd, in mtdchar_writeoob() 411 static int mtdchar_readoob(struct file *file, struct mtd_info *mtd, in mtdchar_readoob() 500 static int mtdchar_blkpg_ioctl(struct mtd_info *mtd, in mtdchar_blkpg_ioctl() 535 static int mtdchar_write_ioctl(struct mtd_info *mtd, in mtdchar_write_ioctl() [all …]
|
D | mtdblock.c | 64 static int erase_write (struct mtd_info *mtd, unsigned long pos, in erase_write() 115 struct mtd_info *mtd = mtdblk->mbd.mtd; in write_cached_data() 145 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_write() 215 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_read() 340 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdblock_add_mtd()
|
D | ssfdc.c | 106 static int get_valid_cis_sector(struct mtd_info *mtd) in get_valid_cis_sector() 152 static int read_physical_sector(struct mtd_info *mtd, uint8_t *sect_buf, in read_physical_sector() 167 static int read_raw_oob(struct mtd_info *mtd, loff_t offs, uint8_t *buf) in read_raw_oob() 248 struct mtd_info *mtd = ssfdc->mbd.mtd; in build_logical_block_map() 287 static void ssfdcr_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in ssfdcr_add_mtd()
|
D | inftlcore.c | 48 static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in inftl_add_mtd() 149 int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_read_oob() 169 int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_write_oob() 189 static int inftl_write(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_write() 254 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_foldchain() 478 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_findwriteunit() 640 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_trydeletechain() 762 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_deleteblock() 871 struct mtd_info *mtd = inftl->mbd.mtd; in inftl_readblock()
|
D | afs.c | 70 afs_read_footer(struct mtd_info *mtd, u_int *img_start, u_int *iis_start, in afs_read_footer() 129 afs_read_iis(struct mtd_info *mtd, struct image_info_struct *iis, u_int ptr) in afs_read_iis() 164 static int parse_afs_partitions(struct mtd_info *mtd, in parse_afs_partitions()
|
D | nftlcore.c | 48 static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in nftl_add_mtd() 136 int nftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, in nftl_read_oob() 157 int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, in nftl_write_oob() 180 static int nftl_write(struct mtd_info *mtd, loff_t offs, size_t len, in nftl_write() 246 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_foldchain() 539 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_findwriteunit() 718 struct mtd_info *mtd = nftl->mbd.mtd; in nftl_readblock()
|
D | nftlmount.c | 45 struct mtd_info *mtd = nftl->mbd.mtd; in find_boot_record() 277 struct mtd_info *mtd = nftl->mbd.mtd; in check_free_sectors() 313 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_formatblock() 378 struct mtd_info *mtd = nftl->mbd.mtd; in check_sectors_in_chain() 497 struct mtd_info *mtd = nftl->mbd.mtd; in check_and_mark_free_block() 558 struct mtd_info *mtd = nftl->mbd.mtd; in get_fold_mark() 577 struct mtd_info *mtd = s->mbd.mtd; in NFTL_mount()
|
D | ofpart.c | 28 static int parse_ofpart_partitions(struct mtd_info *master, in parse_ofpart_partitions() 149 static int parse_ofoldpart_partitions(struct mtd_info *master, in parse_ofoldpart_partitions()
|
D | bcm63xxpart.c | 46 static int bcm63xx_detect_cfe(struct mtd_info *master) in bcm63xx_detect_cfe() 70 static int bcm63xx_parse_cfe_partitions(struct mtd_info *master, in bcm63xx_parse_cfe_partitions()
|
D | bcm47xxpart.c | 64 static const char *bcm47xxpart_trx_data_part_name(struct mtd_info *master, in bcm47xxpart_trx_data_part_name() 84 static int bcm47xxpart_parse(struct mtd_info *master, in bcm47xxpart_parse()
|
D | mtdblock_ro.c | 49 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdblock_add_mtd()
|
D | mtdswap.c | 115 struct mtd_info *mtd; 550 struct mtd_info *mtd = d->mtd; in mtdswap_erase_block() 666 struct mtd_info *mtd = d->mtd; in mtdswap_write_block() 727 struct mtd_info *mtd = d->mtd; in mtdswap_move_block() 926 struct mtd_info *mtd = d->mtd; in mtdswap_eblk_passes() 1054 static unsigned int mtdswap_badblocks(struct mtd_info *mtd, uint64_t size) in mtdswap_badblocks() 1131 struct mtd_info *mtd = d->mtd; in mtdswap_readsect() 1352 struct mtd_info *mtd = d->mbd_dev->mtd; in mtdswap_init() 1411 static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdswap_add_mtd()
|
D | inftlmount.c | 51 struct mtd_info *mtd = inftl->mbd.mtd; in find_boot_record() 340 struct mtd_info *mtd = inftl->mbd.mtd; in check_free_sectors() 377 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_formatblock() 539 struct mtd_info *mtd = s->mbd.mtd; in INFTL_mount()
|
D | mtd_blkdevs.c | 498 static void blktrans_notify_remove(struct mtd_info *mtd) in blktrans_notify_remove() 509 static void blktrans_notify_add(struct mtd_info *mtd) in blktrans_notify_add() 527 struct mtd_info *mtd; in register_mtd_blktrans()
|
D | sm_ftl.c | 240 struct mtd_info *mtd = ftl->trans->mtd; in sm_read_sector() 323 struct mtd_info *mtd = ftl->trans->mtd; in sm_write_sector() 459 struct mtd_info *mtd = ftl->trans->mtd; in sm_erase_block() 571 static int sm_get_media_info(struct sm_ftl *ftl, struct mtd_info *mtd) in sm_get_media_info() 1129 static void sm_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in sm_add_mtd()
|
D | ar7part.c | 45 static int create_mtd_partitions(struct mtd_info *master, in create_mtd_partitions()
|
/linux-4.4.14/drivers/mtd/nand/ |
D | mpc5121_nfc.c | 121 struct mtd_info mtd; 133 static void mpc5121_nfc_done(struct mtd_info *mtd); 136 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read() 145 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) in nfc_write() 154 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) in nfc_set() 160 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) in nfc_clear() 166 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) in mpc5121_nfc_send_addr() 174 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) in mpc5121_nfc_send_cmd() 182 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) in mpc5121_nfc_send_prog_page() 190 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) in mpc5121_nfc_send_read_page() [all …]
|
D | socrates_nand.c | 33 struct mtd_info mtd; 44 static void socrates_nand_write_buf(struct mtd_info *mtd, in socrates_nand_write_buf() 64 static void socrates_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in socrates_nand_read_buf() 84 static uint8_t socrates_nand_read_byte(struct mtd_info *mtd) in socrates_nand_read_byte() 95 static uint16_t socrates_nand_read_word(struct mtd_info *mtd) in socrates_nand_read_word() 105 static void socrates_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in socrates_nand_cmd_ctrl() 131 static int socrates_nand_device_ready(struct mtd_info *mtd) in socrates_nand_device_ready() 147 struct mtd_info *mtd; in socrates_nand_probe() 220 struct mtd_info *mtd = &host->mtd; in socrates_nand_remove()
|
D | cs553x_nand.c | 98 static void cs553x_read_buf(struct mtd_info *mtd, u_char *buf, int len) in cs553x_read_buf() 110 static void cs553x_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in cs553x_write_buf() 122 static unsigned char cs553x_read_byte(struct mtd_info *mtd) in cs553x_read_byte() 128 static void cs553x_write_byte(struct mtd_info *mtd, u_char byte) in cs553x_write_byte() 140 static void cs553x_hwcontrol(struct mtd_info *mtd, int cmd, in cs553x_hwcontrol() 153 static int cs553x_device_ready(struct mtd_info *mtd) in cs553x_device_ready() 162 static void cs_enable_hwecc(struct mtd_info *mtd, int mode) in cs_enable_hwecc() 170 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) in cs_calculate_ecc() 184 static struct mtd_info *cs553x_mtd[4]; 190 struct mtd_info *new_mtd; in cs553x_init_one() [all …]
|
D | au1550nd.c | 26 struct mtd_info info; 31 void (*write_byte)(struct mtd_info *, u_char); 40 static u_char au_read_byte(struct mtd_info *mtd) in au_read_byte() 55 static void au_write_byte(struct mtd_info *mtd, u_char byte) in au_write_byte() 68 static u_char au_read_byte16(struct mtd_info *mtd) in au_read_byte16() 83 static void au_write_byte16(struct mtd_info *mtd, u_char byte) in au_write_byte16() 96 static u16 au_read_word(struct mtd_info *mtd) in au_read_word() 112 static void au_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in au_write_buf() 131 static void au_read_buf(struct mtd_info *mtd, u_char *buf, int len) in au_read_buf() 150 static void au_write_buf16(struct mtd_info *mtd, const u_char *buf, int len) in au_write_buf16() [all …]
|
D | bf5xx_nand.c | 145 struct mtd_info mtd; 161 static struct bf5xx_nand_info *mtd_to_nand_info(struct mtd_info *mtd) in mtd_to_nand_info() 185 static void bf5xx_nand_hwcontrol(struct mtd_info *mtd, int cmd, in bf5xx_nand_hwcontrol() 206 static int bf5xx_nand_devready(struct mtd_info *mtd) in bf5xx_nand_devready() 225 static int bf5xx_nand_correct_data_256(struct mtd_info *mtd, u_char *dat, in bf5xx_nand_correct_data_256() 304 static int bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat, in bf5xx_nand_correct_data() 323 static void bf5xx_nand_enable_hwecc(struct mtd_info *mtd, int mode) in bf5xx_nand_enable_hwecc() 328 static int bf5xx_nand_calculate_ecc(struct mtd_info *mtd, in bf5xx_nand_calculate_ecc() 368 static void bf5xx_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in bf5xx_nand_read_buf() 397 static uint8_t bf5xx_nand_read_byte(struct mtd_info *mtd) in bf5xx_nand_read_byte() [all …]
|
D | gpio.c | 38 struct mtd_info mtd_info; member 43 #define gpio_nand_getpriv(x) container_of(x, struct gpiomtd, mtd_info) 72 static void gpio_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in gpio_nand_cmd_ctrl() 91 static int gpio_nand_devready(struct mtd_info *mtd) in gpio_nand_devready() 198 nand_release(&gpiomtd->mtd_info); in gpio_nand_remove() 277 gpiomtd->mtd_info.priv = chip; in gpio_nand_probe() 278 gpiomtd->mtd_info.dev.parent = &pdev->dev; in gpio_nand_probe() 285 if (nand_scan(&gpiomtd->mtd_info, 1)) { in gpio_nand_probe() 292 gpiomtd->mtd_info.size); in gpio_nand_probe() 295 ret = mtd_device_parse_register(&gpiomtd->mtd_info, NULL, &ppdata, in gpio_nand_probe()
|
D | cmx270_nand.c | 37 static struct mtd_info *cmx270_nand_mtd; 54 static u_char cmx270_read_byte(struct mtd_info *mtd) in cmx270_read_byte() 61 static void cmx270_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in cmx270_write_buf() 70 static void cmx270_read_buf(struct mtd_info *mtd, u_char *buf, int len) in cmx270_read_buf() 94 static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, in cmx270_hwcontrol() 128 static int cmx270_device_ready(struct mtd_info *mtd) in cmx270_device_ready() 163 cmx270_nand_mtd = kzalloc(sizeof(struct mtd_info) + in cmx270_init()
|
D | ams-delta.c | 38 static struct mtd_info *ams_delta_mtd = NULL; 65 static void ams_delta_write_byte(struct mtd_info *mtd, u_char byte) in ams_delta_write_byte() 77 static u_char ams_delta_read_byte(struct mtd_info *mtd) in ams_delta_read_byte() 92 static void ams_delta_write_buf(struct mtd_info *mtd, const u_char *buf, in ams_delta_write_buf() 101 static void ams_delta_read_buf(struct mtd_info *mtd, u_char *buf, int len) in ams_delta_read_buf() 117 static void ams_delta_hwcontrol(struct mtd_info *mtd, int cmd, in ams_delta_hwcontrol() 134 static int ams_delta_nand_ready(struct mtd_info *mtd) in ams_delta_nand_ready() 186 ams_delta_mtd = kzalloc(sizeof(struct mtd_info) + in ams_delta_init()
|
D | txx9ndfmc.c | 66 struct mtd_info mtd; 73 struct mtd_info *mtds[MAX_TXX9NDFMC_DEV]; 80 static struct platform_device *mtd_to_platdev(struct mtd_info *mtd) in mtd_to_platdev() 106 static uint8_t txx9ndfmc_read_byte(struct mtd_info *mtd) in txx9ndfmc_read_byte() 113 static void txx9ndfmc_write_buf(struct mtd_info *mtd, const uint8_t *buf, in txx9ndfmc_write_buf() 126 static void txx9ndfmc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in txx9ndfmc_read_buf() 135 static void txx9ndfmc_cmd_ctrl(struct mtd_info *mtd, int cmd, in txx9ndfmc_cmd_ctrl() 167 static int txx9ndfmc_dev_ready(struct mtd_info *mtd) in txx9ndfmc_dev_ready() 174 static int txx9ndfmc_calculate_ecc(struct mtd_info *mtd, const uint8_t *dat, in txx9ndfmc_calculate_ecc() 195 static int txx9ndfmc_correct_data(struct mtd_info *mtd, unsigned char *buf, in txx9ndfmc_correct_data() [all …]
|
D | nand_base.c | 95 static int nand_get_device(struct mtd_info *mtd, int new_state); 97 static int nand_do_write_oob(struct mtd_info *mtd, loff_t to, 106 static int check_offs_len(struct mtd_info *mtd, in check_offs_len() 133 static void nand_release_device(struct mtd_info *mtd) in nand_release_device() 151 static uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte() 164 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16() 176 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word() 189 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip() 212 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) in nand_write_byte() 226 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) in nand_write_byte16() [all …]
|
D | docg4.c | 79 struct mtd_info *mtd; 242 static void docg4_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in docg4_read_buf() 253 static void docg4_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) in docg4_write_buf16() 297 static int docg4_wait(struct mtd_info *mtd, struct nand_chip *nand) in docg4_wait() 315 static void docg4_select_chip(struct mtd_info *mtd, int chip) in docg4_select_chip() 336 static void reset(struct mtd_info *mtd) in reset() 371 static int correct_data(struct mtd_info *mtd, uint8_t *buf, int page) in correct_data() 465 static uint8_t docg4_read_byte(struct mtd_info *mtd) in docg4_read_byte() 541 static int pageprog(struct mtd_info *mtd) in pageprog() 581 static void sequence_reset(struct mtd_info *mtd) in sequence_reset() [all …]
|
D | diskonchip.c | 59 static struct mtd_info *doclist = NULL; 71 struct mtd_info *nextdoc; 74 int (*late_init)(struct mtd_info *mtd); 91 static void doc200x_hwcontrol(struct mtd_info *mtd, int cmd, 93 static void doc200x_select_chip(struct mtd_info *mtd, int chip); 300 static void doc2000_write_byte(struct mtd_info *mtd, u_char datum) in doc2000_write_byte() 312 static u_char doc2000_read_byte(struct mtd_info *mtd) in doc2000_read_byte() 327 static void doc2000_writebuf(struct mtd_info *mtd, const u_char *buf, int len) in doc2000_writebuf() 344 static void doc2000_readbuf(struct mtd_info *mtd, u_char *buf, int len) in doc2000_readbuf() 359 static void doc2000_readbuf_dword(struct mtd_info *mtd, u_char *buf, int len) in doc2000_readbuf_dword() [all …]
|
D | pasemi_nand.c | 43 static struct mtd_info *pasemi_nand_mtd; 46 static void pasemi_read_buf(struct mtd_info *mtd, u_char *buf, int len) in pasemi_read_buf() 58 static void pasemi_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in pasemi_write_buf() 70 static void pasemi_hwcontrol(struct mtd_info *mtd, int cmd, in pasemi_hwcontrol() 88 int pasemi_device_ready(struct mtd_info *mtd) in pasemi_device_ready() 113 pasemi_nand_mtd = kzalloc(sizeof(struct mtd_info) + in pasemi_nand_probe()
|
D | tmio_nand.c | 106 struct mtd_info mtd; 127 static void tmio_nand_hwcontrol(struct mtd_info *mtd, int cmd, in tmio_nand_hwcontrol() 160 static int tmio_nand_dev_ready(struct mtd_info *mtd) in tmio_nand_dev_ready() 189 tmio_nand_wait(struct mtd_info *mtd, struct nand_chip *nand_chip) in tmio_nand_wait() 225 static u_char tmio_nand_read_byte(struct mtd_info *mtd) in tmio_nand_read_byte() 245 tmio_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in tmio_nand_write_buf() 252 static void tmio_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in tmio_nand_read_buf() 259 static void tmio_nand_enable_hwecc(struct mtd_info *mtd, int mode) in tmio_nand_enable_hwecc() 268 static int tmio_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in tmio_nand_calculate_ecc() 290 static int tmio_nand_correct_data(struct mtd_info *mtd, unsigned char *buf, in tmio_nand_correct_data() [all …]
|
D | s3c2410.c | 107 struct mtd_info mtd; 169 static struct s3c2410_nand_mtd *s3c2410_nand_mtd_toours(struct mtd_info *mtd) in s3c2410_nand_mtd_toours() 174 static struct s3c2410_nand_info *s3c2410_nand_mtd_toinfo(struct mtd_info *mtd) in s3c2410_nand_mtd_toinfo() 381 static void s3c2410_nand_select_chip(struct mtd_info *mtd, int chip) in s3c2410_nand_select_chip() 423 static void s3c2410_nand_hwcontrol(struct mtd_info *mtd, int cmd, in s3c2410_nand_hwcontrol() 439 static void s3c2440_nand_hwcontrol(struct mtd_info *mtd, int cmd, in s3c2440_nand_hwcontrol() 458 static int s3c2410_nand_devready(struct mtd_info *mtd) in s3c2410_nand_devready() 464 static int s3c2440_nand_devready(struct mtd_info *mtd) in s3c2440_nand_devready() 470 static int s3c2412_nand_devready(struct mtd_info *mtd) in s3c2412_nand_devready() 479 static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat, in s3c2410_nand_correct_data() [all …]
|
D | ndfc.c | 40 struct mtd_info mtd; 48 static void ndfc_select_chip(struct mtd_info *mtd, int chip) in ndfc_select_chip() 63 static void ndfc_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in ndfc_hwcontrol() 77 static int ndfc_ready(struct mtd_info *mtd) in ndfc_ready() 85 static void ndfc_enable_hwecc(struct mtd_info *mtd, int mode) in ndfc_enable_hwecc() 97 static int ndfc_calculate_ecc(struct mtd_info *mtd, in ndfc_calculate_ecc() 122 static void ndfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in ndfc_read_buf() 132 static void ndfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in ndfc_write_buf()
|
D | orion_nand.c | 26 static void orion_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in orion_nand_cmd_ctrl() 48 static void orion_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in orion_nand_read_buf() 78 struct mtd_info *mtd; in orion_nand_probe() 89 sizeof(struct nand_chip) + sizeof(struct mtd_info), in orion_nand_probe() 93 mtd = (struct mtd_info *)(nc + 1); in orion_nand_probe() 185 struct mtd_info *mtd = platform_get_drvdata(pdev); in orion_nand_remove()
|
D | vf610_nfc.c | 159 struct mtd_info mtd; 323 struct mtd_info *mtd = data; in vf610_nfc_irq() 357 static void vf610_nfc_command(struct mtd_info *mtd, unsigned command, in vf610_nfc_command() 451 static void vf610_nfc_read_buf(struct mtd_info *mtd, u_char *buf, int len) in vf610_nfc_read_buf() 464 static void vf610_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, in vf610_nfc_write_buf() 478 static uint8_t vf610_nfc_read_byte(struct mtd_info *mtd) in vf610_nfc_read_byte() 505 static u16 vf610_nfc_read_word(struct mtd_info *mtd) in vf610_nfc_read_word() 514 static int vf610_nfc_dev_ready(struct mtd_info *mtd) in vf610_nfc_dev_ready() 523 static void vf610_nfc_select_chip(struct mtd_info *mtd, int chip) in vf610_nfc_select_chip() 557 static inline int vf610_nfc_correct_data(struct mtd_info *mtd, uint8_t *dat, in vf610_nfc_correct_data() [all …]
|
D | nand_bbt.c | 79 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs); 171 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num, in read_bbt() 264 static int read_abs_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td, int chip) in read_abs_bbt() 290 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data() 314 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob() 344 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read() 354 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt() 369 static u32 bbt_get_ver_offs(struct mtd_info *mtd, struct nand_bbt_descr *td) in bbt_get_ver_offs() 388 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, in read_abs_bbts() 413 static int scan_block_fast(struct mtd_info *mtd, struct nand_bbt_descr *bd, in scan_block_fast() [all …]
|
D | lpc32xx_slc.c | 207 struct mtd_info mtd; 259 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in lpc32xx_nand_cmd_ctrl() 285 static int lpc32xx_nand_device_ready(struct mtd_info *mtd) in lpc32xx_nand_device_ready() 318 static void lpc32xx_nand_ecc_enable(struct mtd_info *mtd, int mode) in lpc32xx_nand_ecc_enable() 326 static int lpc32xx_nand_ecc_calculate(struct mtd_info *mtd, in lpc32xx_nand_ecc_calculate() 340 static uint8_t lpc32xx_nand_read_byte(struct mtd_info *mtd) in lpc32xx_nand_read_byte() 351 static void lpc32xx_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in lpc32xx_nand_read_buf() 364 static void lpc32xx_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in lpc32xx_nand_write_buf() 377 static int lpc32xx_nand_read_oob_syndrome(struct mtd_info *mtd, in lpc32xx_nand_read_oob_syndrome() 389 static int lpc32xx_nand_write_oob_syndrome(struct mtd_info *mtd, in lpc32xx_nand_write_oob_syndrome() [all …]
|
D | mxc_nand.c | 143 void (*preset)(struct mtd_info *); 146 void (*send_page)(struct mtd_info *, unsigned int); 153 void (*select_chip)(struct mtd_info *mtd, int chip); 154 int (*correct_data)(struct mtd_info *mtd, u_char *dat, 176 struct mtd_info mtd; 533 static void send_page_v3(struct mtd_info *mtd, unsigned int ops) in send_page_v3() 549 static void send_page_v2(struct mtd_info *mtd, unsigned int ops) in send_page_v2() 563 static void send_page_v1(struct mtd_info *mtd, unsigned int ops) in send_page_v1() 646 static int mxc_nand_dev_ready(struct mtd_info *mtd) in mxc_nand_dev_ready() 655 static void mxc_nand_enable_hwecc(struct mtd_info *mtd, int mode) in mxc_nand_enable_hwecc() [all …]
|
D | hisi504_nand.c | 137 struct mtd_info mtd; 192 struct mtd_info *mtd = &host->mtd; in hisi_nfc_dma_transfer() 265 struct mtd_info *mtd = &host->mtd; in hisi_nfc_send_cmd_readstart() 358 static void hisi_nfc_select_chip(struct mtd_info *mtd, int chipselect) in hisi_nfc_select_chip() 369 static uint8_t hisi_nfc_read_byte(struct mtd_info *mtd) in hisi_nfc_read_byte() 385 static u16 hisi_nfc_read_word(struct mtd_info *mtd) in hisi_nfc_read_word() 395 hisi_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in hisi_nfc_write_buf() 404 static void hisi_nfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in hisi_nfc_read_buf() 413 static void set_addr(struct mtd_info *mtd, int column, int page_addr) in set_addr() 448 static void hisi_nfc_cmdfunc(struct mtd_info *mtd, unsigned command, int column, in hisi_nfc_cmdfunc() [all …]
|
D | sharpsl.c | 32 struct mtd_info mtd; 65 static void sharpsl_nand_hwcontrol(struct mtd_info *mtd, int cmd, in sharpsl_nand_hwcontrol() 85 static int sharpsl_nand_dev_ready(struct mtd_info *mtd) in sharpsl_nand_dev_ready() 91 static void sharpsl_nand_enable_hwecc(struct mtd_info *mtd, int mode) in sharpsl_nand_enable_hwecc() 97 static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat, u_char * ecc_code) in sharpsl_nand_calculate_ecc()
|
D | fsl_upm.c | 34 struct mtd_info mtd; 50 static inline struct fsl_upm_nand *to_fsl_upm_nand(struct mtd_info *mtdinfo) in to_fsl_upm_nand() 55 static int fun_chip_ready(struct mtd_info *mtd) in fun_chip_ready() 80 static void fun_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in fun_cmd_ctrl() 110 static void fun_select_chip(struct mtd_info *mtd, int mchip_nr) in fun_select_chip() 126 static uint8_t fun_read_byte(struct mtd_info *mtd) in fun_read_byte() 133 static void fun_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in fun_read_buf() 142 static void fun_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in fun_write_buf()
|
D | lpc32xx_mlc.c | 176 struct mtd_info mtd; 275 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in lpc32xx_nand_cmd_ctrl() 292 static int lpc32xx_nand_device_ready(struct mtd_info *mtd) in lpc32xx_nand_device_ready() 319 static int lpc32xx_waitfunc_nand(struct mtd_info *mtd, struct nand_chip *chip) in lpc32xx_waitfunc_nand() 338 static int lpc32xx_waitfunc_controller(struct mtd_info *mtd, in lpc32xx_waitfunc_controller() 358 static int lpc32xx_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) in lpc32xx_waitfunc() 389 static int lpc32xx_xmit_dma(struct mtd_info *mtd, void *mem, int len, in lpc32xx_xmit_dma() 431 static int lpc32xx_read_page(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_read_page() 496 static int lpc32xx_write_page_lowlevel(struct mtd_info *mtd, in lpc32xx_write_page_lowlevel() 543 static int lpc32xx_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_read_oob() [all …]
|
D | nuc900_nand.c | 58 struct mtd_info mtd; 78 static unsigned char nuc900_nand_read_byte(struct mtd_info *mtd) in nuc900_nand_read_byte() 90 static void nuc900_nand_read_buf(struct mtd_info *mtd, in nuc900_nand_read_buf() 102 static void nuc900_nand_write_buf(struct mtd_info *mtd, in nuc900_nand_write_buf() 125 static int nuc900_nand_devready(struct mtd_info *mtd) in nuc900_nand_devready() 136 static void nuc900_nand_command_lp(struct mtd_info *mtd, unsigned int command, in nuc900_nand_command_lp()
|
D | cafe_nand.c | 102 static int cafe_device_ready(struct mtd_info *mtd) in cafe_device_ready() 118 static void cafe_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in cafe_write_buf() 133 static void cafe_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in cafe_read_buf() 147 static uint8_t cafe_read_byte(struct mtd_info *mtd) in cafe_read_byte() 158 static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command, in cafe_nand_cmdfunc() 314 static void cafe_select_chip(struct mtd_info *mtd, int chipnr) in cafe_select_chip() 330 struct mtd_info *mtd = id; in cafe_nand_interrupt() 341 static void cafe_nand_bug(struct mtd_info *mtd) in cafe_nand_bug() 346 static int cafe_nand_write_oob(struct mtd_info *mtd, in cafe_nand_write_oob() 360 static int cafe_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in cafe_nand_read_oob() [all …]
|
D | davinci_nand.c | 56 struct mtd_info mtd; 104 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, in nand_davinci_hwcontrol() 125 static void nand_davinci_select_chip(struct mtd_info *mtd, int chip) in nand_davinci_select_chip() 145 static inline uint32_t nand_davinci_readecc_1bit(struct mtd_info *mtd) in nand_davinci_readecc_1bit() 153 static void nand_davinci_hwctl_1bit(struct mtd_info *mtd, int mode) in nand_davinci_hwctl_1bit() 177 static int nand_davinci_calculate_1bit(struct mtd_info *mtd, in nand_davinci_calculate_1bit() 192 static int nand_davinci_correct_1bit(struct mtd_info *mtd, u_char *dat, in nand_davinci_correct_1bit() 238 static void nand_davinci_hwctl_4bit(struct mtd_info *mtd, int mode) in nand_davinci_hwctl_4bit() 270 static int nand_davinci_calculate_4bit(struct mtd_info *mtd, in nand_davinci_calculate_4bit() 307 static int nand_davinci_correct_4bit(struct mtd_info *mtd, in nand_davinci_correct_4bit() [all …]
|
D | xway_nand.c | 73 static void xway_select_chip(struct mtd_info *mtd, int chip) in xway_select_chip() 90 static void xway_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in xway_cmd_ctrl() 114 static int xway_dev_ready(struct mtd_info *mtd) in xway_dev_ready() 119 static unsigned char xway_read_byte(struct mtd_info *mtd) in xway_read_byte()
|
D | jz4740_nand.c | 62 struct mtd_info mtd; 77 static inline struct jz_nand *mtd_to_jz_nand(struct mtd_info *mtd) in mtd_to_jz_nand() 82 static void jz_nand_select_chip(struct mtd_info *mtd, int chipnr) in jz_nand_select_chip() 104 static void jz_nand_cmd_ctrl(struct mtd_info *mtd, int dat, unsigned int ctrl) in jz_nand_cmd_ctrl() 132 static int jz_nand_dev_ready(struct mtd_info *mtd) in jz_nand_dev_ready() 138 static void jz_nand_hwctl(struct mtd_info *mtd, int mode) in jz_nand_hwctl() 166 static int jz_nand_calculate_ecc_rs(struct mtd_info *mtd, const uint8_t *dat, in jz_nand_calculate_ecc_rs() 219 static int jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat, in jz_nand_correct_ecc_rs() 337 struct mtd_info *mtd = &nand->mtd; in jz_nand_detect_bank() 414 struct mtd_info *mtd; in jz_nand_probe()
|
D | sunxi_nand.c | 237 struct mtd_info mtd; 351 static int sunxi_nfc_dev_ready(struct mtd_info *mtd) in sunxi_nfc_dev_ready() 389 static void sunxi_nfc_select_chip(struct mtd_info *mtd, int chip) in sunxi_nfc_select_chip() 434 static void sunxi_nfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in sunxi_nfc_read_buf() 466 static void sunxi_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, in sunxi_nfc_write_buf() 498 static uint8_t sunxi_nfc_read_byte(struct mtd_info *mtd) in sunxi_nfc_read_byte() 507 static void sunxi_nfc_cmd_ctrl(struct mtd_info *mtd, int dat, in sunxi_nfc_cmd_ctrl() 542 static void sunxi_nfc_hw_ecc_enable(struct mtd_info *mtd) in sunxi_nfc_hw_ecc_enable() 557 static void sunxi_nfc_hw_ecc_disable(struct mtd_info *mtd) in sunxi_nfc_hw_ecc_disable() 574 static int sunxi_nfc_hw_ecc_read_chunk(struct mtd_info *mtd, in sunxi_nfc_hw_ecc_read_chunk() [all …]
|
D | r852.c | 65 static inline struct r852_device *r852_get_dev(struct mtd_info *mtd) in r852_get_dev() 232 static void r852_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in r852_write_buf() 266 static void r852_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in r852_read_buf() 303 static uint8_t r852_read_byte(struct mtd_info *mtd) in r852_read_byte() 317 static void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl) in r852_cmdctl() 362 static int r852_wait(struct mtd_info *mtd, struct nand_chip *chip) in r852_wait() 391 static int r852_ready(struct mtd_info *mtd) in r852_ready() 402 static void r852_ecc_hwctl(struct mtd_info *mtd, int mode) in r852_ecc_hwctl() 434 static int r852_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, in r852_ecc_calculate() 466 static int r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat, in r852_ecc_correct() [all …]
|
D | fsl_ifc_nand.c | 43 struct mtd_info mtd; 231 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr() 254 static int is_blank(struct mtd_info *mtd, unsigned int bufnum) in is_blank() 279 static int check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, in check_read_ecc() 293 static void fsl_ifc_run_command(struct mtd_info *mtd) in fsl_ifc_run_command() 371 struct mtd_info *mtd) in fsl_ifc_do_read() 410 static void fsl_ifc_cmdfunc(struct mtd_info *mtd, unsigned int command, in fsl_ifc_cmdfunc() 615 static void fsl_ifc_select_chip(struct mtd_info *mtd, int chip) in fsl_ifc_select_chip() 625 static void fsl_ifc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) in fsl_ifc_write_buf() 651 static uint8_t fsl_ifc_read_byte(struct mtd_info *mtd) in fsl_ifc_read_byte() [all …]
|
D | atmel_nand.c | 119 struct mtd_info mtd; 183 static void atmel_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in atmel_nand_cmd_ctrl() 206 static int atmel_nand_device_ready(struct mtd_info *mtd) in atmel_nand_device_ready() 216 static int atmel_nand_set_enable_ready_pins(struct mtd_info *mtd) in atmel_nand_set_enable_ready_pins() 268 static void atmel_read_buf8(struct mtd_info *mtd, u8 *buf, int len) in atmel_read_buf8() 281 static void atmel_read_buf16(struct mtd_info *mtd, u8 *buf, int len) in atmel_read_buf16() 294 static void atmel_write_buf8(struct mtd_info *mtd, const u8 *buf, int len) in atmel_write_buf8() 301 static void atmel_write_buf16(struct mtd_info *mtd, const u8 *buf, int len) in atmel_write_buf16() 347 static int atmel_nand_dma_op(struct mtd_info *mtd, void *buf, int len, in atmel_nand_dma_op() 426 static void atmel_read_buf(struct mtd_info *mtd, u8 *buf, int len) in atmel_read_buf() [all …]
|
D | fsl_elbc_nand.c | 51 struct mtd_info mtd; 145 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr() 196 static int fsl_elbc_run_command(struct mtd_info *mtd) in fsl_elbc_run_command() 300 static void fsl_elbc_cmdfunc(struct mtd_info *mtd, unsigned int command, in fsl_elbc_cmdfunc() 516 static void fsl_elbc_select_chip(struct mtd_info *mtd, int chip) in fsl_elbc_select_chip() 526 static void fsl_elbc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) in fsl_elbc_write_buf() 564 static u8 fsl_elbc_read_byte(struct mtd_info *mtd) in fsl_elbc_read_byte() 581 static void fsl_elbc_read_buf(struct mtd_info *mtd, u8 *buf, int len) in fsl_elbc_read_buf() 606 static int fsl_elbc_wait(struct mtd_info *mtd, struct nand_chip *chip) in fsl_elbc_wait() 620 static int fsl_elbc_chip_init_tail(struct mtd_info *mtd) in fsl_elbc_chip_init_tail() [all …]
|
D | sh_flctl.c | 192 static void set_addr(struct mtd_info *mtd, int column, int page_addr) in set_addr() 500 static void set_cmd_regs(struct mtd_info *mtd, uint32_t cmd, uint32_t flcmcdr_val) in set_cmd_regs() 562 static int flctl_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in flctl_read_page_hwecc() 571 static int flctl_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in flctl_write_page_hwecc() 580 static void execmd_read_page_sector(struct mtd_info *mtd, int page_addr) in execmd_read_page_sector() 629 static void execmd_read_oob(struct mtd_info *mtd, int page_addr) in execmd_read_oob() 650 static void execmd_write_page_sector(struct mtd_info *mtd) in execmd_write_page_sector() 676 static void execmd_write_oob(struct mtd_info *mtd) in execmd_write_oob() 698 static void flctl_cmdfunc(struct mtd_info *mtd, unsigned int command, in flctl_cmdfunc() 874 static void flctl_select_chip(struct mtd_info *mtd, int chipnr) in flctl_select_chip() [all …]
|
D | omap2.c | 155 struct mtd_info mtd; 248 static void omap_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in omap_hwcontrol() 271 static void omap_read_buf8(struct mtd_info *mtd, u_char *buf, int len) in omap_read_buf8() 284 static void omap_write_buf8(struct mtd_info *mtd, const u_char *buf, int len) in omap_write_buf8() 307 static void omap_read_buf16(struct mtd_info *mtd, u_char *buf, int len) in omap_read_buf16() 320 static void omap_write_buf16(struct mtd_info *mtd, const u_char * buf, int len) in omap_write_buf16() 345 static void omap_read_buf_pref(struct mtd_info *mtd, u_char *buf, int len) in omap_read_buf_pref() 392 static void omap_write_buf_pref(struct mtd_info *mtd, in omap_write_buf_pref() 458 static inline int omap_nand_dma_transfer(struct mtd_info *mtd, void *addr, in omap_nand_dma_transfer() 547 static void omap_read_buf_dma_pref(struct mtd_info *mtd, u_char *buf, int len) in omap_read_buf_dma_pref() [all …]
|
D | fsmc_nand.c | 302 struct mtd_info mtd; 330 static void fsmc_select_chip(struct mtd_info *mtd, int chipnr) in fsmc_select_chip() 359 static void fsmc_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in fsmc_cmd_ctrl() 446 static void fsmc_enable_hwecc(struct mtd_info *mtd, int mode) in fsmc_enable_hwecc() 466 static int fsmc_read_hwecc_ecc4(struct mtd_info *mtd, const uint8_t *data, in fsmc_read_hwecc_ecc4() 517 static int fsmc_read_hwecc_ecc1(struct mtd_info *mtd, const uint8_t *data, in fsmc_read_hwecc_ecc1() 629 static void fsmc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in fsmc_write_buf() 652 static void fsmc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in fsmc_read_buf() 675 static void fsmc_read_buf_dma(struct mtd_info *mtd, uint8_t *buf, int len) in fsmc_read_buf_dma() 689 static void fsmc_write_buf_dma(struct mtd_info *mtd, const uint8_t *buf, in fsmc_write_buf_dma() [all …]
|
D | nand_bch.c | 52 int nand_bch_calculate_ecc(struct mtd_info *mtd, const unsigned char *buf, in nand_bch_calculate_ecc() 79 int nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_bch_correct_data() 127 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, unsigned int eccbytes, in nand_bch_init()
|
D | pxa3xx_nand.c | 175 struct mtd_info *mtd; 540 struct mtd_info *mtd) in pxa3xx_set_datasize() 898 struct mtd_info *mtd = host->mtd; in prepare_start_command() 948 struct mtd_info *mtd; in prepare_set_command() 1118 static void nand_cmdfunc(struct mtd_info *mtd, unsigned command, in nand_cmdfunc() 1165 static void nand_cmdfunc_extended(struct mtd_info *mtd, in nand_cmdfunc_extended() 1275 static int pxa3xx_nand_write_page_hwecc(struct mtd_info *mtd, in pxa3xx_nand_write_page_hwecc() 1285 static int pxa3xx_nand_read_page_hwecc(struct mtd_info *mtd, in pxa3xx_nand_read_page_hwecc() 1313 static uint8_t pxa3xx_nand_read_byte(struct mtd_info *mtd) in pxa3xx_nand_read_byte() 1326 static u16 pxa3xx_nand_read_word(struct mtd_info *mtd) in pxa3xx_nand_read_word() [all …]
|
D | denali.c | 868 static int write_oob_data(struct mtd_info *mtd, uint8_t *buf, int page) in write_oob_data() 897 static void read_oob_data(struct mtd_info *mtd, uint8_t *buf, int page) in read_oob_data() 1060 static int write_page(struct mtd_info *mtd, struct nand_chip *chip, in write_page() 1116 static int denali_write_page(struct mtd_info *mtd, struct nand_chip *chip, in denali_write_page() 1131 static int denali_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in denali_write_page_raw() 1142 static int denali_write_oob(struct mtd_info *mtd, struct nand_chip *chip, in denali_write_oob() 1148 static int denali_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in denali_read_oob() 1156 static int denali_read_page(struct mtd_info *mtd, struct nand_chip *chip, in denali_read_page() 1209 static int denali_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in denali_read_page_raw() 1245 static uint8_t denali_read_byte(struct mtd_info *mtd) in denali_read_byte() [all …]
|
D | sm_common.c | 41 static int sm_block_markbad(struct mtd_info *mtd, loff_t ofs) in sm_block_markbad() 103 int sm_register_device(struct mtd_info *mtd, int smartmedia) in sm_register_device()
|
D | nand_ecc.c | 51 struct mtd_info; 423 int nand_calculate_ecc(struct mtd_info *mtd, const unsigned char *buf, in nand_calculate_ecc() 523 int nand_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_correct_data()
|
D | sm_common.h | 39 extern int sm_register_device(struct mtd_info *mtd, int smartmedia);
|
D | r852.h | 111 struct mtd_info *mtd; /* mtd backpointer */
|
D | nandsim.c | 451 static struct mtd_info *nsmtd; 667 static int init_nandsim(struct mtd_info *mtd) in init_nandsim() 815 static int parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) in parse_badblocks() 1014 static int setup_wear_reporting(struct mtd_info *mtd) in setup_wear_reporting() 1909 static u_char ns_nand_read_byte(struct mtd_info *mtd) in ns_nand_read_byte() 1970 static void ns_nand_write_byte(struct mtd_info *mtd, u_char byte) in ns_nand_write_byte() 2124 static void ns_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int bitmask) in ns_hwcontrol() 2136 static int ns_device_ready(struct mtd_info *mtd) in ns_device_ready() 2142 static uint16_t ns_nand_read_word(struct mtd_info *mtd) in ns_nand_read_word() 2151 static void ns_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in ns_nand_write_buf() [all …]
|
D | plat_nand.c | 23 struct mtd_info mtd;
|
/linux-4.4.14/drivers/mtd/tests/ |
D | mtd_test.h | 15 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum); 16 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 18 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 21 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf); 22 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size,
|
D | mtd_test.c | 9 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) in mtdtest_erase_eraseblock() 33 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad() 45 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_scan_for_bad_eraseblocks() 65 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_erase_good_eraseblocks() 83 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()
|
D | stresstest.c | 44 static struct mtd_info *mtd;
|
D | readtest.c | 38 static struct mtd_info *mtd;
|
/linux-4.4.14/arch/cris/arch-v10/drivers/ |
D | axisflashmap.c | 51 struct mtd_info* axisflash_mtd = NULL; 193 static struct mtd_info *probe_cs(struct map_info *map_cs) in probe_cs() 195 struct mtd_info *mtd_cs = NULL; in probe_cs() 222 static struct mtd_info *flash_probe(void) in flash_probe() 224 struct mtd_info *mtd_cse0; in flash_probe() 225 struct mtd_info *mtd_cse1; in flash_probe() 226 struct mtd_info *mtd_cse; in flash_probe() 237 struct mtd_info *mtds[] = { mtd_cse0, mtd_cse1 }; in flash_probe() 271 struct mtd_info *mymtd; in init_axis_flash() 406 struct mtd_info *mtd_ram; in init_axis_flash() [all …]
|
/linux-4.4.14/arch/cris/arch-v32/drivers/ |
D | axisflashmap.c | 56 struct mtd_info* axisflash_mtd = NULL; 227 static struct mtd_info *probe_cs(struct map_info *map_cs) in probe_cs() 229 struct mtd_info *mtd_cs = NULL; in probe_cs() 256 extern struct mtd_info* __init crisv32_nand_flash_probe (void); 257 static struct mtd_info *flash_probe(void) in flash_probe() 259 struct mtd_info *mtd_cse0; in flash_probe() 260 struct mtd_info *mtd_cse1; in flash_probe() 261 struct mtd_info *mtd_total; in flash_probe() 262 struct mtd_info *mtds[2]; in flash_probe() 305 struct mtd_info *main_mtd; in init_axis_flash() [all …]
|
/linux-4.4.14/drivers/mtd/lpddr/ |
D | lpddr_cmds.c | 32 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, 34 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, 36 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, 38 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr); 39 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 40 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 41 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, 43 static int lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len); 48 struct mtd_info *lpddr_cmdset(struct map_info *map) in lpddr_cmdset() 53 struct mtd_info *mtd; in lpddr_cmdset() [all …]
|
D | lpddr2_nvm.c | 242 static int lpddr2_nvm_do_block_op(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_do_block_op() 307 static int lpddr2_nvm_read(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_read() 325 static int lpddr2_nvm_write(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_write() 381 static int lpddr2_nvm_erase(struct mtd_info *mtd, struct erase_info *instr) in lpddr2_nvm_erase() 396 static int lpddr2_nvm_unlock(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_unlock() 405 static int lpddr2_nvm_lock(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_lock() 417 struct mtd_info *mtd; in lpddr2_nvm_probe() 462 *mtd = (struct mtd_info) { in lpddr2_nvm_probe()
|
D | qinfo_probe.c | 35 struct mtd_info *lpddr_probe(struct map_info *map); 198 struct mtd_info *lpddr_probe(struct map_info *map) in lpddr_probe() 200 struct mtd_info *mtd = NULL; in lpddr_probe()
|
/linux-4.4.14/arch/cris/arch-v32/drivers/mach-a3/ |
D | nandflash.c | 39 struct mtd_info info; 46 static struct mtd_info *crisv32_mtd; 50 static void crisv32_hwcontrol(struct mtd_info *mtd, int cmd, in crisv32_hwcontrol() 96 static int crisv32_device_ready(struct mtd_info *mtd) in crisv32_device_ready() 105 struct mtd_info *__init crisv32_nand_flash_probe(void) in crisv32_nand_flash_probe()
|
/linux-4.4.14/arch/cris/arch-v32/drivers/mach-fs/ |
D | nandflash.c | 34 struct mtd_info info; 45 static struct mtd_info *crisv32_mtd; 49 static void crisv32_hwcontrol(struct mtd_info *mtd, int cmd, in crisv32_hwcontrol() 91 static int crisv32_device_ready(struct mtd_info *mtd) in crisv32_device_ready() 100 struct mtd_info *__init crisv32_nand_flash_probe(void) in crisv32_nand_flash_probe()
|
/linux-4.4.14/drivers/mtd/onenand/ |
D | onenand_base.c | 349 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region() 370 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) in onenand_command() 525 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait() 623 static int onenand_interrupt_wait(struct mtd_info *mtd, int state) in onenand_interrupt_wait() 639 static int onenand_try_interrupt_wait(struct mtd_info *mtd, int state) in onenand_try_interrupt_wait() 670 static void onenand_setup_wait(struct mtd_info *mtd) in onenand_setup_wait() 705 static inline int onenand_bufferram_offset(struct mtd_info *mtd, int area) in onenand_bufferram_offset() 730 static int onenand_read_bufferram(struct mtd_info *mtd, int area, in onenand_read_bufferram() 766 static int onenand_sync_read_bufferram(struct mtd_info *mtd, int area, in onenand_sync_read_bufferram() 806 static int onenand_write_bufferram(struct mtd_info *mtd, int area, in onenand_write_bufferram() [all …]
|
D | onenand_bbt.c | 57 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd, int chip) in create_bbt() 132 static inline int onenand_memory_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_memory_bbt() 145 static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in onenand_isbad_bbt() 182 int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_scan_bbt() 233 int onenand_default_bbt(struct mtd_info *mtd) in onenand_default_bbt()
|
D | samsung.c | 128 struct mtd_info *mtd; 318 static int s3c_onenand_wait(struct mtd_info *mtd, int state) in s3c_onenand_wait() 384 static int s3c_onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, in s3c_onenand_command() 482 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) in s3c_get_bufferram() 501 static int onenand_read_bufferram(struct mtd_info *mtd, int area, in onenand_read_bufferram() 512 static int onenand_write_bufferram(struct mtd_info *mtd, int area, in onenand_write_bufferram() 623 static int s5pc110_read_bufferram(struct mtd_info *mtd, int area, in s5pc110_read_bufferram() 695 static int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe() 701 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait() 734 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status() [all …]
|
D | omap2.c | 55 struct mtd_info mtd; 106 static int omap2_onenand_wait(struct mtd_info *mtd, int state) in omap2_onenand_wait() 280 static inline int omap2_onenand_bufferram_offset(struct mtd_info *mtd, int area) in omap2_onenand_bufferram_offset() 296 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_read_bufferram() 374 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_write_bufferram() 447 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_read_bufferram() 454 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_write_bufferram() 465 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap2_onenand_read_bufferram() 510 static int omap2_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap2_onenand_write_bufferram() 557 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap2_onenand_read_bufferram() [all …]
|
D | generic.c | 33 struct mtd_info mtd;
|
/linux-4.4.14/drivers/staging/goldfish/ |
D | goldfish_nand.c | 39 struct mtd_info mtd[0]; 42 static u32 goldfish_nand_cmd_with_params(struct mtd_info *mtd, in goldfish_nand_cmd_with_params() 77 static u32 goldfish_nand_cmd(struct mtd_info *mtd, enum nand_cmd cmd, in goldfish_nand_cmd() 98 static int goldfish_nand_erase(struct mtd_info *mtd, struct erase_info *instr) in goldfish_nand_erase() 132 static int goldfish_nand_read_oob(struct mtd_info *mtd, loff_t ofs, in goldfish_nand_read_oob() 164 static int goldfish_nand_write_oob(struct mtd_info *mtd, loff_t ofs, in goldfish_nand_write_oob() 196 static int goldfish_nand_read(struct mtd_info *mtd, loff_t from, size_t len, in goldfish_nand_read() 218 static int goldfish_nand_write(struct mtd_info *mtd, loff_t to, size_t len, in goldfish_nand_write() 240 static int goldfish_nand_block_isbad(struct mtd_info *mtd, loff_t ofs) in goldfish_nand_block_isbad() 261 static int goldfish_nand_block_markbad(struct mtd_info *mtd, loff_t ofs) in goldfish_nand_block_markbad() [all …]
|
/linux-4.4.14/drivers/mtd/ubi/ |
D | gluebi.c | 57 struct mtd_info mtd; 97 static int gluebi_get_device(struct mtd_info *mtd) in gluebi_get_device() 147 static void gluebi_put_device(struct mtd_info *mtd) in gluebi_put_device() 171 static int gluebi_read(struct mtd_info *mtd, loff_t from, size_t len, in gluebi_read() 211 static int gluebi_write(struct mtd_info *mtd, loff_t to, size_t len, in gluebi_write() 252 static int gluebi_erase(struct mtd_info *mtd, struct erase_info *instr) in gluebi_erase() 303 struct mtd_info *mtd; in gluebi_create() 372 struct mtd_info *mtd; in gluebi_remove() 504 struct mtd_info *mtd = &gluebi->mtd; in ubi_gluebi_exit()
|
D | build.c | 851 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, in ubi_attach_mtd_dev() 1143 static struct mtd_info * __init open_mtd_by_chdev(const char *mtd_dev) in open_mtd_by_chdev() 1181 static struct mtd_info * __init open_mtd_device(const char *mtd_dev) in open_mtd_device() 1183 struct mtd_info *mtd; in open_mtd_device() 1244 struct mtd_info *mtd; in ubi_init()
|
/linux-4.4.14/drivers/mtd/nand/bcm47xxnflash/ |
D | ops_bcm4706.c | 89 static void bcm47xxnflash_ops_bcm4706_read(struct mtd_info *mtd, uint8_t *buf, in bcm47xxnflash_ops_bcm4706_read() 139 static void bcm47xxnflash_ops_bcm4706_write(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_write() 173 static void bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct mtd_info *mtd, int cmd, in bcm47xxnflash_ops_bcm4706_cmd_ctrl() 194 static void bcm47xxnflash_ops_bcm4706_select_chip(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_select_chip() 200 static int bcm47xxnflash_ops_bcm4706_dev_ready(struct mtd_info *mtd) in bcm47xxnflash_ops_bcm4706_dev_ready() 215 static void bcm47xxnflash_ops_bcm4706_cmdfunc(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_cmdfunc() 313 static u8 bcm47xxnflash_ops_bcm4706_read_byte(struct mtd_info *mtd) in bcm47xxnflash_ops_bcm4706_read_byte() 341 static void bcm47xxnflash_ops_bcm4706_read_buf(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_read_buf() 357 static void bcm47xxnflash_ops_bcm4706_write_buf(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_write_buf()
|
D | bcm47xxnflash.h | 15 struct mtd_info mtd;
|
/linux-4.4.14/fs/logfs/ |
D | dev_mtd.c | 19 struct mtd_info *mtd = logfs_super(sb)->s_mtd; in logfs_mtd_read() 39 struct mtd_info *mtd = super->s_mtd; in loffs_mtd_write() 93 struct mtd_info *mtd = logfs_super(sb)->s_mtd; in logfs_mtd_erase() 120 struct mtd_info *mtd = logfs_super(sb)->s_mtd; in logfs_mtd_sync() 153 struct mtd_info *mtd = super->s_mtd; in logfs_mtd_find_first_sb() 170 struct mtd_info *mtd = super->s_mtd; in logfs_mtd_find_last_sb() 266 struct mtd_info *mtd = get_mtd_device(NULL, mtdnr); in logfs_get_sb_mtd()
|
/linux-4.4.14/arch/arm/include/asm/mach/ |
D | flash.h | 14 struct mtd_info; 34 void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
|
/linux-4.4.14/drivers/mtd/maps/ |
D | uclinux.c | 46 static struct mtd_info *uclinux_ram_mtdinfo; 58 static int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len, in uclinux_point() 73 struct mtd_info *mtd; in uclinux_mtd_init()
|
D | vmu-flash.c | 50 struct mtd_info *mtd; 59 struct mtd_info *mtd, int partition) in ofs_to_block() 112 struct mtd_info *mtd) in maple_vmu_read_block() 229 struct mtd_info *mtd) in maple_vmu_write_block() 305 struct mtd_info *mtd) in vmu_flash_read_char() 352 static int vmu_flash_read(struct mtd_info *mtd, loff_t from, size_t len, in vmu_flash_read() 418 static int vmu_flash_write(struct mtd_info *mtd, loff_t to, size_t len, in vmu_flash_write() 495 static void vmu_flash_sync(struct mtd_info *mtd) in vmu_flash_sync() 509 struct mtd_info *mtd_cur; in vmu_queryblocks() 639 card->mtd = kmalloc(sizeof(struct mtd_info) * card->partitions, in vmu_connect() [all …]
|
D | physmap_of.c | 29 struct mtd_info *mtd; 35 struct mtd_info *cmtd; 77 static struct mtd_info *obsolete_probe(struct platform_device *dev, in obsolete_probe() 82 struct mtd_info *mtd; in obsolete_probe() 167 struct mtd_info **mtd_list = NULL; in of_flash_probe()
|
D | solutionengine.c | 19 static struct mtd_info *flash_mtd; 20 static struct mtd_info *eprom_mtd;
|
D | pcmciamtd.c | 37 struct mtd_info *mtd_info; member 466 struct mtd_info *mtd = NULL; in pcmciamtd_config() 588 dev->mtd_info = mtd; in pcmciamtd_config() 625 dev->mtd_info = NULL; in pcmciamtd_config() 661 if(dev->mtd_info) { in pcmciamtd_detach() 662 mtd_device_unregister(dev->mtd_info); in pcmciamtd_detach() 664 dev->mtd_info->index); in pcmciamtd_detach() 665 map_destroy(dev->mtd_info); in pcmciamtd_detach()
|
D | tsunami_flash.c | 72 static struct mtd_info *tsunami_flash_mtd; 76 struct mtd_info *mtd; in cleanup_tsunami_flash()
|
D | sa1100-flash.c | 29 struct mtd_info *mtd; 34 struct mtd_info *mtd; 224 struct mtd_info *cdev[nr]; in sa1100_setup_mtd()
|
D | scb2_flash.c | 63 static struct mtd_info *scb2_mtd; 71 static int scb2_fixup_mtd(struct mtd_info *mtd) in scb2_fixup_mtd()
|
D | sc520cdp.c | 109 static struct mtd_info *mymtd[NUM_FLASH_BANKS]; 110 static struct mtd_info *merged_mtd;
|
D | pmcmsp-flash.c | 45 static struct mtd_info **msp_flash; 86 msp_maps = kcalloc(fcnt, sizeof(struct mtd_info), GFP_KERNEL); in init_msp_flash()
|
D | ts5500_flash.c | 66 static struct mtd_info *mymtd;
|
D | netsc520.c | 91 static struct mtd_info *mymtd;
|
D | cfi_flagadm.c | 89 static struct mtd_info *mymtd;
|
D | physmap.c | 27 struct mtd_info *mtd[MAX_RESOURCES]; 28 struct mtd_info *cmtd;
|
D | nettel.c | 57 static struct mtd_info *intel_mtd; 59 static struct mtd_info *amd_mtd;
|
D | pci.c | 259 struct mtd_info *mtd = NULL; in mtd_pci_probe() 310 struct mtd_info *mtd = pci_get_drvdata(dev); in mtd_pci_remove()
|
D | impa7.c | 30 static struct mtd_info *impa7_mtd[NUM_FLASHBANKS];
|
D | rbtx4939-flash.c | 25 struct mtd_info *mtd;
|
D | l440gx.c | 26 static struct mtd_info *mymtd;
|
D | sun_uflash.c | 41 struct mtd_info *mtd; /* mtd info */
|
D | pxa2xx-flash.c | 43 struct mtd_info *mtd;
|
D | sbc_gxx.c | 180 static struct mtd_info *all_mtd;
|
D | scx200_docflash.c | 45 static struct mtd_info *mymtd;
|
D | ixp4xx.c | 146 struct mtd_info *mtd;
|
D | plat-ram.c | 44 struct mtd_info *mtd;
|
D | lantiq-flash.c | 43 struct mtd_info *mtd;
|
D | dc21285.c | 24 static struct mtd_info *dc21285_mtd;
|
D | bfin-async-flash.c | 38 struct mtd_info *mtd;
|
D | intel_vr_nor.c | 45 struct mtd_info *info;
|
/linux-4.4.14/drivers/mtd/nand/gpmi-nand/ |
D | gpmi-nand.c | 110 struct mtd_info *mtd = &this->mtd; in get_ecc_strength() 142 struct mtd_info *mtd = &this->mtd; in set_geometry_by_ecc_info() 260 struct mtd_info *mtd = &this->mtd; in legacy_set_geometry() 807 struct mtd_info *mtd = &this->mtd; in gpmi_alloc_dma_buffer() 857 static void gpmi_cmd_ctrl(struct mtd_info *mtd, int data, unsigned int ctrl) in gpmi_cmd_ctrl() 891 static int gpmi_dev_ready(struct mtd_info *mtd) in gpmi_dev_ready() 899 static void gpmi_select_chip(struct mtd_info *mtd, int chipnr) in gpmi_select_chip() 912 static void gpmi_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in gpmi_read_buf() 924 static void gpmi_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in gpmi_write_buf() 936 static uint8_t gpmi_read_byte(struct mtd_info *mtd) in gpmi_read_byte() [all …]
|
D | gpmi-nand.h | 163 struct mtd_info mtd;
|
/linux-4.4.14/drivers/staging/mt29f_spinand/ |
D | mt29f_spinand.c | 32 static inline struct spinand_state *mtd_to_state(struct mtd_info *mtd) in mtd_to_state() 614 static int spinand_write_page_hwecc(struct mtd_info *mtd, in spinand_write_page_hwecc() 628 static int spinand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in spinand_read_page_hwecc() 666 static void spinand_select_chip(struct mtd_info *mtd, int dev) in spinand_select_chip() 670 static u8 spinand_read_byte(struct mtd_info *mtd) in spinand_read_byte() 680 static int spinand_wait(struct mtd_info *mtd, struct nand_chip *chip) in spinand_wait() 709 static void spinand_write_buf(struct mtd_info *mtd, const u8 *buf, int len) in spinand_write_buf() 717 static void spinand_read_buf(struct mtd_info *mtd, u8 *buf, int len) in spinand_read_buf() 744 static void spinand_cmdfunc(struct mtd_info *mtd, unsigned int command, in spinand_cmdfunc() 849 struct mtd_info *mtd; in spinand_probe() [all …]
|
D | mt29f_spinand.h | 104 int spinand_mtd(struct mtd_info *mtd); 105 void spinand_mtd_release(struct mtd_info *mtd);
|
/linux-4.4.14/arch/arm/mach-imx/ |
D | mach-qong.c | 132 static void qong_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in qong_nand_cmd_ctrl() 148 static int qong_nand_device_ready(struct mtd_info *mtd) in qong_nand_device_ready() 153 static void qong_nand_select_chip(struct mtd_info *mtd, int chip) in qong_nand_select_chip()
|
/linux-4.4.14/fs/romfs/ |
D | mmap-nommu.c | 29 struct mtd_info *mtd = inode->i_sb->s_mtd; in romfs_get_unmapped_area() 75 struct mtd_info *mtd = file_inode(file)->i_sb->s_mtd; in romfs_mmap_capabilities()
|
/linux-4.4.14/drivers/mtd/nand/brcmnand/ |
D | brcmnand.c | 182 struct mtd_info mtd; 907 static void brcmnand_wp(struct mtd_info *mtd, int wp) in brcmnand_wp() 1067 static void brcmnand_cmd_ctrl(struct mtd_info *mtd, int dat, in brcmnand_cmd_ctrl() 1073 static int brcmnand_waitfunc(struct mtd_info *mtd, struct nand_chip *this) in brcmnand_waitfunc() 1110 struct mtd_info *mtd = &host->mtd; in brcmnand_low_level_op() 1146 static void brcmnand_cmdfunc(struct mtd_info *mtd, unsigned command, in brcmnand_cmdfunc() 1247 static uint8_t brcmnand_read_byte(struct mtd_info *mtd) in brcmnand_read_byte() 1305 static void brcmnand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in brcmnand_read_buf() 1313 static void brcmnand_write_buf(struct mtd_info *mtd, const uint8_t *buf, in brcmnand_write_buf() 1424 static int brcmnand_read_by_pio(struct mtd_info *mtd, struct nand_chip *chip, in brcmnand_read_by_pio() [all …]
|
/linux-4.4.14/drivers/mtd/spi-nor/ |
D | spi-nor.c | 179 static inline struct spi_nor *mtd_to_spi_nor(struct mtd_info *mtd) in mtd_to_spi_nor() 319 static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr) in spi_nor_erase() 406 struct mtd_info *mtd = &nor->mtd; in stm_get_locked_range() 461 struct mtd_info *mtd = &nor->mtd; in stm_lock() 511 struct mtd_info *mtd = &nor->mtd; in stm_unlock() 570 static int spi_nor_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in spi_nor_lock() 585 static int spi_nor_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in spi_nor_unlock() 600 static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in spi_nor_is_locked() 875 static int spi_nor_read(struct mtd_info *mtd, loff_t from, size_t len, in spi_nor_read() 893 static int sst_write(struct mtd_info *mtd, loff_t to, size_t len, in sst_write() [all …]
|
/linux-4.4.14/arch/arm/mach-ep93xx/ |
D | snappercl15.c | 49 static void snappercl15_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in snappercl15_nand_cmd_ctrl() 77 static int snappercl15_nand_dev_ready(struct mtd_info *mtd) in snappercl15_nand_dev_ready()
|
D | ts72xx.c | 74 static void ts72xx_nand_hwcontrol(struct mtd_info *mtd, in ts72xx_nand_hwcontrol() 97 static int ts72xx_nand_device_ready(struct mtd_info *mtd) in ts72xx_nand_device_ready()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | mtd.c | 24 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) in efx_mtd_erase() 40 static void efx_mtd_sync(struct mtd_info *mtd) in efx_mtd_sync()
|
D | mcdi.h | 363 int efx_mcdi_mtd_read(struct mtd_info *mtd, loff_t start, size_t len, 365 int efx_mcdi_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len); 366 int efx_mcdi_mtd_write(struct mtd_info *mtd, loff_t start, size_t len, 368 int efx_mcdi_mtd_sync(struct mtd_info *mtd);
|
D | net_driver.h | 1077 struct mtd_info mtd; 1318 int (*mtd_read)(struct mtd_info *mtd, loff_t start, size_t len, 1320 int (*mtd_erase)(struct mtd_info *mtd, loff_t start, size_t len); 1321 int (*mtd_write)(struct mtd_info *mtd, loff_t start, size_t len, 1323 int (*mtd_sync)(struct mtd_info *mtd);
|
/linux-4.4.14/arch/arm/mach-orion5x/ |
D | ts78xx-setup.c | 176 static void ts78xx_ts_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in ts78xx_ts_nand_cmd_ctrl() 195 static int ts78xx_ts_nand_dev_ready(struct mtd_info *mtd) in ts78xx_ts_nand_dev_ready() 200 static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd, in ts78xx_ts_nand_write_buf() 227 static void ts78xx_ts_nand_read_buf(struct mtd_info *mtd, in ts78xx_ts_nand_read_buf()
|
/linux-4.4.14/include/linux/platform_data/ |
D | mtd-orion_nand.h | 15 int (*dev_ready)(struct mtd_info *mtd);
|
/linux-4.4.14/arch/arm/mach-omap1/ |
D | board-nand.c | 23 void omap1_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in omap1_nand_cmd_ctl()
|
D | common.h | 86 extern void omap1_nand_cmd_ctl(struct mtd_info *mtd, int cmd,
|
D | board-perseus2.c | 147 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready()
|
/linux-4.4.14/arch/cris/include/asm/ |
D | axisflashmap.h | 59 extern struct mtd_info *axisflash_mtd;
|
/linux-4.4.14/arch/mips/rb532/ |
D | devices.c | 144 static int rb532_dev_ready(struct mtd_info *mtd) in rb532_dev_ready() 149 static void rb532_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in rb532_cmd_ctrl()
|
/linux-4.4.14/arch/arm/mach-pxa/ |
D | balloon3.c | 573 static void balloon3_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in balloon3_nand_cmd_ctl() 602 static void balloon3_nand_select_chip(struct mtd_info *mtd, int chip) in balloon3_nand_select_chip() 618 static int balloon3_nand_dev_ready(struct mtd_info *mtd) in balloon3_nand_dev_ready()
|
D | palmtx.c | 250 static void palmtx_nand_cmd_ctl(struct mtd_info *mtd, int cmd, in palmtx_nand_cmd_ctl()
|
/linux-4.4.14/include/linux/bcma/ |
D | bcma_driver_chipcommon.h | 589 struct mtd_info *mtd; 595 struct mtd_info; 601 struct mtd_info *mtd;
|
/linux-4.4.14/arch/blackfin/mach-bf561/boards/ |
D | acvilon.c | 267 static void bfin_plat_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in bfin_plat_nand_cmd_ctrl() 282 static int bfin_plat_nand_dev_ready(struct mtd_info *mtd) in bfin_plat_nand_dev_ready()
|
/linux-4.4.14/fs/jffs2/ |
D | jffs2_fs_sb.h | 49 struct mtd_info *mtd;
|
/linux-4.4.14/drivers/media/pci/cobalt/ |
D | cobalt-flash.c | 100 struct mtd_info *mtd; in cobalt_flash_probe()
|
/linux-4.4.14/arch/mips/cavium-octeon/ |
D | flash_setup.c | 21 static struct mtd_info *mymtd;
|
/linux-4.4.14/arch/mips/netlogic/xlr/ |
D | platform-flash.c | 95 static void xlr_nand_ctrl(struct mtd_info *mtd, int cmd, in xlr_nand_ctrl()
|
/linux-4.4.14/arch/mips/alchemy/devboards/ |
D | db1550.c | 128 static void au1550_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in au1550_nand_cmd_ctrl() 151 static int au1550_nand_device_ready(struct mtd_info *mtd) in au1550_nand_device_ready()
|
/linux-4.4.14/arch/mips/pnx833x/common/ |
D | platform.c | 181 pnx833x_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in pnx833x_flash_nand_cmd_ctrl()
|
/linux-4.4.14/arch/sh/boards/mach-migor/ |
D | setup.c | 167 static void migor_nand_flash_cmd_ctl(struct mtd_info *mtd, int cmd, in migor_nand_flash_cmd_ctl() 183 static int migor_nand_flash_ready(struct mtd_info *mtd) in migor_nand_flash_ready()
|
/linux-4.4.14/arch/arm/mach-ixp4xx/ |
D | ixdp425-setup.c | 77 ixdp425_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in ixdp425_flash_nand_cmd_ctrl()
|
/linux-4.4.14/drivers/firmware/broadcom/ |
D | bcm47xx_nvram.c | 147 struct mtd_info *mtd; in nvram_init()
|