/linux-4.4.14/drivers/mtd/tests/ |
H A 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,
|
H A D | mtd_test.c | 9 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) mtdtest_erase_eraseblock() 33 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) is_block_bad() 45 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, mtdtest_scan_for_bad_eraseblocks() 65 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, mtdtest_erase_good_eraseblocks() 83 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) mtdtest_read() 100 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, mtdtest_write()
|
H A D | readtest.c | 38 static struct mtd_info *mtd;
|
H A D | stresstest.c | 44 static struct mtd_info *mtd;
|
/linux-4.4.14/drivers/mtd/ |
H A 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,
|
H A D | mtdcore.c | 55 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_cls_suspend() 62 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_cls_resume() 88 struct mtd_info *__mtd_next_device(int i) __mtd_next_device() 100 * the mtd_info will probably want to use the release() hook... 104 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_release() 114 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_type_show() 153 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_flags_show() 163 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_size_show() 174 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_erasesize_show() 184 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_writesize_show() 194 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_subpagesize_show() 205 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_oobsize_show() 215 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_numeraseregions_show() 226 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_name_show() 236 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_strength_show() 246 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bitflip_threshold_show() 255 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bitflip_threshold_store() 273 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_step_size_show() 283 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_stats_corrected_show() 294 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_stats_errors_show() 304 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_badblocks_show() 314 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bbtblocks_show() 349 unsigned mtd_mmap_capabilities(struct mtd_info *mtd) mtd_mmap_capabilities() 368 struct mtd_info *mtd; mtd_reboot_notifier() 370 mtd = container_of(n, struct mtd_info, reboot_notifier); mtd_reboot_notifier() 385 int add_mtd_device(struct mtd_info *mtd) add_mtd_device() 486 int del_mtd_device(struct mtd_info *mtd) del_mtd_device() 521 static int mtd_add_device_partitions(struct mtd_info *mtd, mtd_add_device_partitions() 547 static void mtd_set_dev_defaults(struct mtd_info *mtd) mtd_set_dev_defaults() 588 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, mtd_device_parse_register() 646 int mtd_device_unregister(struct mtd_info *master) mtd_device_unregister() 674 struct mtd_info *mtd; register_mtd_user() 700 struct mtd_info *mtd; unregister_mtd_user() 726 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) get_mtd_device() 728 struct mtd_info *ret = NULL, *other; get_mtd_device() 761 int __get_mtd_device(struct mtd_info *mtd) __get_mtd_device() 789 struct mtd_info *get_mtd_device_nm(const char *name) get_mtd_device_nm() 792 struct mtd_info *mtd = NULL, *other; get_mtd_device_nm() 819 void put_mtd_device(struct mtd_info *mtd) put_mtd_device() 828 void __put_mtd_device(struct mtd_info *mtd) __put_mtd_device() 847 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) mtd_erase() 866 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, mtd_point() 884 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) mtd_unpoint() 901 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, mtd_get_unmapped_area() 912 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, mtd_read() 936 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, mtd_write() 957 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, mtd_panic_write() 973 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) mtd_read_oob() 999 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, mtd_get_fact_prot_info() 1010 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, mtd_read_fact_prot_reg() 1022 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, mtd_get_user_prot_info() 1033 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, mtd_read_user_prot_reg() 1045 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, mtd_write_user_prot_reg() 1067 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) mtd_lock_user_prot_reg() 1078 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) mtd_lock() 1090 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) mtd_unlock() 1102 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) mtd_is_locked() 1114 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) mtd_block_isreserved() 1124 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) mtd_block_isbad() 1134 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) mtd_block_markbad() 1157 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, default_mtd_writev() 1189 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, mtd_writev() 1225 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) mtd_kmalloc_up_to() 1257 struct mtd_info *mtd; mtd_proc_show()
|
H A D | mtdconcat.c | 39 * Subdev points to an array of pointers to struct mtd_info objects 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, concat_read() 76 struct mtd_info *subdev = concat->subdev[i]; concat_read() 120 concat_write(struct mtd_info *mtd, loff_t to, size_t len, concat_write() 128 struct mtd_info *subdev = concat->subdev[i]; concat_write() 158 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, concat_writev() 186 struct mtd_info *subdev = concat->subdev[i]; concat_writev() 233 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) concat_read_oob() 242 struct mtd_info *subdev = concat->subdev[i]; concat_read_oob() 290 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) concat_write_oob() 302 struct mtd_info *subdev = concat->subdev[i]; concat_write_oob() 341 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) concat_dev_erase() 375 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) concat_erase() 378 struct mtd_info *subdev; concat_erase() 498 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) concat_lock() 504 struct mtd_info *subdev = concat->subdev[i]; concat_lock() 532 static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) concat_unlock() 538 struct mtd_info *subdev = concat->subdev[i]; concat_unlock() 566 static void concat_sync(struct mtd_info *mtd) concat_sync() 572 struct mtd_info *subdev = concat->subdev[i]; concat_sync() 577 static int concat_suspend(struct mtd_info *mtd) concat_suspend() 583 struct mtd_info *subdev = concat->subdev[i]; concat_suspend() 590 static void concat_resume(struct mtd_info *mtd) concat_resume() 596 struct mtd_info *subdev = concat->subdev[i]; concat_resume() 601 static int concat_block_isbad(struct mtd_info *mtd, loff_t ofs) concat_block_isbad() 610 struct mtd_info *subdev = concat->subdev[i]; concat_block_isbad() 624 static int concat_block_markbad(struct mtd_info *mtd, loff_t ofs) concat_block_markbad() 630 struct mtd_info *subdev = concat->subdev[i]; concat_block_markbad() 650 static unsigned long concat_get_unmapped_area(struct mtd_info *mtd, concat_get_unmapped_area() 659 struct mtd_info *subdev = concat->subdev[i]; concat_get_unmapped_area() 678 struct mtd_info *mtd_concat_create(struct mtd_info *subdev[], /* subdevices to concatenate */ mtd_concat_create() 703 concat->subdev = (struct mtd_info **) (concat + 1); mtd_concat_create() 929 void mtd_concat_destroy(struct mtd_info *mtd) mtd_concat_destroy()
|
H A 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, part_read() 80 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, part_point() 89 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) part_unpoint() 96 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, part_get_unmapped_area() 108 static int part_read_oob(struct mtd_info *mtd, loff_t from, part_read_oob() 146 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, part_read_user_prot_reg() 154 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, part_get_user_prot_info() 162 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, part_read_fact_prot_reg() 170 static int part_get_fact_prot_info(struct mtd_info *mtd, size_t len, part_get_fact_prot_info() 178 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, part_write() 186 static int part_panic_write(struct mtd_info *mtd, loff_t to, size_t len, part_panic_write() 194 static int part_write_oob(struct mtd_info *mtd, loff_t to, part_write_oob() 206 static int part_write_user_prot_reg(struct mtd_info *mtd, loff_t from, part_write_user_prot_reg() 214 static int part_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, part_lock_user_prot_reg() 221 static int part_writev(struct mtd_info *mtd, const struct kvec *vecs, part_writev() 229 static int part_erase(struct mtd_info *mtd, struct erase_info *instr) part_erase() 258 static int part_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) part_lock() 264 static int part_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) part_unlock() 270 static int part_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) part_is_locked() 276 static void part_sync(struct mtd_info *mtd) part_sync() 282 static int part_suspend(struct mtd_info *mtd) part_suspend() 288 static void part_resume(struct mtd_info *mtd) part_resume() 294 static int part_block_isreserved(struct mtd_info *mtd, loff_t ofs) part_block_isreserved() 301 static int part_block_isbad(struct mtd_info *mtd, loff_t ofs) part_block_isbad() 308 static int part_block_markbad(struct mtd_info *mtd, loff_t ofs) part_block_markbad() 331 int del_mtd_partitions(struct mtd_info *master) del_mtd_partitions() 352 static struct mtd_part *allocate_partition(struct mtd_info *master, allocate_partition() 560 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_partition_offset_show() 581 int mtd_add_partition(struct mtd_info *master, const char *name, mtd_add_partition() 621 int mtd_del_partition(struct mtd_info *master, int partno) mtd_del_partition() 655 int add_mtd_partitions(struct mtd_info *master, add_mtd_partitions() 751 * point to an array containing this number of &struct mtd_info objects. 753 int parse_mtd_partitions(struct mtd_info *master, const char *const *types, parse_mtd_partitions() 791 int mtd_is_partition(const struct mtd_info *mtd) mtd_is_partition() 809 uint64_t mtd_get_device_size(const struct mtd_info *mtd) mtd_get_device_size()
|
H A D | mtdsuper.c | 28 struct mtd_info *mtd = _mtd; get_sb_mtd_compare() 48 struct mtd_info *mtd = _mtd; get_sb_mtd_set() 61 struct mtd_info *mtd, mount_mtd_aux() 107 struct mtd_info *mtd; mount_mtd_nr() 142 struct mtd_info *mtd; mount_mtd()
|
H A D | mtdoops.c | 63 struct mtd_info *mtd; 95 struct mtd_info *mtd = cxt->mtd; mtdoops_erase_block() 158 struct mtd_info *mtd = cxt->mtd; mtdoops_workfunc_erase() 212 struct mtd_info *mtd = cxt->mtd; mtdoops_write() 252 struct mtd_info *mtd = cxt->mtd; find_next_position() 324 static void mtdoops_notify_add(struct mtd_info *mtd) mtdoops_notify_add() 376 static void mtdoops_notify_remove(struct mtd_info *mtd) mtdoops_notify_remove()
|
H A D | mtdblock.c | 64 static int erase_write (struct mtd_info *mtd, unsigned long pos, erase_write() 115 struct mtd_info *mtd = mtdblk->mbd.mtd; write_cached_data() 145 struct mtd_info *mtd = mtdblk->mbd.mtd; do_cached_write() 215 struct mtd_info *mtd = mtdblk->mbd.mtd; do_cached_read() 340 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) mtdblock_add_mtd()
|
H A D | ssfdc.c | 106 static int get_valid_cis_sector(struct mtd_info *mtd) get_valid_cis_sector() 152 static int read_physical_sector(struct mtd_info *mtd, uint8_t *sect_buf, read_physical_sector() 167 static int read_raw_oob(struct mtd_info *mtd, loff_t offs, uint8_t *buf) read_raw_oob() 248 struct mtd_info *mtd = ssfdc->mbd.mtd; build_logical_block_map() 287 static void ssfdcr_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) ssfdcr_add_mtd()
|
H A D | mtdchar.c | 51 struct mtd_info *mtd; 66 struct mtd_info *mtd; mtdchar_open() 116 struct mtd_info *mtd = mfi->mtd; mtdchar_close() 153 struct mtd_info *mtd = mfi->mtd; mtdchar_read() 239 struct mtd_info *mtd = mfi->mtd; mtdchar_write() 334 struct mtd_info *mtd = mfi->mtd; otp_select_filemode() 362 static int mtdchar_writeoob(struct file *file, struct mtd_info *mtd, mtdchar_writeoob() 411 static int mtdchar_readoob(struct file *file, struct mtd_info *mtd, mtdchar_readoob() 500 static int mtdchar_blkpg_ioctl(struct mtd_info *mtd, mtdchar_blkpg_ioctl() 535 static int mtdchar_write_ioctl(struct mtd_info *mtd, mtdchar_write_ioctl() 589 struct mtd_info *mtd = mfi->mtd; mtdchar_ioctl() 1015 struct mtd_info *mtd = mfi->mtd; mtdchar_compat_ioctl() 1097 struct mtd_info *mtd = mfi->mtd; mtdchar_get_unmapped_area() 1130 struct mtd_info *mtd = mfi->mtd; mtdchar_mmap()
|
H A D | ofpart.c | 28 static int parse_ofpart_partitions(struct mtd_info *master, parse_ofpart_partitions() 149 static int parse_ofoldpart_partitions(struct mtd_info *master, parse_ofoldpart_partitions()
|
H A D | mtdblock_ro.c | 49 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) mtdblock_add_mtd()
|
H A D | afs.c | 70 afs_read_footer(struct mtd_info *mtd, u_int *img_start, u_int *iis_start, afs_read_footer() 129 afs_read_iis(struct mtd_info *mtd, struct image_info_struct *iis, u_int ptr) afs_read_iis() 164 static int parse_afs_partitions(struct mtd_info *mtd, parse_afs_partitions()
|
H A D | inftlcore.c | 48 static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) inftl_add_mtd() 149 int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, inftl_read_oob() 169 int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, inftl_write_oob() 189 static int inftl_write(struct mtd_info *mtd, loff_t offs, size_t len, inftl_write() 254 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_foldchain() 478 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_findwriteunit() 640 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_trydeletechain() 762 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_deleteblock() 871 struct mtd_info *mtd = inftl->mbd.mtd; inftl_readblock()
|
H A D | mtdswap.c | 115 struct mtd_info *mtd; 550 struct mtd_info *mtd = d->mtd; mtdswap_erase_block() 666 struct mtd_info *mtd = d->mtd; mtdswap_write_block() 727 struct mtd_info *mtd = d->mtd; mtdswap_move_block() 926 struct mtd_info *mtd = d->mtd; mtdswap_eblk_passes() 1054 static unsigned int mtdswap_badblocks(struct mtd_info *mtd, uint64_t size) mtdswap_badblocks() 1131 struct mtd_info *mtd = d->mtd; mtdswap_readsect() 1352 struct mtd_info *mtd = d->mbd_dev->mtd; mtdswap_init() 1411 static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) mtdswap_add_mtd()
|
H A D | bcm47xxpart.c | 64 static const char *bcm47xxpart_trx_data_part_name(struct mtd_info *master, bcm47xxpart_trx_data_part_name() 84 static int bcm47xxpart_parse(struct mtd_info *master, bcm47xxpart_parse()
|
H A D | bcm63xxpart.c | 46 static int bcm63xx_detect_cfe(struct mtd_info *master) bcm63xx_detect_cfe() 70 static int bcm63xx_parse_cfe_partitions(struct mtd_info *master, bcm63xx_parse_cfe_partitions()
|
H A D | nftlcore.c | 48 static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) nftl_add_mtd() 136 int nftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, nftl_read_oob() 157 int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, nftl_write_oob() 180 static int nftl_write(struct mtd_info *mtd, loff_t offs, size_t len, nftl_write() 246 struct mtd_info *mtd = nftl->mbd.mtd; NFTL_foldchain() 539 struct mtd_info *mtd = nftl->mbd.mtd; NFTL_findwriteunit() 718 struct mtd_info *mtd = nftl->mbd.mtd; nftl_readblock()
|
H A D | nftlmount.c | 45 struct mtd_info *mtd = nftl->mbd.mtd; find_boot_record() 277 struct mtd_info *mtd = nftl->mbd.mtd; check_free_sectors() 313 struct mtd_info *mtd = nftl->mbd.mtd; NFTL_formatblock() 378 struct mtd_info *mtd = nftl->mbd.mtd; check_sectors_in_chain() 497 struct mtd_info *mtd = nftl->mbd.mtd; check_and_mark_free_block() 558 struct mtd_info *mtd = nftl->mbd.mtd; get_fold_mark() 577 struct mtd_info *mtd = s->mbd.mtd; NFTL_mount()
|
H A D | mtd_blkdevs.c | 498 static void blktrans_notify_remove(struct mtd_info *mtd) blktrans_notify_remove() 509 static void blktrans_notify_add(struct mtd_info *mtd) blktrans_notify_add() 527 struct mtd_info *mtd; register_mtd_blktrans()
|
H A D | ar7part.c | 45 static int create_mtd_partitions(struct mtd_info *master, create_mtd_partitions()
|
H A D | inftlmount.c | 51 struct mtd_info *mtd = inftl->mbd.mtd; find_boot_record() 340 struct mtd_info *mtd = inftl->mbd.mtd; check_free_sectors() 377 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_formatblock() 539 struct mtd_info *mtd = s->mbd.mtd; INFTL_mount()
|
H A D | sm_ftl.c | 240 struct mtd_info *mtd = ftl->trans->mtd; sm_read_sector() 323 struct mtd_info *mtd = ftl->trans->mtd; sm_write_sector() 459 struct mtd_info *mtd = ftl->trans->mtd; sm_erase_block() 571 static int sm_get_media_info(struct sm_ftl *ftl, struct mtd_info *mtd) sm_get_media_info() 1129 static void sm_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) sm_add_mtd()
|
H A D | redboot.c | 59 static int parse_redboot_partitions(struct mtd_info *master, parse_redboot_partitions()
|
/linux-4.4.14/include/linux/mtd/ |
H A D | mtd.h | 46 struct mtd_info *mtd; 112 struct module; /* only needed for owner field in mtd_info */ 114 struct mtd_info { struct 128 * Any driver registering a struct mtd_info must ensure a writesize of 189 int (*_erase) (struct mtd_info *mtd, struct erase_info *instr); 190 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, 192 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); 193 unsigned long (*_get_unmapped_area) (struct mtd_info *mtd, 197 int (*_read) (struct mtd_info *mtd, loff_t from, size_t len, 199 int (*_write) (struct mtd_info *mtd, loff_t to, size_t len, 201 int (*_panic_write) (struct mtd_info *mtd, loff_t to, size_t len, 203 int (*_read_oob) (struct mtd_info *mtd, loff_t from, 205 int (*_write_oob) (struct mtd_info *mtd, loff_t to, 207 int (*_get_fact_prot_info) (struct mtd_info *mtd, size_t len, 209 int (*_read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, 211 int (*_get_user_prot_info) (struct mtd_info *mtd, size_t len, 213 int (*_read_user_prot_reg) (struct mtd_info *mtd, loff_t from, 215 int (*_write_user_prot_reg) (struct mtd_info *mtd, loff_t to, 217 int (*_lock_user_prot_reg) (struct mtd_info *mtd, loff_t from, 219 int (*_writev) (struct mtd_info *mtd, const struct kvec *vecs, 221 void (*_sync) (struct mtd_info *mtd); 222 int (*_lock) (struct mtd_info *mtd, loff_t ofs, uint64_t len); 223 int (*_unlock) (struct mtd_info *mtd, loff_t ofs, uint64_t len); 224 int (*_is_locked) (struct mtd_info *mtd, loff_t ofs, uint64_t len); 225 int (*_block_isreserved) (struct mtd_info *mtd, loff_t ofs); 226 int (*_block_isbad) (struct mtd_info *mtd, loff_t ofs); 227 int (*_block_markbad) (struct mtd_info *mtd, loff_t ofs); 228 int (*_suspend) (struct mtd_info *mtd); 229 void (*_resume) (struct mtd_info *mtd); 230 void (*_reboot) (struct mtd_info *mtd); 235 int (*_get_device) (struct mtd_info *mtd); 236 void (*_put_device) (struct mtd_info *mtd); 257 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr); 258 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, 260 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 261 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, 263 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, 265 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, 267 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, 270 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops); 272 static inline int mtd_write_oob(struct mtd_info *mtd, loff_t to, mtd_write_oob() 283 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, 285 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, 287 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, 289 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, 291 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, 293 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len); 295 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, 298 static inline void mtd_sync(struct mtd_info *mtd) mtd_sync() 304 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 305 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 306 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len); 307 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs); 308 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs); 309 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs); 311 static inline int mtd_suspend(struct mtd_info *mtd) mtd_suspend() 316 static inline void mtd_resume(struct mtd_info *mtd) mtd_resume() 322 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) mtd_div_by_eb() 330 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) mtd_mod_by_eb() 337 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) mtd_div_by_ws() 345 static inline uint32_t mtd_mod_by_ws(uint64_t sz, struct mtd_info *mtd) mtd_mod_by_ws() 352 static inline int mtd_has_oob(const struct mtd_info *mtd) mtd_has_oob() 357 static inline int mtd_type_is_nand(const struct mtd_info *mtd) mtd_type_is_nand() 362 static inline int mtd_can_have_bb(const struct mtd_info *mtd) mtd_can_have_bb() 372 extern int mtd_device_parse_register(struct mtd_info *mtd, 379 extern int mtd_device_unregister(struct mtd_info *master); 380 extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); 381 extern int __get_mtd_device(struct mtd_info *mtd); 382 extern void __put_mtd_device(struct mtd_info *mtd); 383 extern struct mtd_info *get_mtd_device_nm(const char *name); 384 extern void put_mtd_device(struct mtd_info *mtd); 388 void (*add)(struct mtd_info *mtd); 389 void (*remove)(struct mtd_info *mtd); 396 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size); 412 unsigned mtd_mmap_capabilities(struct mtd_info *mtd);
|
H A D | mtdram.h | 5 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
|
H A D | nand_bch.h | 14 struct mtd_info; 24 int nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, mtd_nand_has_bch() 30 int nand_bch_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, mtd_nand_has_bch() 36 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, mtd_nand_has_bch() 48 nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, nand_bch_calculate_ecc() 55 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, nand_bch_correct_data() 62 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, nand_bch_init()
|
H A 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);
|
H A 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);
|
H A 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); 119 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs); 120 int (*scan_bbt)(struct mtd_info *mtd); 121 int (*enable)(struct mtd_info *mtd); 122 int (*disable)(struct mtd_info *mtd); 226 int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from, 230 int flexonenand_region(struct mtd_info *mtd, loff_t addr); 235 void (*mmcontrol)(struct mtd_info *mtd, int sync_read); 236 int (*read_bufferram)(struct mtd_info *mtd, int area,
|
H A 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);
|
H A 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, 502 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc, 504 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 506 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 508 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip, 510 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 512 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 515 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip, 517 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip, 519 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip, 521 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page); 522 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip, 648 uint8_t (*read_byte)(struct mtd_info *mtd); 649 u16 (*read_word)(struct mtd_info *mtd); 650 void (*write_byte)(struct mtd_info *mtd, uint8_t byte); 651 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len); 652 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len); 653 void (*select_chip)(struct mtd_info *mtd, int chip); 654 int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip); 655 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs); 656 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl); 657 int (*dev_ready)(struct mtd_info *mtd); 658 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column, 660 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this); 661 int (*erase)(struct mtd_info *mtd, int page); 662 int (*scan_bbt)(struct mtd_info *mtd); 663 int (*errstat)(struct mtd_info *mtd, struct nand_chip *this, int state, 665 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip, 668 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip, 670 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip, 672 int (*setup_read_retry)(struct mtd_info *mtd, int retry_mode); 835 extern int nand_default_bbt(struct mtd_info *mtd); 836 extern int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs); 837 extern int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs); 838 extern int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt); 839 extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, 841 extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len, 890 void (*hwcontrol)(struct mtd_info *mtd, int cmd); 891 int (*dev_ready)(struct mtd_info *mtd); 892 void (*select_chip)(struct mtd_info *mtd, int chip); 893 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl); 894 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len); 895 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len); 896 unsigned char (*read_byte)(struct mtd_info *mtd); 912 struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd) get_platform_nandchip()
|
H A 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,
|
H A 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);
|
H A 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,
|
H A D | gen_probe.h | 35 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
|
H A D | spi-nor.h | 120 struct mtd_info; 124 * @mtd: point to a mtd_info structure 155 struct mtd_info mtd; 196 * fill the mtd_info{} and the spi_nor{}.
|
H A 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,
|
H A D | qinfo.h | 88 struct mtd_info *lpddr_cmdset(struct map_info *);
|
H A 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);
|
H A D | map.h | 195 appropriate chip driver (if present) and return a struct mtd_info. 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);
|
H A D | sh_flctl.h | 146 struct mtd_info mtd; 187 static inline struct sh_flctl *mtd_to_flctl(struct mtd_info *mtdinfo) mtd_to_flctl()
|
H A D | doc2000.h | 214 struct mtd_info *nextdoc;
|
/linux-4.4.14/drivers/mtd/chips/ |
H A 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) map_absent_probe() 46 struct mtd_info *mtd; map_absent_probe() 71 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) map_absent_read() 76 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) map_absent_write() 81 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) map_absent_erase() 86 static void map_absent_sync(struct mtd_info *mtd) map_absent_sync() 91 static void map_absent_destroy(struct mtd_info *mtd) map_absent_destroy()
|
H A D | map_ram.c | 18 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 19 static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 20 static int mapram_erase (struct mtd_info *, struct erase_info *); 21 static void mapram_nop (struct mtd_info *); 22 static struct mtd_info *map_ram_probe(struct map_info *map); 23 static unsigned long mapram_unmapped_area(struct mtd_info *, unsigned long, 33 static struct mtd_info *map_ram_probe(struct map_info *map) map_ram_probe() 35 struct mtd_info *mtd; map_ram_probe() 90 static unsigned long mapram_unmapped_area(struct mtd_info *mtd, mapram_unmapped_area() 99 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) mapram_read() 108 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) mapram_write() 117 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) mapram_erase() 133 static void mapram_nop(struct mtd_info *mtd) mapram_nop()
|
H A D | map_rom.c | 18 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 19 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *); 20 static void maprom_nop (struct mtd_info *); 21 static struct mtd_info *map_rom_probe(struct map_info *map); 22 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info); 23 static unsigned long maprom_unmapped_area(struct mtd_info *, unsigned long, 41 static struct mtd_info *map_rom_probe(struct map_info *map) map_rom_probe() 43 struct mtd_info *mtd; map_rom_probe() 74 static unsigned long maprom_unmapped_area(struct mtd_info *mtd, maprom_unmapped_area() 83 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) maprom_read() 92 static void maprom_nop(struct mtd_info *mtd) maprom_nop() 97 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) maprom_write() 102 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info) maprom_erase()
|
H A D | chipreg.c | 57 struct mtd_info *do_map_probe(const char *name, struct map_info *map) do_map_probe() 60 struct mtd_info *ret; do_map_probe() 85 void map_destroy(struct mtd_info *mtd) map_destroy()
|
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) mtd_do_chip_probe() 23 struct mtd_info *mtd = NULL; 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, cfi_cmdset_unknown() 217 struct mtd_info *mtd; cfi_cmdset_unknown() 230 static struct mtd_info *check_cmd_set(struct map_info *map, int primary) check_cmd_set()
|
H A 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, 65 static int cfi_amdstd_secsi_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 66 static int cfi_amdstd_read_fact_prot_reg(struct mtd_info *, loff_t, size_t, 68 static int cfi_amdstd_read_user_prot_reg(struct mtd_info *, loff_t, size_t, 70 static int cfi_amdstd_write_user_prot_reg(struct mtd_info *, loff_t, size_t, 72 static int cfi_amdstd_lock_user_prot_reg(struct mtd_info *, loff_t, size_t); 74 static int cfi_amdstd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, 77 static void cfi_amdstd_destroy(struct mtd_info *); 79 struct mtd_info *cfi_cmdset_0002(struct map_info *, int); 80 static struct mtd_info *cfi_amdstd_setup (struct mtd_info *); 86 static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 87 static int cfi_atmel_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 89 static int cfi_ppb_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 90 static int cfi_ppb_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); 91 static int cfi_ppb_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len); 156 static void fixup_amd_bootblock(struct mtd_info *mtd) fixup_amd_bootblock() 205 static void fixup_use_write_buffers(struct mtd_info *mtd) fixup_use_write_buffers() 216 static void fixup_convert_atmel_pri(struct mtd_info *mtd) fixup_convert_atmel_pri() 247 static void fixup_use_secsi(struct mtd_info *mtd) fixup_use_secsi() 254 static void fixup_use_erase_chip(struct mtd_info *mtd) fixup_use_erase_chip() 269 static void fixup_use_atmel_lock(struct mtd_info *mtd) fixup_use_atmel_lock() 276 static void fixup_old_sst_eraseregion(struct mtd_info *mtd) fixup_old_sst_eraseregion() 290 static void fixup_sst39vf(struct mtd_info *mtd) fixup_sst39vf() 301 static void fixup_sst39vf_rev_b(struct mtd_info *mtd) fixup_sst39vf_rev_b() 314 static void fixup_sst38vf640x_sectorsize(struct mtd_info *mtd) fixup_sst38vf640x_sectorsize() 329 static void fixup_s29gl064n_sectors(struct mtd_info *mtd) fixup_s29gl064n_sectors() 340 static void fixup_s29gl032n_sectors(struct mtd_info *mtd) fixup_s29gl032n_sectors() 351 static void fixup_s29ns512p_sectors(struct mtd_info *mtd) fixup_s29ns512p_sectors() 512 struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary) cfi_cmdset_0002() 516 struct mtd_info *mtd; cfi_cmdset_0002() 673 struct mtd_info *cfi_cmdset_0006(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002"))); 674 struct mtd_info *cfi_cmdset_0701(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002"))); 679 static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) cfi_amdstd_setup() 1137 static int cfi_amdstd_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) cfi_amdstd_read() 1247 static int cfi_amdstd_secsi_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) cfi_amdstd_secsi_read() 1384 static int cfi_amdstd_otp_walk(struct mtd_info *mtd, loff_t from, size_t len, cfi_amdstd_otp_walk() 1502 static int cfi_amdstd_get_fact_prot_info(struct mtd_info *mtd, size_t len, cfi_amdstd_get_fact_prot_info() 1509 static int cfi_amdstd_get_user_prot_info(struct mtd_info *mtd, size_t len, cfi_amdstd_get_user_prot_info() 1516 static int cfi_amdstd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, cfi_amdstd_read_fact_prot_reg() 1524 static int cfi_amdstd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_amdstd_read_user_prot_reg() 1532 static int cfi_amdstd_write_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_amdstd_write_user_prot_reg() 1540 static int cfi_amdstd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_amdstd_lock_user_prot_reg() 1665 static int cfi_amdstd_write_words(struct mtd_info *mtd, loff_t to, size_t len, cfi_amdstd_write_words() 1920 static int cfi_amdstd_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, cfi_amdstd_write_buffers() 2130 static int cfi_amdstd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, cfi_amdstd_panic_write() 2414 static int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) cfi_amdstd_erase_varsize() 2433 static int cfi_amdstd_erase_chip(struct mtd_info *mtd, struct erase_info *instr) cfi_amdstd_erase_chip() 2517 static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_atmel_lock() 2522 static int cfi_atmel_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_atmel_unlock() 2615 static int __maybe_unused cfi_ppb_lock(struct mtd_info *mtd, loff_t ofs, cfi_ppb_lock() 2622 static int __maybe_unused cfi_ppb_unlock(struct mtd_info *mtd, loff_t ofs, cfi_ppb_unlock() 2720 static int __maybe_unused cfi_ppb_is_locked(struct mtd_info *mtd, loff_t ofs, cfi_ppb_is_locked() 2727 static void cfi_amdstd_sync (struct mtd_info *mtd) cfi_amdstd_sync() 2788 static int cfi_amdstd_suspend(struct mtd_info *mtd) cfi_amdstd_suspend() 2842 static void cfi_amdstd_resume(struct mtd_info *mtd) cfi_amdstd_resume() 2874 static int cfi_amdstd_reset(struct mtd_info *mtd) cfi_amdstd_reset() 2904 struct mtd_info *mtd; cfi_amdstd_reboot() 2906 mtd = container_of(nb, struct mtd_info, reboot_notifier); cfi_amdstd_reboot() 2912 static void cfi_amdstd_destroy(struct mtd_info *mtd) cfi_amdstd_destroy()
|
H A D | fwh_lock.h | 79 static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) fwh_lock_varsize() 90 static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) fwh_unlock_varsize() 100 static void fixup_use_fwh_lock(struct mtd_info *mtd) fixup_use_fwh_lock()
|
H A 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_t *); 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 *); 73 static int cfi_intelext_read_user_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 74 static int cfi_intelext_write_user_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); 75 static int cfi_intelext_lock_user_prot_reg (struct mtd_info *, loff_t, size_t); 76 static int cfi_intelext_get_fact_prot_info(struct mtd_info *, size_t, 78 static int cfi_intelext_get_user_prot_info(struct mtd_info *, size_t, 81 static int cfi_intelext_suspend (struct mtd_info *); 82 static void cfi_intelext_resume (struct mtd_info *); 85 static void cfi_intelext_destroy(struct mtd_info *); 87 struct mtd_info *cfi_cmdset_0001(struct map_info *, int); 89 static struct mtd_info *cfi_intelext_setup (struct mtd_info *); 90 static int cfi_intelext_partition_fixup(struct mtd_info *, struct cfi_private **); 92 static int cfi_intelext_point (struct mtd_info *mtd, loff_t from, size_t len, 94 static int cfi_intelext_unpoint(struct mtd_info *mtd, loff_t from, size_t len); 169 static void fixup_convert_atmel_pri(struct mtd_info *mtd) fixup_convert_atmel_pri() 209 static void fixup_at49bv640dx_lock(struct mtd_info *mtd) fixup_at49bv640dx_lock() 221 static void fixup_intel_strataflash(struct mtd_info *mtd) fixup_intel_strataflash() 234 static void fixup_no_write_suspend(struct mtd_info *mtd) fixup_no_write_suspend() 247 static void fixup_st_m28w320ct(struct mtd_info *mtd) fixup_st_m28w320ct() 256 static void fixup_st_m28w320cb(struct mtd_info *mtd) fixup_st_m28w320cb() 276 static void fixup_LH28F640BF(struct mtd_info *mtd) fixup_LH28F640BF() 296 static void fixup_use_point(struct mtd_info *mtd) fixup_use_point() 305 static void fixup_use_write_buffers(struct mtd_info *mtd) fixup_use_write_buffers() 319 static void fixup_unlock_powerup_lock(struct mtd_info *mtd) fixup_unlock_powerup_lock() 467 struct mtd_info *cfi_cmdset_0001(struct map_info *map, int primary) cfi_cmdset_0001() 470 struct mtd_info *mtd; cfi_cmdset_0001() 580 struct mtd_info *cfi_cmdset_0003(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0001"))); 581 struct mtd_info *cfi_cmdset_0200(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0001"))); 586 static struct mtd_info *cfi_intelext_setup(struct mtd_info *mtd) cfi_intelext_setup() 659 static int cfi_intelext_partition_fixup(struct mtd_info *mtd, cfi_intelext_partition_fixup() 1348 static int cfi_intelext_point(struct mtd_info *mtd, loff_t from, size_t len, cfi_intelext_point() 1401 static int cfi_intelext_unpoint(struct mtd_info *mtd, loff_t from, size_t len) cfi_intelext_unpoint() 1480 static int cfi_intelext_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) cfi_intelext_read() 1592 static int cfi_intelext_write_words (struct mtd_info *mtd, loff_t to , size_t len, size_t *retlen, const u_char *buf) cfi_intelext_write_words() 1837 static int cfi_intelext_writev (struct mtd_info *mtd, const struct kvec *vecs, cfi_intelext_writev() 1889 static int cfi_intelext_write_buffers (struct mtd_info *mtd, loff_t to, cfi_intelext_write_buffers() 1988 static int cfi_intelext_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) cfi_intelext_erase_varsize() 2006 static void cfi_intelext_sync (struct mtd_info *mtd) cfi_intelext_sync() 2139 static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_intelext_lock() 2163 static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_intelext_unlock() 2187 static int cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs, cfi_intelext_is_locked() 2274 static int cfi_intelext_otp_walk(struct mtd_info *mtd, loff_t from, size_t len, cfi_intelext_otp_walk() 2408 static int cfi_intelext_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, cfi_intelext_read_fact_prot_reg() 2416 static int cfi_intelext_read_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_intelext_read_user_prot_reg() 2424 static int cfi_intelext_write_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_intelext_write_user_prot_reg() 2432 static int cfi_intelext_lock_user_prot_reg(struct mtd_info *mtd, cfi_intelext_lock_user_prot_reg() 2440 static int cfi_intelext_get_fact_prot_info(struct mtd_info *mtd, size_t len, cfi_intelext_get_fact_prot_info() 2448 static int cfi_intelext_get_user_prot_info(struct mtd_info *mtd, size_t len, cfi_intelext_get_user_prot_info() 2457 static void cfi_intelext_save_locks(struct mtd_info *mtd) cfi_intelext_save_locks() 2483 static int cfi_intelext_suspend(struct mtd_info *mtd) cfi_intelext_suspend() 2557 static void cfi_intelext_restore_locks(struct mtd_info *mtd) cfi_intelext_restore_locks() 2577 static void cfi_intelext_resume(struct mtd_info *mtd) cfi_intelext_resume() 2608 static int cfi_intelext_reset(struct mtd_info *mtd) cfi_intelext_reset() 2636 struct mtd_info *mtd; cfi_intelext_reboot() 2638 mtd = container_of(nb, struct mtd_info, reboot_notifier); cfi_intelext_reboot() 2643 static void cfi_intelext_destroy(struct mtd_info *mtd) cfi_intelext_destroy()
|
H A 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 *); 50 struct mtd_info *cfi_cmdset_0020(struct map_info *, int); 52 static struct mtd_info *cfi_staa_setup (struct map_info *); 113 struct mtd_info *cfi_cmdset_0020(struct map_info *map, int primary) cfi_cmdset_0020() 166 static struct mtd_info *cfi_staa_setup(struct map_info *map) cfi_staa_setup() 169 struct mtd_info *mtd; cfi_staa_setup() 382 static int cfi_staa_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) cfi_staa_read() 605 static int cfi_staa_write_buffers (struct mtd_info *mtd, loff_t to, cfi_staa_write_buffers() 662 cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, cfi_staa_writev() 889 static int cfi_staa_erase_varsize(struct mtd_info *mtd, cfi_staa_erase_varsize() 974 static void cfi_staa_sync (struct mtd_info *mtd) cfi_staa_sync() 1127 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_staa_lock() 1273 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_staa_unlock() 1312 static int cfi_staa_suspend(struct mtd_info *mtd) cfi_staa_suspend() 1368 static void cfi_staa_resume(struct mtd_info *mtd) cfi_staa_resume() 1392 static void cfi_staa_destroy(struct mtd_info *mtd) cfi_staa_destroy()
|
H A D | cfi_probe.c | 31 struct mtd_info *cfi_probe(struct map_info *map); 389 struct mtd_info *cfi_probe(struct map_info *map) cfi_probe()
|
H A D | cfi_util.c | 336 void cfi_fixup(struct mtd_info *mtd, struct cfi_fixup *fixups) cfi_fixup() 352 int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob, cfi_varsize_frob()
|
/linux-4.4.14/drivers/mtd/devices/ |
H A D | mtdram.c | 33 static struct mtd_info *mtd_info; variable in typeref:struct:mtd_info 35 static int check_offs_len(struct mtd_info *mtd, loff_t ofs, uint64_t len) check_offs_len() 54 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) ram_erase() 64 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, ram_point() 72 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) ram_unpoint() 82 static unsigned long ram_get_unmapped_area(struct mtd_info *mtd, ram_get_unmapped_area() 90 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, ram_read() 98 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, ram_write() 108 if (mtd_info) { cleanup_mtdram() 109 mtd_device_unregister(mtd_info); cleanup_mtdram() 110 vfree(mtd_info->priv); cleanup_mtdram() 111 kfree(mtd_info); cleanup_mtdram() 115 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, mtdram_init_device() 153 mtd_info = kmalloc(sizeof(struct mtd_info), GFP_KERNEL); init_mtdram() 154 if (!mtd_info) init_mtdram() 159 kfree(mtd_info); init_mtdram() 160 mtd_info = NULL; init_mtdram() 163 err = mtdram_init_device(mtd_info, addr, MTDRAM_TOTAL_SIZE, "mtdram test device"); init_mtdram() 166 kfree(mtd_info); init_mtdram() 167 mtd_info = NULL; init_mtdram() 170 memset(mtd_info->priv, 0xff, MTDRAM_TOTAL_SIZE); init_mtdram()
|
H A 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) slram_erase() 96 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, slram_point() 106 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) slram_unpoint() 111 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, slram_read() 121 static int slram_write(struct mtd_info *mtd, loff_t to, size_t len, slram_write() 147 (*curmtd)->mtdinfo = kzalloc(sizeof(struct mtd_info), GFP_KERNEL); register_device()
|
H A D | powernv_flash.c | 40 struct mtd_info mtd; 50 static int powernv_flash_async_op(struct mtd_info *mtd, enum flash_op op, powernv_flash_async_op() 119 static int powernv_flash_read(struct mtd_info *mtd, loff_t from, size_t len, powernv_flash_read() 135 static int powernv_flash_write(struct mtd_info *mtd, loff_t to, size_t len, powernv_flash_write() 147 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) powernv_flash_erase() 168 * powernv_flash_set_driver_info - Fill the mtd_info structure and docg3 173 struct mtd_info *mtd) powernv_flash_set_driver_info()
|
H A D | bcm47xxsflash.c | 67 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) bcm47xxsflash_erase() 103 static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, bcm47xxsflash_read() 119 static int bcm47xxsflash_write_st(struct mtd_info *mtd, u32 offset, size_t len, bcm47xxsflash_write_st() 164 static int bcm47xxsflash_write_at(struct mtd_info *mtd, u32 offset, size_t len, bcm47xxsflash_write_at() 207 static int bcm47xxsflash_write(struct mtd_info *mtd, loff_t to, size_t len, bcm47xxsflash_write() 243 struct mtd_info *mtd = &b47s->mtd; bcm47xxsflash_fill_mtd()
|
H A D | phram.c | 30 struct mtd_info mtd; 36 static int phram_erase(struct mtd_info *mtd, struct erase_info *instr) phram_erase() 52 static int phram_point(struct mtd_info *mtd, loff_t from, size_t len, phram_point() 60 static int phram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) phram_unpoint() 65 static int phram_read(struct mtd_info *mtd, loff_t from, size_t len, phram_read() 75 static int phram_write(struct mtd_info *mtd, loff_t to, size_t len, phram_write()
|
H A D | ms02-nv.c | 54 static struct mtd_info *root_ms02nv_mtd; 57 static int ms02nv_read(struct mtd_info *mtd, loff_t from, ms02nv_read() 67 static int ms02nv_write(struct mtd_info *mtd, loff_t to, ms02nv_write() 110 struct mtd_info *mtd; ms02nv_init_one() 252 struct mtd_info *mtd = root_ms02nv_mtd; ms02nv_remove_one()
|
H A D | mtd_dataflash.c | 96 struct mtd_info mtd; 149 static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) dataflash_erase() 235 static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len, dataflash_read() 300 static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, dataflash_write() 443 static int dataflash_get_otp_info(struct mtd_info *mtd, size_t len, dataflash_get_otp_info() 502 static int dataflash_read_fact_otp(struct mtd_info *mtd, dataflash_read_fact_otp() 519 static int dataflash_read_user_otp(struct mtd_info *mtd, dataflash_read_user_otp() 536 static int dataflash_write_user_otp(struct mtd_info *mtd, dataflash_write_user_otp() 592 static char *otp_setup(struct mtd_info *device, char revision) otp_setup() 610 static char *otp_setup(struct mtd_info *device, char revision) otp_setup() 626 struct mtd_info *device; add_dataflash_otp()
|
H A D | bcm47xxsflash.h | 73 struct mtd_info mtd;
|
H A D | sst25l.c | 53 struct mtd_info mtd; 170 static int sst25l_erase(struct mtd_info *mtd, struct erase_info *instr) sst25l_erase() 213 static int sst25l_read(struct mtd_info *mtd, loff_t from, size_t len, sst25l_read() 256 static int sst25l_write(struct mtd_info *mtd, loff_t to, size_t len, sst25l_write()
|
H A D | block2mtd.c | 38 struct mtd_info mtd; 84 static int block2mtd_erase(struct mtd_info *mtd, struct erase_info *instr) block2mtd_erase() 106 static int block2mtd_read(struct mtd_info *mtd, loff_t from, size_t len, block2mtd_read() 180 static int block2mtd_write(struct mtd_info *mtd, loff_t to, size_t len, block2mtd_write() 196 static void block2mtd_sync(struct mtd_info *mtd) block2mtd_sync()
|
H A 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) pmc551_erase() 196 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, pmc551_point() 222 static int pmc551_unpoint(struct mtd_info *mtd, loff_t from, size_t len) pmc551_unpoint() 230 static int pmc551_read(struct mtd_info *mtd, loff_t from, size_t len, pmc551_read() 287 static int pmc551_write(struct mtd_info *mtd, loff_t to, size_t len, pmc551_write() 665 struct mtd_info *mtd; init_pmc551() 727 mtd = kzalloc(sizeof(struct mtd_info), GFP_KERNEL); init_pmc551() 832 struct mtd_info *mtd; cleanup_pmc551()
|
H A D | docg3.c | 857 static int doc_read_oob(struct mtd_info *mtd, loff_t from, doc_read_oob() 985 static int doc_read(struct mtd_info *mtd, loff_t from, size_t len, doc_read() 1030 static int doc_block_isbad(struct mtd_info *mtd, loff_t from) doc_block_isbad() 1201 static int doc_erase(struct mtd_info *mtd, struct erase_info *info) doc_erase() 1411 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, doc_write_oob() 1507 static int doc_write(struct mtd_info *mtd, loff_t to, size_t len, doc_write() 1532 struct mtd_info **docg3_floors = platform_get_drvdata(pdev); sysfs_dev2docg3() 1824 * doc_set_driver_info - Fill the mtd_info structure and docg3 structure 1828 static int __init doc_set_driver_info(int chip_id, struct mtd_info *mtd) doc_set_driver_info() 1877 * Returns a mtd_info struct if there is a device, ENODEV if none found, ENOMEM 1881 static struct mtd_info * __init doc_probe_device() 1887 struct mtd_info *mtd; doc_probe_device() 1893 mtd = kzalloc(sizeof(struct mtd_info), GFP_KERNEL); doc_probe_device() 1952 static void doc_release_device(struct mtd_info *mtd) doc_release_device() 1973 struct mtd_info **docg3_floors, *mtd; docg3_resume() 2000 struct mtd_info **docg3_floors, *mtd; docg3_suspend() 2051 struct mtd_info *mtd; docg3_probe()
|
H A D | lart.c | 361 static int flash_erase (struct mtd_info *mtd,struct erase_info *instr) flash_erase() 434 static int flash_read (struct mtd_info *mtd,loff_t from,size_t len,size_t *retlen,u_char *buf) flash_read() 509 static int flash_write (struct mtd_info *mtd,loff_t to,size_t len,size_t *retlen,const u_char *buf) flash_write() 569 static struct mtd_info mtd;
|
H A D | ms02-nv.h | 95 struct mtd_info *next;
|
H A D | spear_smi.c | 199 struct mtd_info mtd; 208 static inline struct spear_snor_flash *get_flash_data(struct mtd_info *mtd) get_flash_data() 494 static int spear_mtd_erase(struct mtd_info *mtd, struct erase_info *e_info) spear_mtd_erase() 548 static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, spear_mtd_read() 641 static int spear_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, spear_mtd_write()
|
/linux-4.4.14/drivers/mtd/nand/bcm47xxnflash/ |
H A D | bcm47xxnflash.h | 15 struct mtd_info mtd;
|
H A D | ops_bcm4706.c | 89 static void bcm47xxnflash_ops_bcm4706_read(struct mtd_info *mtd, uint8_t *buf, bcm47xxnflash_ops_bcm4706_read() 139 static void bcm47xxnflash_ops_bcm4706_write(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_write() 173 static void bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct mtd_info *mtd, int cmd, bcm47xxnflash_ops_bcm4706_cmd_ctrl() 194 static void bcm47xxnflash_ops_bcm4706_select_chip(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_select_chip() 200 static int bcm47xxnflash_ops_bcm4706_dev_ready(struct mtd_info *mtd) bcm47xxnflash_ops_bcm4706_dev_ready() 215 static void bcm47xxnflash_ops_bcm4706_cmdfunc(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_cmdfunc() 313 static u8 bcm47xxnflash_ops_bcm4706_read_byte(struct mtd_info *mtd) bcm47xxnflash_ops_bcm4706_read_byte() 341 static void bcm47xxnflash_ops_bcm4706_read_buf(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_read_buf() 357 static void bcm47xxnflash_ops_bcm4706_write_buf(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_write_buf()
|
/linux-4.4.14/drivers/mtd/nand/ |
H A D | socrates_nand.c | 33 struct mtd_info mtd; 44 static void socrates_nand_write_buf(struct mtd_info *mtd, socrates_nand_write_buf() 64 static void socrates_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) socrates_nand_read_buf() 84 static uint8_t socrates_nand_read_byte(struct mtd_info *mtd) socrates_nand_read_byte() 95 static uint16_t socrates_nand_read_word(struct mtd_info *mtd) socrates_nand_read_word() 105 static void socrates_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, socrates_nand_cmd_ctrl() 131 static int socrates_nand_device_ready(struct mtd_info *mtd) socrates_nand_device_ready() 147 struct mtd_info *mtd; socrates_nand_probe() 220 struct mtd_info *mtd = &host->mtd; socrates_nand_remove()
|
H A 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) nfc_read() 145 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) nfc_write() 154 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) nfc_set() 160 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) nfc_clear() 166 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) mpc5121_nfc_send_addr() 174 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) mpc5121_nfc_send_cmd() 182 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) mpc5121_nfc_send_prog_page() 190 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) mpc5121_nfc_send_read_page() 198 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) mpc5121_nfc_send_read_id() 206 static inline void mpc5121_nfc_send_read_status(struct mtd_info *mtd) mpc5121_nfc_send_read_status() 216 struct mtd_info *mtd = data; mpc5121_nfc_irq() 227 static void mpc5121_nfc_done(struct mtd_info *mtd) mpc5121_nfc_done() 247 static void mpc5121_nfc_addr_cycle(struct mtd_info *mtd, int column, int page) mpc5121_nfc_addr_cycle() 268 static void mpc5121_nfc_select_chip(struct mtd_info *mtd, int chip) mpc5121_nfc_select_chip() 282 static int ads5121_chipselect_init(struct mtd_info *mtd) ads5121_chipselect_init() 304 static void ads5121_select_chip(struct mtd_info *mtd, int chip) ads5121_select_chip() 323 static int mpc5121_nfc_dev_ready(struct mtd_info *mtd) mpc5121_nfc_dev_ready() 333 static void mpc5121_nfc_command(struct mtd_info *mtd, unsigned command, mpc5121_nfc_command() 406 static void mpc5121_nfc_copy_spare(struct mtd_info *mtd, uint offset, mpc5121_nfc_copy_spare() 458 static void mpc5121_nfc_buf_copy(struct mtd_info *mtd, u_char *buf, int len, mpc5121_nfc_buf_copy() 498 static void mpc5121_nfc_read_buf(struct mtd_info *mtd, u_char *buf, int len) mpc5121_nfc_read_buf() 504 static void mpc5121_nfc_write_buf(struct mtd_info *mtd, mpc5121_nfc_write_buf() 511 static u8 mpc5121_nfc_read_byte(struct mtd_info *mtd) mpc5121_nfc_read_byte() 521 static u16 mpc5121_nfc_read_word(struct mtd_info *mtd) mpc5121_nfc_read_word() 537 static int mpc5121_nfc_read_hw_config(struct mtd_info *mtd) mpc5121_nfc_read_hw_config() 616 static void mpc5121_nfc_free(struct device *dev, struct mtd_info *mtd) mpc5121_nfc_free() 635 struct mtd_info *mtd; mpc5121_nfc_probe() 833 struct mtd_info *mtd = dev_get_drvdata(dev); mpc5121_nfc_remove()
|
H A D | gpio.c | 38 struct mtd_info mtd_info; member in struct:gpiomtd 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) gpio_nand_cmd_ctrl() 91 static int gpio_nand_devready(struct mtd_info *mtd) gpio_nand_devready() 198 nand_release(&gpiomtd->mtd_info); gpio_nand_remove() 277 gpiomtd->mtd_info.priv = chip; gpio_nand_probe() 278 gpiomtd->mtd_info.dev.parent = &pdev->dev; gpio_nand_probe() 285 if (nand_scan(&gpiomtd->mtd_info, 1)) { gpio_nand_probe() 292 gpiomtd->mtd_info.size); gpio_nand_probe() 295 ret = mtd_device_parse_register(&gpiomtd->mtd_info, NULL, &ppdata, gpio_nand_probe()
|
H A D | cmx270_nand.c | 37 static struct mtd_info *cmx270_nand_mtd; 54 static u_char cmx270_read_byte(struct mtd_info *mtd) cmx270_read_byte() 61 static void cmx270_write_buf(struct mtd_info *mtd, const u_char *buf, int len) cmx270_write_buf() 70 static void cmx270_read_buf(struct mtd_info *mtd, u_char *buf, int len) cmx270_read_buf() 94 static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, cmx270_hwcontrol() 128 static int cmx270_device_ready(struct mtd_info *mtd) cmx270_device_ready() 163 cmx270_nand_mtd = kzalloc(sizeof(struct mtd_info) + cmx270_init()
|
H A 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) mtd_to_platdev() 106 static uint8_t txx9ndfmc_read_byte(struct mtd_info *mtd) txx9ndfmc_read_byte() 113 static void txx9ndfmc_write_buf(struct mtd_info *mtd, const uint8_t *buf, txx9ndfmc_write_buf() 126 static void txx9ndfmc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) txx9ndfmc_read_buf() 135 static void txx9ndfmc_cmd_ctrl(struct mtd_info *mtd, int cmd, txx9ndfmc_cmd_ctrl() 167 static int txx9ndfmc_dev_ready(struct mtd_info *mtd) txx9ndfmc_dev_ready() 174 static int txx9ndfmc_calculate_ecc(struct mtd_info *mtd, const uint8_t *dat, txx9ndfmc_calculate_ecc() 195 static int txx9ndfmc_correct_data(struct mtd_info *mtd, unsigned char *buf, txx9ndfmc_correct_data() 215 static void txx9ndfmc_enable_hwecc(struct mtd_info *mtd, int mode) txx9ndfmc_enable_hwecc() 258 static int txx9ndfmc_nand_scan(struct mtd_info *mtd) txx9ndfmc_nand_scan() 316 struct mtd_info *mtd; txx9ndfmc_probe() 388 struct mtd_info *mtd = drvdata->mtds[i]; txx9ndfmc_remove()
|
H A D | orion_nand.c | 26 static void orion_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) orion_nand_cmd_ctrl() 48 static void orion_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) orion_nand_read_buf() 78 struct mtd_info *mtd; orion_nand_probe() 89 sizeof(struct nand_chip) + sizeof(struct mtd_info), orion_nand_probe() 93 mtd = (struct mtd_info *)(nc + 1); orion_nand_probe() 185 struct mtd_info *mtd = platform_get_drvdata(pdev); orion_nand_remove()
|
H A 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) pasemi_read_buf() 58 static void pasemi_write_buf(struct mtd_info *mtd, const u_char *buf, int len) pasemi_write_buf() 70 static void pasemi_hwcontrol(struct mtd_info *mtd, int cmd, pasemi_hwcontrol() 88 int pasemi_device_ready(struct mtd_info *mtd) pasemi_device_ready() 113 pasemi_nand_mtd = kzalloc(sizeof(struct mtd_info) + pasemi_nand_probe()
|
H A D | cs553x_nand.c | 98 static void cs553x_read_buf(struct mtd_info *mtd, u_char *buf, int len) cs553x_read_buf() 110 static void cs553x_write_buf(struct mtd_info *mtd, const u_char *buf, int len) cs553x_write_buf() 122 static unsigned char cs553x_read_byte(struct mtd_info *mtd) cs553x_read_byte() 128 static void cs553x_write_byte(struct mtd_info *mtd, u_char byte) cs553x_write_byte() 140 static void cs553x_hwcontrol(struct mtd_info *mtd, int cmd, cs553x_hwcontrol() 153 static int cs553x_device_ready(struct mtd_info *mtd) cs553x_device_ready() 162 static void cs_enable_hwecc(struct mtd_info *mtd, int mode) cs_enable_hwecc() 170 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) cs_calculate_ecc() 184 static struct mtd_info *cs553x_mtd[4]; 190 struct mtd_info *new_mtd; cs553x_init_one() 200 new_mtd = kzalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL); cs553x_init_one() 333 struct mtd_info *mtd = cs553x_mtd[i]; cs553x_cleanup()
|
H A 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) au_read_byte() 55 static void au_write_byte(struct mtd_info *mtd, u_char byte) au_write_byte() 68 static u_char au_read_byte16(struct mtd_info *mtd) au_read_byte16() 83 static void au_write_byte16(struct mtd_info *mtd, u_char byte) au_write_byte16() 96 static u16 au_read_word(struct mtd_info *mtd) au_read_word() 112 static void au_write_buf(struct mtd_info *mtd, const u_char *buf, int len) au_write_buf() 131 static void au_read_buf(struct mtd_info *mtd, u_char *buf, int len) au_read_buf() 150 static void au_write_buf16(struct mtd_info *mtd, const u_char *buf, int len) au_write_buf16() 172 static void au_read_buf16(struct mtd_info *mtd, u_char *buf, int len) au_read_buf16() 198 static void au1550_hwcontrol(struct mtd_info *mtd, int cmd) au1550_hwcontrol() 240 int au1550_device_ready(struct mtd_info *mtd) au1550_device_ready() 257 static void au1550_select_chip(struct mtd_info *mtd, int chip) au1550_select_chip() 268 static void au1550_command(struct mtd_info *mtd, unsigned command, int column, int page_addr) au1550_command()
|
H A D | bf5xx_nand.c | 145 struct mtd_info mtd; 161 static struct bf5xx_nand_info *mtd_to_nand_info(struct mtd_info *mtd) mtd_to_nand_info() 185 static void bf5xx_nand_hwcontrol(struct mtd_info *mtd, int cmd, bf5xx_nand_hwcontrol() 206 static int bf5xx_nand_devready(struct mtd_info *mtd) bf5xx_nand_devready() 225 static int bf5xx_nand_correct_data_256(struct mtd_info *mtd, u_char *dat, bf5xx_nand_correct_data_256() 304 static int bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat, bf5xx_nand_correct_data() 323 static void bf5xx_nand_enable_hwecc(struct mtd_info *mtd, int mode) bf5xx_nand_enable_hwecc() 328 static int bf5xx_nand_calculate_ecc(struct mtd_info *mtd, bf5xx_nand_calculate_ecc() 368 static void bf5xx_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) bf5xx_nand_read_buf() 397 static uint8_t bf5xx_nand_read_byte(struct mtd_info *mtd) bf5xx_nand_read_byte() 406 static void bf5xx_nand_write_buf(struct mtd_info *mtd, bf5xx_nand_write_buf() 420 static void bf5xx_nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) bf5xx_nand_read_buf16() 438 static void bf5xx_nand_write_buf16(struct mtd_info *mtd, bf5xx_nand_write_buf16() 465 static void bf5xx_nand_dma_rw(struct mtd_info *mtd, bf5xx_nand_dma_rw() 531 static void bf5xx_nand_dma_read_buf(struct mtd_info *mtd, bf5xx_nand_dma_read_buf() 545 static void bf5xx_nand_dma_write_buf(struct mtd_info *mtd, bf5xx_nand_dma_write_buf() 559 static int bf5xx_nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, bf5xx_nand_read_page_raw() 568 static int bf5xx_nand_write_page_raw(struct mtd_info *mtd, bf5xx_nand_write_page_raw() 663 struct mtd_info *mtd = &info->mtd; bf5xx_nand_add_partition() 686 static int bf5xx_nand_scan(struct mtd_info *mtd) bf5xx_nand_scan() 728 struct mtd_info *mtd = NULL; bf5xx_nand_probe()
|
H A 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) ams_delta_write_byte() 77 static u_char ams_delta_read_byte(struct mtd_info *mtd) ams_delta_read_byte() 92 static void ams_delta_write_buf(struct mtd_info *mtd, const u_char *buf, ams_delta_write_buf() 101 static void ams_delta_read_buf(struct mtd_info *mtd, u_char *buf, int len) ams_delta_read_buf() 117 static void ams_delta_hwcontrol(struct mtd_info *mtd, int cmd, ams_delta_hwcontrol() 134 static int ams_delta_nand_ready(struct mtd_info *mtd) ams_delta_nand_ready() 186 ams_delta_mtd = kzalloc(sizeof(struct mtd_info) + ams_delta_init()
|
H A D | fsl_upm.c | 34 struct mtd_info mtd; 50 static inline struct fsl_upm_nand *to_fsl_upm_nand(struct mtd_info *mtdinfo) to_fsl_upm_nand() 55 static int fun_chip_ready(struct mtd_info *mtd) fun_chip_ready() 80 static void fun_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) fun_cmd_ctrl() 110 static void fun_select_chip(struct mtd_info *mtd, int mchip_nr) fun_select_chip() 126 static uint8_t fun_read_byte(struct mtd_info *mtd) fun_read_byte() 133 static void fun_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) fun_read_buf() 142 static void fun_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) fun_write_buf()
|
H A D | ndfc.c | 40 struct mtd_info mtd; 48 static void ndfc_select_chip(struct mtd_info *mtd, int chip) ndfc_select_chip() 63 static void ndfc_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) ndfc_hwcontrol() 77 static int ndfc_ready(struct mtd_info *mtd) ndfc_ready() 85 static void ndfc_enable_hwecc(struct mtd_info *mtd, int mode) ndfc_enable_hwecc() 97 static int ndfc_calculate_ecc(struct mtd_info *mtd, ndfc_calculate_ecc() 122 static void ndfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) ndfc_read_buf() 132 static void ndfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) ndfc_write_buf()
|
H A 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) doc2000_write_byte() 312 static u_char doc2000_read_byte(struct mtd_info *mtd) doc2000_read_byte() 327 static void doc2000_writebuf(struct mtd_info *mtd, const u_char *buf, int len) doc2000_writebuf() 344 static void doc2000_readbuf(struct mtd_info *mtd, u_char *buf, int len) doc2000_readbuf() 359 static void doc2000_readbuf_dword(struct mtd_info *mtd, u_char *buf, int len) doc2000_readbuf_dword() 380 static uint16_t __init doc200x_ident_chip(struct mtd_info *mtd, int nr) doc200x_ident_chip() 426 static void __init doc2000_count_chips(struct mtd_info *mtd) doc2000_count_chips() 448 static int doc200x_wait(struct mtd_info *mtd, struct nand_chip *this) doc200x_wait() 462 static void doc2001_write_byte(struct mtd_info *mtd, u_char datum) doc2001_write_byte() 473 static u_char doc2001_read_byte(struct mtd_info *mtd) doc2001_read_byte() 487 static void doc2001_writebuf(struct mtd_info *mtd, const u_char *buf, int len) doc2001_writebuf() 500 static void doc2001_readbuf(struct mtd_info *mtd, u_char *buf, int len) doc2001_readbuf() 517 static u_char doc2001plus_read_byte(struct mtd_info *mtd) doc2001plus_read_byte() 532 static void doc2001plus_writebuf(struct mtd_info *mtd, const u_char *buf, int len) doc2001plus_writebuf() 550 static void doc2001plus_readbuf(struct mtd_info *mtd, u_char *buf, int len) doc2001plus_readbuf() 581 static void doc2001plus_select_chip(struct mtd_info *mtd, int chip) doc2001plus_select_chip() 608 static void doc200x_select_chip(struct mtd_info *mtd, int chip) doc200x_select_chip() 638 static void doc200x_hwcontrol(struct mtd_info *mtd, int cmd, doc200x_hwcontrol() 662 static void doc2001plus_command(struct mtd_info *mtd, unsigned command, int column, int page_addr) doc2001plus_command() 768 static int doc200x_dev_ready(struct mtd_info *mtd) doc200x_dev_ready() 801 static int doc200x_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip) doc200x_block_bad() 808 static void doc200x_enable_hwecc(struct mtd_info *mtd, int mode) doc200x_enable_hwecc() 827 static void doc2001plus_enable_hwecc(struct mtd_info *mtd, int mode) doc2001plus_enable_hwecc() 847 static int doc200x_calculate_ecc(struct mtd_info *mtd, const u_char *dat, unsigned char *ecc_code) doc200x_calculate_ecc() 906 static int doc200x_correct_data(struct mtd_info *mtd, u_char *dat, doc200x_correct_data() 1008 static int __init find_media_headers(struct mtd_info *mtd, u_char *buf, const char *id, int findmirror) find_media_headers() 1051 static inline int __init nftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) nftl_partscan() 1153 static inline int __init inftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) inftl_partscan() 1272 static int __init nftl_scan_bbt(struct mtd_info *mtd) nftl_scan_bbt() 1307 static int __init inftl_scan_bbt(struct mtd_info *mtd) inftl_scan_bbt() 1361 static inline int __init doc2000_init(struct mtd_info *mtd) doc2000_init() 1377 static inline int __init doc2001_init(struct mtd_info *mtd) doc2001_init() 1407 static inline int __init doc2001plus_init(struct mtd_info *mtd) doc2001plus_init() 1430 struct mtd_info *mtd; doc_probe() 1559 len = sizeof(struct mtd_info) + doc_probe() 1641 struct mtd_info *mtd, *nextmtd; release_nanddoc()
|
H A D | sharpsl.c | 32 struct mtd_info mtd; 65 static void sharpsl_nand_hwcontrol(struct mtd_info *mtd, int cmd, sharpsl_nand_hwcontrol() 85 static int sharpsl_nand_dev_ready(struct mtd_info *mtd) sharpsl_nand_dev_ready() 91 static void sharpsl_nand_enable_hwecc(struct mtd_info *mtd, int mode) sharpsl_nand_enable_hwecc() 97 static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat, u_char * ecc_code) sharpsl_nand_calculate_ecc()
|
H A D | vf610_nfc.c | 159 struct mtd_info mtd; 323 struct mtd_info *mtd = data; vf610_nfc_irq() 357 static void vf610_nfc_command(struct mtd_info *mtd, unsigned command, vf610_nfc_command() 451 static void vf610_nfc_read_buf(struct mtd_info *mtd, u_char *buf, int len) vf610_nfc_read_buf() 464 static void vf610_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, vf610_nfc_write_buf() 478 static uint8_t vf610_nfc_read_byte(struct mtd_info *mtd) vf610_nfc_read_byte() 505 static u16 vf610_nfc_read_word(struct mtd_info *mtd) vf610_nfc_read_word() 514 static int vf610_nfc_dev_ready(struct mtd_info *mtd) vf610_nfc_dev_ready() 523 static void vf610_nfc_select_chip(struct mtd_info *mtd, int chip) vf610_nfc_select_chip() 557 static inline int vf610_nfc_correct_data(struct mtd_info *mtd, uint8_t *dat, vf610_nfc_correct_data() 585 static int vf610_nfc_read_page(struct mtd_info *mtd, struct nand_chip *chip, vf610_nfc_read_page() 606 static int vf610_nfc_write_page(struct mtd_info *mtd, struct nand_chip *chip, vf610_nfc_write_page() 665 struct mtd_info *mtd; vf610_nfc_probe() 797 /* propagate ecc.layout to mtd_info */ vf610_nfc_probe() 829 struct mtd_info *mtd = platform_get_drvdata(pdev); vf610_nfc_remove() 840 struct mtd_info *mtd = dev_get_drvdata(dev); vf610_nfc_suspend() 849 struct mtd_info *mtd = dev_get_drvdata(dev); vf610_nfc_resume()
|
H A D | cafe_nand.c | 102 static int cafe_device_ready(struct mtd_info *mtd) cafe_device_ready() 118 static void cafe_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) cafe_write_buf() 133 static void cafe_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) cafe_read_buf() 147 static uint8_t cafe_read_byte(struct mtd_info *mtd) cafe_read_byte() 158 static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command, cafe_nand_cmdfunc() 314 static void cafe_select_chip(struct mtd_info *mtd, int chipnr) cafe_select_chip() 330 struct mtd_info *mtd = id; cafe_nand_interrupt() 341 static void cafe_nand_bug(struct mtd_info *mtd) cafe_nand_bug() 346 static int cafe_nand_write_oob(struct mtd_info *mtd, cafe_nand_write_oob() 360 static int cafe_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, cafe_nand_read_oob() 377 static int cafe_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip, cafe_nand_read_page() 517 static int cafe_nand_write_page_lowlevel(struct mtd_info *mtd, cafe_nand_write_page_lowlevel() 533 static int cafe_nand_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip) cafe_nand_block_bad() 583 struct mtd_info *mtd; cafe_nand_probe() 794 struct mtd_info *mtd = pci_get_drvdata(pdev); cafe_nand_remove() 821 struct mtd_info *mtd = pci_get_drvdata(pdev); cafe_nand_resume()
|
H A D | hisi504_nand.c | 137 struct mtd_info mtd; 192 struct mtd_info *mtd = &host->mtd; hisi_nfc_dma_transfer() 265 struct mtd_info *mtd = &host->mtd; hisi_nfc_send_cmd_readstart() 358 static void hisi_nfc_select_chip(struct mtd_info *mtd, int chipselect) hisi_nfc_select_chip() 369 static uint8_t hisi_nfc_read_byte(struct mtd_info *mtd) hisi_nfc_read_byte() 385 static u16 hisi_nfc_read_word(struct mtd_info *mtd) hisi_nfc_read_word() 395 hisi_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) hisi_nfc_write_buf() 404 static void hisi_nfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) hisi_nfc_read_buf() 413 static void set_addr(struct mtd_info *mtd, int column, int page_addr) set_addr() 448 static void hisi_nfc_cmdfunc(struct mtd_info *mtd, unsigned command, int column, hisi_nfc_cmdfunc() 543 static int hisi_nand_read_page_hwecc(struct mtd_info *mtd, hisi_nand_read_page_hwecc() 575 static int hisi_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, hisi_nand_read_oob() 592 static int hisi_nand_write_page_hwecc(struct mtd_info *mtd, hisi_nand_write_page_hwecc() 646 struct mtd_info *mtd = &host->mtd; hisi_nfc_ecc_probe() 704 struct mtd_info *mtd; hisi_nfc_probe() 826 struct mtd_info *mtd = &host->mtd; hisi_nfc_remove()
|
H A D | xway_nand.c | 73 static void xway_select_chip(struct mtd_info *mtd, int chip) xway_select_chip() 90 static void xway_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) xway_cmd_ctrl() 114 static int xway_dev_ready(struct mtd_info *mtd) xway_dev_ready() 119 static unsigned char xway_read_byte(struct mtd_info *mtd) xway_read_byte()
|
H A D | tmio_nand.c | 106 struct mtd_info mtd; 127 static void tmio_nand_hwcontrol(struct mtd_info *mtd, int cmd, tmio_nand_hwcontrol() 160 static int tmio_nand_dev_ready(struct mtd_info *mtd) tmio_nand_dev_ready() 189 tmio_nand_wait(struct mtd_info *mtd, struct nand_chip *nand_chip) tmio_nand_wait() 225 static u_char tmio_nand_read_byte(struct mtd_info *mtd) tmio_nand_read_byte() 245 tmio_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) tmio_nand_write_buf() 252 static void tmio_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) tmio_nand_read_buf() 259 static void tmio_nand_enable_hwecc(struct mtd_info *mtd, int mode) tmio_nand_enable_hwecc() 268 static int tmio_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, tmio_nand_calculate_ecc() 290 static int tmio_nand_correct_data(struct mtd_info *mtd, unsigned char *buf, tmio_nand_correct_data() 367 struct mtd_info *mtd; tmio_probe()
|
H A D | nuc900_nand.c | 58 struct mtd_info mtd; 78 static unsigned char nuc900_nand_read_byte(struct mtd_info *mtd) nuc900_nand_read_byte() 90 static void nuc900_nand_read_buf(struct mtd_info *mtd, nuc900_nand_read_buf() 102 static void nuc900_nand_write_buf(struct mtd_info *mtd, nuc900_nand_write_buf() 125 static int nuc900_nand_devready(struct mtd_info *mtd) nuc900_nand_devready() 136 static void nuc900_nand_command_lp(struct mtd_info *mtd, unsigned int command, nuc900_nand_command_lp()
|
H A D | lpc32xx_mlc.c | 176 struct mtd_info mtd; 275 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, lpc32xx_nand_cmd_ctrl() 292 static int lpc32xx_nand_device_ready(struct mtd_info *mtd) lpc32xx_nand_device_ready() 319 static int lpc32xx_waitfunc_nand(struct mtd_info *mtd, struct nand_chip *chip) lpc32xx_waitfunc_nand() 338 static int lpc32xx_waitfunc_controller(struct mtd_info *mtd, lpc32xx_waitfunc_controller() 358 static int lpc32xx_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) lpc32xx_waitfunc() 389 static int lpc32xx_xmit_dma(struct mtd_info *mtd, void *mem, int len, lpc32xx_xmit_dma() 431 static int lpc32xx_read_page(struct mtd_info *mtd, struct nand_chip *chip, lpc32xx_read_page() 496 static int lpc32xx_write_page_lowlevel(struct mtd_info *mtd, lpc32xx_write_page_lowlevel() 543 static int lpc32xx_read_oob(struct mtd_info *mtd, struct nand_chip *chip, lpc32xx_read_oob() 554 static int lpc32xx_write_oob(struct mtd_info *mtd, struct nand_chip *chip, lpc32xx_write_oob() 562 static void lpc32xx_ecc_enable(struct mtd_info *mtd, int mode) lpc32xx_ecc_enable() 569 struct mtd_info *mtd = &host->mtd; lpc32xx_dma_setup() 646 struct mtd_info *mtd; lpc32xx_nand_probe() 818 struct mtd_info *mtd = &host->mtd; lpc32xx_nand_remove()
|
H A D | jz4740_nand.c | 62 struct mtd_info mtd; 77 static inline struct jz_nand *mtd_to_jz_nand(struct mtd_info *mtd) mtd_to_jz_nand() 82 static void jz_nand_select_chip(struct mtd_info *mtd, int chipnr) jz_nand_select_chip() 104 static void jz_nand_cmd_ctrl(struct mtd_info *mtd, int dat, unsigned int ctrl) jz_nand_cmd_ctrl() 132 static int jz_nand_dev_ready(struct mtd_info *mtd) jz_nand_dev_ready() 138 static void jz_nand_hwctl(struct mtd_info *mtd, int mode) jz_nand_hwctl() 166 static int jz_nand_calculate_ecc_rs(struct mtd_info *mtd, const uint8_t *dat, jz_nand_calculate_ecc_rs() 219 static int jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat, jz_nand_correct_ecc_rs() 337 struct mtd_info *mtd = &nand->mtd; jz_nand_detect_bank() 414 struct mtd_info *mtd; jz_nand_probe()
|
H A D | docg4.c | 79 struct mtd_info *mtd; 242 static void docg4_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) docg4_read_buf() 253 static void docg4_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) docg4_write_buf16() 297 static int docg4_wait(struct mtd_info *mtd, struct nand_chip *nand) docg4_wait() 315 static void docg4_select_chip(struct mtd_info *mtd, int chip) docg4_select_chip() 336 static void reset(struct mtd_info *mtd) reset() 371 static int correct_data(struct mtd_info *mtd, uint8_t *buf, int page) correct_data() 465 static uint8_t docg4_read_byte(struct mtd_info *mtd) docg4_read_byte() 541 static int pageprog(struct mtd_info *mtd) pageprog() 581 static void sequence_reset(struct mtd_info *mtd) sequence_reset() 598 static void read_page_prologue(struct mtd_info *mtd, uint32_t docg4_addr) read_page_prologue() 625 static void write_page_prologue(struct mtd_info *mtd, uint32_t docg4_addr) write_page_prologue() 689 static void docg4_command(struct mtd_info *mtd, unsigned command, int column, docg4_command() 756 static int read_page(struct mtd_info *mtd, struct nand_chip *nand, read_page() 824 static int docg4_read_page_raw(struct mtd_info *mtd, struct nand_chip *nand, docg4_read_page_raw() 830 static int docg4_read_page(struct mtd_info *mtd, struct nand_chip *nand, docg4_read_page() 836 static int docg4_read_oob(struct mtd_info *mtd, struct nand_chip *nand, docg4_read_oob() 875 static int docg4_erase_block(struct mtd_info *mtd, int page) docg4_erase_block() 923 static int write_page(struct mtd_info *mtd, struct nand_chip *nand, write_page() 979 static int docg4_write_page_raw(struct mtd_info *mtd, struct nand_chip *nand, docg4_write_page_raw() 985 static int docg4_write_page(struct mtd_info *mtd, struct nand_chip *nand, docg4_write_page() 991 static int docg4_write_oob(struct mtd_info *mtd, struct nand_chip *nand, docg4_write_oob() 1012 static int __init read_factory_bbt(struct mtd_info *mtd) read_factory_bbt() 1079 static int docg4_block_markbad(struct mtd_info *mtd, loff_t ofs) docg4_block_markbad() 1124 static int docg4_block_neverbad(struct mtd_info *mtd, loff_t ofs, int getchip) docg4_block_neverbad() 1190 static void __init init_mtd_structs(struct mtd_info *mtd) init_mtd_structs() 1262 static int __init read_id_reg(struct mtd_info *mtd) read_id_reg() 1288 struct mtd_info *mtd; probe_docg4() 1308 len = sizeof(struct mtd_info) + sizeof(struct nand_chip) + probe_docg4()
|
H A 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, check_offs_len() 133 static void nand_release_device(struct mtd_info *mtd) nand_release_device() 151 static uint8_t nand_read_byte(struct mtd_info *mtd) nand_read_byte() 164 static uint8_t nand_read_byte16(struct mtd_info *mtd) nand_read_byte16() 176 static u16 nand_read_word(struct mtd_info *mtd) nand_read_word() 189 static void nand_select_chip(struct mtd_info *mtd, int chipnr) nand_select_chip() 212 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) nand_write_byte() 226 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) nand_write_byte16() 258 static void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) nand_write_buf() 273 static void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) nand_read_buf() 288 static void nand_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) nand_write_buf16() 304 static void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) nand_read_buf16() 320 static int nand_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip) nand_block_bad() 381 static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs) nand_default_block_markbad() 431 static int nand_block_markbad_lowlevel(struct mtd_info *mtd, loff_t ofs) nand_block_markbad_lowlevel() 472 static int nand_check_wp(struct mtd_info *mtd) nand_check_wp() 492 static int nand_block_isreserved(struct mtd_info *mtd, loff_t ofs) nand_block_isreserved() 512 static int nand_block_checkbad(struct mtd_info *mtd, loff_t ofs, int getchip, nand_block_checkbad() 532 static void panic_nand_wait_ready(struct mtd_info *mtd, unsigned long timeo) panic_nand_wait_ready() 552 void nand_wait_ready(struct mtd_info *mtd) nand_wait_ready() 583 static void nand_wait_status_ready(struct mtd_info *mtd, unsigned long timeo) nand_wait_status_ready() 605 static void nand_command(struct mtd_info *mtd, unsigned int command, nand_command() 708 static void nand_command_lp(struct mtd_info *mtd, unsigned int command, nand_command_lp() 818 struct mtd_info *mtd, int new_state) panic_nand_get_device() 833 nand_get_device(struct mtd_info *mtd, int new_state) nand_get_device() 876 static void panic_nand_wait(struct mtd_info *mtd, struct nand_chip *chip, panic_nand_wait() 899 static int nand_wait(struct mtd_info *mtd, struct nand_chip *chip) nand_wait() 950 static int __nand_unlock(struct mtd_info *mtd, loff_t ofs, __nand_unlock() 986 int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) nand_unlock() 1049 int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) nand_lock() 1248 static int nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, nand_read_page_raw() 1267 static int nand_read_page_raw_syndrome(struct mtd_info *mtd, nand_read_page_raw_syndrome() 1309 static int nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, nand_read_page_swecc() 1355 static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, nand_read_subpage() 1449 static int nand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, nand_read_page_hwecc() 1502 static int nand_read_page_hwecc_oob_first(struct mtd_info *mtd, nand_read_page_hwecc_oob_first() 1551 static int nand_read_page_syndrome(struct mtd_info *mtd, struct nand_chip *chip, nand_read_page_syndrome() 1656 static int nand_setup_read_retry(struct mtd_info *mtd, int retry_mode) nand_setup_read_retry() 1679 static int nand_do_read_ops(struct mtd_info *mtd, loff_t from, nand_do_read_ops() 1865 static int nand_read(struct mtd_info *mtd, loff_t from, size_t len, nand_read() 1888 static int nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, nand_read_oob_std() 1903 static int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, nand_read_oob_syndrome() 1939 static int nand_write_oob_std(struct mtd_info *mtd, struct nand_chip *chip, nand_write_oob_std() 1963 static int nand_write_oob_syndrome(struct mtd_info *mtd, nand_write_oob_syndrome() 2023 static int nand_do_read_oob(struct mtd_info *mtd, loff_t from, nand_do_read_oob() 2122 static int nand_read_oob(struct mtd_info *mtd, loff_t from, nand_read_oob() 2169 static int nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, nand_write_page_raw() 2189 static int nand_write_page_raw_syndrome(struct mtd_info *mtd, nand_write_page_raw_syndrome() 2231 static int nand_write_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, nand_write_page_swecc() 2260 static int nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, nand_write_page_hwecc() 2296 static int nand_write_subpage_hwecc(struct mtd_info *mtd, nand_write_subpage_hwecc() 2359 static int nand_write_page_syndrome(struct mtd_info *mtd, nand_write_page_syndrome() 2410 static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip, nand_write_page() 2472 static uint8_t *nand_fill_oob(struct mtd_info *mtd, uint8_t *oob, size_t len, nand_fill_oob() 2531 static int nand_do_write_ops(struct mtd_info *mtd, loff_t to, nand_do_write_ops() 2662 static int panic_nand_write(struct mtd_info *mtd, loff_t to, size_t len, panic_nand_write() 2696 static int nand_write(struct mtd_info *mtd, loff_t to, size_t len, nand_write() 2721 static int nand_do_write_oob(struct mtd_info *mtd, loff_t to, nand_do_write_oob() 2805 static int nand_write_oob(struct mtd_info *mtd, loff_t to, nand_write_oob() 2848 static int single_erase(struct mtd_info *mtd, int page) single_erase() 2865 static int nand_erase(struct mtd_info *mtd, struct erase_info *instr) nand_erase() 2878 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, nand_erase_nand() 2991 static void nand_sync(struct mtd_info *mtd) nand_sync() 3006 static int nand_block_isbad(struct mtd_info *mtd, loff_t offs) nand_block_isbad() 3016 static int nand_block_markbad(struct mtd_info *mtd, loff_t ofs) nand_block_markbad() 3038 static int nand_onfi_set_features(struct mtd_info *mtd, struct nand_chip *chip, nand_onfi_set_features() 3066 static int nand_onfi_get_features(struct mtd_info *mtd, struct nand_chip *chip, nand_onfi_get_features() 3086 static int nand_suspend(struct mtd_info *mtd) nand_suspend() 3095 static void nand_resume(struct mtd_info *mtd) nand_resume() 3111 static void nand_shutdown(struct mtd_info *mtd) nand_shutdown() 3197 static int nand_flash_detect_ext_param_page(struct mtd_info *mtd, nand_flash_detect_ext_param_page() 3267 static int nand_setup_read_retry_micron(struct mtd_info *mtd, int retry_mode) nand_setup_read_retry_micron() 3294 static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip, nand_flash_detect_onfi() 3398 static int nand_flash_detect_jedec(struct mtd_info *mtd, struct nand_chip *chip, nand_flash_detect_jedec() 3550 static void nand_decode_ext_id(struct mtd_info *mtd, struct nand_chip *chip, nand_decode_ext_id() 3683 static void nand_decode_id(struct mtd_info *mtd, struct nand_chip *chip, nand_decode_id() 3716 static void nand_decode_bbm_options(struct mtd_info *mtd, nand_decode_bbm_options() 3753 static bool find_full_id_nand(struct mtd_info *mtd, struct nand_chip *chip, find_full_id_nand() 3782 static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, nand_get_flash_type() 3940 static int nand_dt_init(struct mtd_info *mtd, struct nand_chip *chip, nand_dt_init() 3983 int nand_scan_ident(struct mtd_info *mtd, int maxchips, nand_scan_ident() 4056 static bool nand_ecc_strength_good(struct mtd_info *mtd) nand_ecc_strength_good() 4084 int nand_scan_tail(struct mtd_info *mtd) nand_scan_tail() 4365 /* propagate ecc info to mtd_info */ nand_scan_tail() 4407 int nand_scan(struct mtd_info *mtd, int maxchips) nand_scan() 4422 void nand_release(struct mtd_info *mtd) nand_release()
|
H A D | sunxi_nand.c | 237 struct mtd_info mtd; 351 static int sunxi_nfc_dev_ready(struct mtd_info *mtd) sunxi_nfc_dev_ready() 389 static void sunxi_nfc_select_chip(struct mtd_info *mtd, int chip) sunxi_nfc_select_chip() 434 static void sunxi_nfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) sunxi_nfc_read_buf() 466 static void sunxi_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, sunxi_nfc_write_buf() 498 static uint8_t sunxi_nfc_read_byte(struct mtd_info *mtd) sunxi_nfc_read_byte() 507 static void sunxi_nfc_cmd_ctrl(struct mtd_info *mtd, int dat, sunxi_nfc_cmd_ctrl() 542 static void sunxi_nfc_hw_ecc_enable(struct mtd_info *mtd) sunxi_nfc_hw_ecc_enable() 557 static void sunxi_nfc_hw_ecc_disable(struct mtd_info *mtd) sunxi_nfc_hw_ecc_disable() 574 static int sunxi_nfc_hw_ecc_read_chunk(struct mtd_info *mtd, sunxi_nfc_hw_ecc_read_chunk() 638 static void sunxi_nfc_hw_ecc_read_extra_oob(struct mtd_info *mtd, sunxi_nfc_hw_ecc_read_extra_oob() 663 static int sunxi_nfc_hw_ecc_write_chunk(struct mtd_info *mtd, sunxi_nfc_hw_ecc_write_chunk() 702 static void sunxi_nfc_hw_ecc_write_extra_oob(struct mtd_info *mtd, sunxi_nfc_hw_ecc_write_extra_oob() 722 static int sunxi_nfc_hw_ecc_read_page(struct mtd_info *mtd, sunxi_nfc_hw_ecc_read_page() 753 static int sunxi_nfc_hw_ecc_write_page(struct mtd_info *mtd, sunxi_nfc_hw_ecc_write_page() 784 static int sunxi_nfc_hw_syndrome_ecc_read_page(struct mtd_info *mtd, sunxi_nfc_hw_syndrome_ecc_read_page() 816 static int sunxi_nfc_hw_syndrome_ecc_write_page(struct mtd_info *mtd, sunxi_nfc_hw_syndrome_ecc_write_page() 1029 static int sunxi_nand_hw_common_ecc_ctrl_init(struct mtd_info *mtd, sunxi_nand_hw_common_ecc_ctrl_init() 1093 static int sunxi_nand_hw_ecc_ctrl_init(struct mtd_info *mtd, sunxi_nand_hw_ecc_ctrl_init() 1146 static int sunxi_nand_hw_syndrome_ecc_ctrl_init(struct mtd_info *mtd, sunxi_nand_hw_syndrome_ecc_ctrl_init() 1189 static int sunxi_nand_ecc_init(struct mtd_info *mtd, struct nand_ecc_ctrl *ecc, sunxi_nand_ecc_init() 1236 struct mtd_info *mtd; sunxi_nand_chip_init()
|
H A D | r852.c | 65 static inline struct r852_device *r852_get_dev(struct mtd_info *mtd) r852_get_dev() 232 static void r852_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) r852_write_buf() 266 static void r852_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) r852_read_buf() 303 static uint8_t r852_read_byte(struct mtd_info *mtd) r852_read_byte() 317 static void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl) r852_cmdctl() 362 static int r852_wait(struct mtd_info *mtd, struct nand_chip *chip) r852_wait() 391 static int r852_ready(struct mtd_info *mtd) r852_ready() 402 static void r852_ecc_hwctl(struct mtd_info *mtd, int mode) r852_ecc_hwctl() 434 static int r852_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, r852_ecc_calculate() 466 static int r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat, r852_ecc_correct() 522 static int r852_read_oob(struct mtd_info *mtd, struct nand_chip *chip, r852_read_oob() 594 struct mtd_info *mtd = container_of(sys_dev, struct mtd_info, dev); r852_media_type_show() 637 dev->mtd = kzalloc(sizeof(struct mtd_info), GFP_KERNEL); r852_register_nand_device()
|
H A 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) send_page_v3() 549 static void send_page_v2(struct mtd_info *mtd, unsigned int ops) send_page_v2() 563 static void send_page_v1(struct mtd_info *mtd, unsigned int ops) send_page_v1() 646 static int mxc_nand_dev_ready(struct mtd_info *mtd) mxc_nand_dev_ready() 655 static void mxc_nand_enable_hwecc(struct mtd_info *mtd, int mode) mxc_nand_enable_hwecc() 663 static int mxc_nand_correct_data_v1(struct mtd_info *mtd, u_char *dat, mxc_nand_correct_data_v1() 684 static int mxc_nand_correct_data_v2_v3(struct mtd_info *mtd, u_char *dat, mxc_nand_correct_data_v2_v3() 717 static int mxc_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, mxc_nand_calculate_ecc() 723 static u_char mxc_nand_read_byte(struct mtd_info *mtd) mxc_nand_read_byte() 747 static uint16_t mxc_nand_read_word(struct mtd_info *mtd) mxc_nand_read_word() 762 static void mxc_nand_write_buf(struct mtd_info *mtd, mxc_nand_write_buf() 781 static void mxc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) mxc_nand_read_buf() 797 static void mxc_nand_select_chip_v1_v3(struct mtd_info *mtd, int chip) mxc_nand_select_chip_v1_v3() 818 static void mxc_nand_select_chip_v2(struct mtd_info *mtd, int chip) mxc_nand_select_chip_v2() 851 static void copy_spare(struct mtd_info *mtd, bool bfrom) copy_spare() 894 static void mxc_do_addr_cycle(struct mtd_info *mtd, int column, int page_addr) mxc_do_addr_cycle() 951 static int get_eccsize(struct mtd_info *mtd) get_eccsize() 980 static void preset_v1(struct mtd_info *mtd) preset_v1() 1008 static void preset_v2(struct mtd_info *mtd) preset_v2() 1054 static void preset_v3(struct mtd_info *mtd) preset_v3() 1125 static void mxc_nand_command(struct mtd_info *mtd, unsigned command, mxc_nand_command() 1499 struct mtd_info *mtd; mxcnd_probe()
|
H A D | s3c2410.c | 107 struct mtd_info mtd; 169 static struct s3c2410_nand_mtd *s3c2410_nand_mtd_toours(struct mtd_info *mtd) s3c2410_nand_mtd_toours() 174 static struct s3c2410_nand_info *s3c2410_nand_mtd_toinfo(struct mtd_info *mtd) s3c2410_nand_mtd_toinfo() 381 static void s3c2410_nand_select_chip(struct mtd_info *mtd, int chip) s3c2410_nand_select_chip() 423 static void s3c2410_nand_hwcontrol(struct mtd_info *mtd, int cmd, s3c2410_nand_hwcontrol() 439 static void s3c2440_nand_hwcontrol(struct mtd_info *mtd, int cmd, s3c2440_nand_hwcontrol() 458 static int s3c2410_nand_devready(struct mtd_info *mtd) s3c2410_nand_devready() 464 static int s3c2440_nand_devready(struct mtd_info *mtd) s3c2440_nand_devready() 470 static int s3c2412_nand_devready(struct mtd_info *mtd) s3c2412_nand_devready() 479 static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat, s3c2410_nand_correct_data() 557 static void s3c2410_nand_enable_hwecc(struct mtd_info *mtd, int mode) s3c2410_nand_enable_hwecc() 567 static void s3c2412_nand_enable_hwecc(struct mtd_info *mtd, int mode) s3c2412_nand_enable_hwecc() 577 static void s3c2440_nand_enable_hwecc(struct mtd_info *mtd, int mode) s3c2440_nand_enable_hwecc() 586 static int s3c2410_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, s3c2410_nand_calculate_ecc() 600 static int s3c2412_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, s3c2412_nand_calculate_ecc() 615 static int s3c2440_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, s3c2440_nand_calculate_ecc() 635 static void s3c2410_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) s3c2410_nand_read_buf() 641 static void s3c2440_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) s3c2440_nand_read_buf() 656 static void s3c2410_nand_write_buf(struct mtd_info *mtd, const u_char *buf, s3c2410_nand_write_buf() 663 static void s3c2440_nand_write_buf(struct mtd_info *mtd, const u_char *buf, s3c2440_nand_write_buf()
|
H A 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) atmel_nand_cmd_ctrl() 206 static int atmel_nand_device_ready(struct mtd_info *mtd) atmel_nand_device_ready() 216 static int atmel_nand_set_enable_ready_pins(struct mtd_info *mtd) atmel_nand_set_enable_ready_pins() 268 static void atmel_read_buf8(struct mtd_info *mtd, u8 *buf, int len) atmel_read_buf8() 281 static void atmel_read_buf16(struct mtd_info *mtd, u8 *buf, int len) atmel_read_buf16() 294 static void atmel_write_buf8(struct mtd_info *mtd, const u8 *buf, int len) atmel_write_buf8() 301 static void atmel_write_buf16(struct mtd_info *mtd, const u8 *buf, int len) atmel_write_buf16() 347 static int atmel_nand_dma_op(struct mtd_info *mtd, void *buf, int len, atmel_nand_dma_op() 426 static void atmel_read_buf(struct mtd_info *mtd, u8 *buf, int len) atmel_read_buf() 442 static void atmel_write_buf(struct mtd_info *mtd, const u8 *buf, int len) atmel_write_buf() 534 static void pmecc_gen_syndrome(struct mtd_info *mtd, int sector) pmecc_gen_syndrome() 551 static void pmecc_substitute(struct mtd_info *mtd) pmecc_substitute() 593 static void pmecc_get_sigma(struct mtd_info *mtd) pmecc_get_sigma() 751 static int pmecc_err_location(struct mtd_info *mtd) pmecc_err_location() 802 static void pmecc_correct_data(struct mtd_info *mtd, uint8_t *buf, uint8_t *ecc, pmecc_correct_data() 848 static int pmecc_correction(struct mtd_info *mtd, u32 pmecc_stat, uint8_t *buf, pmecc_correction() 919 static int atmel_nand_pmecc_read_page(struct mtd_info *mtd, atmel_nand_pmecc_read_page() 956 static int atmel_nand_pmecc_write_page(struct mtd_info *mtd, atmel_nand_pmecc_write_page() 993 static void atmel_pmecc_core_init(struct mtd_info *mtd) atmel_pmecc_core_init() 1162 struct mtd_info *mtd = &host->mtd; atmel_pmecc_nand_init_params() 1308 static int atmel_nand_calculate(struct mtd_info *mtd, atmel_nand_calculate() 1338 static int atmel_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip, atmel_nand_read_page() 1412 static int atmel_nand_correct(struct mtd_info *mtd, u_char *dat, atmel_nand_correct() 1479 static void atmel_nand_hwctl(struct mtd_info *mtd, int mode) atmel_nand_hwctl() 1589 struct mtd_info *mtd = &host->mtd; atmel_hw_nand_init_params() 1771 static int nfc_device_ready(struct mtd_info *mtd) nfc_device_ready() 1788 static void nfc_select_chip(struct mtd_info *mtd, int chip) nfc_select_chip() 1799 static int nfc_make_addr(struct mtd_info *mtd, int command, int column, nfc_make_addr() 1839 static void nfc_nand_command(struct mtd_info *mtd, unsigned int command, nfc_nand_command() 1963 static int nfc_sram_write_page(struct mtd_info *mtd, struct nand_chip *chip, nfc_sram_write_page() 2027 static int nfc_sram_init(struct mtd_info *mtd) nfc_sram_init() 2093 struct mtd_info *mtd; atmel_nand_probe() 2287 struct mtd_info *mtd = &host->mtd; atmel_nand_remove()
|
H A D | lpc32xx_slc.c | 207 struct mtd_info mtd; 259 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, lpc32xx_nand_cmd_ctrl() 285 static int lpc32xx_nand_device_ready(struct mtd_info *mtd) lpc32xx_nand_device_ready() 318 static void lpc32xx_nand_ecc_enable(struct mtd_info *mtd, int mode) lpc32xx_nand_ecc_enable() 326 static int lpc32xx_nand_ecc_calculate(struct mtd_info *mtd, lpc32xx_nand_ecc_calculate() 340 static uint8_t lpc32xx_nand_read_byte(struct mtd_info *mtd) lpc32xx_nand_read_byte() 351 static void lpc32xx_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) lpc32xx_nand_read_buf() 364 static void lpc32xx_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) lpc32xx_nand_write_buf() 377 static int lpc32xx_nand_read_oob_syndrome(struct mtd_info *mtd, lpc32xx_nand_read_oob_syndrome() 389 static int lpc32xx_nand_write_oob_syndrome(struct mtd_info *mtd, lpc32xx_nand_write_oob_syndrome() 428 static int lpc32xx_xmit_dma(struct mtd_info *mtd, dma_addr_t dma, lpc32xx_xmit_dma() 488 static int lpc32xx_xfer(struct mtd_info *mtd, uint8_t *buf, int eccsubpages, lpc32xx_xfer() 603 static int lpc32xx_nand_read_page_syndrome(struct mtd_info *mtd, lpc32xx_nand_read_page_syndrome() 645 static int lpc32xx_nand_read_page_raw_syndrome(struct mtd_info *mtd, lpc32xx_nand_read_page_raw_syndrome() 664 static int lpc32xx_nand_write_page_syndrome(struct mtd_info *mtd, lpc32xx_nand_write_page_syndrome() 693 static int lpc32xx_nand_write_page_raw_syndrome(struct mtd_info *mtd, lpc32xx_nand_write_page_raw_syndrome() 706 struct mtd_info *mtd = &host->mtd; lpc32xx_nand_dma_setup() 763 struct mtd_info *mtd; lpc32xx_nand_probe() 936 struct mtd_info *mtd = &host->mtd; lpc32xx_nand_remove()
|
H A 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, read_bbt() 264 static int read_abs_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td, int chip) read_abs_bbt() 290 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, scan_read_data() 314 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, scan_read_oob() 344 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, scan_read() 354 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, scan_write_bbt() 369 static u32 bbt_get_ver_offs(struct mtd_info *mtd, struct nand_bbt_descr *td) bbt_get_ver_offs() 388 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, read_abs_bbts() 413 static int scan_block_fast(struct mtd_info *mtd, struct nand_bbt_descr *bd, scan_block_fast() 454 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, create_bbt() 524 static int search_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td) search_bbt() 595 static void search_read_bbts(struct mtd_info *mtd, uint8_t *buf, search_read_bbts() 617 static int write_bbt(struct mtd_info *mtd, uint8_t *buf, write_bbt() 820 static inline int nand_memory_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) nand_memory_bbt() 838 static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd) check_create() 963 static void mark_bbt_region(struct mtd_info *mtd, struct nand_bbt_descr *td) mark_bbt_region() 1023 static void verify_bbt_descr(struct mtd_info *mtd, struct nand_bbt_descr *bd) verify_bbt_descr() 1075 static int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) nand_scan_bbt() 1148 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs) nand_update_bbt() 1282 int nand_default_bbt(struct mtd_info *mtd) nand_default_bbt() 1318 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs) nand_isreserved_bbt() 1333 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) nand_isbad_bbt() 1360 int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs) nand_markbad_bbt()
|
H A D | sm_common.c | 41 static int sm_block_markbad(struct mtd_info *mtd, loff_t ofs) sm_block_markbad() 103 int sm_register_device(struct mtd_info *mtd, int smartmedia) sm_register_device()
|
H A 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) set_addr() 254 static int is_blank(struct mtd_info *mtd, unsigned int bufnum) is_blank() 279 static int check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, check_read_ecc() 293 static void fsl_ifc_run_command(struct mtd_info *mtd) fsl_ifc_run_command() 371 struct mtd_info *mtd) fsl_ifc_do_read() 410 static void fsl_ifc_cmdfunc(struct mtd_info *mtd, unsigned int command, fsl_ifc_cmdfunc() 615 static void fsl_ifc_select_chip(struct mtd_info *mtd, int chip) fsl_ifc_select_chip() 625 static void fsl_ifc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) fsl_ifc_write_buf() 651 static uint8_t fsl_ifc_read_byte(struct mtd_info *mtd) fsl_ifc_read_byte() 674 static uint8_t fsl_ifc_read_byte16(struct mtd_info *mtd) fsl_ifc_read_byte16() 697 static void fsl_ifc_read_buf(struct mtd_info *mtd, u8 *buf, int len) fsl_ifc_read_buf() 723 static int fsl_ifc_wait(struct mtd_info *mtd, struct nand_chip *chip) fsl_ifc_wait() 751 static int fsl_ifc_read_page(struct mtd_info *mtd, struct nand_chip *chip, fsl_ifc_read_page() 774 static int fsl_ifc_write_page(struct mtd_info *mtd, struct nand_chip *chip, fsl_ifc_write_page() 783 static int fsl_ifc_chip_init_tail(struct mtd_info *mtd) fsl_ifc_chip_init_tail()
|
H A D | sh_flctl.c | 192 static void set_addr(struct mtd_info *mtd, int column, int page_addr) set_addr() 500 static void set_cmd_regs(struct mtd_info *mtd, uint32_t cmd, uint32_t flcmcdr_val) set_cmd_regs() 562 static int flctl_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, flctl_read_page_hwecc() 571 static int flctl_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, flctl_write_page_hwecc() 580 static void execmd_read_page_sector(struct mtd_info *mtd, int page_addr) execmd_read_page_sector() 629 static void execmd_read_oob(struct mtd_info *mtd, int page_addr) execmd_read_oob() 650 static void execmd_write_page_sector(struct mtd_info *mtd) execmd_write_page_sector() 676 static void execmd_write_oob(struct mtd_info *mtd) execmd_write_oob() 698 static void flctl_cmdfunc(struct mtd_info *mtd, unsigned int command, flctl_cmdfunc() 874 static void flctl_select_chip(struct mtd_info *mtd, int chipnr) flctl_select_chip() 918 static void flctl_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) flctl_write_buf() 926 static uint8_t flctl_read_byte(struct mtd_info *mtd) flctl_read_byte() 936 static uint16_t flctl_read_word(struct mtd_info *mtd) flctl_read_word() 945 static void flctl_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) flctl_read_buf() 953 static int flctl_chip_init_tail(struct mtd_info *mtd) flctl_chip_init_tail() 1084 struct mtd_info *flctl_mtd; flctl_probe()
|
H A D | sm_common.h | 39 extern int sm_register_device(struct mtd_info *mtd, int smartmedia);
|
H A D | pxa3xx_nand.c | 175 struct mtd_info *mtd; 540 struct mtd_info *mtd) pxa3xx_set_datasize() 898 struct mtd_info *mtd = host->mtd; prepare_start_command() 948 struct mtd_info *mtd; prepare_set_command() 1118 static void nand_cmdfunc(struct mtd_info *mtd, unsigned command, nand_cmdfunc() 1165 static void nand_cmdfunc_extended(struct mtd_info *mtd, nand_cmdfunc_extended() 1275 static int pxa3xx_nand_write_page_hwecc(struct mtd_info *mtd, pxa3xx_nand_write_page_hwecc() 1285 static int pxa3xx_nand_read_page_hwecc(struct mtd_info *mtd, pxa3xx_nand_read_page_hwecc() 1313 static uint8_t pxa3xx_nand_read_byte(struct mtd_info *mtd) pxa3xx_nand_read_byte() 1326 static u16 pxa3xx_nand_read_word(struct mtd_info *mtd) pxa3xx_nand_read_word() 1339 static void pxa3xx_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) pxa3xx_nand_read_buf() 1349 static void pxa3xx_nand_write_buf(struct mtd_info *mtd, pxa3xx_nand_write_buf() 1360 static void pxa3xx_nand_select_chip(struct mtd_info *mtd, int chip) pxa3xx_nand_select_chip() 1365 static int pxa3xx_nand_waitfunc(struct mtd_info *mtd, struct nand_chip *this) pxa3xx_nand_waitfunc() 1395 struct mtd_info *mtd = host->mtd; pxa3xx_nand_config_flash() 1489 struct mtd_info *mtd; pxa3xx_nand_sensing() 1581 static int pxa3xx_nand_scan(struct mtd_info *mtd) pxa3xx_nand_scan() 1704 struct mtd_info *mtd; alloc_nand_resource() 1920 struct mtd_info *mtd = info->host[cs]->mtd; pxa3xx_nand_probe()
|
H A D | omap2.c | 155 struct mtd_info mtd; 248 static void omap_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) omap_hwcontrol() 271 static void omap_read_buf8(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf8() 284 static void omap_write_buf8(struct mtd_info *mtd, const u_char *buf, int len) omap_write_buf8() 307 static void omap_read_buf16(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf16() 320 static void omap_write_buf16(struct mtd_info *mtd, const u_char * buf, int len) omap_write_buf16() 345 static void omap_read_buf_pref(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf_pref() 392 static void omap_write_buf_pref(struct mtd_info *mtd, omap_write_buf_pref() 458 static inline int omap_nand_dma_transfer(struct mtd_info *mtd, void *addr, omap_nand_dma_transfer() 547 static void omap_read_buf_dma_pref(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf_dma_pref() 562 static void omap_write_buf_dma_pref(struct mtd_info *mtd, omap_write_buf_dma_pref() 624 static void omap_read_buf_irq_pref(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf_irq_pref() 671 static void omap_write_buf_irq_pref(struct mtd_info *mtd, omap_write_buf_irq_pref() 886 static int omap_correct_data(struct mtd_info *mtd, u_char *dat, omap_correct_data() 928 static int omap_calculate_ecc(struct mtd_info *mtd, const u_char *dat, omap_calculate_ecc() 954 static void omap_enable_hwecc(struct mtd_info *mtd, int mode) omap_enable_hwecc() 1002 static int omap_wait(struct mtd_info *mtd, struct nand_chip *chip) omap_wait() 1031 static int omap_dev_ready(struct mtd_info *mtd) omap_dev_ready() 1057 static void __maybe_unused omap_enable_hwecc_bch(struct mtd_info *mtd, int mode) omap_enable_hwecc_bch() 1162 static int __maybe_unused omap_calculate_ecc_bch(struct mtd_info *mtd, omap_calculate_ecc_bch() 1334 static int omap_elm_correct_data(struct mtd_info *mtd, u_char *data, omap_elm_correct_data() 1507 static int omap_write_page_bch(struct mtd_info *mtd, struct nand_chip *chip, omap_write_page_bch() 1546 static int omap_read_page_bch(struct mtd_info *mtd, struct nand_chip *chip, omap_read_page_bch() 1657 struct mtd_info *mtd; omap_nand_probe() 2060 struct mtd_info *mtd = platform_get_drvdata(pdev); omap_nand_remove()
|
H A D | davinci_nand.c | 56 struct mtd_info mtd; 104 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, nand_davinci_hwcontrol() 125 static void nand_davinci_select_chip(struct mtd_info *mtd, int chip) nand_davinci_select_chip() 145 static inline uint32_t nand_davinci_readecc_1bit(struct mtd_info *mtd) nand_davinci_readecc_1bit() 153 static void nand_davinci_hwctl_1bit(struct mtd_info *mtd, int mode) nand_davinci_hwctl_1bit() 177 static int nand_davinci_calculate_1bit(struct mtd_info *mtd, nand_davinci_calculate_1bit() 192 static int nand_davinci_correct_1bit(struct mtd_info *mtd, u_char *dat, nand_davinci_correct_1bit() 238 static void nand_davinci_hwctl_4bit(struct mtd_info *mtd, int mode) nand_davinci_hwctl_4bit() 270 static int nand_davinci_calculate_4bit(struct mtd_info *mtd, nand_davinci_calculate_4bit() 307 static int nand_davinci_correct_4bit(struct mtd_info *mtd, nand_davinci_correct_4bit() 448 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) nand_davinci_read_buf() 460 static void nand_davinci_write_buf(struct mtd_info *mtd, nand_davinci_write_buf() 477 static int nand_davinci_dev_ready(struct mtd_info *mtd) nand_davinci_dev_ready()
|
H A 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) set_addr() 196 static int fsl_elbc_run_command(struct mtd_info *mtd) fsl_elbc_run_command() 300 static void fsl_elbc_cmdfunc(struct mtd_info *mtd, unsigned int command, fsl_elbc_cmdfunc() 516 static void fsl_elbc_select_chip(struct mtd_info *mtd, int chip) fsl_elbc_select_chip() 526 static void fsl_elbc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) fsl_elbc_write_buf() 564 static u8 fsl_elbc_read_byte(struct mtd_info *mtd) fsl_elbc_read_byte() 581 static void fsl_elbc_read_buf(struct mtd_info *mtd, u8 *buf, int len) fsl_elbc_read_buf() 606 static int fsl_elbc_wait(struct mtd_info *mtd, struct nand_chip *chip) fsl_elbc_wait() 620 static int fsl_elbc_chip_init_tail(struct mtd_info *mtd) fsl_elbc_chip_init_tail() 697 static int fsl_elbc_read_page(struct mtd_info *mtd, struct nand_chip *chip, fsl_elbc_read_page() 717 static int fsl_elbc_write_page(struct mtd_info *mtd, struct nand_chip *chip, fsl_elbc_write_page() 729 static int fsl_elbc_write_subpage(struct mtd_info *mtd, struct nand_chip *chip, fsl_elbc_write_subpage()
|
H A D | fsmc_nand.c | 302 struct mtd_info mtd; 330 static void fsmc_select_chip(struct mtd_info *mtd, int chipnr) fsmc_select_chip() 359 static void fsmc_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) fsmc_cmd_ctrl() 446 static void fsmc_enable_hwecc(struct mtd_info *mtd, int mode) fsmc_enable_hwecc() 466 static int fsmc_read_hwecc_ecc4(struct mtd_info *mtd, const uint8_t *data, fsmc_read_hwecc_ecc4() 517 static int fsmc_read_hwecc_ecc1(struct mtd_info *mtd, const uint8_t *data, fsmc_read_hwecc_ecc1() 629 static void fsmc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) fsmc_write_buf() 652 static void fsmc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) fsmc_read_buf() 675 static void fsmc_read_buf_dma(struct mtd_info *mtd, uint8_t *buf, int len) fsmc_read_buf_dma() 689 static void fsmc_write_buf_dma(struct mtd_info *mtd, const uint8_t *buf, fsmc_write_buf_dma() 712 static int fsmc_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, fsmc_read_page_hwecc() 782 static int fsmc_bch8_correct_data(struct mtd_info *mtd, uint8_t *dat, fsmc_bch8_correct_data() 931 struct mtd_info *mtd; fsmc_nand_probe()
|
H A D | nand_bch.c | 52 int nand_bch_calculate_ecc(struct mtd_info *mtd, const unsigned char *buf, nand_bch_calculate_ecc() 79 int nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, nand_bch_correct_data() 127 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, unsigned int eccbytes, nand_bch_init()
|
H A D | denali.c | 868 static int write_oob_data(struct mtd_info *mtd, uint8_t *buf, int page) write_oob_data() 897 static void read_oob_data(struct mtd_info *mtd, uint8_t *buf, int page) read_oob_data() 1060 static int write_page(struct mtd_info *mtd, struct nand_chip *chip, write_page() 1116 static int denali_write_page(struct mtd_info *mtd, struct nand_chip *chip, denali_write_page() 1131 static int denali_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, denali_write_page_raw() 1142 static int denali_write_oob(struct mtd_info *mtd, struct nand_chip *chip, denali_write_oob() 1148 static int denali_read_oob(struct mtd_info *mtd, struct nand_chip *chip, denali_read_oob() 1156 static int denali_read_page(struct mtd_info *mtd, struct nand_chip *chip, denali_read_page() 1209 static int denali_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, denali_read_page_raw() 1245 static uint8_t denali_read_byte(struct mtd_info *mtd) denali_read_byte() 1256 static void denali_select_chip(struct mtd_info *mtd, int chip) denali_select_chip() 1265 static int denali_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) denali_waitfunc() 1275 static int denali_erase(struct mtd_info *mtd, int page) denali_erase() 1294 static void denali_cmdfunc(struct mtd_info *mtd, unsigned int cmd, int col, denali_cmdfunc()
|
H A D | plat_nand.c | 23 struct mtd_info mtd;
|
H A D | nand_ecc.c | 38 * Instead a private definition of mtd_info is given to satisfy the compiler 39 * (the code does not use mtd_info, so the code does not care) 51 struct mtd_info; 423 int nand_calculate_ecc(struct mtd_info *mtd, const unsigned char *buf, nand_calculate_ecc() 523 int nand_correct_data(struct mtd_info *mtd, unsigned char *buf, nand_correct_data()
|
H A D | r852.h | 111 struct mtd_info *mtd; /* mtd backpointer */
|
H A D | nandsim.c | 451 static struct mtd_info *nsmtd; 667 static int init_nandsim(struct mtd_info *mtd) init_nandsim() 815 static int parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) parse_badblocks() 1014 static int setup_wear_reporting(struct mtd_info *mtd) setup_wear_reporting() 1909 static u_char ns_nand_read_byte(struct mtd_info *mtd) ns_nand_read_byte() 1970 static void ns_nand_write_byte(struct mtd_info *mtd, u_char byte) ns_nand_write_byte() 2124 static void ns_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int bitmask) ns_hwcontrol() 2136 static int ns_device_ready(struct mtd_info *mtd) ns_device_ready() 2142 static uint16_t ns_nand_read_word(struct mtd_info *mtd) ns_nand_read_word() 2151 static void ns_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) ns_nand_write_buf() 2178 static void ns_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) ns_nand_read_buf() 2238 /* Allocate and initialize mtd_info, nand_chip and nandsim structures */ ns_init_module() 2239 nsmtd = kzalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip) ns_init_module()
|
/linux-4.4.14/arch/arm/include/asm/mach/ |
H A D | flash.h | 14 struct mtd_info; 34 void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
|
/linux-4.4.14/include/linux/platform_data/ |
H A D | mtd-orion_nand.h | 15 int (*dev_ready)(struct mtd_info *mtd);
|
/linux-4.4.14/arch/cris/arch-v10/drivers/ |
H A D | axisflashmap.c | 51 struct mtd_info* axisflash_mtd = NULL; 193 static struct mtd_info *probe_cs(struct map_info *map_cs) probe_cs() 195 struct mtd_info *mtd_cs = NULL; probe_cs() 214 * both cse0 and cse1, the mtd_info structs will be concatenated to one struct 222 static struct mtd_info *flash_probe(void) flash_probe() 224 struct mtd_info *mtd_cse0; flash_probe() 225 struct mtd_info *mtd_cse1; flash_probe() 226 struct mtd_info *mtd_cse; flash_probe() 237 struct mtd_info *mtds[] = { mtd_cse0, mtd_cse1 }; flash_probe() 271 struct mtd_info *mymtd; init_axis_flash() 406 struct mtd_info *mtd_ram; init_axis_flash() 408 mtd_ram = kmalloc(sizeof(struct mtd_info), GFP_KERNEL); init_axis_flash() 411 "mtd_info!\n"); init_axis_flash()
|
/linux-4.4.14/drivers/staging/goldfish/ |
H A D | goldfish_nand.c | 39 struct mtd_info mtd[0]; 42 static u32 goldfish_nand_cmd_with_params(struct mtd_info *mtd, goldfish_nand_cmd_with_params() 77 static u32 goldfish_nand_cmd(struct mtd_info *mtd, enum nand_cmd cmd, goldfish_nand_cmd() 98 static int goldfish_nand_erase(struct mtd_info *mtd, struct erase_info *instr) goldfish_nand_erase() 132 static int goldfish_nand_read_oob(struct mtd_info *mtd, loff_t ofs, goldfish_nand_read_oob() 164 static int goldfish_nand_write_oob(struct mtd_info *mtd, loff_t ofs, goldfish_nand_write_oob() 196 static int goldfish_nand_read(struct mtd_info *mtd, loff_t from, size_t len, goldfish_nand_read() 218 static int goldfish_nand_write(struct mtd_info *mtd, loff_t to, size_t len, goldfish_nand_write() 240 static int goldfish_nand_block_isbad(struct mtd_info *mtd, loff_t ofs) goldfish_nand_block_isbad() 261 static int goldfish_nand_block_markbad(struct mtd_info *mtd, loff_t ofs) goldfish_nand_block_markbad() 308 struct mtd_info *mtd = &nand->mtd[id]; goldfish_nand_init_device() 401 sizeof(struct mtd_info) * num_dev, GFP_KERNEL); goldfish_nand_probe()
|
/linux-4.4.14/drivers/mtd/maps/ |
H A 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, uclinux_point() 73 struct mtd_info *mtd; uclinux_mtd_init()
|
H A D | solutionengine.c | 19 static struct mtd_info *flash_mtd; 20 static struct mtd_info *eprom_mtd;
|
H A D | tsunami_flash.c | 72 static struct mtd_info *tsunami_flash_mtd; 76 struct mtd_info *mtd; cleanup_tsunami_flash()
|
H A D | vmu-flash.c | 50 struct mtd_info *mtd; 59 struct mtd_info *mtd, int partition) ofs_to_block() 112 struct mtd_info *mtd) maple_vmu_read_block() 229 struct mtd_info *mtd) maple_vmu_write_block() 305 struct mtd_info *mtd) vmu_flash_read_char() 352 static int vmu_flash_read(struct mtd_info *mtd, loff_t from, size_t len, vmu_flash_read() 418 static int vmu_flash_write(struct mtd_info *mtd, loff_t to, size_t len, vmu_flash_write() 495 static void vmu_flash_sync(struct mtd_info *mtd) vmu_flash_sync() 509 struct mtd_info *mtd_cur; vmu_queryblocks() 639 card->mtd = kmalloc(sizeof(struct mtd_info) * card->partitions, vmu_connect() 719 struct mtd_info *mtd; vmu_can_unload()
|
H A 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, obsolete_probe() 82 struct mtd_info *mtd; obsolete_probe() 167 struct mtd_info **mtd_list = NULL; of_flash_probe()
|
H A D | pcmciamtd.c | 37 struct mtd_info *mtd_info; member in struct:pcmciamtd_dev 466 struct mtd_info *mtd = NULL; pcmciamtd_config() 588 dev->mtd_info = mtd; pcmciamtd_config() 625 dev->mtd_info = NULL; pcmciamtd_config() 661 if(dev->mtd_info) { pcmciamtd_detach() 662 mtd_device_unregister(dev->mtd_info); pcmciamtd_detach() 664 dev->mtd_info->index); pcmciamtd_detach() 665 map_destroy(dev->mtd_info); pcmciamtd_detach()
|
H A D | impa7.c | 30 static struct mtd_info *impa7_mtd[NUM_FLASHBANKS];
|
H A D | sa1100-flash.c | 29 struct mtd_info *mtd; 34 struct mtd_info *mtd; 224 struct mtd_info *cdev[nr]; sa1100_setup_mtd()
|
H A D | cfi_flagadm.c | 89 static struct mtd_info *mymtd;
|
H A D | l440gx.c | 26 static struct mtd_info *mymtd;
|
H A D | pxa2xx-flash.c | 43 struct mtd_info *mtd;
|
H A D | rbtx4939-flash.c | 25 struct mtd_info *mtd;
|
H A D | sun_uflash.c | 41 struct mtd_info *mtd; /* mtd info */
|
H A D | ts5500_flash.c | 66 static struct mtd_info *mymtd;
|
H A D | pci.c | 259 struct mtd_info *mtd = NULL; mtd_pci_probe() 310 struct mtd_info *mtd = pci_get_drvdata(dev); mtd_pci_remove()
|
H A D | physmap.c | 27 struct mtd_info *mtd[MAX_RESOURCES]; 28 struct mtd_info *cmtd;
|
H A D | pmcmsp-flash.c | 45 static struct mtd_info **msp_flash; 86 msp_maps = kcalloc(fcnt, sizeof(struct mtd_info), GFP_KERNEL); init_msp_flash()
|
H A D | scb2_flash.c | 63 static struct mtd_info *scb2_mtd; 71 static int scb2_fixup_mtd(struct mtd_info *mtd) scb2_fixup_mtd()
|
H A D | bfin-async-flash.c | 38 struct mtd_info *mtd;
|
H A D | dc21285.c | 24 static struct mtd_info *dc21285_mtd;
|
H A D | lantiq-flash.c | 43 struct mtd_info *mtd;
|
H A D | latch-addr-flash.c | 25 struct mtd_info *mtd;
|
H A D | netsc520.c | 91 static struct mtd_info *mymtd;
|
H A D | scx200_docflash.c | 45 static struct mtd_info *mymtd;
|
H A D | nettel.c | 57 static struct mtd_info *intel_mtd; 59 static struct mtd_info *amd_mtd;
|
H A D | sc520cdp.c | 109 static struct mtd_info *mymtd[NUM_FLASH_BANKS]; 110 static struct mtd_info *merged_mtd;
|
H A D | gpio-addr-flash.c | 44 struct mtd_info *mtd;
|
H A D | intel_vr_nor.c | 45 struct mtd_info *info;
|
H A D | ixp4xx.c | 146 struct mtd_info *mtd;
|
H A D | plat-ram.c | 44 struct mtd_info *mtd;
|
H A D | sbc_gxx.c | 180 static struct mtd_info *all_mtd;
|
/linux-4.4.14/arch/cris/arch-v32/drivers/ |
H A D | axisflashmap.c | 56 struct mtd_info* axisflash_mtd = NULL; 227 static struct mtd_info *probe_cs(struct map_info *map_cs) probe_cs() 229 struct mtd_info *mtd_cs = NULL; probe_cs() 248 * both cse0 and cse1, the mtd_info structs will be concatenated to one struct 256 extern struct mtd_info* __init crisv32_nand_flash_probe (void); flash_probe() 257 static struct mtd_info *flash_probe(void) flash_probe() 259 struct mtd_info *mtd_cse0; flash_probe() 260 struct mtd_info *mtd_cse1; flash_probe() 261 struct mtd_info *mtd_total; flash_probe() 262 struct mtd_info *mtds[2]; flash_probe() 305 struct mtd_info *main_mtd; init_axis_flash() 306 struct mtd_info *aux_mtd = NULL; init_axis_flash() 344 struct mtd_info *tmp_mtd; init_axis_flash() 547 struct mtd_info *mtd_ram; init_axis_flash() 549 mtd_ram = kmalloc(sizeof(struct mtd_info), GFP_KERNEL); init_axis_flash() 552 "for mtd_info!\n"); init_axis_flash()
|
/linux-4.4.14/drivers/mtd/lpddr/ |
H A 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) lpddr_cmdset() 53 struct mtd_info *mtd; lpddr_cmdset() 470 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) do_erase_oneblock() 497 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, lpddr_read() 521 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, lpddr_point() 574 static int lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) lpddr_unpoint() 619 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, lpddr_write_buffers() 631 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, lpddr_writev() 678 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) lpddr_erase() 704 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) do_xxlock() 739 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) lpddr_lock() 744 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) lpddr_unlock()
|
H A D | lpddr2_nvm.c | 242 static int lpddr2_nvm_do_block_op(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_do_block_op() 307 static int lpddr2_nvm_read(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_read() 325 static int lpddr2_nvm_write(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_write() 381 static int lpddr2_nvm_erase(struct mtd_info *mtd, struct erase_info *instr) lpddr2_nvm_erase() 396 static int lpddr2_nvm_unlock(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_unlock() 405 static int lpddr2_nvm_lock(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_lock() 417 struct mtd_info *mtd; lpddr2_nvm_probe() 429 /* Allocate memory for map_info & mtd_info data structures */ lpddr2_nvm_probe() 461 /* Populate mtd_info data structure */ lpddr2_nvm_probe() 462 *mtd = (struct mtd_info) { lpddr2_nvm_probe()
|
H A D | qinfo_probe.c | 35 struct mtd_info *lpddr_probe(struct map_info *map); 198 struct mtd_info *lpddr_probe(struct map_info *map) lpddr_probe() 200 struct mtd_info *mtd = NULL; lpddr_probe()
|
/linux-4.4.14/arch/cris/arch-v32/drivers/mach-a3/ |
H A 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, crisv32_hwcontrol() 96 static int crisv32_device_ready(struct mtd_info *mtd) crisv32_device_ready() 105 struct mtd_info *__init crisv32_nand_flash_probe(void) crisv32_nand_flash_probe()
|
/linux-4.4.14/arch/cris/arch-v32/drivers/mach-fs/ |
H A 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, crisv32_hwcontrol() 91 static int crisv32_device_ready(struct mtd_info *mtd) crisv32_device_ready() 100 struct mtd_info *__init crisv32_nand_flash_probe(void) crisv32_nand_flash_probe()
|
/linux-4.4.14/fs/logfs/ |
H A D | dev_mtd.c | 19 struct mtd_info *mtd = logfs_super(sb)->s_mtd; logfs_mtd_read() 39 struct mtd_info *mtd = super->s_mtd; loffs_mtd_write() 93 struct mtd_info *mtd = logfs_super(sb)->s_mtd; logfs_mtd_erase() 120 struct mtd_info *mtd = logfs_super(sb)->s_mtd; logfs_mtd_sync() 153 struct mtd_info *mtd = super->s_mtd; logfs_mtd_find_first_sb() 170 struct mtd_info *mtd = super->s_mtd; logfs_mtd_find_last_sb() 266 struct mtd_info *mtd = get_mtd_device(NULL, mtdnr); logfs_get_sb_mtd()
|
/linux-4.4.14/arch/arm/mach-omap1/ |
H A D | board-nand.c | 23 void omap1_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) omap1_nand_cmd_ctl()
|
H A D | common.h | 86 extern void omap1_nand_cmd_ctl(struct mtd_info *mtd, int cmd,
|
H A D | board-perseus2.c | 147 static int nand_dev_ready(struct mtd_info *mtd) nand_dev_ready()
|
/linux-4.4.14/drivers/staging/mt29f_spinand/ |
H A D | mt29f_spinand.h | 104 int spinand_mtd(struct mtd_info *mtd); 105 void spinand_mtd_release(struct mtd_info *mtd);
|
H A D | mt29f_spinand.c | 32 static inline struct spinand_state *mtd_to_state(struct mtd_info *mtd) mtd_to_state() 614 static int spinand_write_page_hwecc(struct mtd_info *mtd, spinand_write_page_hwecc() 628 static int spinand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, spinand_read_page_hwecc() 666 static void spinand_select_chip(struct mtd_info *mtd, int dev) spinand_select_chip() 670 static u8 spinand_read_byte(struct mtd_info *mtd) spinand_read_byte() 680 static int spinand_wait(struct mtd_info *mtd, struct nand_chip *chip) spinand_wait() 709 static void spinand_write_buf(struct mtd_info *mtd, const u8 *buf, int len) spinand_write_buf() 717 static void spinand_read_buf(struct mtd_info *mtd, u8 *buf, int len) spinand_read_buf() 744 static void spinand_cmdfunc(struct mtd_info *mtd, unsigned int command, spinand_cmdfunc() 849 struct mtd_info *mtd; spinand_probe() 906 mtd = devm_kzalloc(&spi_nand->dev, sizeof(struct mtd_info), GFP_KERNEL); spinand_probe()
|
/linux-4.4.14/fs/romfs/ |
H A D | mmap-nommu.c | 29 struct mtd_info *mtd = inode->i_sb->s_mtd; romfs_get_unmapped_area() 75 struct mtd_info *mtd = file_inode(file)->i_sb->s_mtd; romfs_mmap_capabilities()
|
/linux-4.4.14/drivers/mtd/onenand/ |
H A D | omap2.c | 55 struct mtd_info mtd; 106 static int omap2_onenand_wait(struct mtd_info *mtd, int state) omap2_onenand_wait() 280 static inline int omap2_onenand_bufferram_offset(struct mtd_info *mtd, int area) omap2_onenand_bufferram_offset() 296 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, omap3_onenand_read_bufferram() 374 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, omap3_onenand_write_bufferram() 447 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, omap3_onenand_read_bufferram() 454 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, omap3_onenand_write_bufferram() 465 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, omap2_onenand_read_bufferram() 510 static int omap2_onenand_write_bufferram(struct mtd_info *mtd, int area, omap2_onenand_write_bufferram() 557 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, omap2_onenand_read_bufferram() 564 static int omap2_onenand_write_bufferram(struct mtd_info *mtd, int area, omap2_onenand_write_bufferram() 586 static int omap2_onenand_enable(struct mtd_info *mtd) omap2_onenand_enable() 598 static int omap2_onenand_disable(struct mtd_info *mtd) omap2_onenand_disable()
|
H A D | onenand_bbt.c | 57 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd, int chip) create_bbt() 132 static inline int onenand_memory_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd) onenand_memory_bbt() 145 static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) onenand_isbad_bbt() 182 int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) onenand_scan_bbt() 233 int onenand_default_bbt(struct mtd_info *mtd) onenand_default_bbt()
|
H A D | onenand_base.c | 349 int flexonenand_region(struct mtd_info *mtd, loff_t addr) flexonenand_region() 370 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) onenand_command() 525 static int onenand_wait(struct mtd_info *mtd, int state) onenand_wait() 623 static int onenand_interrupt_wait(struct mtd_info *mtd, int state) onenand_interrupt_wait() 639 static int onenand_try_interrupt_wait(struct mtd_info *mtd, int state) onenand_try_interrupt_wait() 670 static void onenand_setup_wait(struct mtd_info *mtd) onenand_setup_wait() 705 static inline int onenand_bufferram_offset(struct mtd_info *mtd, int area) onenand_bufferram_offset() 730 static int onenand_read_bufferram(struct mtd_info *mtd, int area, onenand_read_bufferram() 766 static int onenand_sync_read_bufferram(struct mtd_info *mtd, int area, onenand_sync_read_bufferram() 806 static int onenand_write_bufferram(struct mtd_info *mtd, int area, onenand_write_bufferram() 845 static int onenand_get_2x_blockpage(struct mtd_info *mtd, loff_t addr) onenand_get_2x_blockpage() 869 static int onenand_check_bufferram(struct mtd_info *mtd, loff_t addr) onenand_check_bufferram() 911 static void onenand_update_bufferram(struct mtd_info *mtd, loff_t addr, onenand_update_bufferram() 944 static void onenand_invalidate_bufferram(struct mtd_info *mtd, loff_t addr, onenand_invalidate_bufferram() 966 static int onenand_get_device(struct mtd_info *mtd, int new_state) onenand_get_device() 1003 static void onenand_release_device(struct mtd_info *mtd) onenand_release_device() 1023 static int onenand_transfer_auto_oob(struct mtd_info *mtd, uint8_t *buf, int column, onenand_transfer_auto_oob() 1071 static int onenand_recover_lsb(struct mtd_info *mtd, loff_t addr, int status) onenand_recover_lsb() 1110 static int onenand_mlc_read_ops_nolock(struct mtd_info *mtd, loff_t from, onenand_mlc_read_ops_nolock() 1215 static int onenand_read_ops_nolock(struct mtd_info *mtd, loff_t from, onenand_read_ops_nolock() 1348 static int onenand_read_oob_nolock(struct mtd_info *mtd, loff_t from, onenand_read_oob_nolock() 1454 static int onenand_read(struct mtd_info *mtd, loff_t from, size_t len, onenand_read() 1484 static int onenand_read_oob(struct mtd_info *mtd, loff_t from, onenand_read_oob() 1519 static int onenand_bbt_wait(struct mtd_info *mtd, int state) onenand_bbt_wait() 1571 int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from, onenand_bbt_read_oob() 1646 static int onenand_verify_oob(struct mtd_info *mtd, const u_char *buf, loff_t to) onenand_verify_oob() 1675 static int onenand_verify(struct mtd_info *mtd, const u_char *buf, loff_t addr, size_t len) onenand_verify() 1716 static void onenand_panic_wait(struct mtd_info *mtd) onenand_panic_wait() 1740 static int onenand_panic_write(struct mtd_info *mtd, loff_t to, size_t len, onenand_panic_write() 1816 static int onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf, onenand_fill_auto_oob() 1857 static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to, onenand_write_ops_nolock() 2046 static int onenand_write_oob_nolock(struct mtd_info *mtd, loff_t to, onenand_write_oob_nolock() 2167 static int onenand_write(struct mtd_info *mtd, loff_t to, size_t len, onenand_write() 2192 static int onenand_write_oob(struct mtd_info *mtd, loff_t to, onenand_write_oob() 2226 static int onenand_block_isbad_nolock(struct mtd_info *mtd, loff_t ofs, int allowbbt) onenand_block_isbad_nolock() 2236 static int onenand_multiblock_erase_verify(struct mtd_info *mtd, onenand_multiblock_erase_verify() 2269 static int onenand_multiblock_erase(struct mtd_info *mtd, onenand_multiblock_erase() 2386 static int onenand_block_by_block_erase(struct mtd_info *mtd, onenand_block_by_block_erase() 2460 static int onenand_erase(struct mtd_info *mtd, struct erase_info *instr) onenand_erase() 2530 static void onenand_sync(struct mtd_info *mtd) onenand_sync() 2548 static int onenand_block_isbad(struct mtd_info *mtd, loff_t ofs) onenand_block_isbad() 2566 static int onenand_default_block_markbad(struct mtd_info *mtd, loff_t ofs) onenand_default_block_markbad() 2600 static int onenand_block_markbad(struct mtd_info *mtd, loff_t ofs) onenand_block_markbad() 2628 static int onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, size_t len, int cmd) onenand_do_lock_cmd() 2707 static int onenand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) onenand_lock() 2725 static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) onenand_unlock() 2775 static void onenand_unlock_all(struct mtd_info *mtd) onenand_unlock_all() 2823 static int onenand_otp_command(struct mtd_info *mtd, int cmd, loff_t addr, onenand_otp_command() 2901 static int onenand_otp_write_oob_nolock(struct mtd_info *mtd, loff_t to, onenand_otp_write_oob_nolock() 3019 typedef int (*otp_op_t)(struct mtd_info *mtd, loff_t form, size_t len, 3032 static int do_otp_read(struct mtd_info *mtd, loff_t from, size_t len, do_otp_read() 3069 static int do_otp_write(struct mtd_info *mtd, loff_t to, size_t len, do_otp_write() 3113 static int do_otp_lock(struct mtd_info *mtd, loff_t from, size_t len, do_otp_lock() 3163 static int onenand_otp_walk(struct mtd_info *mtd, loff_t from, size_t len, onenand_otp_walk() 3241 static int onenand_get_fact_prot_info(struct mtd_info *mtd, size_t len, onenand_get_fact_prot_info() 3258 static int onenand_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, onenand_read_fact_prot_reg() 3273 static int onenand_get_user_prot_info(struct mtd_info *mtd, size_t len, onenand_get_user_prot_info() 3290 static int onenand_read_user_prot_reg(struct mtd_info *mtd, loff_t from, onenand_read_user_prot_reg() 3306 static int onenand_write_user_prot_reg(struct mtd_info *mtd, loff_t from, onenand_write_user_prot_reg() 3320 static int onenand_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, onenand_lock_user_prot_reg() 3375 static void onenand_check_features(struct mtd_info *mtd) onenand_check_features() 3512 static int flexonenand_get_boundary(struct mtd_info *mtd) flexonenand_get_boundary() 3549 * flexonenand_get_size - Fill up fields in onenand_chip and mtd_info 3553 static void flexonenand_get_size(struct mtd_info *mtd) flexonenand_get_size() 3622 * @param mtd_info - mtd info structure 3634 static int flexonenand_check_blocks_erased(struct mtd_info *mtd, int start, int end) flexonenand_check_blocks_erased() 3681 static int flexonenand_set_boundary(struct mtd_info *mtd, int die, flexonenand_set_boundary() 3774 static int onenand_chip_probe(struct mtd_info *mtd) onenand_chip_probe() 3819 static int onenand_probe(struct mtd_info *mtd) onenand_probe() 3912 static int onenand_suspend(struct mtd_info *mtd) onenand_suspend() 3921 static void onenand_resume(struct mtd_info *mtd) onenand_resume() 3942 int onenand_scan(struct mtd_info *mtd, int maxchips) onenand_scan() 4112 void onenand_release(struct mtd_info *mtd) onenand_release()
|
H A D | samsung.c | 128 struct mtd_info *mtd; 318 static int s3c_onenand_wait(struct mtd_info *mtd, int state) s3c_onenand_wait() 384 static int s3c_onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, s3c_onenand_command() 482 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) s3c_get_bufferram() 501 static int onenand_read_bufferram(struct mtd_info *mtd, int area, onenand_read_bufferram() 512 static int onenand_write_bufferram(struct mtd_info *mtd, int area, onenand_write_bufferram() 623 static int s5pc110_read_bufferram(struct mtd_info *mtd, int area, s5pc110_read_bufferram() 695 static int s5pc110_chip_probe(struct mtd_info *mtd) s5pc110_chip_probe() 701 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) s3c_onenand_bbt_wait() 734 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) s3c_onenand_check_lock_status() 754 static void s3c_onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, s3c_onenand_do_lock_cmd() 780 static void s3c_unlock_all(struct mtd_info *mtd) s3c_unlock_all() 809 static void s3c_onenand_setup(struct mtd_info *mtd) s3c_onenand_setup() 846 struct mtd_info *mtd; s3c_onenand_probe() 853 size = sizeof(struct mtd_info) + sizeof(struct onenand_chip); s3c_onenand_probe() 1035 struct mtd_info *mtd = platform_get_drvdata(pdev); s3c_onenand_remove() 1063 struct mtd_info *mtd = platform_get_drvdata(pdev); s3c_pm_ops_suspend() 1073 struct mtd_info *mtd = platform_get_drvdata(pdev); s3c_pm_ops_resume()
|
H A D | generic.c | 33 struct mtd_info mtd;
|
/linux-4.4.14/drivers/mtd/ubi/ |
H A D | gluebi.c | 57 struct mtd_info mtd; 97 static int gluebi_get_device(struct mtd_info *mtd) gluebi_get_device() 147 static void gluebi_put_device(struct mtd_info *mtd) gluebi_put_device() 171 static int gluebi_read(struct mtd_info *mtd, loff_t from, size_t len, gluebi_read() 211 static int gluebi_write(struct mtd_info *mtd, loff_t to, size_t len, gluebi_write() 252 static int gluebi_erase(struct mtd_info *mtd, struct erase_info *instr) gluebi_erase() 303 struct mtd_info *mtd; gluebi_create() 372 struct mtd_info *mtd; gluebi_remove() 504 struct mtd_info *mtd = &gluebi->mtd; ubi_gluebi_exit()
|
/linux-4.4.14/arch/arm/mach-imx/ |
H A D | mach-qong.c | 132 static void qong_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) qong_nand_cmd_ctrl() 148 static int qong_nand_device_ready(struct mtd_info *mtd) qong_nand_device_ready() 153 static void qong_nand_select_chip(struct mtd_info *mtd, int chip) qong_nand_select_chip()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
H A D | mtd.c | 24 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) efx_mtd_erase() 40 static void efx_mtd_sync(struct mtd_info *mtd) efx_mtd_sync()
|
H A 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);
|
/linux-4.4.14/arch/arm/mach-ep93xx/ |
H A D | snappercl15.c | 49 static void snappercl15_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, snappercl15_nand_cmd_ctrl() 77 static int snappercl15_nand_dev_ready(struct mtd_info *mtd) snappercl15_nand_dev_ready()
|
H A D | ts72xx.c | 74 static void ts72xx_nand_hwcontrol(struct mtd_info *mtd, ts72xx_nand_hwcontrol() 97 static int ts72xx_nand_device_ready(struct mtd_info *mtd) ts72xx_nand_device_ready()
|
/linux-4.4.14/arch/cris/include/asm/ |
H A D | axisflashmap.h | 59 extern struct mtd_info *axisflash_mtd;
|
/linux-4.4.14/drivers/mtd/nand/gpmi-nand/ |
H A D | gpmi-nand.c | 110 struct mtd_info *mtd = &this->mtd; get_ecc_strength() 142 struct mtd_info *mtd = &this->mtd; set_geometry_by_ecc_info() 260 struct mtd_info *mtd = &this->mtd; legacy_set_geometry() 807 struct mtd_info *mtd = &this->mtd; gpmi_alloc_dma_buffer() 857 static void gpmi_cmd_ctrl(struct mtd_info *mtd, int data, unsigned int ctrl) gpmi_cmd_ctrl() 891 static int gpmi_dev_ready(struct mtd_info *mtd) gpmi_dev_ready() 899 static void gpmi_select_chip(struct mtd_info *mtd, int chipnr) gpmi_select_chip() 912 static void gpmi_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) gpmi_read_buf() 924 static void gpmi_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) gpmi_write_buf() 936 static uint8_t gpmi_read_byte(struct mtd_info *mtd) gpmi_read_byte() 994 static int gpmi_ecc_read_page(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_read_page() 1074 static int gpmi_ecc_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_read_subpage() 1162 static int gpmi_ecc_write_page(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_write_page() 1298 static int gpmi_ecc_read_oob(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_read_oob() 1326 gpmi_ecc_write_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) gpmi_ecc_write_oob() 1358 static int gpmi_ecc_read_page_raw(struct mtd_info *mtd, gpmi_ecc_read_page_raw() 1446 static int gpmi_ecc_write_page_raw(struct mtd_info *mtd, gpmi_ecc_write_page_raw() 1523 static int gpmi_ecc_read_oob_raw(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_read_oob_raw() 1531 static int gpmi_ecc_write_oob_raw(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_write_oob_raw() 1539 static int gpmi_block_markbad(struct mtd_info *mtd, loff_t ofs) gpmi_block_markbad() 1603 struct mtd_info *mtd = &this->mtd; mx23_check_transcription_stamp() 1658 struct mtd_info *mtd = &this->mtd; mx23_write_transcription_stamp() 1738 struct mtd_info *mtd = &this->mtd; mx23_boot_init() 1840 struct mtd_info *mtd = &this->mtd; gpmi_init_last() 1889 struct mtd_info *mtd = &this->mtd; gpmi_nand_init()
|
/linux-4.4.14/drivers/mtd/nand/brcmnand/ |
H A D | brcmnand.c | 182 struct mtd_info mtd; 907 static void brcmnand_wp(struct mtd_info *mtd, int wp) brcmnand_wp() 1067 static void brcmnand_cmd_ctrl(struct mtd_info *mtd, int dat, brcmnand_cmd_ctrl() 1073 static int brcmnand_waitfunc(struct mtd_info *mtd, struct nand_chip *this) brcmnand_waitfunc() 1110 struct mtd_info *mtd = &host->mtd; brcmnand_low_level_op() 1146 static void brcmnand_cmdfunc(struct mtd_info *mtd, unsigned command, brcmnand_cmdfunc() 1247 static uint8_t brcmnand_read_byte(struct mtd_info *mtd) brcmnand_read_byte() 1305 static void brcmnand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) brcmnand_read_buf() 1313 static void brcmnand_write_buf(struct mtd_info *mtd, const uint8_t *buf, brcmnand_write_buf() 1424 static int brcmnand_read_by_pio(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_read_by_pio() 1486 static int brcmnand_read(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_read() 1536 static int brcmnand_read_page(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_read_page() 1546 static int brcmnand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_read_page_raw() 1560 static int brcmnand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_read_oob() 1568 static int brcmnand_read_oob_raw(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_read_oob_raw() 1581 static int brcmnand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_read_subpage() 1591 static int brcmnand_write(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_write() 1662 static int brcmnand_write_page(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_write_page() 1672 static int brcmnand_write_page_raw(struct mtd_info *mtd, brcmnand_write_page_raw() 1685 static int brcmnand_write_oob(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_write_oob() 1692 static int brcmnand_write_oob_raw(struct mtd_info *mtd, struct nand_chip *chip, brcmnand_write_oob_raw() 1841 struct mtd_info *mtd = &host->mtd; brcmnand_setup_dev() 1945 struct mtd_info *mtd; brcmnand_init_cs() 2102 struct mtd_info *mtd = &host->mtd; brcmnand_resume()
|
/linux-4.4.14/drivers/mtd/spi-nor/ |
H A D | spi-nor.c | 179 static inline struct spi_nor *mtd_to_spi_nor(struct mtd_info *mtd) mtd_to_spi_nor() 319 static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr) spi_nor_erase() 406 struct mtd_info *mtd = &nor->mtd; stm_get_locked_range() 461 struct mtd_info *mtd = &nor->mtd; stm_lock() 511 struct mtd_info *mtd = &nor->mtd; stm_unlock() 570 static int spi_nor_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) spi_nor_lock() 585 static int spi_nor_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) spi_nor_unlock() 600 static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) spi_nor_is_locked() 875 static int spi_nor_read(struct mtd_info *mtd, loff_t from, size_t len, spi_nor_read() 893 static int sst_write(struct mtd_info *mtd, loff_t to, size_t len, sst_write() 964 static int spi_nor_write(struct mtd_info *mtd, loff_t to, size_t len, spi_nor_write() 1109 struct mtd_info *mtd = &nor->mtd; spi_nor_scan()
|
/linux-4.4.14/drivers/media/pci/cobalt/ |
H A D | cobalt-flash.c | 100 struct mtd_info *mtd; cobalt_flash_probe()
|
H A D | cobalt-driver.h | 301 struct mtd_info *mtd;
|
/linux-4.4.14/arch/mips/cavium-octeon/ |
H A D | flash_setup.c | 21 static struct mtd_info *mymtd;
|
/linux-4.4.14/arch/arm/mach-orion5x/ |
H A D | ts78xx-setup.c | 176 static void ts78xx_ts_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, ts78xx_ts_nand_cmd_ctrl() 195 static int ts78xx_ts_nand_dev_ready(struct mtd_info *mtd) ts78xx_ts_nand_dev_ready() 200 static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd, ts78xx_ts_nand_write_buf() 227 static void ts78xx_ts_nand_read_buf(struct mtd_info *mtd, ts78xx_ts_nand_read_buf()
|
/linux-4.4.14/arch/blackfin/mach-bf561/boards/ |
H A D | acvilon.c | 267 static void bfin_plat_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, bfin_plat_nand_cmd_ctrl() 282 static int bfin_plat_nand_dev_ready(struct mtd_info *mtd) bfin_plat_nand_dev_ready()
|
/linux-4.4.14/arch/mips/rb532/ |
H A D | devices.c | 144 static int rb532_dev_ready(struct mtd_info *mtd) rb532_dev_ready() 149 static void rb532_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) rb532_cmd_ctrl()
|
/linux-4.4.14/arch/arm/mach-pxa/ |
H A D | balloon3.c | 573 static void balloon3_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) balloon3_nand_cmd_ctl() 602 static void balloon3_nand_select_chip(struct mtd_info *mtd, int chip) balloon3_nand_select_chip() 618 static int balloon3_nand_dev_ready(struct mtd_info *mtd) balloon3_nand_dev_ready()
|
/linux-4.4.14/fs/jffs2/ |
H A D | jffs2_fs_sb.h | 49 struct mtd_info *mtd;
|
/linux-4.4.14/arch/mips/netlogic/xlr/ |
H A D | platform-flash.c | 95 static void xlr_nand_ctrl(struct mtd_info *mtd, int cmd, xlr_nand_ctrl()
|
/linux-4.4.14/arch/mips/pnx833x/common/ |
H A D | platform.c | 181 pnx833x_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) pnx833x_flash_nand_cmd_ctrl()
|
/linux-4.4.14/arch/arm/mach-ixp4xx/ |
H A D | ixdp425-setup.c | 77 ixdp425_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) ixdp425_flash_nand_cmd_ctrl()
|
/linux-4.4.14/arch/mips/alchemy/devboards/ |
H A D | db1550.c | 128 static void au1550_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, au1550_nand_cmd_ctrl() 151 static int au1550_nand_device_ready(struct mtd_info *mtd) au1550_nand_device_ready()
|
H A D | db1300.c | 150 static void au1300_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, au1300_nand_cmd_ctrl() 173 static int au1300_nand_device_ready(struct mtd_info *mtd) au1300_nand_device_ready()
|
/linux-4.4.14/include/linux/bcma/ |
H A D | bcma_driver_chipcommon.h | 589 struct mtd_info *mtd; 595 struct mtd_info; 601 struct mtd_info *mtd;
|
/linux-4.4.14/arch/sh/boards/mach-migor/ |
H A D | setup.c | 167 static void migor_nand_flash_cmd_ctl(struct mtd_info *mtd, int cmd, migor_nand_flash_cmd_ctl() 183 static int migor_nand_flash_ready(struct mtd_info *mtd) migor_nand_flash_ready()
|
/linux-4.4.14/drivers/firmware/broadcom/ |
H A D | bcm47xx_nvram.c | 147 struct mtd_info *mtd; nvram_init()
|