Searched defs:mtd (Results 1 - 187 of 187) sorted by relevance

/linux-4.1.27/drivers/mtd/
H A DMakefile
H A Dmtdblock_ro.c49 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) mtdblock_add_mtd() argument
H A Dmtdsuper.c28 struct mtd_info *mtd = _mtd; get_sb_mtd_compare() local
48 struct mtd_info *mtd = _mtd; get_sb_mtd_set() local
107 struct mtd_info *mtd; mount_mtd_nr() local
142 struct mtd_info *mtd; mount_mtd() local
59 mount_mtd_aux(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, struct mtd_info *mtd, int (*fill_super)(struct super_block *, void *, int)) mount_mtd_aux() argument
H A Dinftlmount.c51 struct mtd_info *mtd = inftl->mbd.mtd; find_boot_record() local
340 struct mtd_info *mtd = inftl->mbd.mtd; check_free_sectors() local
377 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_formatblock() local
539 struct mtd_info *mtd = s->mbd.mtd; INFTL_mount() local
H A Dafs.c70 afs_read_footer(struct mtd_info *mtd, u_int *img_start, u_int *iis_start, afs_read_footer() argument
129 afs_read_iis(struct mtd_info *mtd, struct image_info_struct *iis, u_int ptr) afs_read_iis() argument
164 static int parse_afs_partitions(struct mtd_info *mtd, parse_afs_partitions() argument
H A Dmtd_blkdevs.c502 static void blktrans_notify_remove(struct mtd_info *mtd) blktrans_notify_remove() argument
513 static void blktrans_notify_add(struct mtd_info *mtd) blktrans_notify_add() argument
531 struct mtd_info *mtd; register_mtd_blktrans() local
H A Dmtdblock.c64 static int erase_write (struct mtd_info *mtd, unsigned long pos, erase_write() argument
115 struct mtd_info *mtd = mtdblk->mbd.mtd; write_cached_data() local
145 struct mtd_info *mtd = mtdblk->mbd.mtd; do_cached_write() local
215 struct mtd_info *mtd = mtdblk->mbd.mtd; do_cached_read() local
340 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) mtdblock_add_mtd() argument
H A Dmtdoops.c63 struct mtd_info *mtd; member in struct:mtdoops_context
95 struct mtd_info *mtd = cxt->mtd; mtdoops_erase_block() local
158 struct mtd_info *mtd = cxt->mtd; mtdoops_workfunc_erase() local
212 struct mtd_info *mtd = cxt->mtd; mtdoops_write() local
252 struct mtd_info *mtd = cxt->mtd; find_next_position() local
324 static void mtdoops_notify_add(struct mtd_info *mtd) mtdoops_notify_add() argument
376 static void mtdoops_notify_remove(struct mtd_info *mtd) mtdoops_notify_remove() argument
H A Dnftlcore.c48 static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) nftl_add_mtd() argument
136 int nftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, nftl_read_oob() argument
157 int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, nftl_write_oob() argument
180 static int nftl_write(struct mtd_info *mtd, loff_t offs, size_t len, nftl_write() argument
246 struct mtd_info *mtd = nftl->mbd.mtd; NFTL_foldchain() local
539 struct mtd_info *mtd = nftl->mbd.mtd; NFTL_findwriteunit() local
718 struct mtd_info *mtd = nftl->mbd.mtd; nftl_readblock() local
H A Dnftlmount.c45 struct mtd_info *mtd = nftl->mbd.mtd; find_boot_record() local
277 struct mtd_info *mtd = nftl->mbd.mtd; check_free_sectors() local
313 struct mtd_info *mtd = nftl->mbd.mtd; NFTL_formatblock() local
378 struct mtd_info *mtd = nftl->mbd.mtd; check_sectors_in_chain() local
497 struct mtd_info *mtd = nftl->mbd.mtd; check_and_mark_free_block() local
558 struct mtd_info *mtd = nftl->mbd.mtd; get_fold_mark() local
577 struct mtd_info *mtd = s->mbd.mtd; NFTL_mount() local
H A Dssfdc.c106 static int get_valid_cis_sector(struct mtd_info *mtd) get_valid_cis_sector() argument
152 static int read_physical_sector(struct mtd_info *mtd, uint8_t *sect_buf, read_physical_sector() argument
167 static int read_raw_oob(struct mtd_info *mtd, loff_t offs, uint8_t *buf) read_raw_oob() argument
248 struct mtd_info *mtd = ssfdc->mbd.mtd; build_logical_block_map() local
287 static void ssfdcr_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) ssfdcr_add_mtd() argument
H A Dinftlcore.c48 static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) inftl_add_mtd() argument
149 int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, inftl_read_oob() argument
169 int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, inftl_write_oob() argument
189 static int inftl_write(struct mtd_info *mtd, loff_t offs, size_t len, inftl_write() argument
254 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_foldchain() local
478 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_findwriteunit() local
640 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_trydeletechain() local
762 struct mtd_info *mtd = inftl->mbd.mtd; INFTL_deleteblock() local
871 struct mtd_info *mtd = inftl->mbd.mtd; inftl_readblock() local
H A Dmtdchar.c51 struct mtd_info *mtd; member in struct:mtd_file_info
66 struct mtd_info *mtd; mtdchar_open() local
116 struct mtd_info *mtd = mfi->mtd; mtdchar_close() local
153 struct mtd_info *mtd = mfi->mtd; mtdchar_read() local
239 struct mtd_info *mtd = mfi->mtd; mtdchar_write() local
334 struct mtd_info *mtd = mfi->mtd; otp_select_filemode() local
362 static int mtdchar_writeoob(struct file *file, struct mtd_info *mtd, mtdchar_writeoob() argument
411 static int mtdchar_readoob(struct file *file, struct mtd_info *mtd, mtdchar_readoob() argument
500 static int mtdchar_blkpg_ioctl(struct mtd_info *mtd, mtdchar_blkpg_ioctl() argument
539 static int mtdchar_write_ioctl(struct mtd_info *mtd, mtdchar_write_ioctl() argument
593 struct mtd_info *mtd = mfi->mtd; mtdchar_ioctl() local
1014 struct mtd_info *mtd = mfi->mtd; mtdchar_compat_ioctl() local
1073 struct mtd_info *mtd = mfi->mtd; mtdchar_get_unmapped_area() local
1106 struct mtd_info *mtd = mfi->mtd; mtdchar_mmap() local
H A Dmtdconcat.c44 struct mtd_info mtd; member in struct:mtd_concat
68 concat_read(struct mtd_info *mtd, loff_t from, size_t len, concat_read() argument
120 concat_write(struct mtd_info *mtd, loff_t to, size_t len, concat_write() argument
158 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, concat_writev() argument
233 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) concat_read_oob() argument
290 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) concat_write_oob() argument
341 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) concat_dev_erase() argument
375 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) concat_erase() argument
498 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) concat_lock() argument
532 static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) concat_unlock() argument
566 static void concat_sync(struct mtd_info *mtd) concat_sync() argument
577 static int concat_suspend(struct mtd_info *mtd) concat_suspend() argument
590 static void concat_resume(struct mtd_info *mtd) concat_resume() argument
601 static int concat_block_isbad(struct mtd_info *mtd, loff_t ofs) concat_block_isbad() argument
624 static int concat_block_markbad(struct mtd_info *mtd, loff_t ofs) concat_block_markbad() argument
650 static unsigned long concat_get_unmapped_area(struct mtd_info *mtd, concat_get_unmapped_area() argument
929 void mtd_concat_destroy(struct mtd_info *mtd) mtd_concat_destroy() argument
H A Drfd_ftl.c757 static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) rfd_ftl_add_mtd() argument
H A Dftl.c1045 static void ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) ftl_add_mtd() argument
H A Dmtdpart.c43 struct mtd_info mtd; member in struct:mtd_part
61 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, part_read() argument
80 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, part_point() argument
89 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) part_unpoint() argument
96 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, part_get_unmapped_area() argument
108 static int part_read_oob(struct mtd_info *mtd, loff_t from, part_read_oob() argument
146 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, part_read_user_prot_reg() argument
154 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, part_get_user_prot_info() argument
162 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, part_read_fact_prot_reg() argument
170 static int part_get_fact_prot_info(struct mtd_info *mtd, size_t len, part_get_fact_prot_info() argument
178 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, part_write() argument
186 static int part_panic_write(struct mtd_info *mtd, loff_t to, size_t len, part_panic_write() argument
194 static int part_write_oob(struct mtd_info *mtd, loff_t to, part_write_oob() argument
206 static int part_write_user_prot_reg(struct mtd_info *mtd, loff_t from, part_write_user_prot_reg() argument
214 static int part_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, part_lock_user_prot_reg() argument
221 static int part_writev(struct mtd_info *mtd, const struct kvec *vecs, part_writev() argument
229 static int part_erase(struct mtd_info *mtd, struct erase_info *instr) part_erase() argument
258 static int part_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) part_lock() argument
264 static int part_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) part_unlock() argument
270 static int part_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) part_is_locked() argument
276 static void part_sync(struct mtd_info *mtd) part_sync() argument
282 static int part_suspend(struct mtd_info *mtd) part_suspend() argument
288 static void part_resume(struct mtd_info *mtd) part_resume() argument
294 static int part_block_isreserved(struct mtd_info *mtd, loff_t ofs) part_block_isreserved() argument
301 static int part_block_isbad(struct mtd_info *mtd, loff_t ofs) part_block_isbad() argument
308 static int part_block_markbad(struct mtd_info *mtd, loff_t ofs) part_block_markbad() argument
560 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_partition_offset_show() local
778 int mtd_is_partition(const struct mtd_info *mtd) mtd_is_partition() argument
796 uint64_t mtd_get_device_size(const struct mtd_info *mtd) mtd_get_device_size() argument
H A Dsm_ftl.c240 struct mtd_info *mtd = ftl->trans->mtd; sm_read_sector() local
323 struct mtd_info *mtd = ftl->trans->mtd; sm_write_sector() local
459 struct mtd_info *mtd = ftl->trans->mtd; sm_erase_block() local
571 static int sm_get_media_info(struct sm_ftl *ftl, struct mtd_info *mtd) sm_get_media_info() argument
1129 static void sm_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) sm_add_mtd() argument
H A Dmtdcore.c84 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_release() local
93 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_cls_suspend() local
100 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_cls_resume() local
110 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_type_show() local
149 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_flags_show() local
159 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_size_show() local
170 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_erasesize_show() local
180 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_writesize_show() local
190 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_subpagesize_show() local
201 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_oobsize_show() local
211 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_numeraseregions_show() local
222 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_name_show() local
232 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_strength_show() local
242 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bitflip_threshold_show() local
251 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bitflip_threshold_store() local
269 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_step_size_show() local
279 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_stats_corrected_show() local
290 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_stats_errors_show() local
300 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_badblocks_show() local
310 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bbtblocks_show() local
336 ATTRIBUTE_GROUPS(mtd); variable
345 unsigned mtd_mmap_capabilities(struct mtd_info *mtd) mtd_mmap_capabilities() argument
364 struct mtd_info *mtd; mtd_reboot_notifier() local
382 int add_mtd_device(struct mtd_info *mtd) add_mtd_device() argument
470 int del_mtd_device(struct mtd_info *mtd) del_mtd_device() argument
505 static int mtd_add_device_partitions(struct mtd_info *mtd, mtd_add_device_partitions() argument
557 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, mtd_device_parse_register() argument
630 struct mtd_info *mtd; register_mtd_user() local
656 struct mtd_info *mtd; unregister_mtd_user() local
682 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) get_mtd_device() argument
717 int __get_mtd_device(struct mtd_info *mtd) __get_mtd_device() argument
748 struct mtd_info *mtd = NULL, *other; get_mtd_device_nm() local
775 void put_mtd_device(struct mtd_info *mtd) put_mtd_device() argument
784 void __put_mtd_device(struct mtd_info *mtd) __put_mtd_device() argument
803 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) mtd_erase() argument
822 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, mtd_point() argument
840 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) mtd_unpoint() argument
857 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, mtd_get_unmapped_area() argument
868 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, mtd_read() argument
892 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, mtd_write() argument
913 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, mtd_panic_write() argument
929 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) mtd_read_oob() argument
955 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, mtd_get_fact_prot_info() argument
966 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, mtd_read_fact_prot_reg() argument
978 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, mtd_get_user_prot_info() argument
989 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, mtd_read_user_prot_reg() argument
1001 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, mtd_write_user_prot_reg() argument
1023 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) mtd_lock_user_prot_reg() argument
1034 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) mtd_lock() argument
1046 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) mtd_unlock() argument
1058 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) mtd_is_locked() argument
1070 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) mtd_block_isreserved() argument
1080 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) mtd_block_isbad() argument
1090 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) mtd_block_markbad() argument
1113 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, default_mtd_writev() argument
1145 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, mtd_writev() argument
1181 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) mtd_kmalloc_up_to() argument
1214 struct mtd_info *mtd; mtd_proc_show() local
H A Dmtdswap.c115 struct mtd_info *mtd; member in struct:mtdswap_dev
550 struct mtd_info *mtd = d->mtd; mtdswap_erase_block() local
666 struct mtd_info *mtd = d->mtd; mtdswap_write_block() local
727 struct mtd_info *mtd = d->mtd; mtdswap_move_block() local
926 struct mtd_info *mtd = d->mtd; mtdswap_eblk_passes() local
1054 static unsigned int mtdswap_badblocks(struct mtd_info *mtd, uint64_t size) mtdswap_badblocks() argument
1131 struct mtd_info *mtd = d->mtd; mtdswap_readsect() local
1352 struct mtd_info *mtd = d->mbd_dev->mtd; mtdswap_init() local
1411 static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) mtdswap_add_mtd() argument
/linux-4.1.27/arch/arm/mach-omap1/
H A Dboard-nand.c23 void omap1_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) omap1_nand_cmd_ctl() argument
H A Dboard-perseus2.c147 static int nand_dev_ready(struct mtd_info *mtd) nand_dev_ready() argument
H A Dboard-h2.c185 static int h2_nand_dev_ready(struct mtd_info *mtd) h2_nand_dev_ready() argument
H A Dboard-h3.c188 static int nand_dev_ready(struct mtd_info *mtd) nand_dev_ready() argument
H A Dboard-fsample.c189 static int nand_dev_ready(struct mtd_info *mtd) nand_dev_ready() argument
/linux-4.1.27/drivers/mtd/nand/bcm47xxnflash/
H A Dbcm47xxnflash.h15 struct mtd_info mtd; member in struct:bcm47xxnflash
H A Dops_bcm4706.c89 static void bcm47xxnflash_ops_bcm4706_read(struct mtd_info *mtd, uint8_t *buf, bcm47xxnflash_ops_bcm4706_read() argument
139 static void bcm47xxnflash_ops_bcm4706_write(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_write() argument
173 static void bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct mtd_info *mtd, int cmd, bcm47xxnflash_ops_bcm4706_cmd_ctrl() argument
194 static void bcm47xxnflash_ops_bcm4706_select_chip(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_select_chip() argument
200 static int bcm47xxnflash_ops_bcm4706_dev_ready(struct mtd_info *mtd) bcm47xxnflash_ops_bcm4706_dev_ready() argument
215 static void bcm47xxnflash_ops_bcm4706_cmdfunc(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_cmdfunc() argument
313 static u8 bcm47xxnflash_ops_bcm4706_read_byte(struct mtd_info *mtd) bcm47xxnflash_ops_bcm4706_read_byte() argument
341 static void bcm47xxnflash_ops_bcm4706_read_buf(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_read_buf() argument
357 static void bcm47xxnflash_ops_bcm4706_write_buf(struct mtd_info *mtd, bcm47xxnflash_ops_bcm4706_write_buf() argument
/linux-4.1.27/drivers/mtd/chips/
H A Dchipreg.c85 void map_destroy(struct mtd_info *mtd) map_destroy() argument
H A Dmap_absent.c46 struct mtd_info *mtd; map_absent_probe() local
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() argument
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() argument
81 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) map_absent_erase() argument
86 static void map_absent_sync(struct mtd_info *mtd) map_absent_sync() argument
91 static void map_absent_destroy(struct mtd_info *mtd) map_absent_destroy() argument
H A Dmap_ram.c35 struct mtd_info *mtd; map_ram_probe() local
90 static unsigned long mapram_unmapped_area(struct mtd_info *mtd, mapram_unmapped_area() argument
99 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) mapram_read() argument
108 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) mapram_write() argument
117 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) mapram_erase() argument
133 static void mapram_nop(struct mtd_info *mtd) mapram_nop() argument
H A Dcfi_util.c148 void cfi_fixup(struct mtd_info *mtd, struct cfi_fixup *fixups) cfi_fixup() argument
164 int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob, cfi_varsize_frob() argument
H A Dfwh_lock.h79 static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) fwh_lock_varsize() argument
90 static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) fwh_unlock_varsize() argument
100 static void fixup_use_fwh_lock(struct mtd_info *mtd) fixup_use_fwh_lock() argument
H A Dgen_probe.c23 struct mtd_info *mtd = NULL; mtd_do_chip_probe() local
217 struct mtd_info *mtd; cfi_cmdset_unknown() local
H A Dmap_rom.c43 struct mtd_info *mtd; map_rom_probe() local
74 static unsigned long maprom_unmapped_area(struct mtd_info *mtd, maprom_unmapped_area() argument
83 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) maprom_read() argument
92 static void maprom_nop(struct mtd_info *mtd) maprom_nop() argument
97 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) maprom_write() argument
102 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info) maprom_erase() argument
H A Dcfi_cmdset_0020.c169 struct mtd_info *mtd; cfi_staa_setup() local
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() argument
605 static int cfi_staa_write_buffers (struct mtd_info *mtd, loff_t to, cfi_staa_write_buffers() argument
662 cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, cfi_staa_writev() argument
889 static int cfi_staa_erase_varsize(struct mtd_info *mtd, cfi_staa_erase_varsize() argument
974 static void cfi_staa_sync (struct mtd_info *mtd) cfi_staa_sync() argument
1127 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_staa_lock() argument
1273 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_staa_unlock() argument
1312 static int cfi_staa_suspend(struct mtd_info *mtd) cfi_staa_suspend() argument
1368 static void cfi_staa_resume(struct mtd_info *mtd) cfi_staa_resume() argument
1392 static void cfi_staa_destroy(struct mtd_info *mtd) cfi_staa_destroy() argument
H A Dcfi_cmdset_0001.c169 static void fixup_convert_atmel_pri(struct mtd_info *mtd) fixup_convert_atmel_pri() argument
209 static void fixup_at49bv640dx_lock(struct mtd_info *mtd) fixup_at49bv640dx_lock() argument
221 static void fixup_intel_strataflash(struct mtd_info *mtd) fixup_intel_strataflash() argument
234 static void fixup_no_write_suspend(struct mtd_info *mtd) fixup_no_write_suspend() argument
247 static void fixup_st_m28w320ct(struct mtd_info *mtd) fixup_st_m28w320ct() argument
256 static void fixup_st_m28w320cb(struct mtd_info *mtd) fixup_st_m28w320cb() argument
276 static void fixup_LH28F640BF(struct mtd_info *mtd) fixup_LH28F640BF() argument
296 static void fixup_use_point(struct mtd_info *mtd) fixup_use_point() argument
305 static void fixup_use_write_buffers(struct mtd_info *mtd) fixup_use_write_buffers() argument
319 static void fixup_unlock_powerup_lock(struct mtd_info *mtd) fixup_unlock_powerup_lock() argument
470 struct mtd_info *mtd; cfi_cmdset_0001() local
586 static struct mtd_info *cfi_intelext_setup(struct mtd_info *mtd) cfi_intelext_setup() argument
659 static int cfi_intelext_partition_fixup(struct mtd_info *mtd, cfi_intelext_partition_fixup() argument
1348 static int cfi_intelext_point(struct mtd_info *mtd, loff_t from, size_t len, cfi_intelext_point() argument
1401 static int cfi_intelext_unpoint(struct mtd_info *mtd, loff_t from, size_t len) cfi_intelext_unpoint() argument
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() argument
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() argument
1837 static int cfi_intelext_writev (struct mtd_info *mtd, const struct kvec *vecs, cfi_intelext_writev() argument
1889 static int cfi_intelext_write_buffers (struct mtd_info *mtd, loff_t to, cfi_intelext_write_buffers() argument
1988 static int cfi_intelext_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) cfi_intelext_erase_varsize() argument
2006 static void cfi_intelext_sync (struct mtd_info *mtd) cfi_intelext_sync() argument
2139 static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_intelext_lock() argument
2163 static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_intelext_unlock() argument
2187 static int cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs, cfi_intelext_is_locked() argument
2274 static int cfi_intelext_otp_walk(struct mtd_info *mtd, loff_t from, size_t len, cfi_intelext_otp_walk() argument
2408 static int cfi_intelext_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, cfi_intelext_read_fact_prot_reg() argument
2416 static int cfi_intelext_read_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_intelext_read_user_prot_reg() argument
2424 static int cfi_intelext_write_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_intelext_write_user_prot_reg() argument
2432 static int cfi_intelext_lock_user_prot_reg(struct mtd_info *mtd, cfi_intelext_lock_user_prot_reg() argument
2440 static int cfi_intelext_get_fact_prot_info(struct mtd_info *mtd, size_t len, cfi_intelext_get_fact_prot_info() argument
2448 static int cfi_intelext_get_user_prot_info(struct mtd_info *mtd, size_t len, cfi_intelext_get_user_prot_info() argument
2457 static void cfi_intelext_save_locks(struct mtd_info *mtd) cfi_intelext_save_locks() argument
2483 static int cfi_intelext_suspend(struct mtd_info *mtd) cfi_intelext_suspend() argument
2557 static void cfi_intelext_restore_locks(struct mtd_info *mtd) cfi_intelext_restore_locks() argument
2577 static void cfi_intelext_resume(struct mtd_info *mtd) cfi_intelext_resume() argument
2608 static int cfi_intelext_reset(struct mtd_info *mtd) cfi_intelext_reset() argument
2636 struct mtd_info *mtd; cfi_intelext_reboot() local
2643 static void cfi_intelext_destroy(struct mtd_info *mtd) cfi_intelext_destroy() argument
H A Dcfi_cmdset_0002.c156 static void fixup_amd_bootblock(struct mtd_info *mtd) fixup_amd_bootblock() argument
205 static void fixup_use_write_buffers(struct mtd_info *mtd) fixup_use_write_buffers() argument
216 static void fixup_convert_atmel_pri(struct mtd_info *mtd) fixup_convert_atmel_pri() argument
247 static void fixup_use_secsi(struct mtd_info *mtd) fixup_use_secsi() argument
254 static void fixup_use_erase_chip(struct mtd_info *mtd) fixup_use_erase_chip() argument
269 static void fixup_use_atmel_lock(struct mtd_info *mtd) fixup_use_atmel_lock() argument
276 static void fixup_old_sst_eraseregion(struct mtd_info *mtd) fixup_old_sst_eraseregion() argument
290 static void fixup_sst39vf(struct mtd_info *mtd) fixup_sst39vf() argument
301 static void fixup_sst39vf_rev_b(struct mtd_info *mtd) fixup_sst39vf_rev_b() argument
314 static void fixup_sst38vf640x_sectorsize(struct mtd_info *mtd) fixup_sst38vf640x_sectorsize() argument
329 static void fixup_s29gl064n_sectors(struct mtd_info *mtd) fixup_s29gl064n_sectors() argument
340 static void fixup_s29gl032n_sectors(struct mtd_info *mtd) fixup_s29gl032n_sectors() argument
351 static void fixup_s29ns512p_sectors(struct mtd_info *mtd) fixup_s29ns512p_sectors() argument
516 struct mtd_info *mtd; cfi_cmdset_0002() local
679 static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) cfi_amdstd_setup() argument
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() argument
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() argument
1384 static int cfi_amdstd_otp_walk(struct mtd_info *mtd, loff_t from, size_t len, cfi_amdstd_otp_walk() argument
1502 static int cfi_amdstd_get_fact_prot_info(struct mtd_info *mtd, size_t len, cfi_amdstd_get_fact_prot_info() argument
1509 static int cfi_amdstd_get_user_prot_info(struct mtd_info *mtd, size_t len, cfi_amdstd_get_user_prot_info() argument
1516 static int cfi_amdstd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, cfi_amdstd_read_fact_prot_reg() argument
1524 static int cfi_amdstd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_amdstd_read_user_prot_reg() argument
1532 static int cfi_amdstd_write_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_amdstd_write_user_prot_reg() argument
1540 static int cfi_amdstd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, cfi_amdstd_lock_user_prot_reg() argument
1665 static int cfi_amdstd_write_words(struct mtd_info *mtd, loff_t to, size_t len, cfi_amdstd_write_words() argument
1920 static int cfi_amdstd_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, cfi_amdstd_write_buffers() argument
2130 static int cfi_amdstd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, cfi_amdstd_panic_write() argument
2414 static int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) cfi_amdstd_erase_varsize() argument
2433 static int cfi_amdstd_erase_chip(struct mtd_info *mtd, struct erase_info *instr) cfi_amdstd_erase_chip() argument
2517 static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_atmel_lock() argument
2522 static int cfi_atmel_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) cfi_atmel_unlock() argument
2615 static int __maybe_unused cfi_ppb_lock(struct mtd_info *mtd, loff_t ofs, cfi_ppb_lock() argument
2622 static int __maybe_unused cfi_ppb_unlock(struct mtd_info *mtd, loff_t ofs, cfi_ppb_unlock() argument
2720 static int __maybe_unused cfi_ppb_is_locked(struct mtd_info *mtd, loff_t ofs, cfi_ppb_is_locked() argument
2727 static void cfi_amdstd_sync (struct mtd_info *mtd) cfi_amdstd_sync() argument
2788 static int cfi_amdstd_suspend(struct mtd_info *mtd) cfi_amdstd_suspend() argument
2842 static void cfi_amdstd_resume(struct mtd_info *mtd) cfi_amdstd_resume() argument
2874 static int cfi_amdstd_reset(struct mtd_info *mtd) cfi_amdstd_reset() argument
2904 struct mtd_info *mtd; cfi_amdstd_reboot() local
2912 static void cfi_amdstd_destroy(struct mtd_info *mtd) cfi_amdstd_destroy() argument
/linux-4.1.27/drivers/mtd/maps/
H A Drbtx4939-flash.c25 struct mtd_info *mtd; member in struct:rbtx4939_flash_info
H A Dplat-ram.c44 struct mtd_info *mtd; member in struct:platram_info
H A Dpxa2xx-flash.c43 struct mtd_info *mtd; member in struct:pxa2xx_flash_info
H A Dsun_uflash.c41 struct mtd_info *mtd; /* mtd info */ member in struct:uflash_dev
H A Duclinux.c58 static int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len, uclinux_point() argument
73 struct mtd_info *mtd; uclinux_mtd_init() local
H A Dlantiq-flash.c43 struct mtd_info *mtd; member in struct:ltq_mtd
H A Dscb2_flash.c71 static int scb2_fixup_mtd(struct mtd_info *mtd) scb2_fixup_mtd() argument
H A Dtsunami_flash.c76 struct mtd_info *mtd; cleanup_tsunami_flash() local
H A Damd76xrom.c42 struct mtd_info *mtd; member in struct:amd76xrom_map_info
H A Dbfin-async-flash.c38 struct mtd_info *mtd; member in struct:async_state
H A Dck804xrom.c46 struct mtd_info *mtd; member in struct:ck804xrom_map_info
H A Dgpio-addr-flash.c44 struct mtd_info *mtd; member in struct:async_state
H A Dichxrom.c47 struct mtd_info *mtd; member in struct:ichxrom_map_info
H A Dixp4xx.c146 struct mtd_info *mtd; member in struct:ixp4xx_flash_info
H A Dlatch-addr-flash.c25 struct mtd_info *mtd; member in struct:latch_addr_flash_info
H A Dpci.c259 struct mtd_info *mtd = NULL; mtd_pci_probe() local
310 struct mtd_info *mtd = pci_get_drvdata(dev); mtd_pci_remove() local
H A Dphysmap.c27 struct mtd_info *mtd[MAX_RESOURCES]; member in struct:physmap_flash_info
H A Dphysmap_of.c29 struct mtd_info *mtd; member in struct:of_flash_list
82 struct mtd_info *mtd; obsolete_probe() local
H A Dsa1100-flash.c29 struct mtd_info *mtd; member in struct:sa_subdev_info
34 struct mtd_info *mtd; member in struct:sa_info
H A Desb2rom.c108 struct mtd_info *mtd; member in struct:esb2rom_map_info
H A Dpcmciamtd.c466 struct mtd_info *mtd = NULL; pcmciamtd_config() local
H A Dvmu-flash.c50 struct mtd_info *mtd; member in struct:memcard
352 static int vmu_flash_read(struct mtd_info *mtd, loff_t from, size_t len, vmu_flash_read() argument
418 static int vmu_flash_write(struct mtd_info *mtd, loff_t to, size_t len, vmu_flash_write() argument
495 static void vmu_flash_sync(struct mtd_info *mtd) vmu_flash_sync() argument
719 struct mtd_info *mtd; vmu_can_unload() local
58 ofs_to_block(unsigned long src_ofs, struct mtd_info *mtd, int partition) ofs_to_block() argument
111 maple_vmu_read_block(unsigned int num, unsigned char *buf, struct mtd_info *mtd) maple_vmu_read_block() argument
228 maple_vmu_write_block(unsigned int num, const unsigned char *buf, struct mtd_info *mtd) maple_vmu_write_block() argument
304 vmu_flash_read_char(unsigned long ofs, int *retval, struct mtd_info *mtd) vmu_flash_read_char() argument
/linux-4.1.27/drivers/mtd/nand/
H A Dplat_nand.c23 struct mtd_info mtd; member in struct:plat_nand_data
H A Dsm_common.c41 static int sm_block_markbad(struct mtd_info *mtd, loff_t ofs) sm_block_markbad() argument
103 int sm_register_device(struct mtd_info *mtd, int smartmedia) sm_register_device() argument
H A Dams-delta.c65 static void ams_delta_write_byte(struct mtd_info *mtd, u_char byte) ams_delta_write_byte() argument
77 static u_char ams_delta_read_byte(struct mtd_info *mtd) ams_delta_read_byte() argument
92 static void ams_delta_write_buf(struct mtd_info *mtd, const u_char *buf, ams_delta_write_buf() argument
101 static void ams_delta_read_buf(struct mtd_info *mtd, u_char *buf, int len) ams_delta_read_buf() argument
117 static void ams_delta_hwcontrol(struct mtd_info *mtd, int cmd, ams_delta_hwcontrol() argument
134 static int ams_delta_nand_ready(struct mtd_info *mtd) ams_delta_nand_ready() argument
H A Dcmx270_nand.c54 static u_char cmx270_read_byte(struct mtd_info *mtd) cmx270_read_byte() argument
61 static void cmx270_write_buf(struct mtd_info *mtd, const u_char *buf, int len) cmx270_write_buf() argument
70 static void cmx270_read_buf(struct mtd_info *mtd, u_char *buf, int len) cmx270_read_buf() argument
94 static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, cmx270_hwcontrol() argument
128 static int cmx270_device_ready(struct mtd_info *mtd) cmx270_device_ready() argument
H A Dnand_bch.c52 int nand_bch_calculate_ecc(struct mtd_info *mtd, const unsigned char *buf, nand_bch_calculate_ecc() argument
79 int nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, nand_bch_correct_data() argument
127 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, unsigned int eccbytes, nand_bch_init() argument
H A Dorion_nand.c26 static void orion_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) orion_nand_cmd_ctrl() argument
48 static void orion_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) orion_nand_read_buf() argument
78 struct mtd_info *mtd; orion_nand_probe() local
185 struct mtd_info *mtd = platform_get_drvdata(pdev); orion_nand_remove() local
H A Dpasemi_nand.c46 static void pasemi_read_buf(struct mtd_info *mtd, u_char *buf, int len) pasemi_read_buf() argument
58 static void pasemi_write_buf(struct mtd_info *mtd, const u_char *buf, int len) pasemi_write_buf() argument
70 static void pasemi_hwcontrol(struct mtd_info *mtd, int cmd, pasemi_hwcontrol() argument
88 int pasemi_device_ready(struct mtd_info *mtd) pasemi_device_ready() argument
H A Dgpio.c72 static void gpio_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) gpio_nand_cmd_ctrl() argument
91 static int gpio_nand_devready(struct mtd_info *mtd) gpio_nand_devready() argument
H A Dndfc.c42 struct mtd_info mtd; member in struct:ndfc_controller
50 static void ndfc_select_chip(struct mtd_info *mtd, int chip) ndfc_select_chip() argument
65 static void ndfc_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) ndfc_hwcontrol() argument
79 static int ndfc_ready(struct mtd_info *mtd) ndfc_ready() argument
87 static void ndfc_enable_hwecc(struct mtd_info *mtd, int mode) ndfc_enable_hwecc() argument
99 static int ndfc_calculate_ecc(struct mtd_info *mtd, ndfc_calculate_ecc() argument
124 static void ndfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) ndfc_read_buf() argument
134 static void ndfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) ndfc_write_buf() argument
H A Dsharpsl.c32 struct mtd_info mtd; member in struct:sharpsl_nand
65 static void sharpsl_nand_hwcontrol(struct mtd_info *mtd, int cmd, sharpsl_nand_hwcontrol() argument
85 static int sharpsl_nand_dev_ready(struct mtd_info *mtd) sharpsl_nand_dev_ready() argument
91 static void sharpsl_nand_enable_hwecc(struct mtd_info *mtd, int mode) sharpsl_nand_enable_hwecc() argument
97 static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat, u_char * ecc_code) sharpsl_nand_calculate_ecc() argument
H A Dsocrates_nand.c33 struct mtd_info mtd; member in struct:socrates_nand_host
44 static void socrates_nand_write_buf(struct mtd_info *mtd, socrates_nand_write_buf() argument
64 static void socrates_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) socrates_nand_read_buf() argument
84 static uint8_t socrates_nand_read_byte(struct mtd_info *mtd) socrates_nand_read_byte() argument
95 static uint16_t socrates_nand_read_word(struct mtd_info *mtd) socrates_nand_read_word() argument
105 static void socrates_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, socrates_nand_cmd_ctrl() argument
131 static int socrates_nand_device_ready(struct mtd_info *mtd) socrates_nand_device_ready() argument
147 struct mtd_info *mtd; socrates_nand_probe() local
221 struct mtd_info *mtd = &host->mtd; socrates_nand_remove() local
H A Dau1550nd.c40 static u_char au_read_byte(struct mtd_info *mtd) au_read_byte() argument
55 static void au_write_byte(struct mtd_info *mtd, u_char byte) au_write_byte() argument
68 static u_char au_read_byte16(struct mtd_info *mtd) au_read_byte16() argument
83 static void au_write_byte16(struct mtd_info *mtd, u_char byte) au_write_byte16() argument
96 static u16 au_read_word(struct mtd_info *mtd) au_read_word() argument
112 static void au_write_buf(struct mtd_info *mtd, const u_char *buf, int len) au_write_buf() argument
131 static void au_read_buf(struct mtd_info *mtd, u_char *buf, int len) au_read_buf() argument
150 static void au_write_buf16(struct mtd_info *mtd, const u_char *buf, int len) au_write_buf16() argument
172 static void au_read_buf16(struct mtd_info *mtd, u_char *buf, int len) au_read_buf16() argument
198 static void au1550_hwcontrol(struct mtd_info *mtd, int cmd) au1550_hwcontrol() argument
240 int au1550_device_ready(struct mtd_info *mtd) au1550_device_ready() argument
257 static void au1550_select_chip(struct mtd_info *mtd, int chip) au1550_select_chip() argument
268 static void au1550_command(struct mtd_info *mtd, unsigned command, int column, int page_addr) au1550_command() argument
H A Dfsl_upm.c34 struct mtd_info mtd; member in struct:fsl_upm_nand
55 static int fun_chip_ready(struct mtd_info *mtd) fun_chip_ready() argument
80 static void fun_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) fun_cmd_ctrl() argument
110 static void fun_select_chip(struct mtd_info *mtd, int mchip_nr) fun_select_chip() argument
126 static uint8_t fun_read_byte(struct mtd_info *mtd) fun_read_byte() argument
133 static void fun_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) fun_read_buf() argument
142 static void fun_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) fun_write_buf() argument
H A Dnand_ecc.c423 int nand_calculate_ecc(struct mtd_info *mtd, const unsigned char *buf, nand_calculate_ecc() argument
523 int nand_correct_data(struct mtd_info *mtd, unsigned char *buf, nand_correct_data() argument
H A Dnuc900_nand.c58 struct mtd_info mtd; member in struct:nuc900_nand
78 static unsigned char nuc900_nand_read_byte(struct mtd_info *mtd) nuc900_nand_read_byte() argument
90 static void nuc900_nand_read_buf(struct mtd_info *mtd, nuc900_nand_read_buf() argument
102 static void nuc900_nand_write_buf(struct mtd_info *mtd, nuc900_nand_write_buf() argument
125 static int nuc900_nand_devready(struct mtd_info *mtd) nuc900_nand_devready() argument
136 static void nuc900_nand_command_lp(struct mtd_info *mtd, unsigned int command, nuc900_nand_command_lp() argument
H A Dxway_nand.c73 static void xway_select_chip(struct mtd_info *mtd, int chip) xway_select_chip() argument
90 static void xway_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) xway_cmd_ctrl() argument
114 static int xway_dev_ready(struct mtd_info *mtd) xway_dev_ready() argument
119 static unsigned char xway_read_byte(struct mtd_info *mtd) xway_read_byte() argument
H A Dcs553x_nand.c98 static void cs553x_read_buf(struct mtd_info *mtd, u_char *buf, int len) cs553x_read_buf() argument
110 static void cs553x_write_buf(struct mtd_info *mtd, const u_char *buf, int len) cs553x_write_buf() argument
122 static unsigned char cs553x_read_byte(struct mtd_info *mtd) cs553x_read_byte() argument
128 static void cs553x_write_byte(struct mtd_info *mtd, u_char byte) cs553x_write_byte() argument
140 static void cs553x_hwcontrol(struct mtd_info *mtd, int cmd, cs553x_hwcontrol() argument
153 static int cs553x_device_ready(struct mtd_info *mtd) cs553x_device_ready() argument
162 static void cs_enable_hwecc(struct mtd_info *mtd, int mode) cs_enable_hwecc() argument
170 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) cs_calculate_ecc() argument
327 struct mtd_info *mtd = cs553x_mtd[i]; cs553x_cleanup() local
H A Dfsl_elbc_nand.c51 struct mtd_info mtd; member in struct:fsl_elbc_mtd
145 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) set_addr() argument
196 static int fsl_elbc_run_command(struct mtd_info *mtd) fsl_elbc_run_command() argument
300 static void fsl_elbc_cmdfunc(struct mtd_info *mtd, unsigned int command, fsl_elbc_cmdfunc() argument
516 static void fsl_elbc_select_chip(struct mtd_info *mtd, int chip) fsl_elbc_select_chip() argument
526 static void fsl_elbc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) fsl_elbc_write_buf() argument
564 static u8 fsl_elbc_read_byte(struct mtd_info *mtd) fsl_elbc_read_byte() argument
581 static void fsl_elbc_read_buf(struct mtd_info *mtd, u8 *buf, int len) fsl_elbc_read_buf() argument
606 static int fsl_elbc_wait(struct mtd_info *mtd, struct nand_chip *chip) fsl_elbc_wait() argument
620 static int fsl_elbc_chip_init_tail(struct mtd_info *mtd) fsl_elbc_chip_init_tail() argument
697 static int fsl_elbc_read_page(struct mtd_info *mtd, struct nand_chip *chip, fsl_elbc_read_page() argument
717 static int fsl_elbc_write_page(struct mtd_info *mtd, struct nand_chip *chip, fsl_elbc_write_page() argument
729 static int fsl_elbc_write_subpage(struct mtd_info *mtd, struct nand_chip *chip, fsl_elbc_write_subpage() argument
H A Djz4740_nand.c61 struct mtd_info mtd; member in struct:jz_nand
76 static inline struct jz_nand *mtd_to_jz_nand(struct mtd_info *mtd) mtd_to_jz_nand() argument
81 static void jz_nand_select_chip(struct mtd_info *mtd, int chipnr) jz_nand_select_chip() argument
103 static void jz_nand_cmd_ctrl(struct mtd_info *mtd, int dat, unsigned int ctrl) jz_nand_cmd_ctrl() argument
131 static int jz_nand_dev_ready(struct mtd_info *mtd) jz_nand_dev_ready() argument
137 static void jz_nand_hwctl(struct mtd_info *mtd, int mode) jz_nand_hwctl() argument
165 static int jz_nand_calculate_ecc_rs(struct mtd_info *mtd, const uint8_t *dat, jz_nand_calculate_ecc_rs() argument
218 static int jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat, jz_nand_correct_ecc_rs() argument
336 struct mtd_info *mtd = &nand->mtd; jz_nand_detect_bank() local
413 struct mtd_info *mtd; jz_nand_probe() local
H A Dr852.c65 static inline struct r852_device *r852_get_dev(struct mtd_info *mtd) r852_get_dev() argument
232 static void r852_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) r852_write_buf() argument
266 static void r852_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) r852_read_buf() argument
303 static uint8_t r852_read_byte(struct mtd_info *mtd) r852_read_byte() argument
317 static void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl) r852_cmdctl() argument
362 static int r852_wait(struct mtd_info *mtd, struct nand_chip *chip) r852_wait() argument
391 static int r852_ready(struct mtd_info *mtd) r852_ready() argument
402 static void r852_ecc_hwctl(struct mtd_info *mtd, int mode) r852_ecc_hwctl() argument
434 static int r852_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, r852_ecc_calculate() argument
466 static int r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat, r852_ecc_correct() argument
522 static int r852_read_oob(struct mtd_info *mtd, struct nand_chip *chip, r852_read_oob() argument
594 struct mtd_info *mtd = container_of(sys_dev, struct mtd_info, dev); r852_media_type_show() local
H A Dr852.h111 struct mtd_info *mtd; /* mtd backpointer */ member in struct:r852_device
H A Dbf5xx_nand.c145 struct mtd_info mtd; member in struct:bf5xx_nand_info
161 static struct bf5xx_nand_info *mtd_to_nand_info(struct mtd_info *mtd) mtd_to_nand_info() argument
185 static void bf5xx_nand_hwcontrol(struct mtd_info *mtd, int cmd, bf5xx_nand_hwcontrol() argument
206 static int bf5xx_nand_devready(struct mtd_info *mtd) bf5xx_nand_devready() argument
225 static int bf5xx_nand_correct_data_256(struct mtd_info *mtd, u_char *dat, bf5xx_nand_correct_data_256() argument
304 static int bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat, bf5xx_nand_correct_data() argument
323 static void bf5xx_nand_enable_hwecc(struct mtd_info *mtd, int mode) bf5xx_nand_enable_hwecc() argument
328 static int bf5xx_nand_calculate_ecc(struct mtd_info *mtd, bf5xx_nand_calculate_ecc() argument
368 static void bf5xx_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) bf5xx_nand_read_buf() argument
397 static uint8_t bf5xx_nand_read_byte(struct mtd_info *mtd) bf5xx_nand_read_byte() argument
406 static void bf5xx_nand_write_buf(struct mtd_info *mtd, bf5xx_nand_write_buf() argument
420 static void bf5xx_nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) bf5xx_nand_read_buf16() argument
438 static void bf5xx_nand_write_buf16(struct mtd_info *mtd, bf5xx_nand_write_buf16() argument
465 static void bf5xx_nand_dma_rw(struct mtd_info *mtd, bf5xx_nand_dma_rw() argument
531 static void bf5xx_nand_dma_read_buf(struct mtd_info *mtd, bf5xx_nand_dma_read_buf() argument
545 static void bf5xx_nand_dma_write_buf(struct mtd_info *mtd, bf5xx_nand_dma_write_buf() argument
559 static int bf5xx_nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, bf5xx_nand_read_page_raw() argument
568 static int bf5xx_nand_write_page_raw(struct mtd_info *mtd, bf5xx_nand_write_page_raw() argument
662 struct mtd_info *mtd = &info->mtd; bf5xx_nand_add_partition() local
685 static int bf5xx_nand_scan(struct mtd_info *mtd) bf5xx_nand_scan() argument
727 struct mtd_info *mtd = NULL; bf5xx_nand_probe() local
H A Ddavinci_nand.c56 struct mtd_info mtd; member in struct:davinci_nand_info
104 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, nand_davinci_hwcontrol() argument
125 static void nand_davinci_select_chip(struct mtd_info *mtd, int chip) nand_davinci_select_chip() argument
145 static inline uint32_t nand_davinci_readecc_1bit(struct mtd_info *mtd) nand_davinci_readecc_1bit() argument
153 static void nand_davinci_hwctl_1bit(struct mtd_info *mtd, int mode) nand_davinci_hwctl_1bit() argument
177 static int nand_davinci_calculate_1bit(struct mtd_info *mtd, nand_davinci_calculate_1bit() argument
192 static int nand_davinci_correct_1bit(struct mtd_info *mtd, u_char *dat, nand_davinci_correct_1bit() argument
238 static void nand_davinci_hwctl_4bit(struct mtd_info *mtd, int mode) nand_davinci_hwctl_4bit() argument
270 static int nand_davinci_calculate_4bit(struct mtd_info *mtd, nand_davinci_calculate_4bit() argument
307 static int nand_davinci_correct_4bit(struct mtd_info *mtd, nand_davinci_correct_4bit() argument
448 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) nand_davinci_read_buf() argument
460 static void nand_davinci_write_buf(struct mtd_info *mtd, nand_davinci_write_buf() argument
477 static int nand_davinci_dev_ready(struct mtd_info *mtd) nand_davinci_dev_ready() argument
H A Dfsl_ifc_nand.c43 struct mtd_info mtd; member in struct:fsl_ifc_mtd
231 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) set_addr() argument
254 static int is_blank(struct mtd_info *mtd, unsigned int bufnum) is_blank() argument
279 static int check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, check_read_ecc() argument
293 static void fsl_ifc_run_command(struct mtd_info *mtd) fsl_ifc_run_command() argument
410 static void fsl_ifc_cmdfunc(struct mtd_info *mtd, unsigned int command, fsl_ifc_cmdfunc() argument
613 static void fsl_ifc_select_chip(struct mtd_info *mtd, int chip) fsl_ifc_select_chip() argument
623 static void fsl_ifc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) fsl_ifc_write_buf() argument
649 static uint8_t fsl_ifc_read_byte(struct mtd_info *mtd) fsl_ifc_read_byte() argument
672 static uint8_t fsl_ifc_read_byte16(struct mtd_info *mtd) fsl_ifc_read_byte16() argument
695 static void fsl_ifc_read_buf(struct mtd_info *mtd, u8 *buf, int len) fsl_ifc_read_buf() argument
721 static int fsl_ifc_wait(struct mtd_info *mtd, struct nand_chip *chip) fsl_ifc_wait() argument
749 static int fsl_ifc_read_page(struct mtd_info *mtd, struct nand_chip *chip, fsl_ifc_read_page() argument
772 static int fsl_ifc_write_page(struct mtd_info *mtd, struct nand_chip *chip, fsl_ifc_write_page() argument
781 static int fsl_ifc_chip_init_tail(struct mtd_info *mtd) fsl_ifc_chip_init_tail() argument
369 fsl_ifc_do_read(struct nand_chip *chip, int oob, struct mtd_info *mtd) fsl_ifc_do_read() argument
H A Dnand_bbt.c174 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num, read_bbt() argument
267 static int read_abs_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td, int chip) read_abs_bbt() argument
293 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, scan_read_data() argument
317 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, scan_read_oob() argument
347 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, scan_read() argument
357 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, scan_write_bbt() argument
372 static u32 bbt_get_ver_offs(struct mtd_info *mtd, struct nand_bbt_descr *td) bbt_get_ver_offs() argument
391 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, read_abs_bbts() argument
416 static int scan_block_fast(struct mtd_info *mtd, struct nand_bbt_descr *bd, scan_block_fast() argument
457 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, create_bbt() argument
527 static int search_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td) search_bbt() argument
598 static void search_read_bbts(struct mtd_info *mtd, uint8_t *buf, search_read_bbts() argument
620 static int write_bbt(struct mtd_info *mtd, uint8_t *buf, write_bbt() argument
823 static inline int nand_memory_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) nand_memory_bbt() argument
841 static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd) check_create() argument
966 static void mark_bbt_region(struct mtd_info *mtd, struct nand_bbt_descr *td) mark_bbt_region() argument
1026 static void verify_bbt_descr(struct mtd_info *mtd, struct nand_bbt_descr *bd) verify_bbt_descr() argument
1078 int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) nand_scan_bbt() argument
1146 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs) nand_update_bbt() argument
1280 int nand_default_bbt(struct mtd_info *mtd) nand_default_bbt() argument
1316 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs) nand_isreserved_bbt() argument
1331 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) nand_isbad_bbt() argument
1358 int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs) nand_markbad_bbt() argument
H A Dsh_flctl.c192 static void set_addr(struct mtd_info *mtd, int column, int page_addr) set_addr() argument
500 static void set_cmd_regs(struct mtd_info *mtd, uint32_t cmd, uint32_t flcmcdr_val) set_cmd_regs() argument
562 static int flctl_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, flctl_read_page_hwecc() argument
571 static int flctl_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, flctl_write_page_hwecc() argument
579 static void execmd_read_page_sector(struct mtd_info *mtd, int page_addr) execmd_read_page_sector() argument
628 static void execmd_read_oob(struct mtd_info *mtd, int page_addr) execmd_read_oob() argument
649 static void execmd_write_page_sector(struct mtd_info *mtd) execmd_write_page_sector() argument
675 static void execmd_write_oob(struct mtd_info *mtd) execmd_write_oob() argument
697 static void flctl_cmdfunc(struct mtd_info *mtd, unsigned int command, flctl_cmdfunc() argument
873 static void flctl_select_chip(struct mtd_info *mtd, int chipnr) flctl_select_chip() argument
917 static void flctl_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) flctl_write_buf() argument
925 static uint8_t flctl_read_byte(struct mtd_info *mtd) flctl_read_byte() argument
935 static uint16_t flctl_read_word(struct mtd_info *mtd) flctl_read_word() argument
944 static void flctl_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) flctl_read_buf() argument
952 static int flctl_chip_init_tail(struct mtd_info *mtd) flctl_chip_init_tail() argument
H A Dtmio_nand.c106 struct mtd_info mtd; member in struct:tmio_nand
127 static void tmio_nand_hwcontrol(struct mtd_info *mtd, int cmd, tmio_nand_hwcontrol() argument
160 static int tmio_nand_dev_ready(struct mtd_info *mtd) tmio_nand_dev_ready() argument
189 tmio_nand_wait(struct mtd_info *mtd, struct nand_chip *nand_chip) tmio_nand_wait() argument
225 static u_char tmio_nand_read_byte(struct mtd_info *mtd) tmio_nand_read_byte() argument
245 tmio_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) tmio_nand_write_buf() argument
252 static void tmio_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) tmio_nand_read_buf() argument
259 static void tmio_nand_enable_hwecc(struct mtd_info *mtd, int mode) tmio_nand_enable_hwecc() argument
268 static int tmio_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, tmio_nand_calculate_ecc() argument
290 static int tmio_nand_correct_data(struct mtd_info *mtd, unsigned char *buf, tmio_nand_correct_data() argument
367 struct mtd_info *mtd; tmio_probe() local
H A Dtxx9ndfmc.c66 struct mtd_info mtd; member in struct:txx9ndfmc_priv
80 static struct platform_device *mtd_to_platdev(struct mtd_info *mtd) mtd_to_platdev() argument
106 static uint8_t txx9ndfmc_read_byte(struct mtd_info *mtd) txx9ndfmc_read_byte() argument
113 static void txx9ndfmc_write_buf(struct mtd_info *mtd, const uint8_t *buf, txx9ndfmc_write_buf() argument
126 static void txx9ndfmc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) txx9ndfmc_read_buf() argument
135 static void txx9ndfmc_cmd_ctrl(struct mtd_info *mtd, int cmd, txx9ndfmc_cmd_ctrl() argument
167 static int txx9ndfmc_dev_ready(struct mtd_info *mtd) txx9ndfmc_dev_ready() argument
174 static int txx9ndfmc_calculate_ecc(struct mtd_info *mtd, const uint8_t *dat, txx9ndfmc_calculate_ecc() argument
195 static int txx9ndfmc_correct_data(struct mtd_info *mtd, unsigned char *buf, txx9ndfmc_correct_data() argument
215 static void txx9ndfmc_enable_hwecc(struct mtd_info *mtd, int mode) txx9ndfmc_enable_hwecc() argument
258 static int txx9ndfmc_nand_scan(struct mtd_info *mtd) txx9ndfmc_nand_scan() argument
316 struct mtd_info *mtd; txx9ndfmc_probe() local
388 struct mtd_info *mtd = drvdata->mtds[i]; txx9ndfmc_remove() local
H A Dcafe_nand.c102 static int cafe_device_ready(struct mtd_info *mtd) cafe_device_ready() argument
118 static void cafe_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) cafe_write_buf() argument
133 static void cafe_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) cafe_read_buf() argument
147 static uint8_t cafe_read_byte(struct mtd_info *mtd) cafe_read_byte() argument
158 static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command, cafe_nand_cmdfunc() argument
314 static void cafe_select_chip(struct mtd_info *mtd, int chipnr) cafe_select_chip() argument
330 struct mtd_info *mtd = id; cafe_nand_interrupt() local
341 static void cafe_nand_bug(struct mtd_info *mtd) cafe_nand_bug() argument
346 static int cafe_nand_write_oob(struct mtd_info *mtd, cafe_nand_write_oob() argument
360 static int cafe_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, cafe_nand_read_oob() argument
377 static int cafe_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip, cafe_nand_read_page() argument
517 static int cafe_nand_write_page_lowlevel(struct mtd_info *mtd, cafe_nand_write_page_lowlevel() argument
532 static int cafe_nand_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip) cafe_nand_block_bad() argument
582 struct mtd_info *mtd; cafe_nand_probe() local
794 struct mtd_info *mtd = pci_get_drvdata(pdev); cafe_nand_remove() local
821 struct mtd_info *mtd = pci_get_drvdata(pdev); cafe_nand_resume() local
H A Ddiskonchip.c297 static void doc2000_write_byte(struct mtd_info *mtd, u_char datum) doc2000_write_byte() argument
309 static u_char doc2000_read_byte(struct mtd_info *mtd) doc2000_read_byte() argument
324 static void doc2000_writebuf(struct mtd_info *mtd, const u_char *buf, int len) doc2000_writebuf() argument
341 static void doc2000_readbuf(struct mtd_info *mtd, u_char *buf, int len) doc2000_readbuf() argument
356 static void doc2000_readbuf_dword(struct mtd_info *mtd, u_char *buf, int len) doc2000_readbuf_dword() argument
377 static uint16_t __init doc200x_ident_chip(struct mtd_info *mtd, int nr) doc200x_ident_chip() argument
423 static void __init doc2000_count_chips(struct mtd_info *mtd) doc2000_count_chips() argument
445 static int doc200x_wait(struct mtd_info *mtd, struct nand_chip *this) doc200x_wait() argument
459 static void doc2001_write_byte(struct mtd_info *mtd, u_char datum) doc2001_write_byte() argument
470 static u_char doc2001_read_byte(struct mtd_info *mtd) doc2001_read_byte() argument
484 static void doc2001_writebuf(struct mtd_info *mtd, const u_char *buf, int len) doc2001_writebuf() argument
497 static void doc2001_readbuf(struct mtd_info *mtd, u_char *buf, int len) doc2001_readbuf() argument
514 static u_char doc2001plus_read_byte(struct mtd_info *mtd) doc2001plus_read_byte() argument
529 static void doc2001plus_writebuf(struct mtd_info *mtd, const u_char *buf, int len) doc2001plus_writebuf() argument
547 static void doc2001plus_readbuf(struct mtd_info *mtd, u_char *buf, int len) doc2001plus_readbuf() argument
578 static void doc2001plus_select_chip(struct mtd_info *mtd, int chip) doc2001plus_select_chip() argument
605 static void doc200x_select_chip(struct mtd_info *mtd, int chip) doc200x_select_chip() argument
635 static void doc200x_hwcontrol(struct mtd_info *mtd, int cmd, doc200x_hwcontrol() argument
659 static void doc2001plus_command(struct mtd_info *mtd, unsigned command, int column, int page_addr) doc2001plus_command() argument
765 static int doc200x_dev_ready(struct mtd_info *mtd) doc200x_dev_ready() argument
798 static int doc200x_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip) doc200x_block_bad() argument
805 static void doc200x_enable_hwecc(struct mtd_info *mtd, int mode) doc200x_enable_hwecc() argument
824 static void doc2001plus_enable_hwecc(struct mtd_info *mtd, int mode) doc2001plus_enable_hwecc() argument
844 static int doc200x_calculate_ecc(struct mtd_info *mtd, const u_char *dat, unsigned char *ecc_code) doc200x_calculate_ecc() argument
903 static int doc200x_correct_data(struct mtd_info *mtd, u_char *dat, doc200x_correct_data() argument
1005 static int __init find_media_headers(struct mtd_info *mtd, u_char *buf, const char *id, int findmirror) find_media_headers() argument
1048 static inline int __init nftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) nftl_partscan() argument
1150 static inline int __init inftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) inftl_partscan() argument
1269 static int __init nftl_scan_bbt(struct mtd_info *mtd) nftl_scan_bbt() argument
1307 static int __init inftl_scan_bbt(struct mtd_info *mtd) inftl_scan_bbt() argument
1364 static inline int __init doc2000_init(struct mtd_info *mtd) doc2000_init() argument
1380 static inline int __init doc2001_init(struct mtd_info *mtd) doc2001_init() argument
1410 static inline int __init doc2001plus_init(struct mtd_info *mtd) doc2001plus_init() argument
1433 struct mtd_info *mtd; doc_probe() local
1642 struct mtd_info *mtd, *nextmtd; release_nanddoc() local
H A Dfsmc_nand.c302 struct mtd_info mtd; member in struct:fsmc_nand_data
330 static void fsmc_select_chip(struct mtd_info *mtd, int chipnr) fsmc_select_chip() argument
359 static void fsmc_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) fsmc_cmd_ctrl() argument
446 static void fsmc_enable_hwecc(struct mtd_info *mtd, int mode) fsmc_enable_hwecc() argument
466 static int fsmc_read_hwecc_ecc4(struct mtd_info *mtd, const uint8_t *data, fsmc_read_hwecc_ecc4() argument
517 static int fsmc_read_hwecc_ecc1(struct mtd_info *mtd, const uint8_t *data, fsmc_read_hwecc_ecc1() argument
629 static void fsmc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) fsmc_write_buf() argument
652 static void fsmc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) fsmc_read_buf() argument
675 static void fsmc_read_buf_dma(struct mtd_info *mtd, uint8_t *buf, int len) fsmc_read_buf_dma() argument
689 static void fsmc_write_buf_dma(struct mtd_info *mtd, const uint8_t *buf, fsmc_write_buf_dma() argument
712 static int fsmc_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, fsmc_read_page_hwecc() argument
782 static int fsmc_bch8_correct_data(struct mtd_info *mtd, uint8_t *dat, fsmc_bch8_correct_data() argument
931 struct mtd_info *mtd; fsmc_nand_probe() local
H A Dhisi504_nand.c137 struct mtd_info mtd; member in struct:hinfc_host
192 struct mtd_info *mtd = &host->mtd; hisi_nfc_dma_transfer() local
265 struct mtd_info *mtd = &host->mtd; hisi_nfc_send_cmd_readstart() local
358 static void hisi_nfc_select_chip(struct mtd_info *mtd, int chipselect) hisi_nfc_select_chip() argument
369 static uint8_t hisi_nfc_read_byte(struct mtd_info *mtd) hisi_nfc_read_byte() argument
385 static u16 hisi_nfc_read_word(struct mtd_info *mtd) hisi_nfc_read_word() argument
395 hisi_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) hisi_nfc_write_buf() argument
404 static void hisi_nfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) hisi_nfc_read_buf() argument
413 static void set_addr(struct mtd_info *mtd, int column, int page_addr) set_addr() argument
448 static void hisi_nfc_cmdfunc(struct mtd_info *mtd, unsigned command, int column, hisi_nfc_cmdfunc() argument
543 static int hisi_nand_read_page_hwecc(struct mtd_info *mtd, hisi_nand_read_page_hwecc() argument
575 static int hisi_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, hisi_nand_read_oob() argument
592 static int hisi_nand_write_page_hwecc(struct mtd_info *mtd, hisi_nand_write_page_hwecc() argument
645 struct mtd_info *mtd = &host->mtd; hisi_nfc_ecc_probe() local
703 struct mtd_info *mtd; hisi_nfc_probe() local
826 struct mtd_info *mtd = &host->mtd; hisi_nfc_remove() local
H A Dlpc32xx_mlc.c176 struct mtd_info mtd; member in struct:lpc32xx_nand_host
275 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, lpc32xx_nand_cmd_ctrl() argument
292 static int lpc32xx_nand_device_ready(struct mtd_info *mtd) lpc32xx_nand_device_ready() argument
319 static int lpc32xx_waitfunc_nand(struct mtd_info *mtd, struct nand_chip *chip) lpc32xx_waitfunc_nand() argument
338 static int lpc32xx_waitfunc_controller(struct mtd_info *mtd, lpc32xx_waitfunc_controller() argument
358 static int lpc32xx_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) lpc32xx_waitfunc() argument
389 static int lpc32xx_xmit_dma(struct mtd_info *mtd, void *mem, int len, lpc32xx_xmit_dma() argument
431 static int lpc32xx_read_page(struct mtd_info *mtd, struct nand_chip *chip, lpc32xx_read_page() argument
496 static int lpc32xx_write_page_lowlevel(struct mtd_info *mtd, lpc32xx_write_page_lowlevel() argument
542 static int lpc32xx_read_oob(struct mtd_info *mtd, struct nand_chip *chip, lpc32xx_read_oob() argument
553 static int lpc32xx_write_oob(struct mtd_info *mtd, struct nand_chip *chip, lpc32xx_write_oob() argument
561 static void lpc32xx_ecc_enable(struct mtd_info *mtd, int mode) lpc32xx_ecc_enable() argument
568 struct mtd_info *mtd = &host->mtd; lpc32xx_dma_setup() local
645 struct mtd_info *mtd; lpc32xx_nand_probe() local
818 struct mtd_info *mtd = &host->mtd; lpc32xx_nand_remove() local
H A Dlpc32xx_slc.c204 struct mtd_info mtd; member in struct:lpc32xx_nand_host
256 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, lpc32xx_nand_cmd_ctrl() argument
282 static int lpc32xx_nand_device_ready(struct mtd_info *mtd) lpc32xx_nand_device_ready() argument
315 static void lpc32xx_nand_ecc_enable(struct mtd_info *mtd, int mode) lpc32xx_nand_ecc_enable() argument
323 static int lpc32xx_nand_ecc_calculate(struct mtd_info *mtd, lpc32xx_nand_ecc_calculate() argument
337 static uint8_t lpc32xx_nand_read_byte(struct mtd_info *mtd) lpc32xx_nand_read_byte() argument
348 static void lpc32xx_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) lpc32xx_nand_read_buf() argument
361 static void lpc32xx_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) lpc32xx_nand_write_buf() argument
374 static int lpc32xx_nand_read_oob_syndrome(struct mtd_info *mtd, lpc32xx_nand_read_oob_syndrome() argument
386 static int lpc32xx_nand_write_oob_syndrome(struct mtd_info *mtd, lpc32xx_nand_write_oob_syndrome() argument
425 static int lpc32xx_xmit_dma(struct mtd_info *mtd, dma_addr_t dma, lpc32xx_xmit_dma() argument
485 static int lpc32xx_xfer(struct mtd_info *mtd, uint8_t *buf, int eccsubpages, lpc32xx_xfer() argument
600 static int lpc32xx_nand_read_page_syndrome(struct mtd_info *mtd, lpc32xx_nand_read_page_syndrome() argument
642 static int lpc32xx_nand_read_page_raw_syndrome(struct mtd_info *mtd, lpc32xx_nand_read_page_raw_syndrome() argument
661 static int lpc32xx_nand_write_page_syndrome(struct mtd_info *mtd, lpc32xx_nand_write_page_syndrome() argument
689 static int lpc32xx_nand_write_page_raw_syndrome(struct mtd_info *mtd, lpc32xx_nand_write_page_raw_syndrome() argument
702 struct mtd_info *mtd = &host->mtd; lpc32xx_nand_dma_setup() local
759 struct mtd_info *mtd; lpc32xx_nand_probe() local
932 struct mtd_info *mtd = &host->mtd; lpc32xx_nand_remove() local
H A Dmpc5121_nfc.c121 struct mtd_info mtd; member in struct:mpc5121_nfc_prv
136 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) nfc_read() argument
145 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) nfc_write() argument
154 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) nfc_set() argument
160 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) nfc_clear() argument
166 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) mpc5121_nfc_send_addr() argument
174 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) mpc5121_nfc_send_cmd() argument
182 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) mpc5121_nfc_send_prog_page() argument
190 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) mpc5121_nfc_send_read_page() argument
198 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) mpc5121_nfc_send_read_id() argument
206 static inline void mpc5121_nfc_send_read_status(struct mtd_info *mtd) mpc5121_nfc_send_read_status() argument
216 struct mtd_info *mtd = data; mpc5121_nfc_irq() local
227 static void mpc5121_nfc_done(struct mtd_info *mtd) mpc5121_nfc_done() argument
247 static void mpc5121_nfc_addr_cycle(struct mtd_info *mtd, int column, int page) mpc5121_nfc_addr_cycle() argument
268 static void mpc5121_nfc_select_chip(struct mtd_info *mtd, int chip) mpc5121_nfc_select_chip() argument
282 static int ads5121_chipselect_init(struct mtd_info *mtd) ads5121_chipselect_init() argument
304 static void ads5121_select_chip(struct mtd_info *mtd, int chip) ads5121_select_chip() argument
323 static int mpc5121_nfc_dev_ready(struct mtd_info *mtd) mpc5121_nfc_dev_ready() argument
333 static void mpc5121_nfc_command(struct mtd_info *mtd, unsigned command, mpc5121_nfc_command() argument
406 static void mpc5121_nfc_copy_spare(struct mtd_info *mtd, uint offset, mpc5121_nfc_copy_spare() argument
458 static void mpc5121_nfc_buf_copy(struct mtd_info *mtd, u_char *buf, int len, mpc5121_nfc_buf_copy() argument
498 static void mpc5121_nfc_read_buf(struct mtd_info *mtd, u_char *buf, int len) mpc5121_nfc_read_buf() argument
504 static void mpc5121_nfc_write_buf(struct mtd_info *mtd, mpc5121_nfc_write_buf() argument
511 static u8 mpc5121_nfc_read_byte(struct mtd_info *mtd) mpc5121_nfc_read_byte() argument
521 static u16 mpc5121_nfc_read_word(struct mtd_info *mtd) mpc5121_nfc_read_word() argument
537 static int mpc5121_nfc_read_hw_config(struct mtd_info *mtd) mpc5121_nfc_read_hw_config() argument
616 static void mpc5121_nfc_free(struct device *dev, struct mtd_info *mtd) mpc5121_nfc_free() argument
635 struct mtd_info *mtd; mpc5121_nfc_probe() local
832 struct mtd_info *mtd = dev_get_drvdata(dev); mpc5121_nfc_remove() local
H A Ds3c2410.c107 struct mtd_info mtd; member in struct:s3c2410_nand_mtd
169 static struct s3c2410_nand_mtd *s3c2410_nand_mtd_toours(struct mtd_info *mtd) s3c2410_nand_mtd_toours() argument
174 static struct s3c2410_nand_info *s3c2410_nand_mtd_toinfo(struct mtd_info *mtd) s3c2410_nand_mtd_toinfo() argument
381 static void s3c2410_nand_select_chip(struct mtd_info *mtd, int chip) s3c2410_nand_select_chip() argument
423 static void s3c2410_nand_hwcontrol(struct mtd_info *mtd, int cmd, s3c2410_nand_hwcontrol() argument
439 static void s3c2440_nand_hwcontrol(struct mtd_info *mtd, int cmd, s3c2440_nand_hwcontrol() argument
458 static int s3c2410_nand_devready(struct mtd_info *mtd) s3c2410_nand_devready() argument
464 static int s3c2440_nand_devready(struct mtd_info *mtd) s3c2440_nand_devready() argument
470 static int s3c2412_nand_devready(struct mtd_info *mtd) s3c2412_nand_devready() argument
479 static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat, s3c2410_nand_correct_data() argument
557 static void s3c2410_nand_enable_hwecc(struct mtd_info *mtd, int mode) s3c2410_nand_enable_hwecc() argument
567 static void s3c2412_nand_enable_hwecc(struct mtd_info *mtd, int mode) s3c2412_nand_enable_hwecc() argument
577 static void s3c2440_nand_enable_hwecc(struct mtd_info *mtd, int mode) s3c2440_nand_enable_hwecc() argument
586 static int s3c2410_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, s3c2410_nand_calculate_ecc() argument
600 static int s3c2412_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, s3c2412_nand_calculate_ecc() argument
615 static int s3c2440_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, s3c2440_nand_calculate_ecc() argument
635 static void s3c2410_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) s3c2410_nand_read_buf() argument
641 static void s3c2440_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) s3c2440_nand_read_buf() argument
656 static void s3c2410_nand_write_buf(struct mtd_info *mtd, const u_char *buf, s3c2410_nand_write_buf() argument
663 static void s3c2440_nand_write_buf(struct mtd_info *mtd, const u_char *buf, s3c2440_nand_write_buf() argument
760 s3c2410_nand_add_partition(struct s3c2410_nand_info *info, struct s3c2410_nand_mtd *mtd, struct s3c2410_nand_set *set) s3c2410_nand_add_partition() argument
H A Datmel_nand.c119 struct mtd_info mtd; member in struct:atmel_nand_host
183 static void atmel_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) atmel_nand_cmd_ctrl() argument
206 static int atmel_nand_device_ready(struct mtd_info *mtd) atmel_nand_device_ready() argument
216 static int atmel_nand_set_enable_ready_pins(struct mtd_info *mtd) atmel_nand_set_enable_ready_pins() argument
268 static void atmel_read_buf8(struct mtd_info *mtd, u8 *buf, int len) atmel_read_buf8() argument
281 static void atmel_read_buf16(struct mtd_info *mtd, u8 *buf, int len) atmel_read_buf16() argument
294 static void atmel_write_buf8(struct mtd_info *mtd, const u8 *buf, int len) atmel_write_buf8() argument
301 static void atmel_write_buf16(struct mtd_info *mtd, const u8 *buf, int len) atmel_write_buf16() argument
347 static int atmel_nand_dma_op(struct mtd_info *mtd, void *buf, int len, atmel_nand_dma_op() argument
426 static void atmel_read_buf(struct mtd_info *mtd, u8 *buf, int len) atmel_read_buf() argument
442 static void atmel_write_buf(struct mtd_info *mtd, const u8 *buf, int len) atmel_write_buf() argument
534 static void pmecc_gen_syndrome(struct mtd_info *mtd, int sector) pmecc_gen_syndrome() argument
551 static void pmecc_substitute(struct mtd_info *mtd) pmecc_substitute() argument
593 static void pmecc_get_sigma(struct mtd_info *mtd) pmecc_get_sigma() argument
751 static int pmecc_err_location(struct mtd_info *mtd) pmecc_err_location() argument
802 static void pmecc_correct_data(struct mtd_info *mtd, uint8_t *buf, uint8_t *ecc, pmecc_correct_data() argument
848 static int pmecc_correction(struct mtd_info *mtd, u32 pmecc_stat, uint8_t *buf, pmecc_correction() argument
919 static int atmel_nand_pmecc_read_page(struct mtd_info *mtd, atmel_nand_pmecc_read_page() argument
956 static int atmel_nand_pmecc_write_page(struct mtd_info *mtd, atmel_nand_pmecc_write_page() argument
992 static void atmel_pmecc_core_init(struct mtd_info *mtd) atmel_pmecc_core_init() argument
1161 struct mtd_info *mtd = &host->mtd; atmel_pmecc_nand_init_params() local
1307 static int atmel_nand_calculate(struct mtd_info *mtd, atmel_nand_calculate() argument
1337 static int atmel_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip, atmel_nand_read_page() argument
1411 static int atmel_nand_correct(struct mtd_info *mtd, u_char *dat, atmel_nand_correct() argument
1478 static void atmel_nand_hwctl(struct mtd_info *mtd, int mode) atmel_nand_hwctl() argument
1588 struct mtd_info *mtd = &host->mtd; atmel_hw_nand_init_params() local
1770 static int nfc_device_ready(struct mtd_info *mtd) nfc_device_ready() argument
1787 static void nfc_select_chip(struct mtd_info *mtd, int chip) nfc_select_chip() argument
1798 static int nfc_make_addr(struct mtd_info *mtd, int command, int column, nfc_make_addr() argument
1838 static void nfc_nand_command(struct mtd_info *mtd, unsigned int command, nfc_nand_command() argument
1962 static int nfc_sram_write_page(struct mtd_info *mtd, struct nand_chip *chip, nfc_sram_write_page() argument
2025 static int nfc_sram_init(struct mtd_info *mtd) nfc_sram_init() argument
2091 struct mtd_info *mtd; atmel_nand_probe() local
2285 struct mtd_info *mtd = &host->mtd; atmel_nand_remove() local
H A Ddenali.c859 static int write_oob_data(struct mtd_info *mtd, uint8_t *buf, int page) write_oob_data() argument
888 static void read_oob_data(struct mtd_info *mtd, uint8_t *buf, int page) read_oob_data() argument
1051 static int write_page(struct mtd_info *mtd, struct nand_chip *chip, write_page() argument
1107 static int denali_write_page(struct mtd_info *mtd, struct nand_chip *chip, denali_write_page() argument
1122 static int denali_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, denali_write_page_raw() argument
1132 static int denali_write_oob(struct mtd_info *mtd, struct nand_chip *chip, denali_write_oob() argument
1138 static int denali_read_oob(struct mtd_info *mtd, struct nand_chip *chip, denali_read_oob() argument
1146 static int denali_read_page(struct mtd_info *mtd, struct nand_chip *chip, denali_read_page() argument
1199 static int denali_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, denali_read_page_raw() argument
1235 static uint8_t denali_read_byte(struct mtd_info *mtd) denali_read_byte() argument
1246 static void denali_select_chip(struct mtd_info *mtd, int chip) denali_select_chip() argument
1255 static int denali_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) denali_waitfunc() argument
1265 static int denali_erase(struct mtd_info *mtd, int page) denali_erase() argument
1284 static void denali_cmdfunc(struct mtd_info *mtd, unsigned int cmd, int col, denali_cmdfunc() argument
H A Ddocg4.c79 struct mtd_info *mtd; member in struct:docg4_priv
242 static void docg4_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) docg4_read_buf() argument
253 static void docg4_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) docg4_write_buf16() argument
297 static int docg4_wait(struct mtd_info *mtd, struct nand_chip *nand) docg4_wait() argument
315 static void docg4_select_chip(struct mtd_info *mtd, int chip) docg4_select_chip() argument
336 static void reset(struct mtd_info *mtd) reset() argument
371 static int correct_data(struct mtd_info *mtd, uint8_t *buf, int page) correct_data() argument
465 static uint8_t docg4_read_byte(struct mtd_info *mtd) docg4_read_byte() argument
541 static int pageprog(struct mtd_info *mtd) pageprog() argument
581 static void sequence_reset(struct mtd_info *mtd) sequence_reset() argument
598 static void read_page_prologue(struct mtd_info *mtd, uint32_t docg4_addr) read_page_prologue() argument
625 static void write_page_prologue(struct mtd_info *mtd, uint32_t docg4_addr) write_page_prologue() argument
689 static void docg4_command(struct mtd_info *mtd, unsigned command, int column, docg4_command() argument
756 static int read_page(struct mtd_info *mtd, struct nand_chip *nand, read_page() argument
824 static int docg4_read_page_raw(struct mtd_info *mtd, struct nand_chip *nand, docg4_read_page_raw() argument
830 static int docg4_read_page(struct mtd_info *mtd, struct nand_chip *nand, docg4_read_page() argument
836 static int docg4_read_oob(struct mtd_info *mtd, struct nand_chip *nand, docg4_read_oob() argument
875 static int docg4_erase_block(struct mtd_info *mtd, int page) docg4_erase_block() argument
923 static int write_page(struct mtd_info *mtd, struct nand_chip *nand, write_page() argument
979 static int docg4_write_page_raw(struct mtd_info *mtd, struct nand_chip *nand, docg4_write_page_raw() argument
985 static int docg4_write_page(struct mtd_info *mtd, struct nand_chip *nand, docg4_write_page() argument
991 static int docg4_write_oob(struct mtd_info *mtd, struct nand_chip *nand, docg4_write_oob() argument
1012 static int __init read_factory_bbt(struct mtd_info *mtd) read_factory_bbt() argument
1079 static int docg4_block_markbad(struct mtd_info *mtd, loff_t ofs) docg4_block_markbad() argument
1124 static int docg4_block_neverbad(struct mtd_info *mtd, loff_t ofs, int getchip) docg4_block_neverbad() argument
1190 static void __init init_mtd_structs(struct mtd_info *mtd) init_mtd_structs() argument
1262 static int __init read_id_reg(struct mtd_info *mtd) read_id_reg() argument
1288 struct mtd_info *mtd; probe_docg4() local
H A Dmxc_nand.c176 struct mtd_info mtd; member in struct:mxc_nand_host
500 static void send_page_v3(struct mtd_info *mtd, unsigned int ops) send_page_v3() argument
516 static void send_page_v2(struct mtd_info *mtd, unsigned int ops) send_page_v2() argument
530 static void send_page_v1(struct mtd_info *mtd, unsigned int ops) send_page_v1() argument
613 static int mxc_nand_dev_ready(struct mtd_info *mtd) mxc_nand_dev_ready() argument
622 static void mxc_nand_enable_hwecc(struct mtd_info *mtd, int mode) mxc_nand_enable_hwecc() argument
630 static int mxc_nand_correct_data_v1(struct mtd_info *mtd, u_char *dat, mxc_nand_correct_data_v1() argument
651 static int mxc_nand_correct_data_v2_v3(struct mtd_info *mtd, u_char *dat, mxc_nand_correct_data_v2_v3() argument
684 static int mxc_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, mxc_nand_calculate_ecc() argument
690 static u_char mxc_nand_read_byte(struct mtd_info *mtd) mxc_nand_read_byte() argument
714 static uint16_t mxc_nand_read_word(struct mtd_info *mtd) mxc_nand_read_word() argument
729 static void mxc_nand_write_buf(struct mtd_info *mtd, mxc_nand_write_buf() argument
748 static void mxc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) mxc_nand_read_buf() argument
764 static void mxc_nand_select_chip_v1_v3(struct mtd_info *mtd, int chip) mxc_nand_select_chip_v1_v3() argument
785 static void mxc_nand_select_chip_v2(struct mtd_info *mtd, int chip) mxc_nand_select_chip_v2() argument
812 static void copy_spare(struct mtd_info *mtd, bool bfrom) copy_spare() argument
845 static void mxc_do_addr_cycle(struct mtd_info *mtd, int column, int page_addr) mxc_do_addr_cycle() argument
902 static int get_eccsize(struct mtd_info *mtd) get_eccsize() argument
914 static void preset_v1(struct mtd_info *mtd) preset_v1() argument
942 static void preset_v2(struct mtd_info *mtd) preset_v2() argument
988 static void preset_v3(struct mtd_info *mtd) preset_v3() argument
1059 static void mxc_nand_command(struct mtd_info *mtd, unsigned command, mxc_nand_command() argument
1432 struct mtd_info *mtd; mxcnd_probe() local
H A Dnand_base.c107 static int check_offs_len(struct mtd_info *mtd, check_offs_len() argument
134 static void nand_release_device(struct mtd_info *mtd) nand_release_device() argument
152 static uint8_t nand_read_byte(struct mtd_info *mtd) nand_read_byte() argument
165 static uint8_t nand_read_byte16(struct mtd_info *mtd) nand_read_byte16() argument
177 static u16 nand_read_word(struct mtd_info *mtd) nand_read_word() argument
190 static void nand_select_chip(struct mtd_info *mtd, int chipnr) nand_select_chip() argument
213 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) nand_write_byte() argument
227 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) nand_write_byte16() argument
259 static void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) nand_write_buf() argument
274 static void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) nand_read_buf() argument
289 static void nand_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) nand_write_buf16() argument
305 static void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) nand_read_buf16() argument
321 static int nand_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip) nand_block_bad() argument
382 static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs) nand_default_block_markbad() argument
432 static int nand_block_markbad_lowlevel(struct mtd_info *mtd, loff_t ofs) nand_block_markbad_lowlevel() argument
473 static int nand_check_wp(struct mtd_info *mtd) nand_check_wp() argument
493 static int nand_block_isreserved(struct mtd_info *mtd, loff_t ofs) nand_block_isreserved() argument
513 static int nand_block_checkbad(struct mtd_info *mtd, loff_t ofs, int getchip, nand_block_checkbad() argument
533 static void panic_nand_wait_ready(struct mtd_info *mtd, unsigned long timeo) panic_nand_wait_ready() argument
548 void nand_wait_ready(struct mtd_info *mtd) nand_wait_ready() argument
575 static void nand_wait_status_ready(struct mtd_info *mtd, unsigned long timeo) nand_wait_status_ready() argument
597 static void nand_command(struct mtd_info *mtd, unsigned int command, nand_command() argument
700 static void nand_command_lp(struct mtd_info *mtd, unsigned int command, nand_command_lp() argument
825 nand_get_device(struct mtd_info *mtd, int new_state) nand_get_device() argument
868 static void panic_nand_wait(struct mtd_info *mtd, struct nand_chip *chip, panic_nand_wait() argument
893 static int nand_wait(struct mtd_info *mtd, struct nand_chip *chip) nand_wait() argument
944 static int __nand_unlock(struct mtd_info *mtd, loff_t ofs, __nand_unlock() argument
980 int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) nand_unlock() argument
1043 int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) nand_lock() argument
1114 static int nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, nand_read_page_raw() argument
1133 static int nand_read_page_raw_syndrome(struct mtd_info *mtd, nand_read_page_raw_syndrome() argument
1175 static int nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, nand_read_page_swecc() argument
1221 static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, nand_read_subpage() argument
1315 static int nand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, nand_read_page_hwecc() argument
1368 static int nand_read_page_hwecc_oob_first(struct mtd_info *mtd, nand_read_page_hwecc_oob_first() argument
1417 static int nand_read_page_syndrome(struct mtd_info *mtd, struct nand_chip *chip, nand_read_page_syndrome() argument
1522 static int nand_setup_read_retry(struct mtd_info *mtd, int retry_mode) nand_setup_read_retry() argument
1545 static int nand_do_read_ops(struct mtd_info *mtd, loff_t from, nand_do_read_ops() argument
1731 static int nand_read(struct mtd_info *mtd, loff_t from, size_t len, nand_read() argument
1754 static int nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, nand_read_oob_std() argument
1769 static int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, nand_read_oob_syndrome() argument
1805 static int nand_write_oob_std(struct mtd_info *mtd, struct nand_chip *chip, nand_write_oob_std() argument
1829 static int nand_write_oob_syndrome(struct mtd_info *mtd, nand_write_oob_syndrome() argument
1889 static int nand_do_read_oob(struct mtd_info *mtd, loff_t from, nand_do_read_oob() argument
1988 static int nand_read_oob(struct mtd_info *mtd, loff_t from, nand_read_oob() argument
2034 static int nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, nand_write_page_raw() argument
2053 static int nand_write_page_raw_syndrome(struct mtd_info *mtd, nand_write_page_raw_syndrome() argument
2093 static int nand_write_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, nand_write_page_swecc() argument
2120 static int nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, nand_write_page_hwecc() argument
2154 static int nand_write_subpage_hwecc(struct mtd_info *mtd, nand_write_subpage_hwecc() argument
2216 static int nand_write_page_syndrome(struct mtd_info *mtd, nand_write_page_syndrome() argument
2266 static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip, nand_write_page() argument
2327 static uint8_t *nand_fill_oob(struct mtd_info *mtd, uint8_t *oob, size_t len, nand_fill_oob() argument
2386 static int nand_do_write_ops(struct mtd_info *mtd, loff_t to, nand_do_write_ops() argument
2517 static int panic_nand_write(struct mtd_info *mtd, loff_t to, size_t len, panic_nand_write() argument
2551 static int nand_write(struct mtd_info *mtd, loff_t to, size_t len, nand_write() argument
2576 static int nand_do_write_oob(struct mtd_info *mtd, loff_t to, nand_do_write_oob() argument
2660 static int nand_write_oob(struct mtd_info *mtd, loff_t to, nand_write_oob() argument
2703 static int single_erase(struct mtd_info *mtd, int page) single_erase() argument
2720 static int nand_erase(struct mtd_info *mtd, struct erase_info *instr) nand_erase() argument
2733 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, nand_erase_nand() argument
2846 static void nand_sync(struct mtd_info *mtd) nand_sync() argument
2861 static int nand_block_isbad(struct mtd_info *mtd, loff_t offs) nand_block_isbad() argument
2871 static int nand_block_markbad(struct mtd_info *mtd, loff_t ofs) nand_block_markbad() argument
2893 static int nand_onfi_set_features(struct mtd_info *mtd, struct nand_chip *chip, nand_onfi_set_features() argument
2921 static int nand_onfi_get_features(struct mtd_info *mtd, struct nand_chip *chip, nand_onfi_get_features() argument
2944 static int nand_suspend(struct mtd_info *mtd) nand_suspend() argument
2953 static void nand_resume(struct mtd_info *mtd) nand_resume() argument
2969 static void nand_shutdown(struct mtd_info *mtd) nand_shutdown() argument
3055 static int nand_flash_detect_ext_param_page(struct mtd_info *mtd, nand_flash_detect_ext_param_page() argument
3125 static int nand_setup_read_retry_micron(struct mtd_info *mtd, int retry_mode) nand_setup_read_retry_micron() argument
3152 static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip, nand_flash_detect_onfi() argument
3256 static int nand_flash_detect_jedec(struct mtd_info *mtd, struct nand_chip *chip, nand_flash_detect_jedec() argument
3408 static void nand_decode_ext_id(struct mtd_info *mtd, struct nand_chip *chip, nand_decode_ext_id() argument
3541 static void nand_decode_id(struct mtd_info *mtd, struct nand_chip *chip, nand_decode_id() argument
3574 static void nand_decode_bbm_options(struct mtd_info *mtd, nand_decode_bbm_options() argument
3611 static bool find_full_id_nand(struct mtd_info *mtd, struct nand_chip *chip, find_full_id_nand() argument
3640 static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, nand_get_flash_type() argument
3812 int nand_scan_ident(struct mtd_info *mtd, int maxchips, nand_scan_ident() argument
3875 static bool nand_ecc_strength_good(struct mtd_info *mtd) nand_ecc_strength_good() argument
3903 int nand_scan_tail(struct mtd_info *mtd) nand_scan_tail() argument
4227 int nand_scan(struct mtd_info *mtd, int maxchips) nand_scan() argument
4248 void nand_release(struct mtd_info *mtd) nand_release() argument
809 panic_nand_get_device(struct nand_chip *chip, struct mtd_info *mtd, int new_state) panic_nand_get_device() argument
H A Domap2.c155 struct mtd_info mtd; member in struct:omap_nand_info
248 static void omap_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) omap_hwcontrol() argument
271 static void omap_read_buf8(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf8() argument
284 static void omap_write_buf8(struct mtd_info *mtd, const u_char *buf, int len) omap_write_buf8() argument
307 static void omap_read_buf16(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf16() argument
320 static void omap_write_buf16(struct mtd_info *mtd, const u_char * buf, int len) omap_write_buf16() argument
345 static void omap_read_buf_pref(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf_pref() argument
392 static void omap_write_buf_pref(struct mtd_info *mtd, omap_write_buf_pref() argument
458 static inline int omap_nand_dma_transfer(struct mtd_info *mtd, void *addr, omap_nand_dma_transfer() argument
547 static void omap_read_buf_dma_pref(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf_dma_pref() argument
562 static void omap_write_buf_dma_pref(struct mtd_info *mtd, omap_write_buf_dma_pref() argument
624 static void omap_read_buf_irq_pref(struct mtd_info *mtd, u_char *buf, int len) omap_read_buf_irq_pref() argument
671 static void omap_write_buf_irq_pref(struct mtd_info *mtd, omap_write_buf_irq_pref() argument
886 static int omap_correct_data(struct mtd_info *mtd, u_char *dat, omap_correct_data() argument
928 static int omap_calculate_ecc(struct mtd_info *mtd, const u_char *dat, omap_calculate_ecc() argument
954 static void omap_enable_hwecc(struct mtd_info *mtd, int mode) omap_enable_hwecc() argument
1002 static int omap_wait(struct mtd_info *mtd, struct nand_chip *chip) omap_wait() argument
1031 static int omap_dev_ready(struct mtd_info *mtd) omap_dev_ready() argument
1057 static void __maybe_unused omap_enable_hwecc_bch(struct mtd_info *mtd, int mode) omap_enable_hwecc_bch() argument
1162 static int __maybe_unused omap_calculate_ecc_bch(struct mtd_info *mtd, omap_calculate_ecc_bch() argument
1334 static int omap_elm_correct_data(struct mtd_info *mtd, u_char *data, omap_elm_correct_data() argument
1506 static int omap_write_page_bch(struct mtd_info *mtd, struct nand_chip *chip, omap_write_page_bch() argument
1545 static int omap_read_page_bch(struct mtd_info *mtd, struct nand_chip *chip, omap_read_page_bch() argument
1656 struct mtd_info *mtd; omap_nand_probe() local
2060 struct mtd_info *mtd = platform_get_drvdata(pdev); omap_nand_remove() local
H A Dsunxi_nand.c222 struct mtd_info mtd; member in struct:sunxi_nand_chip
334 static int sunxi_nfc_dev_ready(struct mtd_info *mtd) sunxi_nfc_dev_ready() argument
372 static void sunxi_nfc_select_chip(struct mtd_info *mtd, int chip) sunxi_nfc_select_chip() argument
415 static void sunxi_nfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) sunxi_nfc_read_buf() argument
447 static void sunxi_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, sunxi_nfc_write_buf() argument
479 static uint8_t sunxi_nfc_read_byte(struct mtd_info *mtd) sunxi_nfc_read_byte() argument
488 static void sunxi_nfc_cmd_ctrl(struct mtd_info *mtd, int dat, sunxi_nfc_cmd_ctrl() argument
523 static int sunxi_nfc_hw_ecc_read_page(struct mtd_info *mtd, sunxi_nfc_hw_ecc_read_page() argument
609 static int sunxi_nfc_hw_ecc_write_page(struct mtd_info *mtd, sunxi_nfc_hw_ecc_write_page() argument
676 static int sunxi_nfc_hw_syndrome_ecc_read_page(struct mtd_info *mtd, sunxi_nfc_hw_syndrome_ecc_read_page() argument
744 static int sunxi_nfc_hw_syndrome_ecc_write_page(struct mtd_info *mtd, sunxi_nfc_hw_syndrome_ecc_write_page() argument
916 static int sunxi_nand_hw_common_ecc_ctrl_init(struct mtd_info *mtd, sunxi_nand_hw_common_ecc_ctrl_init() argument
980 static int sunxi_nand_hw_ecc_ctrl_init(struct mtd_info *mtd, sunxi_nand_hw_ecc_ctrl_init() argument
1033 static int sunxi_nand_hw_syndrome_ecc_ctrl_init(struct mtd_info *mtd, sunxi_nand_hw_syndrome_ecc_ctrl_init() argument
1076 static int sunxi_nand_ecc_init(struct mtd_info *mtd, struct nand_ecc_ctrl *ecc, sunxi_nand_ecc_init() argument
1136 struct mtd_info *mtd; sunxi_nand_chip_init() local
H A Dnandsim.c667 static int init_nandsim(struct mtd_info *mtd) init_nandsim() argument
816 static int parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) parse_badblocks() argument
1015 static int setup_wear_reporting(struct mtd_info *mtd) setup_wear_reporting() argument
1910 static u_char ns_nand_read_byte(struct mtd_info *mtd) ns_nand_read_byte() argument
1971 static void ns_nand_write_byte(struct mtd_info *mtd, u_char byte) ns_nand_write_byte() argument
2125 static void ns_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int bitmask) ns_hwcontrol() argument
2137 static int ns_device_ready(struct mtd_info *mtd) ns_device_ready() argument
2143 static uint16_t ns_nand_read_word(struct mtd_info *mtd) ns_nand_read_word() argument
2152 static void ns_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) ns_nand_write_buf() argument
2179 static void ns_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) ns_nand_read_buf() argument
H A Dpxa3xx_nand.c165 struct mtd_info *mtd; member in struct:pxa3xx_nand_host
743 struct mtd_info *mtd = host->mtd; prepare_start_command() local
793 struct mtd_info *mtd; prepare_set_command() local
963 static void nand_cmdfunc(struct mtd_info *mtd, unsigned command, nand_cmdfunc() argument
1010 static void nand_cmdfunc_extended(struct mtd_info *mtd, nand_cmdfunc_extended() argument
1120 static int pxa3xx_nand_write_page_hwecc(struct mtd_info *mtd, pxa3xx_nand_write_page_hwecc() argument
1129 static int pxa3xx_nand_read_page_hwecc(struct mtd_info *mtd, pxa3xx_nand_read_page_hwecc() argument
1157 static uint8_t pxa3xx_nand_read_byte(struct mtd_info *mtd) pxa3xx_nand_read_byte() argument
1170 static u16 pxa3xx_nand_read_word(struct mtd_info *mtd) pxa3xx_nand_read_word() argument
1183 static void pxa3xx_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) pxa3xx_nand_read_buf() argument
1193 static void pxa3xx_nand_write_buf(struct mtd_info *mtd, pxa3xx_nand_write_buf() argument
1204 static void pxa3xx_nand_select_chip(struct mtd_info *mtd, int chip) pxa3xx_nand_select_chip() argument
1209 static int pxa3xx_nand_waitfunc(struct mtd_info *mtd, struct nand_chip *this) pxa3xx_nand_waitfunc() argument
1372 struct mtd_info *mtd; pxa3xx_nand_sensing() local
1461 static int pxa3xx_nand_scan(struct mtd_info *mtd) pxa3xx_nand_scan() argument
1621 struct mtd_info *mtd; alloc_nand_resource() local
1838 struct mtd_info *mtd = info->host[cs]->mtd; pxa3xx_nand_probe() local
1875 struct mtd_info *mtd; pxa3xx_nand_suspend() local
1896 struct mtd_info *mtd; pxa3xx_nand_resume() local
392 pxa3xx_set_datasize(struct pxa3xx_nand_info *info, struct mtd_info *mtd) pxa3xx_set_datasize() argument
H A Ddenali.h451 struct mtd_info mtd; member in struct:denali_nand_info
/linux-4.1.27/drivers/mtd/onenand/
H A Dgeneric.c33 struct mtd_info mtd; member in struct:onenand_info
H A Donenand_bbt.c57 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd, int chip) create_bbt() argument
132 static inline int onenand_memory_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd) onenand_memory_bbt() argument
145 static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) onenand_isbad_bbt() argument
182 int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) onenand_scan_bbt() argument
233 int onenand_default_bbt(struct mtd_info *mtd) onenand_default_bbt() argument
H A Domap2.c55 struct mtd_info mtd; member in struct:omap2_onenand
106 static int omap2_onenand_wait(struct mtd_info *mtd, int state) omap2_onenand_wait() argument
280 static inline int omap2_onenand_bufferram_offset(struct mtd_info *mtd, int area) omap2_onenand_bufferram_offset() argument
296 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, omap3_onenand_read_bufferram() argument
374 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, omap3_onenand_write_bufferram() argument
447 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, omap3_onenand_read_bufferram() argument
454 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, omap3_onenand_write_bufferram() argument
465 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, omap2_onenand_read_bufferram() argument
510 static int omap2_onenand_write_bufferram(struct mtd_info *mtd, int area, omap2_onenand_write_bufferram() argument
557 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, omap2_onenand_read_bufferram() argument
564 static int omap2_onenand_write_bufferram(struct mtd_info *mtd, int area, omap2_onenand_write_bufferram() argument
586 static int omap2_onenand_enable(struct mtd_info *mtd) omap2_onenand_enable() argument
598 static int omap2_onenand_disable(struct mtd_info *mtd) omap2_onenand_disable() argument
H A Donenand_base.c349 int flexonenand_region(struct mtd_info *mtd, loff_t addr) flexonenand_region() argument
370 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) onenand_command() argument
525 static int onenand_wait(struct mtd_info *mtd, int state) onenand_wait() argument
623 static int onenand_interrupt_wait(struct mtd_info *mtd, int state) onenand_interrupt_wait() argument
639 static int onenand_try_interrupt_wait(struct mtd_info *mtd, int state) onenand_try_interrupt_wait() argument
670 static void onenand_setup_wait(struct mtd_info *mtd) onenand_setup_wait() argument
705 static inline int onenand_bufferram_offset(struct mtd_info *mtd, int area) onenand_bufferram_offset() argument
730 static int onenand_read_bufferram(struct mtd_info *mtd, int area, onenand_read_bufferram() argument
766 static int onenand_sync_read_bufferram(struct mtd_info *mtd, int area, onenand_sync_read_bufferram() argument
806 static int onenand_write_bufferram(struct mtd_info *mtd, int area, onenand_write_bufferram() argument
845 static int onenand_get_2x_blockpage(struct mtd_info *mtd, loff_t addr) onenand_get_2x_blockpage() argument
869 static int onenand_check_bufferram(struct mtd_info *mtd, loff_t addr) onenand_check_bufferram() argument
911 static void onenand_update_bufferram(struct mtd_info *mtd, loff_t addr, onenand_update_bufferram() argument
944 static void onenand_invalidate_bufferram(struct mtd_info *mtd, loff_t addr, onenand_invalidate_bufferram() argument
966 static int onenand_get_device(struct mtd_info *mtd, int new_state) onenand_get_device() argument
1003 static void onenand_release_device(struct mtd_info *mtd) onenand_release_device() argument
1023 static int onenand_transfer_auto_oob(struct mtd_info *mtd, uint8_t *buf, int column, onenand_transfer_auto_oob() argument
1071 static int onenand_recover_lsb(struct mtd_info *mtd, loff_t addr, int status) onenand_recover_lsb() argument
1110 static int onenand_mlc_read_ops_nolock(struct mtd_info *mtd, loff_t from, onenand_mlc_read_ops_nolock() argument
1215 static int onenand_read_ops_nolock(struct mtd_info *mtd, loff_t from, onenand_read_ops_nolock() argument
1348 static int onenand_read_oob_nolock(struct mtd_info *mtd, loff_t from, onenand_read_oob_nolock() argument
1454 static int onenand_read(struct mtd_info *mtd, loff_t from, size_t len, onenand_read() argument
1484 static int onenand_read_oob(struct mtd_info *mtd, loff_t from, onenand_read_oob() argument
1519 static int onenand_bbt_wait(struct mtd_info *mtd, int state) onenand_bbt_wait() argument
1571 int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from, onenand_bbt_read_oob() argument
1646 static int onenand_verify_oob(struct mtd_info *mtd, const u_char *buf, loff_t to) onenand_verify_oob() argument
1675 static int onenand_verify(struct mtd_info *mtd, const u_char *buf, loff_t addr, size_t len) onenand_verify() argument
1716 static void onenand_panic_wait(struct mtd_info *mtd) onenand_panic_wait() argument
1740 static int onenand_panic_write(struct mtd_info *mtd, loff_t to, size_t len, onenand_panic_write() argument
1816 static int onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf, onenand_fill_auto_oob() argument
1857 static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to, onenand_write_ops_nolock() argument
2046 static int onenand_write_oob_nolock(struct mtd_info *mtd, loff_t to, onenand_write_oob_nolock() argument
2167 static int onenand_write(struct mtd_info *mtd, loff_t to, size_t len, onenand_write() argument
2192 static int onenand_write_oob(struct mtd_info *mtd, loff_t to, onenand_write_oob() argument
2226 static int onenand_block_isbad_nolock(struct mtd_info *mtd, loff_t ofs, int allowbbt) onenand_block_isbad_nolock() argument
2236 static int onenand_multiblock_erase_verify(struct mtd_info *mtd, onenand_multiblock_erase_verify() argument
2269 static int onenand_multiblock_erase(struct mtd_info *mtd, onenand_multiblock_erase() argument
2386 static int onenand_block_by_block_erase(struct mtd_info *mtd, onenand_block_by_block_erase() argument
2460 static int onenand_erase(struct mtd_info *mtd, struct erase_info *instr) onenand_erase() argument
2530 static void onenand_sync(struct mtd_info *mtd) onenand_sync() argument
2548 static int onenand_block_isbad(struct mtd_info *mtd, loff_t ofs) onenand_block_isbad() argument
2566 static int onenand_default_block_markbad(struct mtd_info *mtd, loff_t ofs) onenand_default_block_markbad() argument
2600 static int onenand_block_markbad(struct mtd_info *mtd, loff_t ofs) onenand_block_markbad() argument
2628 static int onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, size_t len, int cmd) onenand_do_lock_cmd() argument
2707 static int onenand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) onenand_lock() argument
2725 static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) onenand_unlock() argument
2775 static void onenand_unlock_all(struct mtd_info *mtd) onenand_unlock_all() argument
2823 static int onenand_otp_command(struct mtd_info *mtd, int cmd, loff_t addr, onenand_otp_command() argument
2901 static int onenand_otp_write_oob_nolock(struct mtd_info *mtd, loff_t to, onenand_otp_write_oob_nolock() argument
3032 static int do_otp_read(struct mtd_info *mtd, loff_t from, size_t len, do_otp_read() argument
3069 static int do_otp_write(struct mtd_info *mtd, loff_t to, size_t len, do_otp_write() argument
3113 static int do_otp_lock(struct mtd_info *mtd, loff_t from, size_t len, do_otp_lock() argument
3163 static int onenand_otp_walk(struct mtd_info *mtd, loff_t from, size_t len, onenand_otp_walk() argument
3241 static int onenand_get_fact_prot_info(struct mtd_info *mtd, size_t len, onenand_get_fact_prot_info() argument
3258 static int onenand_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, onenand_read_fact_prot_reg() argument
3273 static int onenand_get_user_prot_info(struct mtd_info *mtd, size_t len, onenand_get_user_prot_info() argument
3290 static int onenand_read_user_prot_reg(struct mtd_info *mtd, loff_t from, onenand_read_user_prot_reg() argument
3306 static int onenand_write_user_prot_reg(struct mtd_info *mtd, loff_t from, onenand_write_user_prot_reg() argument
3320 static int onenand_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, onenand_lock_user_prot_reg() argument
3375 static void onenand_check_features(struct mtd_info *mtd) onenand_check_features() argument
3512 static int flexonenand_get_boundary(struct mtd_info *mtd) flexonenand_get_boundary() argument
3553 static void flexonenand_get_size(struct mtd_info *mtd) flexonenand_get_size() argument
3634 static int flexonenand_check_blocks_erased(struct mtd_info *mtd, int start, int end) flexonenand_check_blocks_erased() argument
3681 static int flexonenand_set_boundary(struct mtd_info *mtd, int die, flexonenand_set_boundary() argument
3774 static int onenand_chip_probe(struct mtd_info *mtd) onenand_chip_probe() argument
3819 static int onenand_probe(struct mtd_info *mtd) onenand_probe() argument
3912 static int onenand_suspend(struct mtd_info *mtd) onenand_suspend() argument
3921 static void onenand_resume(struct mtd_info *mtd) onenand_resume() argument
3942 int onenand_scan(struct mtd_info *mtd, int maxchips) onenand_scan() argument
4112 void onenand_release(struct mtd_info *mtd) onenand_release() argument
H A Dsamsung.c128 struct mtd_info *mtd; member in struct:s3c_onenand
318 static int s3c_onenand_wait(struct mtd_info *mtd, int state) s3c_onenand_wait() argument
384 static int s3c_onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, s3c_onenand_command() argument
482 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) s3c_get_bufferram() argument
501 static int onenand_read_bufferram(struct mtd_info *mtd, int area, onenand_read_bufferram() argument
512 static int onenand_write_bufferram(struct mtd_info *mtd, int area, onenand_write_bufferram() argument
623 static int s5pc110_read_bufferram(struct mtd_info *mtd, int area, s5pc110_read_bufferram() argument
695 static int s5pc110_chip_probe(struct mtd_info *mtd) s5pc110_chip_probe() argument
701 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) s3c_onenand_bbt_wait() argument
734 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) s3c_onenand_check_lock_status() argument
754 static void s3c_onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, s3c_onenand_do_lock_cmd() argument
780 static void s3c_unlock_all(struct mtd_info *mtd) s3c_unlock_all() argument
809 static void s3c_onenand_setup(struct mtd_info *mtd) s3c_onenand_setup() argument
846 struct mtd_info *mtd; s3c_onenand_probe() local
1036 struct mtd_info *mtd = platform_get_drvdata(pdev); s3c_onenand_remove() local
1064 struct mtd_info *mtd = platform_get_drvdata(pdev); s3c_pm_ops_suspend() local
1074 struct mtd_info *mtd = platform_get_drvdata(pdev); s3c_pm_ops_resume() local
/linux-4.1.27/drivers/net/ethernet/sfc/
H A Dmtd.c24 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) efx_mtd_erase() argument
40 static void efx_mtd_sync(struct mtd_info *mtd) efx_mtd_sync() argument
H A Dmcdi.c1782 int efx_mcdi_mtd_read(struct mtd_info *mtd, loff_t start, efx_mcdi_mtd_read() argument
1806 int efx_mcdi_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len) efx_mcdi_mtd_erase() argument
1836 int efx_mcdi_mtd_write(struct mtd_info *mtd, loff_t start, efx_mcdi_mtd_write() argument
1867 int efx_mcdi_mtd_sync(struct mtd_info *mtd) efx_mcdi_mtd_sync() argument
H A Dfalcon.c844 static int falcon_mtd_read(struct mtd_info *mtd, loff_t start, falcon_mtd_read() argument
861 static int falcon_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len) falcon_mtd_erase() argument
876 static int falcon_mtd_write(struct mtd_info *mtd, loff_t start, falcon_mtd_write() argument
893 static int falcon_mtd_sync(struct mtd_info *mtd) falcon_mtd_sync() argument
H A Dnet_driver.h1089 struct mtd_info mtd; member in struct:efx_mtd_partition
/linux-4.1.27/include/linux/mtd/
H A Dnand_bch.h48 nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, nand_bch_calculate_ecc() argument
55 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, nand_bch_correct_data() argument
62 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, nand_bch_init() argument
H A Dblktrans.h37 struct mtd_info *mtd; member in struct:mtd_blktrans_dev
H A Dspi-nor.h163 struct mtd_info *mtd; member in struct:spi_nor
H A Dmtd.h46 struct mtd_info *mtd; member in struct:erase_info
272 static inline int mtd_write_oob(struct mtd_info *mtd, loff_t to, mtd_write_oob() argument
298 static inline void mtd_sync(struct mtd_info *mtd) mtd_sync() argument
311 static inline int mtd_suspend(struct mtd_info *mtd) mtd_suspend() argument
316 static inline void mtd_resume(struct mtd_info *mtd) mtd_resume() argument
322 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) mtd_div_by_eb() argument
330 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) mtd_mod_by_eb() argument
337 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) mtd_div_by_ws() argument
345 static inline uint32_t mtd_mod_by_ws(uint64_t sz, struct mtd_info *mtd) mtd_mod_by_ws() argument
352 static inline int mtd_has_oob(const struct mtd_info *mtd) mtd_has_oob() argument
357 static inline int mtd_type_is_nand(const struct mtd_info *mtd) mtd_type_is_nand() argument
362 static inline int mtd_can_have_bb(const struct mtd_info *mtd) mtd_can_have_bb() argument
H A Dsh_flctl.h146 struct mtd_info mtd; member in struct:sh_flctl
H A Dnand.h914 struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd) get_platform_nandchip() argument
/linux-4.1.27/fs/romfs/
H A Dmmap-nommu.c29 struct mtd_info *mtd = inode->i_sb->s_mtd; romfs_get_unmapped_area() local
75 struct mtd_info *mtd = file_inode(file)->i_sb->s_mtd; romfs_mmap_capabilities() local
/linux-4.1.27/drivers/mtd/lpddr/
H A Dqinfo_probe.c200 struct mtd_info *mtd = NULL; lpddr_probe() local
H A Dlpddr_cmds.c53 struct mtd_info *mtd; lpddr_cmdset() local
470 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) do_erase_oneblock() argument
497 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, lpddr_read() argument
521 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, lpddr_point() argument
574 static int lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) lpddr_unpoint() argument
619 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, lpddr_write_buffers() argument
631 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, lpddr_writev() argument
678 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) lpddr_erase() argument
704 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) do_xxlock() argument
739 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) lpddr_lock() argument
744 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) lpddr_unlock() argument
H A Dlpddr2_nvm.c242 static int lpddr2_nvm_do_block_op(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_do_block_op() argument
307 static int lpddr2_nvm_read(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_read() argument
325 static int lpddr2_nvm_write(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_write() argument
381 static int lpddr2_nvm_erase(struct mtd_info *mtd, struct erase_info *instr) lpddr2_nvm_erase() argument
396 static int lpddr2_nvm_unlock(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_unlock() argument
405 static int lpddr2_nvm_lock(struct mtd_info *mtd, loff_t start_add, lpddr2_nvm_lock() argument
417 struct mtd_info *mtd; lpddr2_nvm_probe() local
/linux-4.1.27/drivers/mtd/tests/
H A Dmtd_test.c9 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) mtdtest_erase_eraseblock() argument
33 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) is_block_bad() argument
45 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, mtdtest_scan_for_bad_eraseblocks() argument
65 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, mtdtest_erase_good_eraseblocks() argument
83 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) mtdtest_read() argument
100 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, mtdtest_write() argument
H A Dreadtest.c38 static struct mtd_info *mtd; variable in typeref:struct:mtd_info
H A Dstresstest.c44 static struct mtd_info *mtd; variable in typeref:struct:mtd_info
H A Dnandbiterrs.c80 static struct mtd_info *mtd; /* MTD device */ variable in typeref:struct:mtd_info
H A Dpagetest.c40 static struct mtd_info *mtd; variable in typeref:struct:mtd_info
H A Dspeedtest.c44 static struct mtd_info *mtd; variable in typeref:struct:mtd_info
H A Dsubpagetest.c39 static struct mtd_info *mtd; variable in typeref:struct:mtd_info
H A Doobtest.c43 static struct mtd_info *mtd; variable in typeref:struct:mtd_info
H A Dtorturetest.c68 static struct mtd_info *mtd; variable in typeref:struct:mtd_info
/linux-4.1.27/arch/mips/netlogic/xlr/
H A Dplatform-flash.c97 static void xlr_nand_ctrl(struct mtd_info *mtd, int cmd, xlr_nand_ctrl() argument
/linux-4.1.27/arch/mips/pnx833x/common/
H A Dplatform.c181 pnx833x_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) pnx833x_flash_nand_cmd_ctrl() argument
/linux-4.1.27/arch/cris/arch-v32/drivers/mach-a3/
H A Dnandflash.c50 static void crisv32_hwcontrol(struct mtd_info *mtd, int cmd, crisv32_hwcontrol() argument
96 static int crisv32_device_ready(struct mtd_info *mtd) crisv32_device_ready() argument
/linux-4.1.27/arch/cris/arch-v32/drivers/mach-fs/
H A Dnandflash.c49 static void crisv32_hwcontrol(struct mtd_info *mtd, int cmd, crisv32_hwcontrol() argument
91 static int crisv32_device_ready(struct mtd_info *mtd) crisv32_device_ready() argument
/linux-4.1.27/arch/arm/mach-pxa/
H A Dpalmtx.c250 static void palmtx_nand_cmd_ctl(struct mtd_info *mtd, int cmd, palmtx_nand_cmd_ctl() argument
H A Dballoon3.c573 static void balloon3_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) balloon3_nand_cmd_ctl() argument
602 static void balloon3_nand_select_chip(struct mtd_info *mtd, int chip) balloon3_nand_select_chip() argument
618 static int balloon3_nand_dev_ready(struct mtd_info *mtd) balloon3_nand_dev_ready() argument
H A Dem-x270.c289 static void em_x270_nand_cmd_ctl(struct mtd_info *mtd, int dat, em_x270_nand_cmd_ctl() argument
321 static int em_x270_nand_device_ready(struct mtd_info *mtd) em_x270_nand_device_ready() argument
/linux-4.1.27/arch/arm/mach-ep93xx/
H A Dsnappercl15.c49 static void snappercl15_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, snappercl15_nand_cmd_ctrl() argument
77 static int snappercl15_nand_dev_ready(struct mtd_info *mtd) snappercl15_nand_dev_ready() argument
H A Dts72xx.c74 static void ts72xx_nand_hwcontrol(struct mtd_info *mtd, ts72xx_nand_hwcontrol() argument
97 static int ts72xx_nand_device_ready(struct mtd_info *mtd) ts72xx_nand_device_ready() argument
/linux-4.1.27/arch/arm/mach-ixp4xx/
H A Dixdp425-setup.c77 ixdp425_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) ixdp425_flash_nand_cmd_ctrl() argument
/linux-4.1.27/drivers/mtd/devices/
H A Dbcm47xxsflash.c67 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) bcm47xxsflash_erase() argument
103 static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, bcm47xxsflash_read() argument
119 static int bcm47xxsflash_write_st(struct mtd_info *mtd, u32 offset, size_t len, bcm47xxsflash_write_st() argument
164 static int bcm47xxsflash_write_at(struct mtd_info *mtd, u32 offset, size_t len, bcm47xxsflash_write_at() argument
207 static int bcm47xxsflash_write(struct mtd_info *mtd, loff_t to, size_t len, bcm47xxsflash_write() argument
242 struct mtd_info *mtd = &b47s->mtd; bcm47xxsflash_fill_mtd() local
H A Dm25p80.c34 struct mtd_info mtd; member in struct:m25p
H A Dms02-nv.c57 static int ms02nv_read(struct mtd_info *mtd, loff_t from, ms02nv_read() argument
67 static int ms02nv_write(struct mtd_info *mtd, loff_t to, ms02nv_write() argument
110 struct mtd_info *mtd; ms02nv_init_one() local
252 struct mtd_info *mtd = root_ms02nv_mtd; ms02nv_remove_one() local
H A Dmtdram.c35 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) ram_erase() argument
43 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, ram_point() argument
51 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) ram_unpoint() argument
61 static unsigned long ram_get_unmapped_area(struct mtd_info *mtd, ram_get_unmapped_area() argument
69 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, ram_read() argument
77 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, ram_write() argument
94 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, mtdram_init_device() argument
H A Dbcm47xxsflash.h73 struct mtd_info mtd; member in struct:bcm47xxsflash
H A Dblock2mtd.c37 struct mtd_info mtd; member in struct:block2mtd_dev
83 static int block2mtd_erase(struct mtd_info *mtd, struct erase_info *instr) block2mtd_erase() argument
105 static int block2mtd_read(struct mtd_info *mtd, loff_t from, size_t len, block2mtd_read() argument
179 static int block2mtd_write(struct mtd_info *mtd, loff_t to, size_t len, block2mtd_write() argument
195 static void block2mtd_sync(struct mtd_info *mtd) block2mtd_sync() argument
H A Dphram.c30 struct mtd_info mtd; member in struct:phram_mtd_list
36 static int phram_erase(struct mtd_info *mtd, struct erase_info *instr) phram_erase() argument
52 static int phram_point(struct mtd_info *mtd, loff_t from, size_t len, phram_point() argument
60 static int phram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) phram_unpoint() argument
65 static int phram_read(struct mtd_info *mtd, loff_t from, size_t len, phram_read() argument
75 static int phram_write(struct mtd_info *mtd, loff_t to, size_t len, phram_write() argument
H A Dslram.c82 static int slram_erase(struct mtd_info *mtd, struct erase_info *instr) slram_erase() argument
96 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, slram_point() argument
106 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) slram_unpoint() argument
111 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, slram_read() argument
121 static int slram_write(struct mtd_info *mtd, loff_t to, size_t len, slram_write() argument
H A Dsst25l.c53 struct mtd_info mtd; member in struct:sst25l_flash
170 static int sst25l_erase(struct mtd_info *mtd, struct erase_info *instr) sst25l_erase() argument
213 static int sst25l_read(struct mtd_info *mtd, loff_t from, size_t len, sst25l_read() argument
256 static int sst25l_write(struct mtd_info *mtd, loff_t to, size_t len, sst25l_write() argument
H A Dlart.c361 static int flash_erase (struct mtd_info *mtd,struct erase_info *instr) flash_erase() argument
434 static int flash_read (struct mtd_info *mtd,loff_t from,size_t len,size_t *retlen,u_char *buf) flash_read() argument
509 static int flash_write (struct mtd_info *mtd,loff_t to,size_t len,size_t *retlen,const u_char *buf) flash_write() argument
569 static struct mtd_info mtd; variable in typeref:struct:mtd_info
H A Dpmc551.c139 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) pmc551_erase() argument
196 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, pmc551_point() argument
222 static int pmc551_unpoint(struct mtd_info *mtd, loff_t from, size_t len) pmc551_unpoint() argument
230 static int pmc551_read(struct mtd_info *mtd, loff_t from, size_t len, pmc551_read() argument
287 static int pmc551_write(struct mtd_info *mtd, loff_t to, size_t len, pmc551_write() argument
665 struct mtd_info *mtd; init_pmc551() local
832 struct mtd_info *mtd; cleanup_pmc551() local
H A Dmtd_dataflash.c96 struct mtd_info mtd; member in struct:dataflash
148 static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) dataflash_erase() argument
234 static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len, dataflash_read() argument
299 static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, dataflash_write() argument
442 static int dataflash_get_otp_info(struct mtd_info *mtd, size_t len, dataflash_get_otp_info() argument
501 static int dataflash_read_fact_otp(struct mtd_info *mtd, dataflash_read_fact_otp() argument
518 static int dataflash_read_user_otp(struct mtd_info *mtd, dataflash_read_user_otp() argument
535 static int dataflash_write_user_otp(struct mtd_info *mtd, dataflash_write_user_otp() argument
H A Dspear_smi.c199 struct mtd_info mtd; member in struct:spear_snor_flash
208 static inline struct spear_snor_flash *get_flash_data(struct mtd_info *mtd) get_flash_data() argument
494 static int spear_mtd_erase(struct mtd_info *mtd, struct erase_info *e_info) spear_mtd_erase() argument
548 static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, spear_mtd_read() argument
641 static int spear_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, spear_mtd_write() argument
H A Ddocg3.c857 static int doc_read_oob(struct mtd_info *mtd, loff_t from, doc_read_oob() argument
985 static int doc_read(struct mtd_info *mtd, loff_t from, size_t len, doc_read() argument
1030 static int doc_block_isbad(struct mtd_info *mtd, loff_t from) doc_block_isbad() argument
1201 static int doc_erase(struct mtd_info *mtd, struct erase_info *info) doc_erase() argument
1411 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, doc_write_oob() argument
1507 static int doc_write(struct mtd_info *mtd, loff_t to, size_t len, doc_write() argument
1818 static void __init doc_set_driver_info(int chip_id, struct mtd_info *mtd) doc_set_driver_info() argument
1874 struct mtd_info *mtd; doc_probe_device() local
1934 static void doc_release_device(struct mtd_info *mtd) doc_release_device() argument
1955 struct mtd_info **docg3_floors, *mtd; docg3_resume() local
1982 struct mtd_info **docg3_floors, *mtd; docg3_suspend() local
2033 struct mtd_info *mtd; docg3_probe() local
H A Dst_spi_fsm.c263 struct mtd_info mtd; member in struct:stfsm
1674 static int stfsm_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, stfsm_mtd_read() argument
1750 static int stfsm_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, stfsm_mtd_write() argument
1796 static int stfsm_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) stfsm_mtd_erase() argument
/linux-4.1.27/arch/mips/bcm47xx/
H A Dnvram.c139 struct mtd_info *mtd; nvram_init() local
/linux-4.1.27/fs/logfs/
H A Ddev_mtd.c19 struct mtd_info *mtd = logfs_super(sb)->s_mtd; logfs_mtd_read() local
39 struct mtd_info *mtd = super->s_mtd; loffs_mtd_write() local
93 struct mtd_info *mtd = logfs_super(sb)->s_mtd; logfs_mtd_erase() local
120 struct mtd_info *mtd = logfs_super(sb)->s_mtd; logfs_mtd_sync() local
153 struct mtd_info *mtd = super->s_mtd; logfs_mtd_find_first_sb() local
170 struct mtd_info *mtd = super->s_mtd; logfs_mtd_find_last_sb() local
266 struct mtd_info *mtd = get_mtd_device(NULL, mtdnr); logfs_get_sb_mtd() local
H A Dsuper.c134 struct mtd_info *mtd = super->s_mtd; logfs_sb_test() local
/linux-4.1.27/arch/mips/rb532/
H A Ddevices.c143 static int rb532_dev_ready(struct mtd_info *mtd) rb532_dev_ready() argument
148 static void rb532_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) rb532_cmd_ctrl() argument
/linux-4.1.27/arch/arm/mach-imx/
H A Dmach-qong.c132 static void qong_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) qong_nand_cmd_ctrl() argument
148 static int qong_nand_device_ready(struct mtd_info *mtd) qong_nand_device_ready() argument
153 static void qong_nand_select_chip(struct mtd_info *mtd, int chip) qong_nand_select_chip() argument
/linux-4.1.27/drivers/mtd/ubi/
H A Dcdev.c989 struct mtd_info *mtd; ctrl_cdev_ioctl() local
H A Dgluebi.c57 struct mtd_info mtd; member in struct:gluebi_device
97 static int gluebi_get_device(struct mtd_info *mtd) gluebi_get_device() argument
147 static void gluebi_put_device(struct mtd_info *mtd) gluebi_put_device() argument
171 static int gluebi_read(struct mtd_info *mtd, loff_t from, size_t len, gluebi_read() argument
211 static int gluebi_write(struct mtd_info *mtd, loff_t to, size_t len, gluebi_write() argument
252 static int gluebi_erase(struct mtd_info *mtd, struct erase_info *instr) gluebi_erase() argument
303 struct mtd_info *mtd; gluebi_create() local
372 struct mtd_info *mtd; gluebi_remove() local
504 struct mtd_info *mtd = &gluebi->mtd; ubi_gluebi_exit() local
H A Dio.c612 struct mtd_info *mtd = ubi->mtd; ubi_io_is_bad() local
642 struct mtd_info *mtd = ubi->mtd; ubi_io_mark_bad() local
H A Dbuild.c869 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, ubi_attach_mtd_dev() argument
1201 struct mtd_info *mtd; open_mtd_device() local
1271 struct mtd_info *mtd; ubi_init() local
H A Dubi.h620 struct mtd_info *mtd; member in struct:ubi_device
/linux-4.1.27/drivers/staging/goldfish/
H A Dgoldfish_nand.c39 struct mtd_info mtd[0]; member in struct:goldfish_nand
42 static u32 goldfish_nand_cmd_with_params(struct mtd_info *mtd, goldfish_nand_cmd_with_params() argument
77 static u32 goldfish_nand_cmd(struct mtd_info *mtd, enum nand_cmd cmd, goldfish_nand_cmd() argument
98 static int goldfish_nand_erase(struct mtd_info *mtd, struct erase_info *instr) goldfish_nand_erase() argument
132 static int goldfish_nand_read_oob(struct mtd_info *mtd, loff_t ofs, goldfish_nand_read_oob() argument
164 static int goldfish_nand_write_oob(struct mtd_info *mtd, loff_t ofs, goldfish_nand_write_oob() argument
196 static int goldfish_nand_read(struct mtd_info *mtd, loff_t from, size_t len, goldfish_nand_read() argument
218 static int goldfish_nand_write(struct mtd_info *mtd, loff_t to, size_t len, goldfish_nand_write() argument
240 static int goldfish_nand_block_isbad(struct mtd_info *mtd, loff_t ofs) goldfish_nand_block_isbad() argument
261 static int goldfish_nand_block_markbad(struct mtd_info *mtd, loff_t ofs) goldfish_nand_block_markbad() argument
308 struct mtd_info *mtd = &nand->mtd[id]; goldfish_nand_init_device() local
/linux-4.1.27/arch/mips/alchemy/devboards/
H A Ddb1550.c127 static void au1550_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, au1550_nand_cmd_ctrl() argument
150 static int au1550_nand_device_ready(struct mtd_info *mtd) au1550_nand_device_ready() argument
H A Ddb1300.c149 static void au1300_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, au1300_nand_cmd_ctrl() argument
172 static int au1300_nand_device_ready(struct mtd_info *mtd) au1300_nand_device_ready() argument
H A Ddb1200.c200 static void au1200_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, au1200_nand_cmd_ctrl() argument
223 static int au1200_nand_device_ready(struct mtd_info *mtd) au1200_nand_device_ready() argument
/linux-4.1.27/arch/sh/boards/mach-migor/
H A Dsetup.c167 static void migor_nand_flash_cmd_ctl(struct mtd_info *mtd, int cmd, migor_nand_flash_cmd_ctl() argument
183 static int migor_nand_flash_ready(struct mtd_info *mtd) migor_nand_flash_ready() argument
/linux-4.1.27/arch/blackfin/mach-bf561/boards/
H A Dacvilon.c267 static void bfin_plat_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, bfin_plat_nand_cmd_ctrl() argument
282 static int bfin_plat_nand_dev_ready(struct mtd_info *mtd) bfin_plat_nand_dev_ready() argument
/linux-4.1.27/drivers/staging/mt29f_spinand/
H A Dmt29f_spinand.c32 static inline struct spinand_state *mtd_to_state(struct mtd_info *mtd) mtd_to_state() argument
614 static int spinand_write_page_hwecc(struct mtd_info *mtd, spinand_write_page_hwecc() argument
626 static int spinand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, spinand_read_page_hwecc() argument
666 static void spinand_select_chip(struct mtd_info *mtd, int dev) spinand_select_chip() argument
670 static uint8_t spinand_read_byte(struct mtd_info *mtd) spinand_read_byte() argument
681 static int spinand_wait(struct mtd_info *mtd, struct nand_chip *chip) spinand_wait() argument
711 static void spinand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) spinand_write_buf() argument
720 static void spinand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) spinand_read_buf() argument
747 static void spinand_cmdfunc(struct mtd_info *mtd, unsigned int command, spinand_cmdfunc() argument
851 struct mtd_info *mtd; spinand_probe() local
/linux-4.1.27/fs/jffs2/
H A Djffs2_fs_sb.h49 struct mtd_info *mtd; member in struct:jffs2_sb_info
/linux-4.1.27/arch/arm/mach-orion5x/
H A Dts78xx-setup.c176 static void ts78xx_ts_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, ts78xx_ts_nand_cmd_ctrl() argument
195 static int ts78xx_ts_nand_dev_ready(struct mtd_info *mtd) ts78xx_ts_nand_dev_ready() argument
200 static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd, ts78xx_ts_nand_write_buf() argument
227 static void ts78xx_ts_nand_read_buf(struct mtd_info *mtd, ts78xx_ts_nand_read_buf() argument
/linux-4.1.27/drivers/mtd/nand/gpmi-nand/
H A Dgpmi-lib.c922 struct mtd_info *mtd = &this->mtd; enable_edo_mode() local
H A Dgpmi-nand.h163 struct mtd_info mtd; member in struct:gpmi_nand_data
H A Dgpmi-nand.c110 struct mtd_info *mtd = &this->mtd; get_ecc_strength() local
142 struct mtd_info *mtd = &this->mtd; set_geometry_by_ecc_info() local
260 struct mtd_info *mtd = &this->mtd; legacy_set_geometry() local
807 struct mtd_info *mtd = &this->mtd; gpmi_alloc_dma_buffer() local
857 static void gpmi_cmd_ctrl(struct mtd_info *mtd, int data, unsigned int ctrl) gpmi_cmd_ctrl() argument
891 static int gpmi_dev_ready(struct mtd_info *mtd) gpmi_dev_ready() argument
899 static void gpmi_select_chip(struct mtd_info *mtd, int chipnr) gpmi_select_chip() argument
912 static void gpmi_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) gpmi_read_buf() argument
924 static void gpmi_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) gpmi_write_buf() argument
936 static uint8_t gpmi_read_byte(struct mtd_info *mtd) gpmi_read_byte() argument
994 static int gpmi_ecc_read_page(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_read_page() argument
1074 static int gpmi_ecc_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_read_subpage() argument
1162 static int gpmi_ecc_write_page(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_write_page() argument
1298 static int gpmi_ecc_read_oob(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_read_oob() argument
1326 gpmi_ecc_write_oob(struct mtd_info *mtd, struct nand_chip *chip, int page) gpmi_ecc_write_oob() argument
1358 static int gpmi_ecc_read_page_raw(struct mtd_info *mtd, gpmi_ecc_read_page_raw() argument
1446 static int gpmi_ecc_write_page_raw(struct mtd_info *mtd, gpmi_ecc_write_page_raw() argument
1523 static int gpmi_ecc_read_oob_raw(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_read_oob_raw() argument
1531 static int gpmi_ecc_write_oob_raw(struct mtd_info *mtd, struct nand_chip *chip, gpmi_ecc_write_oob_raw() argument
1539 static int gpmi_block_markbad(struct mtd_info *mtd, loff_t ofs) gpmi_block_markbad() argument
1603 struct mtd_info *mtd = &this->mtd; mx23_check_transcription_stamp() local
1658 struct mtd_info *mtd = &this->mtd; mx23_write_transcription_stamp() local
1738 struct mtd_info *mtd = &this->mtd; mx23_boot_init() local
1840 struct mtd_info *mtd = &this->mtd; gpmi_init_last() local
1889 struct mtd_info *mtd = &this->mtd; gpmi_nand_init() local
/linux-4.1.27/drivers/mtd/spi-nor/
H A Dspi-nor.c166 static inline struct spi_nor *mtd_to_spi_nor(struct mtd_info *mtd) mtd_to_spi_nor() argument
299 static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr) spi_nor_erase() argument
374 struct mtd_info *mtd = nor->mtd; stm_lock() local
408 struct mtd_info *mtd = nor->mtd; stm_unlock() local
440 static int spi_nor_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) spi_nor_lock() argument
455 static int spi_nor_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) spi_nor_unlock() argument
717 static int spi_nor_read(struct mtd_info *mtd, loff_t from, size_t len, spi_nor_read() argument
735 static int sst_write(struct mtd_info *mtd, loff_t to, size_t len, sst_write() argument
806 static int spi_nor_write(struct mtd_info *mtd, loff_t to, size_t len, spi_nor_write() argument
997 struct mtd_info *mtd = nor->mtd; spi_nor_scan() local
H A Dfsl-quadspi.c222 struct mtd_info mtd[FSL_QSPI_MAX_CHIP]; member in struct:fsl_qspi
794 struct mtd_info *mtd; fsl_qspi_probe() local
/linux-4.1.27/include/uapi/mtd/
H A Dmtd-abi.h279 static inline int mtd_type_is_nand_user(const struct mtd_info_user *mtd) mtd_type_is_nand_user() argument
/linux-4.1.27/arch/arm/mach-davinci/
H A Dboard-da850-evm.c129 static void da850_evm_m25p80_notify_add(struct mtd_info *mtd) da850_evm_m25p80_notify_add() argument
/linux-4.1.27/arch/blackfin/mach-bf537/boards/
H A Dstamp.c405 static void bfin_plat_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) bfin_plat_nand_cmd_ctrl() argument
419 static int bfin_plat_nand_dev_ready(struct mtd_info *mtd) bfin_plat_nand_dev_ready() argument
/linux-4.1.27/drivers/block/
H A Dskd_main.c3107 u32 mtd; skd_isr_fwstate() local
3311 u32 mtd; skd_isr_msg_from_dev() local
/linux-4.1.27/include/linux/bcma/
H A Dbcma_driver_chipcommon.h589 struct mtd_info *mtd; member in struct:bcma_sflash
601 struct mtd_info *mtd; member in struct:bcma_nflash

Completed in 3480 milliseconds