Home
last modified time | relevance | path

Searched defs:mtd (Results 1 – 192 of 192) sorted by relevance

/linux-4.4.14/drivers/mtd/
Dmtdcore.c55 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
62 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
104 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() local
114 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
153 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
163 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
174 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
184 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
194 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
205 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
[all …]
Dmtdpart.c43 struct mtd_info mtd; member
61 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read()
80 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point()
89 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint()
96 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area()
108 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob()
146 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg()
154 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, in part_get_user_prot_info()
162 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg()
170 static int part_get_fact_prot_info(struct mtd_info *mtd, size_t len, in part_get_fact_prot_info()
[all …]
Dmtdconcat.c44 struct mtd_info mtd; member
68 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read()
120 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write()
158 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev()
233 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob()
290 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) in concat_write_oob()
341 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) in concat_dev_erase()
375 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase()
498 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_lock()
532 static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_unlock()
[all …]
Dmtdchar.c51 struct mtd_info *mtd; member
66 struct mtd_info *mtd; in mtdchar_open() local
116 struct mtd_info *mtd = mfi->mtd; in mtdchar_close() local
153 struct mtd_info *mtd = mfi->mtd; in mtdchar_read() local
239 struct mtd_info *mtd = mfi->mtd; in mtdchar_write() local
334 struct mtd_info *mtd = mfi->mtd; in otp_select_filemode() local
362 static int mtdchar_writeoob(struct file *file, struct mtd_info *mtd, in mtdchar_writeoob()
411 static int mtdchar_readoob(struct file *file, struct mtd_info *mtd, in mtdchar_readoob()
500 static int mtdchar_blkpg_ioctl(struct mtd_info *mtd, in mtdchar_blkpg_ioctl()
535 static int mtdchar_write_ioctl(struct mtd_info *mtd, in mtdchar_write_ioctl()
[all …]
Dmtdsuper.c28 struct mtd_info *mtd = _mtd; in get_sb_mtd_compare() local
48 struct mtd_info *mtd = _mtd; in get_sb_mtd_set() local
61 struct mtd_info *mtd, in mount_mtd_aux()
107 struct mtd_info *mtd; in mount_mtd_nr() local
142 struct mtd_info *mtd; in mount_mtd() local
Dnftlmount.c45 struct mtd_info *mtd = nftl->mbd.mtd; in find_boot_record() local
277 struct mtd_info *mtd = nftl->mbd.mtd; in check_free_sectors() local
313 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_formatblock() local
378 struct mtd_info *mtd = nftl->mbd.mtd; in check_sectors_in_chain() local
497 struct mtd_info *mtd = nftl->mbd.mtd; in check_and_mark_free_block() local
558 struct mtd_info *mtd = nftl->mbd.mtd; in get_fold_mark() local
577 struct mtd_info *mtd = s->mbd.mtd; in NFTL_mount() local
Dmtdoops.c63 struct mtd_info *mtd; member
95 struct mtd_info *mtd = cxt->mtd; in mtdoops_erase_block() local
158 struct mtd_info *mtd = cxt->mtd; in mtdoops_workfunc_erase() local
212 struct mtd_info *mtd = cxt->mtd; in mtdoops_write() local
252 struct mtd_info *mtd = cxt->mtd; in find_next_position() local
324 static void mtdoops_notify_add(struct mtd_info *mtd) in mtdoops_notify_add()
376 static void mtdoops_notify_remove(struct mtd_info *mtd) in mtdoops_notify_remove()
Dinftlcore.c48 static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in inftl_add_mtd()
149 int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_read_oob()
169 int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_write_oob()
189 static int inftl_write(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_write()
254 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_foldchain() local
478 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_findwriteunit() local
640 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_trydeletechain() local
762 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_deleteblock() local
871 struct mtd_info *mtd = inftl->mbd.mtd; in inftl_readblock() local
Dnftlcore.c48 static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in nftl_add_mtd()
136 int nftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, in nftl_read_oob()
157 int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, in nftl_write_oob()
180 static int nftl_write(struct mtd_info *mtd, loff_t offs, size_t len, in nftl_write()
246 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_foldchain() local
539 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_findwriteunit() local
718 struct mtd_info *mtd = nftl->mbd.mtd; in nftl_readblock() local
Dmtdblock.c64 static int erase_write (struct mtd_info *mtd, unsigned long pos, in erase_write()
115 struct mtd_info *mtd = mtdblk->mbd.mtd; in write_cached_data() local
145 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_write() local
215 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_read() local
340 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdblock_add_mtd()
Dinftlmount.c51 struct mtd_info *mtd = inftl->mbd.mtd; in find_boot_record() local
340 struct mtd_info *mtd = inftl->mbd.mtd; in check_free_sectors() local
377 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_formatblock() local
539 struct mtd_info *mtd = s->mbd.mtd; in INFTL_mount() local
Dssfdc.c106 static int get_valid_cis_sector(struct mtd_info *mtd) in get_valid_cis_sector()
152 static int read_physical_sector(struct mtd_info *mtd, uint8_t *sect_buf, in read_physical_sector()
167 static int read_raw_oob(struct mtd_info *mtd, loff_t offs, uint8_t *buf) in read_raw_oob()
248 struct mtd_info *mtd = ssfdc->mbd.mtd; in build_logical_block_map() local
287 static void ssfdcr_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in ssfdcr_add_mtd()
Dafs.c70 afs_read_footer(struct mtd_info *mtd, u_int *img_start, u_int *iis_start, in afs_read_footer()
129 afs_read_iis(struct mtd_info *mtd, struct image_info_struct *iis, u_int ptr) in afs_read_iis()
164 static int parse_afs_partitions(struct mtd_info *mtd, in parse_afs_partitions()
Dmtd_blkdevs.c498 static void blktrans_notify_remove(struct mtd_info *mtd) in blktrans_notify_remove()
509 static void blktrans_notify_add(struct mtd_info *mtd) in blktrans_notify_add()
527 struct mtd_info *mtd; in register_mtd_blktrans() local
Dmtdcore.h20 #define mtd_for_each_device(mtd) \ argument
Dmtdswap.c115 struct mtd_info *mtd; member
550 struct mtd_info *mtd = d->mtd; in mtdswap_erase_block() local
666 struct mtd_info *mtd = d->mtd; in mtdswap_write_block() local
727 struct mtd_info *mtd = d->mtd; in mtdswap_move_block() local
926 struct mtd_info *mtd = d->mtd; in mtdswap_eblk_passes() local
1054 static unsigned int mtdswap_badblocks(struct mtd_info *mtd, uint64_t size) in mtdswap_badblocks()
1131 struct mtd_info *mtd = d->mtd; in mtdswap_readsect() local
1352 struct mtd_info *mtd = d->mbd_dev->mtd; in mtdswap_init() local
1411 static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdswap_add_mtd()
Dsm_ftl.c240 struct mtd_info *mtd = ftl->trans->mtd; in sm_read_sector() local
323 struct mtd_info *mtd = ftl->trans->mtd; in sm_write_sector() local
459 struct mtd_info *mtd = ftl->trans->mtd; in sm_erase_block() local
571 static int sm_get_media_info(struct sm_ftl *ftl, struct mtd_info *mtd) in sm_get_media_info()
1129 static void sm_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in sm_add_mtd()
Dmtdblock_ro.c49 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdblock_add_mtd()
Drfd_ftl.c757 static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in rfd_ftl_add_mtd()
Dftl.c1045 static void ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in ftl_add_mtd()
/linux-4.4.14/drivers/mtd/nand/
Dmpc5121_nfc.c121 struct mtd_info mtd; member
136 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read()
145 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) in nfc_write()
154 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) in nfc_set()
160 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) in nfc_clear()
166 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) in mpc5121_nfc_send_addr()
174 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) in mpc5121_nfc_send_cmd()
182 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) in mpc5121_nfc_send_prog_page()
190 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) in mpc5121_nfc_send_read_page()
198 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) in mpc5121_nfc_send_read_id()
[all …]
Dnand_base.c106 static int check_offs_len(struct mtd_info *mtd, in check_offs_len()
133 static void nand_release_device(struct mtd_info *mtd) in nand_release_device()
151 static uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte()
164 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16()
176 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word()
189 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip()
212 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) in nand_write_byte()
226 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) in nand_write_byte16()
258 static void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf()
273 static void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf()
[all …]
Dbf5xx_nand.c145 struct mtd_info mtd; member
161 static struct bf5xx_nand_info *mtd_to_nand_info(struct mtd_info *mtd) in mtd_to_nand_info()
185 static void bf5xx_nand_hwcontrol(struct mtd_info *mtd, int cmd, in bf5xx_nand_hwcontrol()
206 static int bf5xx_nand_devready(struct mtd_info *mtd) in bf5xx_nand_devready()
225 static int bf5xx_nand_correct_data_256(struct mtd_info *mtd, u_char *dat, in bf5xx_nand_correct_data_256()
304 static int bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat, in bf5xx_nand_correct_data()
323 static void bf5xx_nand_enable_hwecc(struct mtd_info *mtd, int mode) in bf5xx_nand_enable_hwecc()
328 static int bf5xx_nand_calculate_ecc(struct mtd_info *mtd, in bf5xx_nand_calculate_ecc()
368 static void bf5xx_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in bf5xx_nand_read_buf()
397 static uint8_t bf5xx_nand_read_byte(struct mtd_info *mtd) in bf5xx_nand_read_byte()
[all …]
Ddiskonchip.c300 static void doc2000_write_byte(struct mtd_info *mtd, u_char datum) in doc2000_write_byte()
312 static u_char doc2000_read_byte(struct mtd_info *mtd) in doc2000_read_byte()
327 static void doc2000_writebuf(struct mtd_info *mtd, const u_char *buf, int len) in doc2000_writebuf()
344 static void doc2000_readbuf(struct mtd_info *mtd, u_char *buf, int len) in doc2000_readbuf()
359 static void doc2000_readbuf_dword(struct mtd_info *mtd, u_char *buf, int len) in doc2000_readbuf_dword()
380 static uint16_t __init doc200x_ident_chip(struct mtd_info *mtd, int nr) in doc200x_ident_chip()
426 static void __init doc2000_count_chips(struct mtd_info *mtd) in doc2000_count_chips()
448 static int doc200x_wait(struct mtd_info *mtd, struct nand_chip *this) in doc200x_wait()
462 static void doc2001_write_byte(struct mtd_info *mtd, u_char datum) in doc2001_write_byte()
473 static u_char doc2001_read_byte(struct mtd_info *mtd) in doc2001_read_byte()
[all …]
Dau1550nd.c40 static u_char au_read_byte(struct mtd_info *mtd) in au_read_byte()
55 static void au_write_byte(struct mtd_info *mtd, u_char byte) in au_write_byte()
68 static u_char au_read_byte16(struct mtd_info *mtd) in au_read_byte16()
83 static void au_write_byte16(struct mtd_info *mtd, u_char byte) in au_write_byte16()
96 static u16 au_read_word(struct mtd_info *mtd) in au_read_word()
112 static void au_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in au_write_buf()
131 static void au_read_buf(struct mtd_info *mtd, u_char *buf, int len) in au_read_buf()
150 static void au_write_buf16(struct mtd_info *mtd, const u_char *buf, int len) in au_write_buf16()
172 static void au_read_buf16(struct mtd_info *mtd, u_char *buf, int len) in au_read_buf16()
198 static void au1550_hwcontrol(struct mtd_info *mtd, int cmd) in au1550_hwcontrol()
[all …]
Dsocrates_nand.c33 struct mtd_info mtd; member
44 static void socrates_nand_write_buf(struct mtd_info *mtd, in socrates_nand_write_buf()
64 static void socrates_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in socrates_nand_read_buf()
84 static uint8_t socrates_nand_read_byte(struct mtd_info *mtd) in socrates_nand_read_byte()
95 static uint16_t socrates_nand_read_word(struct mtd_info *mtd) in socrates_nand_read_word()
105 static void socrates_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in socrates_nand_cmd_ctrl()
131 static int socrates_nand_device_ready(struct mtd_info *mtd) in socrates_nand_device_ready()
147 struct mtd_info *mtd; in socrates_nand_probe() local
220 struct mtd_info *mtd = &host->mtd; in socrates_nand_remove() local
Dnand_bbt.c171 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num, in read_bbt()
264 static int read_abs_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td, int chip) in read_abs_bbt()
290 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data()
314 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob()
344 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read()
354 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt()
369 static u32 bbt_get_ver_offs(struct mtd_info *mtd, struct nand_bbt_descr *td) in bbt_get_ver_offs()
388 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, in read_abs_bbts()
413 static int scan_block_fast(struct mtd_info *mtd, struct nand_bbt_descr *bd, in scan_block_fast()
454 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, in create_bbt()
[all …]
Dams-delta.c65 static void ams_delta_write_byte(struct mtd_info *mtd, u_char byte) in ams_delta_write_byte()
77 static u_char ams_delta_read_byte(struct mtd_info *mtd) in ams_delta_read_byte()
92 static void ams_delta_write_buf(struct mtd_info *mtd, const u_char *buf, in ams_delta_write_buf()
101 static void ams_delta_read_buf(struct mtd_info *mtd, u_char *buf, int len) in ams_delta_read_buf()
117 static void ams_delta_hwcontrol(struct mtd_info *mtd, int cmd, in ams_delta_hwcontrol()
134 static int ams_delta_nand_ready(struct mtd_info *mtd) in ams_delta_nand_ready()
Ddocg4.c79 struct mtd_info *mtd; member
242 static void docg4_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in docg4_read_buf()
253 static void docg4_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) in docg4_write_buf16()
297 static int docg4_wait(struct mtd_info *mtd, struct nand_chip *nand) in docg4_wait()
315 static void docg4_select_chip(struct mtd_info *mtd, int chip) in docg4_select_chip()
336 static void reset(struct mtd_info *mtd) in reset()
371 static int correct_data(struct mtd_info *mtd, uint8_t *buf, int page) in correct_data()
465 static uint8_t docg4_read_byte(struct mtd_info *mtd) in docg4_read_byte()
541 static int pageprog(struct mtd_info *mtd) in pageprog()
581 static void sequence_reset(struct mtd_info *mtd) in sequence_reset()
[all …]
Dcafe_nand.c102 static int cafe_device_ready(struct mtd_info *mtd) in cafe_device_ready()
118 static void cafe_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in cafe_write_buf()
133 static void cafe_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in cafe_read_buf()
147 static uint8_t cafe_read_byte(struct mtd_info *mtd) in cafe_read_byte()
158 static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command, in cafe_nand_cmdfunc()
314 static void cafe_select_chip(struct mtd_info *mtd, int chipnr) in cafe_select_chip()
330 struct mtd_info *mtd = id; in cafe_nand_interrupt() local
341 static void cafe_nand_bug(struct mtd_info *mtd) in cafe_nand_bug()
346 static int cafe_nand_write_oob(struct mtd_info *mtd, in cafe_nand_write_oob()
360 static int cafe_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in cafe_nand_read_oob()
[all …]
Ds3c2410.c107 struct mtd_info mtd; member
169 static struct s3c2410_nand_mtd *s3c2410_nand_mtd_toours(struct mtd_info *mtd) in s3c2410_nand_mtd_toours()
174 static struct s3c2410_nand_info *s3c2410_nand_mtd_toinfo(struct mtd_info *mtd) in s3c2410_nand_mtd_toinfo()
381 static void s3c2410_nand_select_chip(struct mtd_info *mtd, int chip) in s3c2410_nand_select_chip()
423 static void s3c2410_nand_hwcontrol(struct mtd_info *mtd, int cmd, in s3c2410_nand_hwcontrol()
439 static void s3c2440_nand_hwcontrol(struct mtd_info *mtd, int cmd, in s3c2440_nand_hwcontrol()
458 static int s3c2410_nand_devready(struct mtd_info *mtd) in s3c2410_nand_devready()
464 static int s3c2440_nand_devready(struct mtd_info *mtd) in s3c2440_nand_devready()
470 static int s3c2412_nand_devready(struct mtd_info *mtd) in s3c2412_nand_devready()
479 static int s3c2410_nand_correct_data(struct mtd_info *mtd, u_char *dat, in s3c2410_nand_correct_data()
[all …]
Ddavinci_nand.c56 struct mtd_info mtd; member
104 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, in nand_davinci_hwcontrol()
125 static void nand_davinci_select_chip(struct mtd_info *mtd, int chip) in nand_davinci_select_chip()
145 static inline uint32_t nand_davinci_readecc_1bit(struct mtd_info *mtd) in nand_davinci_readecc_1bit()
153 static void nand_davinci_hwctl_1bit(struct mtd_info *mtd, int mode) in nand_davinci_hwctl_1bit()
177 static int nand_davinci_calculate_1bit(struct mtd_info *mtd, in nand_davinci_calculate_1bit()
192 static int nand_davinci_correct_1bit(struct mtd_info *mtd, u_char *dat, in nand_davinci_correct_1bit()
238 static void nand_davinci_hwctl_4bit(struct mtd_info *mtd, int mode) in nand_davinci_hwctl_4bit()
270 static int nand_davinci_calculate_4bit(struct mtd_info *mtd, in nand_davinci_calculate_4bit()
307 static int nand_davinci_correct_4bit(struct mtd_info *mtd, in nand_davinci_correct_4bit()
[all …]
Dtxx9ndfmc.c66 struct mtd_info mtd; member
80 static struct platform_device *mtd_to_platdev(struct mtd_info *mtd) in mtd_to_platdev()
106 static uint8_t txx9ndfmc_read_byte(struct mtd_info *mtd) in txx9ndfmc_read_byte()
113 static void txx9ndfmc_write_buf(struct mtd_info *mtd, const uint8_t *buf, in txx9ndfmc_write_buf()
126 static void txx9ndfmc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in txx9ndfmc_read_buf()
135 static void txx9ndfmc_cmd_ctrl(struct mtd_info *mtd, int cmd, in txx9ndfmc_cmd_ctrl()
167 static int txx9ndfmc_dev_ready(struct mtd_info *mtd) in txx9ndfmc_dev_ready()
174 static int txx9ndfmc_calculate_ecc(struct mtd_info *mtd, const uint8_t *dat, in txx9ndfmc_calculate_ecc()
195 static int txx9ndfmc_correct_data(struct mtd_info *mtd, unsigned char *buf, in txx9ndfmc_correct_data()
215 static void txx9ndfmc_enable_hwecc(struct mtd_info *mtd, int mode) in txx9ndfmc_enable_hwecc()
[all …]
Dndfc.c40 struct mtd_info mtd; member
48 static void ndfc_select_chip(struct mtd_info *mtd, int chip) in ndfc_select_chip()
63 static void ndfc_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in ndfc_hwcontrol()
77 static int ndfc_ready(struct mtd_info *mtd) in ndfc_ready()
85 static void ndfc_enable_hwecc(struct mtd_info *mtd, int mode) in ndfc_enable_hwecc()
97 static int ndfc_calculate_ecc(struct mtd_info *mtd, in ndfc_calculate_ecc()
122 static void ndfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in ndfc_read_buf()
132 static void ndfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in ndfc_write_buf()
Dfsl_ifc_nand.c43 struct mtd_info mtd; member
231 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr()
254 static int is_blank(struct mtd_info *mtd, unsigned int bufnum) in is_blank()
279 static int check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, in check_read_ecc()
293 static void fsl_ifc_run_command(struct mtd_info *mtd) in fsl_ifc_run_command()
371 struct mtd_info *mtd) in fsl_ifc_do_read()
410 static void fsl_ifc_cmdfunc(struct mtd_info *mtd, unsigned int command, in fsl_ifc_cmdfunc()
615 static void fsl_ifc_select_chip(struct mtd_info *mtd, int chip) in fsl_ifc_select_chip()
625 static void fsl_ifc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) in fsl_ifc_write_buf()
651 static uint8_t fsl_ifc_read_byte(struct mtd_info *mtd) in fsl_ifc_read_byte()
[all …]
Dcmx270_nand.c54 static u_char cmx270_read_byte(struct mtd_info *mtd) in cmx270_read_byte()
61 static void cmx270_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in cmx270_write_buf()
70 static void cmx270_read_buf(struct mtd_info *mtd, u_char *buf, int len) in cmx270_read_buf()
94 static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, in cmx270_hwcontrol()
128 static int cmx270_device_ready(struct mtd_info *mtd) in cmx270_device_ready()
Dcs553x_nand.c98 static void cs553x_read_buf(struct mtd_info *mtd, u_char *buf, int len) in cs553x_read_buf()
110 static void cs553x_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in cs553x_write_buf()
122 static unsigned char cs553x_read_byte(struct mtd_info *mtd) in cs553x_read_byte()
128 static void cs553x_write_byte(struct mtd_info *mtd, u_char byte) in cs553x_write_byte()
140 static void cs553x_hwcontrol(struct mtd_info *mtd, int cmd, in cs553x_hwcontrol()
153 static int cs553x_device_ready(struct mtd_info *mtd) in cs553x_device_ready()
162 static void cs_enable_hwecc(struct mtd_info *mtd, int mode) in cs_enable_hwecc()
170 static int cs_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) in cs_calculate_ecc()
333 struct mtd_info *mtd = cs553x_mtd[i]; in cs553x_cleanup() local
Dr852.c65 static inline struct r852_device *r852_get_dev(struct mtd_info *mtd) in r852_get_dev()
232 static void r852_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in r852_write_buf()
266 static void r852_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in r852_read_buf()
303 static uint8_t r852_read_byte(struct mtd_info *mtd) in r852_read_byte()
317 static void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl) in r852_cmdctl()
362 static int r852_wait(struct mtd_info *mtd, struct nand_chip *chip) in r852_wait()
391 static int r852_ready(struct mtd_info *mtd) in r852_ready()
402 static void r852_ecc_hwctl(struct mtd_info *mtd, int mode) in r852_ecc_hwctl()
434 static int r852_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, in r852_ecc_calculate()
466 static int r852_ecc_correct(struct mtd_info *mtd, uint8_t *dat, in r852_ecc_correct()
[all …]
Dfsl_elbc_nand.c51 struct mtd_info mtd; member
145 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr()
196 static int fsl_elbc_run_command(struct mtd_info *mtd) in fsl_elbc_run_command()
300 static void fsl_elbc_cmdfunc(struct mtd_info *mtd, unsigned int command, in fsl_elbc_cmdfunc()
516 static void fsl_elbc_select_chip(struct mtd_info *mtd, int chip) in fsl_elbc_select_chip()
526 static void fsl_elbc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) in fsl_elbc_write_buf()
564 static u8 fsl_elbc_read_byte(struct mtd_info *mtd) in fsl_elbc_read_byte()
581 static void fsl_elbc_read_buf(struct mtd_info *mtd, u8 *buf, int len) in fsl_elbc_read_buf()
606 static int fsl_elbc_wait(struct mtd_info *mtd, struct nand_chip *chip) in fsl_elbc_wait()
620 static int fsl_elbc_chip_init_tail(struct mtd_info *mtd) in fsl_elbc_chip_init_tail()
[all …]
Dsh_flctl.c192 static void set_addr(struct mtd_info *mtd, int column, int page_addr) in set_addr()
500 static void set_cmd_regs(struct mtd_info *mtd, uint32_t cmd, uint32_t flcmcdr_val) in set_cmd_regs()
562 static int flctl_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in flctl_read_page_hwecc()
571 static int flctl_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in flctl_write_page_hwecc()
580 static void execmd_read_page_sector(struct mtd_info *mtd, int page_addr) in execmd_read_page_sector()
629 static void execmd_read_oob(struct mtd_info *mtd, int page_addr) in execmd_read_oob()
650 static void execmd_write_page_sector(struct mtd_info *mtd) in execmd_write_page_sector()
676 static void execmd_write_oob(struct mtd_info *mtd) in execmd_write_oob()
698 static void flctl_cmdfunc(struct mtd_info *mtd, unsigned int command, in flctl_cmdfunc()
874 static void flctl_select_chip(struct mtd_info *mtd, int chipnr) in flctl_select_chip()
[all …]
Datmel_nand.c119 struct mtd_info mtd; member
183 static void atmel_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in atmel_nand_cmd_ctrl()
206 static int atmel_nand_device_ready(struct mtd_info *mtd) in atmel_nand_device_ready()
216 static int atmel_nand_set_enable_ready_pins(struct mtd_info *mtd) in atmel_nand_set_enable_ready_pins()
268 static void atmel_read_buf8(struct mtd_info *mtd, u8 *buf, int len) in atmel_read_buf8()
281 static void atmel_read_buf16(struct mtd_info *mtd, u8 *buf, int len) in atmel_read_buf16()
294 static void atmel_write_buf8(struct mtd_info *mtd, const u8 *buf, int len) in atmel_write_buf8()
301 static void atmel_write_buf16(struct mtd_info *mtd, const u8 *buf, int len) in atmel_write_buf16()
347 static int atmel_nand_dma_op(struct mtd_info *mtd, void *buf, int len, in atmel_nand_dma_op()
426 static void atmel_read_buf(struct mtd_info *mtd, u8 *buf, int len) in atmel_read_buf()
[all …]
Dtmio_nand.c106 struct mtd_info mtd; member
127 static void tmio_nand_hwcontrol(struct mtd_info *mtd, int cmd, in tmio_nand_hwcontrol()
160 static int tmio_nand_dev_ready(struct mtd_info *mtd) in tmio_nand_dev_ready()
189 tmio_nand_wait(struct mtd_info *mtd, struct nand_chip *nand_chip) in tmio_nand_wait()
225 static u_char tmio_nand_read_byte(struct mtd_info *mtd) in tmio_nand_read_byte()
245 tmio_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in tmio_nand_write_buf()
252 static void tmio_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in tmio_nand_read_buf()
259 static void tmio_nand_enable_hwecc(struct mtd_info *mtd, int mode) in tmio_nand_enable_hwecc()
268 static int tmio_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in tmio_nand_calculate_ecc()
290 static int tmio_nand_correct_data(struct mtd_info *mtd, unsigned char *buf, in tmio_nand_correct_data()
[all …]
Dlpc32xx_slc.c207 struct mtd_info mtd; member
259 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in lpc32xx_nand_cmd_ctrl()
285 static int lpc32xx_nand_device_ready(struct mtd_info *mtd) in lpc32xx_nand_device_ready()
318 static void lpc32xx_nand_ecc_enable(struct mtd_info *mtd, int mode) in lpc32xx_nand_ecc_enable()
326 static int lpc32xx_nand_ecc_calculate(struct mtd_info *mtd, in lpc32xx_nand_ecc_calculate()
340 static uint8_t lpc32xx_nand_read_byte(struct mtd_info *mtd) in lpc32xx_nand_read_byte()
351 static void lpc32xx_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in lpc32xx_nand_read_buf()
364 static void lpc32xx_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in lpc32xx_nand_write_buf()
377 static int lpc32xx_nand_read_oob_syndrome(struct mtd_info *mtd, in lpc32xx_nand_read_oob_syndrome()
389 static int lpc32xx_nand_write_oob_syndrome(struct mtd_info *mtd, in lpc32xx_nand_write_oob_syndrome()
[all …]
Dorion_nand.c26 static void orion_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in orion_nand_cmd_ctrl()
48 static void orion_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in orion_nand_read_buf()
78 struct mtd_info *mtd; in orion_nand_probe() local
185 struct mtd_info *mtd = platform_get_drvdata(pdev); in orion_nand_remove() local
Dvf610_nfc.c159 struct mtd_info mtd; member
323 struct mtd_info *mtd = data; in vf610_nfc_irq() local
357 static void vf610_nfc_command(struct mtd_info *mtd, unsigned command, in vf610_nfc_command()
451 static void vf610_nfc_read_buf(struct mtd_info *mtd, u_char *buf, int len) in vf610_nfc_read_buf()
464 static void vf610_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, in vf610_nfc_write_buf()
478 static uint8_t vf610_nfc_read_byte(struct mtd_info *mtd) in vf610_nfc_read_byte()
505 static u16 vf610_nfc_read_word(struct mtd_info *mtd) in vf610_nfc_read_word()
514 static int vf610_nfc_dev_ready(struct mtd_info *mtd) in vf610_nfc_dev_ready()
523 static void vf610_nfc_select_chip(struct mtd_info *mtd, int chip) in vf610_nfc_select_chip()
557 static inline int vf610_nfc_correct_data(struct mtd_info *mtd, uint8_t *dat, in vf610_nfc_correct_data()
[all …]
Dfsl_upm.c34 struct mtd_info mtd; member
55 static int fun_chip_ready(struct mtd_info *mtd) in fun_chip_ready()
80 static void fun_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in fun_cmd_ctrl()
110 static void fun_select_chip(struct mtd_info *mtd, int mchip_nr) in fun_select_chip()
126 static uint8_t fun_read_byte(struct mtd_info *mtd) in fun_read_byte()
133 static void fun_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in fun_read_buf()
142 static void fun_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in fun_write_buf()
Dsharpsl.c32 struct mtd_info mtd; member
65 static void sharpsl_nand_hwcontrol(struct mtd_info *mtd, int cmd, in sharpsl_nand_hwcontrol()
85 static int sharpsl_nand_dev_ready(struct mtd_info *mtd) in sharpsl_nand_dev_ready()
91 static void sharpsl_nand_enable_hwecc(struct mtd_info *mtd, int mode) in sharpsl_nand_enable_hwecc()
97 static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat, u_char * ecc_code) in sharpsl_nand_calculate_ecc()
Djz4740_nand.c62 struct mtd_info mtd; member
77 static inline struct jz_nand *mtd_to_jz_nand(struct mtd_info *mtd) in mtd_to_jz_nand()
82 static void jz_nand_select_chip(struct mtd_info *mtd, int chipnr) in jz_nand_select_chip()
104 static void jz_nand_cmd_ctrl(struct mtd_info *mtd, int dat, unsigned int ctrl) in jz_nand_cmd_ctrl()
132 static int jz_nand_dev_ready(struct mtd_info *mtd) in jz_nand_dev_ready()
138 static void jz_nand_hwctl(struct mtd_info *mtd, int mode) in jz_nand_hwctl()
166 static int jz_nand_calculate_ecc_rs(struct mtd_info *mtd, const uint8_t *dat, in jz_nand_calculate_ecc_rs()
219 static int jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat, in jz_nand_correct_ecc_rs()
337 struct mtd_info *mtd = &nand->mtd; in jz_nand_detect_bank() local
414 struct mtd_info *mtd; in jz_nand_probe() local
Dpasemi_nand.c46 static void pasemi_read_buf(struct mtd_info *mtd, u_char *buf, int len) in pasemi_read_buf()
58 static void pasemi_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in pasemi_write_buf()
70 static void pasemi_hwcontrol(struct mtd_info *mtd, int cmd, in pasemi_hwcontrol()
88 int pasemi_device_ready(struct mtd_info *mtd) in pasemi_device_ready()
Dhisi504_nand.c137 struct mtd_info mtd; member
192 struct mtd_info *mtd = &host->mtd; in hisi_nfc_dma_transfer() local
265 struct mtd_info *mtd = &host->mtd; in hisi_nfc_send_cmd_readstart() local
358 static void hisi_nfc_select_chip(struct mtd_info *mtd, int chipselect) in hisi_nfc_select_chip()
369 static uint8_t hisi_nfc_read_byte(struct mtd_info *mtd) in hisi_nfc_read_byte()
385 static u16 hisi_nfc_read_word(struct mtd_info *mtd) in hisi_nfc_read_word()
395 hisi_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in hisi_nfc_write_buf()
404 static void hisi_nfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in hisi_nfc_read_buf()
413 static void set_addr(struct mtd_info *mtd, int column, int page_addr) in set_addr()
448 static void hisi_nfc_cmdfunc(struct mtd_info *mtd, unsigned command, int column, in hisi_nfc_cmdfunc()
[all …]
Dlpc32xx_mlc.c176 struct mtd_info mtd; member
275 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in lpc32xx_nand_cmd_ctrl()
292 static int lpc32xx_nand_device_ready(struct mtd_info *mtd) in lpc32xx_nand_device_ready()
319 static int lpc32xx_waitfunc_nand(struct mtd_info *mtd, struct nand_chip *chip) in lpc32xx_waitfunc_nand()
338 static int lpc32xx_waitfunc_controller(struct mtd_info *mtd, in lpc32xx_waitfunc_controller()
358 static int lpc32xx_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) in lpc32xx_waitfunc()
389 static int lpc32xx_xmit_dma(struct mtd_info *mtd, void *mem, int len, in lpc32xx_xmit_dma()
431 static int lpc32xx_read_page(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_read_page()
496 static int lpc32xx_write_page_lowlevel(struct mtd_info *mtd, in lpc32xx_write_page_lowlevel()
543 static int lpc32xx_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_read_oob()
[all …]
Domap2.c155 struct mtd_info mtd; member
248 static void omap_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in omap_hwcontrol()
271 static void omap_read_buf8(struct mtd_info *mtd, u_char *buf, int len) in omap_read_buf8()
284 static void omap_write_buf8(struct mtd_info *mtd, const u_char *buf, int len) in omap_write_buf8()
307 static void omap_read_buf16(struct mtd_info *mtd, u_char *buf, int len) in omap_read_buf16()
320 static void omap_write_buf16(struct mtd_info *mtd, const u_char * buf, int len) in omap_write_buf16()
345 static void omap_read_buf_pref(struct mtd_info *mtd, u_char *buf, int len) in omap_read_buf_pref()
392 static void omap_write_buf_pref(struct mtd_info *mtd, in omap_write_buf_pref()
458 static inline int omap_nand_dma_transfer(struct mtd_info *mtd, void *addr, in omap_nand_dma_transfer()
547 static void omap_read_buf_dma_pref(struct mtd_info *mtd, u_char *buf, int len) in omap_read_buf_dma_pref()
[all …]
Dfsmc_nand.c302 struct mtd_info mtd; member
330 static void fsmc_select_chip(struct mtd_info *mtd, int chipnr) in fsmc_select_chip()
359 static void fsmc_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in fsmc_cmd_ctrl()
446 static void fsmc_enable_hwecc(struct mtd_info *mtd, int mode) in fsmc_enable_hwecc()
466 static int fsmc_read_hwecc_ecc4(struct mtd_info *mtd, const uint8_t *data, in fsmc_read_hwecc_ecc4()
517 static int fsmc_read_hwecc_ecc1(struct mtd_info *mtd, const uint8_t *data, in fsmc_read_hwecc_ecc1()
629 static void fsmc_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in fsmc_write_buf()
652 static void fsmc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in fsmc_read_buf()
675 static void fsmc_read_buf_dma(struct mtd_info *mtd, uint8_t *buf, int len) in fsmc_read_buf_dma()
689 static void fsmc_write_buf_dma(struct mtd_info *mtd, const uint8_t *buf, in fsmc_write_buf_dma()
[all …]
Dnuc900_nand.c58 struct mtd_info mtd; member
78 static unsigned char nuc900_nand_read_byte(struct mtd_info *mtd) in nuc900_nand_read_byte()
90 static void nuc900_nand_read_buf(struct mtd_info *mtd, in nuc900_nand_read_buf()
102 static void nuc900_nand_write_buf(struct mtd_info *mtd, in nuc900_nand_write_buf()
125 static int nuc900_nand_devready(struct mtd_info *mtd) in nuc900_nand_devready()
136 static void nuc900_nand_command_lp(struct mtd_info *mtd, unsigned int command, in nuc900_nand_command_lp()
Dmxc_nand.c176 struct mtd_info mtd; member
533 static void send_page_v3(struct mtd_info *mtd, unsigned int ops) in send_page_v3()
549 static void send_page_v2(struct mtd_info *mtd, unsigned int ops) in send_page_v2()
563 static void send_page_v1(struct mtd_info *mtd, unsigned int ops) in send_page_v1()
646 static int mxc_nand_dev_ready(struct mtd_info *mtd) in mxc_nand_dev_ready()
655 static void mxc_nand_enable_hwecc(struct mtd_info *mtd, int mode) in mxc_nand_enable_hwecc()
663 static int mxc_nand_correct_data_v1(struct mtd_info *mtd, u_char *dat, in mxc_nand_correct_data_v1()
684 static int mxc_nand_correct_data_v2_v3(struct mtd_info *mtd, u_char *dat, in mxc_nand_correct_data_v2_v3()
717 static int mxc_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in mxc_nand_calculate_ecc()
723 static u_char mxc_nand_read_byte(struct mtd_info *mtd) in mxc_nand_read_byte()
[all …]
Dsunxi_nand.c237 struct mtd_info mtd; member
351 static int sunxi_nfc_dev_ready(struct mtd_info *mtd) in sunxi_nfc_dev_ready()
389 static void sunxi_nfc_select_chip(struct mtd_info *mtd, int chip) in sunxi_nfc_select_chip()
434 static void sunxi_nfc_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in sunxi_nfc_read_buf()
466 static void sunxi_nfc_write_buf(struct mtd_info *mtd, const uint8_t *buf, in sunxi_nfc_write_buf()
498 static uint8_t sunxi_nfc_read_byte(struct mtd_info *mtd) in sunxi_nfc_read_byte()
507 static void sunxi_nfc_cmd_ctrl(struct mtd_info *mtd, int dat, in sunxi_nfc_cmd_ctrl()
542 static void sunxi_nfc_hw_ecc_enable(struct mtd_info *mtd) in sunxi_nfc_hw_ecc_enable()
557 static void sunxi_nfc_hw_ecc_disable(struct mtd_info *mtd) in sunxi_nfc_hw_ecc_disable()
574 static int sunxi_nfc_hw_ecc_read_chunk(struct mtd_info *mtd, in sunxi_nfc_hw_ecc_read_chunk()
[all …]
Ddenali.c868 static int write_oob_data(struct mtd_info *mtd, uint8_t *buf, int page) in write_oob_data()
897 static void read_oob_data(struct mtd_info *mtd, uint8_t *buf, int page) in read_oob_data()
1060 static int write_page(struct mtd_info *mtd, struct nand_chip *chip, in write_page()
1116 static int denali_write_page(struct mtd_info *mtd, struct nand_chip *chip, in denali_write_page()
1131 static int denali_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in denali_write_page_raw()
1142 static int denali_write_oob(struct mtd_info *mtd, struct nand_chip *chip, in denali_write_oob()
1148 static int denali_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in denali_read_oob()
1156 static int denali_read_page(struct mtd_info *mtd, struct nand_chip *chip, in denali_read_page()
1209 static int denali_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in denali_read_page_raw()
1245 static uint8_t denali_read_byte(struct mtd_info *mtd) in denali_read_byte()
[all …]
Dxway_nand.c73 static void xway_select_chip(struct mtd_info *mtd, int chip) in xway_select_chip()
90 static void xway_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in xway_cmd_ctrl()
114 static int xway_dev_ready(struct mtd_info *mtd) in xway_dev_ready()
119 static unsigned char xway_read_byte(struct mtd_info *mtd) in xway_read_byte()
Dnand_bch.c52 int nand_bch_calculate_ecc(struct mtd_info *mtd, const unsigned char *buf, in nand_bch_calculate_ecc()
79 int nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_bch_correct_data()
127 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, unsigned int eccbytes, in nand_bch_init()
Dsm_common.c41 static int sm_block_markbad(struct mtd_info *mtd, loff_t ofs) in sm_block_markbad()
103 int sm_register_device(struct mtd_info *mtd, int smartmedia) in sm_register_device()
Dpxa3xx_nand.c175 struct mtd_info *mtd; member
540 struct mtd_info *mtd) in pxa3xx_set_datasize()
898 struct mtd_info *mtd = host->mtd; in prepare_start_command() local
948 struct mtd_info *mtd; in prepare_set_command() local
1118 static void nand_cmdfunc(struct mtd_info *mtd, unsigned command, in nand_cmdfunc()
1165 static void nand_cmdfunc_extended(struct mtd_info *mtd, in nand_cmdfunc_extended()
1275 static int pxa3xx_nand_write_page_hwecc(struct mtd_info *mtd, in pxa3xx_nand_write_page_hwecc()
1285 static int pxa3xx_nand_read_page_hwecc(struct mtd_info *mtd, in pxa3xx_nand_read_page_hwecc()
1313 static uint8_t pxa3xx_nand_read_byte(struct mtd_info *mtd) in pxa3xx_nand_read_byte()
1326 static u16 pxa3xx_nand_read_word(struct mtd_info *mtd) in pxa3xx_nand_read_word()
[all …]
Dnand_ecc.c423 int nand_calculate_ecc(struct mtd_info *mtd, const unsigned char *buf, in nand_calculate_ecc()
523 int nand_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_correct_data()
Dgpio.c72 static void gpio_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in gpio_nand_cmd_ctrl()
91 static int gpio_nand_devready(struct mtd_info *mtd) in gpio_nand_devready()
Dnandsim.c667 static int init_nandsim(struct mtd_info *mtd) in init_nandsim()
815 static int parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) in parse_badblocks()
1014 static int setup_wear_reporting(struct mtd_info *mtd) in setup_wear_reporting()
1909 static u_char ns_nand_read_byte(struct mtd_info *mtd) in ns_nand_read_byte()
1970 static void ns_nand_write_byte(struct mtd_info *mtd, u_char byte) in ns_nand_write_byte()
2124 static void ns_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int bitmask) in ns_hwcontrol()
2136 static int ns_device_ready(struct mtd_info *mtd) in ns_device_ready()
2142 static uint16_t ns_nand_read_word(struct mtd_info *mtd) in ns_nand_read_word()
2151 static void ns_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in ns_nand_write_buf()
2178 static void ns_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in ns_nand_read_buf()
Dplat_nand.c23 struct mtd_info mtd; member
Dr852.h111 struct mtd_info *mtd; /* mtd backpointer */ member
Ddenali.h453 struct mtd_info mtd; member
/linux-4.4.14/drivers/mtd/onenand/
Donenand_base.c349 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region()
370 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) in onenand_command()
525 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait()
623 static int onenand_interrupt_wait(struct mtd_info *mtd, int state) in onenand_interrupt_wait()
639 static int onenand_try_interrupt_wait(struct mtd_info *mtd, int state) in onenand_try_interrupt_wait()
670 static void onenand_setup_wait(struct mtd_info *mtd) in onenand_setup_wait()
705 static inline int onenand_bufferram_offset(struct mtd_info *mtd, int area) in onenand_bufferram_offset()
730 static int onenand_read_bufferram(struct mtd_info *mtd, int area, in onenand_read_bufferram()
766 static int onenand_sync_read_bufferram(struct mtd_info *mtd, int area, in onenand_sync_read_bufferram()
806 static int onenand_write_bufferram(struct mtd_info *mtd, int area, in onenand_write_bufferram()
[all …]
Domap2.c55 struct mtd_info mtd; member
106 static int omap2_onenand_wait(struct mtd_info *mtd, int state) in omap2_onenand_wait()
280 static inline int omap2_onenand_bufferram_offset(struct mtd_info *mtd, int area) in omap2_onenand_bufferram_offset()
296 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_read_bufferram()
374 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_write_bufferram()
447 static int omap3_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_read_bufferram()
454 static int omap3_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap3_onenand_write_bufferram()
465 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap2_onenand_read_bufferram()
510 static int omap2_onenand_write_bufferram(struct mtd_info *mtd, int area, in omap2_onenand_write_bufferram()
557 static int omap2_onenand_read_bufferram(struct mtd_info *mtd, int area, in omap2_onenand_read_bufferram()
[all …]
Donenand_bbt.c57 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd, int chip) in create_bbt()
132 static inline int onenand_memory_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_memory_bbt()
145 static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in onenand_isbad_bbt()
182 int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_scan_bbt()
233 int onenand_default_bbt(struct mtd_info *mtd) in onenand_default_bbt()
Dsamsung.c128 struct mtd_info *mtd; member
318 static int s3c_onenand_wait(struct mtd_info *mtd, int state) in s3c_onenand_wait()
384 static int s3c_onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, in s3c_onenand_command()
482 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) in s3c_get_bufferram()
501 static int onenand_read_bufferram(struct mtd_info *mtd, int area, in onenand_read_bufferram()
512 static int onenand_write_bufferram(struct mtd_info *mtd, int area, in onenand_write_bufferram()
623 static int s5pc110_read_bufferram(struct mtd_info *mtd, int area, in s5pc110_read_bufferram()
695 static int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe()
701 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait()
734 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status()
[all …]
Dgeneric.c33 struct mtd_info mtd; member
/linux-4.4.14/drivers/mtd/chips/
Dmap_absent.c46 struct mtd_info *mtd; in 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 *b… in map_absent_read()
76 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write()
81 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) in map_absent_erase()
86 static void map_absent_sync(struct mtd_info *mtd) in map_absent_sync()
91 static void map_absent_destroy(struct mtd_info *mtd) in map_absent_destroy()
Dmap_rom.c43 struct mtd_info *mtd; in map_rom_probe() local
74 static unsigned long maprom_unmapped_area(struct mtd_info *mtd, in maprom_unmapped_area()
83 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read()
92 static void maprom_nop(struct mtd_info *mtd) in maprom_nop()
97 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write()
102 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info) in maprom_erase()
Dmap_ram.c35 struct mtd_info *mtd; in map_ram_probe() local
90 static unsigned long mapram_unmapped_area(struct mtd_info *mtd, in mapram_unmapped_area()
99 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read()
108 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write()
117 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) in mapram_erase()
133 static void mapram_nop(struct mtd_info *mtd) in mapram_nop()
Dcfi_cmdset_0002.c156 static void fixup_amd_bootblock(struct mtd_info *mtd) in fixup_amd_bootblock()
205 static void fixup_use_write_buffers(struct mtd_info *mtd) in fixup_use_write_buffers()
216 static void fixup_convert_atmel_pri(struct mtd_info *mtd) in fixup_convert_atmel_pri()
247 static void fixup_use_secsi(struct mtd_info *mtd) in fixup_use_secsi()
254 static void fixup_use_erase_chip(struct mtd_info *mtd) in fixup_use_erase_chip()
269 static void fixup_use_atmel_lock(struct mtd_info *mtd) in fixup_use_atmel_lock()
276 static void fixup_old_sst_eraseregion(struct mtd_info *mtd) in fixup_old_sst_eraseregion()
290 static void fixup_sst39vf(struct mtd_info *mtd) in fixup_sst39vf()
301 static void fixup_sst39vf_rev_b(struct mtd_info *mtd) in fixup_sst39vf_rev_b()
314 static void fixup_sst38vf640x_sectorsize(struct mtd_info *mtd) in fixup_sst38vf640x_sectorsize()
[all …]
Dcfi_cmdset_0001.c169 static void fixup_convert_atmel_pri(struct mtd_info *mtd) in fixup_convert_atmel_pri()
209 static void fixup_at49bv640dx_lock(struct mtd_info *mtd) in fixup_at49bv640dx_lock()
221 static void fixup_intel_strataflash(struct mtd_info *mtd) in fixup_intel_strataflash()
234 static void fixup_no_write_suspend(struct mtd_info *mtd) in fixup_no_write_suspend()
247 static void fixup_st_m28w320ct(struct mtd_info *mtd) in fixup_st_m28w320ct()
256 static void fixup_st_m28w320cb(struct mtd_info *mtd) in fixup_st_m28w320cb()
276 static void fixup_LH28F640BF(struct mtd_info *mtd) in fixup_LH28F640BF()
296 static void fixup_use_point(struct mtd_info *mtd) in fixup_use_point()
305 static void fixup_use_write_buffers(struct mtd_info *mtd) in fixup_use_write_buffers()
319 static void fixup_unlock_powerup_lock(struct mtd_info *mtd) in fixup_unlock_powerup_lock()
[all …]
Dcfi_cmdset_0020.c169 struct mtd_info *mtd; in 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 *bu… in cfi_staa_read()
605 static int cfi_staa_write_buffers (struct mtd_info *mtd, loff_t to, in cfi_staa_write_buffers()
662 cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, in cfi_staa_writev()
889 static int cfi_staa_erase_varsize(struct mtd_info *mtd, in cfi_staa_erase_varsize()
974 static void cfi_staa_sync (struct mtd_info *mtd) in cfi_staa_sync()
1127 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_staa_lock()
1273 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_staa_unlock()
1312 static int cfi_staa_suspend(struct mtd_info *mtd) in cfi_staa_suspend()
1368 static void cfi_staa_resume(struct mtd_info *mtd) in cfi_staa_resume()
[all …]
Dfwh_lock.h79 static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) in fwh_lock_varsize()
90 static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) in fwh_unlock_varsize()
100 static void fixup_use_fwh_lock(struct mtd_info *mtd) in fixup_use_fwh_lock()
Dgen_probe.c23 struct mtd_info *mtd = NULL; in mtd_do_chip_probe() local
217 struct mtd_info *mtd; in cfi_cmdset_unknown() local
Dchipreg.c85 void map_destroy(struct mtd_info *mtd) in map_destroy()
Dcfi_util.c336 void cfi_fixup(struct mtd_info *mtd, struct cfi_fixup *fixups) in cfi_fixup()
352 int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob, in cfi_varsize_frob()
/linux-4.4.14/drivers/mtd/devices/
Dmtdram.c35 static int check_offs_len(struct mtd_info *mtd, loff_t ofs, uint64_t len) in check_offs_len()
54 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) in ram_erase()
64 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, in ram_point()
72 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in ram_unpoint()
82 static unsigned long ram_get_unmapped_area(struct mtd_info *mtd, in ram_get_unmapped_area()
90 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, in ram_read()
98 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, in ram_write()
115 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, in mtdram_init_device()
Dpowernv_flash.c40 struct mtd_info mtd; member
50 static int powernv_flash_async_op(struct mtd_info *mtd, enum flash_op op, in powernv_flash_async_op()
119 static int powernv_flash_read(struct mtd_info *mtd, loff_t from, size_t len, in powernv_flash_read()
135 static int powernv_flash_write(struct mtd_info *mtd, loff_t to, size_t len, in powernv_flash_write()
147 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) in powernv_flash_erase()
173 struct mtd_info *mtd) in powernv_flash_set_driver_info()
Dbcm47xxsflash.c67 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) in bcm47xxsflash_erase()
103 static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, in bcm47xxsflash_read()
119 static int bcm47xxsflash_write_st(struct mtd_info *mtd, u32 offset, size_t len, in bcm47xxsflash_write_st()
164 static int bcm47xxsflash_write_at(struct mtd_info *mtd, u32 offset, size_t len, in bcm47xxsflash_write_at()
207 static int bcm47xxsflash_write(struct mtd_info *mtd, loff_t to, size_t len, in bcm47xxsflash_write()
243 struct mtd_info *mtd = &b47s->mtd; in bcm47xxsflash_fill_mtd() local
Dphram.c30 struct mtd_info mtd; member
36 static int phram_erase(struct mtd_info *mtd, struct erase_info *instr) in phram_erase()
52 static int phram_point(struct mtd_info *mtd, loff_t from, size_t len, in phram_point()
60 static int phram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in phram_unpoint()
65 static int phram_read(struct mtd_info *mtd, loff_t from, size_t len, in phram_read()
75 static int phram_write(struct mtd_info *mtd, loff_t to, size_t len, in phram_write()
Dpmc551.c139 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) in pmc551_erase()
196 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_point()
222 static int pmc551_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in pmc551_unpoint()
230 static int pmc551_read(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_read()
287 static int pmc551_write(struct mtd_info *mtd, loff_t to, size_t len, in pmc551_write()
665 struct mtd_info *mtd; in init_pmc551() local
832 struct mtd_info *mtd; in cleanup_pmc551() local
Dms02-nv.c57 static int ms02nv_read(struct mtd_info *mtd, loff_t from, in ms02nv_read()
67 static int ms02nv_write(struct mtd_info *mtd, loff_t to, in ms02nv_write()
110 struct mtd_info *mtd; in ms02nv_init_one() local
252 struct mtd_info *mtd = root_ms02nv_mtd; in ms02nv_remove_one() local
Dslram.c82 static int slram_erase(struct mtd_info *mtd, struct erase_info *instr) in slram_erase()
96 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, in slram_point()
106 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in slram_unpoint()
111 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, in slram_read()
121 static int slram_write(struct mtd_info *mtd, loff_t to, size_t len, in slram_write()
Dmtd_dataflash.c96 struct mtd_info mtd; member
149 static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) in dataflash_erase()
235 static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len, in dataflash_read()
300 static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len, in dataflash_write()
443 static int dataflash_get_otp_info(struct mtd_info *mtd, size_t len, in dataflash_get_otp_info()
502 static int dataflash_read_fact_otp(struct mtd_info *mtd, in dataflash_read_fact_otp()
519 static int dataflash_read_user_otp(struct mtd_info *mtd, in dataflash_read_user_otp()
536 static int dataflash_write_user_otp(struct mtd_info *mtd, in dataflash_write_user_otp()
Dblock2mtd.c38 struct mtd_info mtd; member
84 static int block2mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in block2mtd_erase()
106 static int block2mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in block2mtd_read()
180 static int block2mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in block2mtd_write()
196 static void block2mtd_sync(struct mtd_info *mtd) in block2mtd_sync()
Dlart.c361 static int flash_erase (struct mtd_info *mtd,struct erase_info *instr) in flash_erase()
434 static int flash_read (struct mtd_info *mtd,loff_t from,size_t len,size_t *retlen,u_char *buf) in flash_read()
509 static int flash_write (struct mtd_info *mtd,loff_t to,size_t len,size_t *retlen,const u_char *buf) in flash_write()
569 static struct mtd_info mtd; variable
Dsst25l.c53 struct mtd_info mtd; member
170 static int sst25l_erase(struct mtd_info *mtd, struct erase_info *instr) in sst25l_erase()
213 static int sst25l_read(struct mtd_info *mtd, loff_t from, size_t len, in sst25l_read()
256 static int sst25l_write(struct mtd_info *mtd, loff_t to, size_t len, in sst25l_write()
Ddocg3.c857 static int doc_read_oob(struct mtd_info *mtd, loff_t from, in doc_read_oob()
985 static int doc_read(struct mtd_info *mtd, loff_t from, size_t len, in doc_read()
1030 static int doc_block_isbad(struct mtd_info *mtd, loff_t from) in doc_block_isbad()
1201 static int doc_erase(struct mtd_info *mtd, struct erase_info *info) in doc_erase()
1411 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, in doc_write_oob()
1507 static int doc_write(struct mtd_info *mtd, loff_t to, size_t len, in doc_write()
1828 static int __init doc_set_driver_info(int chip_id, struct mtd_info *mtd) in doc_set_driver_info()
1887 struct mtd_info *mtd; in doc_probe_device() local
1952 static void doc_release_device(struct mtd_info *mtd) in doc_release_device()
1973 struct mtd_info **docg3_floors, *mtd; in docg3_resume() local
[all …]
Dspear_smi.c199 struct mtd_info mtd; member
208 static inline struct spear_snor_flash *get_flash_data(struct mtd_info *mtd) in get_flash_data()
494 static int spear_mtd_erase(struct mtd_info *mtd, struct erase_info *e_info) in spear_mtd_erase()
548 static int spear_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in spear_mtd_read()
641 static int spear_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in spear_mtd_write()
Dbcm47xxsflash.h73 struct mtd_info mtd; member
Dst_spi_fsm.c263 struct mtd_info mtd; member
1674 static int stfsm_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in stfsm_mtd_read()
1750 static int stfsm_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in stfsm_mtd_write()
1796 static int stfsm_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in stfsm_mtd_erase()
/linux-4.4.14/drivers/staging/goldfish/
Dgoldfish_nand.c39 struct mtd_info mtd[0]; member
42 static u32 goldfish_nand_cmd_with_params(struct mtd_info *mtd, in goldfish_nand_cmd_with_params()
77 static u32 goldfish_nand_cmd(struct mtd_info *mtd, enum nand_cmd cmd, in goldfish_nand_cmd()
98 static int goldfish_nand_erase(struct mtd_info *mtd, struct erase_info *instr) in goldfish_nand_erase()
132 static int goldfish_nand_read_oob(struct mtd_info *mtd, loff_t ofs, in goldfish_nand_read_oob()
164 static int goldfish_nand_write_oob(struct mtd_info *mtd, loff_t ofs, in goldfish_nand_write_oob()
196 static int goldfish_nand_read(struct mtd_info *mtd, loff_t from, size_t len, in goldfish_nand_read()
218 static int goldfish_nand_write(struct mtd_info *mtd, loff_t to, size_t len, in goldfish_nand_write()
240 static int goldfish_nand_block_isbad(struct mtd_info *mtd, loff_t ofs) in goldfish_nand_block_isbad()
261 static int goldfish_nand_block_markbad(struct mtd_info *mtd, loff_t ofs) in goldfish_nand_block_markbad()
[all …]
/linux-4.4.14/drivers/mtd/tests/
Dmtd_test.c9 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) in mtdtest_erase_eraseblock()
33 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad()
45 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_scan_for_bad_eraseblocks()
65 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_erase_good_eraseblocks()
83 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) in mtdtest_read()
100 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, in mtdtest_write()
Dreadtest.c38 static struct mtd_info *mtd; variable
Dstresstest.c44 static struct mtd_info *mtd; variable
Dpagetest.c40 static struct mtd_info *mtd; variable
Dsubpagetest.c39 static struct mtd_info *mtd; variable
Dnandbiterrs.c80 static struct mtd_info *mtd; /* MTD device */ variable
Dspeedtest.c45 static struct mtd_info *mtd; variable
Dtorturetest.c69 static struct mtd_info *mtd; variable
Doobtest.c43 static struct mtd_info *mtd; variable
/linux-4.4.14/drivers/mtd/ubi/
Dgluebi.c57 struct mtd_info mtd; member
97 static int gluebi_get_device(struct mtd_info *mtd) in gluebi_get_device()
147 static void gluebi_put_device(struct mtd_info *mtd) in gluebi_put_device()
171 static int gluebi_read(struct mtd_info *mtd, loff_t from, size_t len, in gluebi_read()
211 static int gluebi_write(struct mtd_info *mtd, loff_t to, size_t len, in gluebi_write()
252 static int gluebi_erase(struct mtd_info *mtd, struct erase_info *instr) in gluebi_erase()
303 struct mtd_info *mtd; in gluebi_create() local
372 struct mtd_info *mtd; in gluebi_remove() local
504 struct mtd_info *mtd = &gluebi->mtd; in ubi_gluebi_exit() local
Dbuild.c851 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, in ubi_attach_mtd_dev()
1183 struct mtd_info *mtd; in open_mtd_device() local
1244 struct mtd_info *mtd; in ubi_init() local
Dio.c612 struct mtd_info *mtd = ubi->mtd; in ubi_io_is_bad() local
642 struct mtd_info *mtd = ubi->mtd; in ubi_io_mark_bad() local
Dcdev.c989 struct mtd_info *mtd; in ctrl_cdev_ioctl() local
Dubi.h620 struct mtd_info *mtd; member
/linux-4.4.14/drivers/mtd/nand/bcm47xxnflash/
Dops_bcm4706.c89 static void bcm47xxnflash_ops_bcm4706_read(struct mtd_info *mtd, uint8_t *buf, in bcm47xxnflash_ops_bcm4706_read()
139 static void bcm47xxnflash_ops_bcm4706_write(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_write()
173 static void bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct mtd_info *mtd, int cmd, in bcm47xxnflash_ops_bcm4706_cmd_ctrl()
194 static void bcm47xxnflash_ops_bcm4706_select_chip(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_select_chip()
200 static int bcm47xxnflash_ops_bcm4706_dev_ready(struct mtd_info *mtd) in bcm47xxnflash_ops_bcm4706_dev_ready()
215 static void bcm47xxnflash_ops_bcm4706_cmdfunc(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_cmdfunc()
313 static u8 bcm47xxnflash_ops_bcm4706_read_byte(struct mtd_info *mtd) in bcm47xxnflash_ops_bcm4706_read_byte()
341 static void bcm47xxnflash_ops_bcm4706_read_buf(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_read_buf()
357 static void bcm47xxnflash_ops_bcm4706_write_buf(struct mtd_info *mtd, in bcm47xxnflash_ops_bcm4706_write_buf()
Dbcm47xxnflash.h15 struct mtd_info mtd; member
/linux-4.4.14/drivers/mtd/nand/gpmi-nand/
Dgpmi-nand.c110 struct mtd_info *mtd = &this->mtd; in get_ecc_strength() local
142 struct mtd_info *mtd = &this->mtd; in set_geometry_by_ecc_info() local
260 struct mtd_info *mtd = &this->mtd; in legacy_set_geometry() local
807 struct mtd_info *mtd = &this->mtd; in gpmi_alloc_dma_buffer() local
857 static void gpmi_cmd_ctrl(struct mtd_info *mtd, int data, unsigned int ctrl) in gpmi_cmd_ctrl()
891 static int gpmi_dev_ready(struct mtd_info *mtd) in gpmi_dev_ready()
899 static void gpmi_select_chip(struct mtd_info *mtd, int chipnr) in gpmi_select_chip()
912 static void gpmi_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in gpmi_read_buf()
924 static void gpmi_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in gpmi_write_buf()
936 static uint8_t gpmi_read_byte(struct mtd_info *mtd) in gpmi_read_byte()
[all …]
Dgpmi-nand.h163 struct mtd_info mtd; member
Dgpmi-lib.c922 struct mtd_info *mtd = &this->mtd; in enable_edo_mode() local
/linux-4.4.14/drivers/mtd/lpddr/
Dlpddr_cmds.c53 struct mtd_info *mtd; in lpddr_cmdset() local
470 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock()
497 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_read()
521 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_point()
574 static int lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) in lpddr_unpoint()
619 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, in lpddr_write_buffers()
631 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, in lpddr_writev()
678 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) in lpddr_erase()
704 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) in do_xxlock()
739 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in lpddr_lock()
[all …]
Dlpddr2_nvm.c242 static int lpddr2_nvm_do_block_op(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_do_block_op()
307 static int lpddr2_nvm_read(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_read()
325 static int lpddr2_nvm_write(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_write()
381 static int lpddr2_nvm_erase(struct mtd_info *mtd, struct erase_info *instr) in lpddr2_nvm_erase()
396 static int lpddr2_nvm_unlock(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_unlock()
405 static int lpddr2_nvm_lock(struct mtd_info *mtd, loff_t start_add, in lpddr2_nvm_lock()
417 struct mtd_info *mtd; in lpddr2_nvm_probe() local
Dqinfo_probe.c200 struct mtd_info *mtd = NULL; in lpddr_probe() local
/linux-4.4.14/fs/logfs/
Ddev_mtd.c19 struct mtd_info *mtd = logfs_super(sb)->s_mtd; in logfs_mtd_read() local
39 struct mtd_info *mtd = super->s_mtd; in loffs_mtd_write() local
93 struct mtd_info *mtd = logfs_super(sb)->s_mtd; in logfs_mtd_erase() local
120 struct mtd_info *mtd = logfs_super(sb)->s_mtd; in logfs_mtd_sync() local
153 struct mtd_info *mtd = super->s_mtd; in logfs_mtd_find_first_sb() local
170 struct mtd_info *mtd = super->s_mtd; in logfs_mtd_find_last_sb() local
266 struct mtd_info *mtd = get_mtd_device(NULL, mtdnr); in logfs_get_sb_mtd() local
Dsuper.c134 struct mtd_info *mtd = super->s_mtd; in logfs_sb_test() local
/linux-4.4.14/include/linux/mtd/
Dnand_bch.h48 nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_bch_calculate_ecc()
55 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_bch_correct_data()
62 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, in nand_bch_init()
Dmtd.h46 struct mtd_info *mtd; member
272 static inline int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
298 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync()
311 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend()
316 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume()
322 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb()
330 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_eb()
337 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_ws()
345 static inline uint32_t mtd_mod_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_ws()
352 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob()
[all …]
Dblktrans.h37 struct mtd_info *mtd; member
Dspi-nor.h155 struct mtd_info mtd; member
Dsh_flctl.h146 struct mtd_info mtd; member
Dnand.h912 struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd) in get_platform_nandchip()
/linux-4.4.14/drivers/staging/mt29f_spinand/
Dmt29f_spinand.c32 static inline struct spinand_state *mtd_to_state(struct mtd_info *mtd) in mtd_to_state()
614 static int spinand_write_page_hwecc(struct mtd_info *mtd, in spinand_write_page_hwecc()
628 static int spinand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in spinand_read_page_hwecc()
666 static void spinand_select_chip(struct mtd_info *mtd, int dev) in spinand_select_chip()
670 static u8 spinand_read_byte(struct mtd_info *mtd) in spinand_read_byte()
680 static int spinand_wait(struct mtd_info *mtd, struct nand_chip *chip) in spinand_wait()
709 static void spinand_write_buf(struct mtd_info *mtd, const u8 *buf, int len) in spinand_write_buf()
717 static void spinand_read_buf(struct mtd_info *mtd, u8 *buf, int len) in spinand_read_buf()
744 static void spinand_cmdfunc(struct mtd_info *mtd, unsigned int command, in spinand_cmdfunc()
849 struct mtd_info *mtd; in spinand_probe() local
/linux-4.4.14/drivers/mtd/spi-nor/
Dspi-nor.c179 static inline struct spi_nor *mtd_to_spi_nor(struct mtd_info *mtd) in mtd_to_spi_nor()
319 static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr) in spi_nor_erase()
406 struct mtd_info *mtd = &nor->mtd; in stm_get_locked_range() local
461 struct mtd_info *mtd = &nor->mtd; in stm_lock() local
511 struct mtd_info *mtd = &nor->mtd; in stm_unlock() local
570 static int spi_nor_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in spi_nor_lock()
585 static int spi_nor_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in spi_nor_unlock()
600 static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in spi_nor_is_locked()
875 static int spi_nor_read(struct mtd_info *mtd, loff_t from, size_t len, in spi_nor_read()
893 static int sst_write(struct mtd_info *mtd, loff_t to, size_t len, in sst_write()
[all …]
Dfsl-quadspi.c935 struct mtd_info *mtd; in fsl_qspi_probe() local
/linux-4.4.14/drivers/net/ethernet/sfc/
Dmtd.c19 #define to_efx_mtd_partition(mtd) \ argument
24 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) in efx_mtd_erase()
40 static void efx_mtd_sync(struct mtd_info *mtd) in efx_mtd_sync()
Dmcdi.c1945 int efx_mcdi_mtd_read(struct mtd_info *mtd, loff_t start, in efx_mcdi_mtd_read()
1969 int efx_mcdi_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len) in efx_mcdi_mtd_erase()
1999 int efx_mcdi_mtd_write(struct mtd_info *mtd, loff_t start, in efx_mcdi_mtd_write()
2030 int efx_mcdi_mtd_sync(struct mtd_info *mtd) in efx_mcdi_mtd_sync()
Dfalcon.c652 #define to_falcon_mtd_partition(mtd) \ argument
857 static int falcon_mtd_read(struct mtd_info *mtd, loff_t start, in falcon_mtd_read()
874 static int falcon_mtd_erase(struct mtd_info *mtd, loff_t start, size_t len) in falcon_mtd_erase()
889 static int falcon_mtd_write(struct mtd_info *mtd, loff_t start, in falcon_mtd_write()
906 static int falcon_mtd_sync(struct mtd_info *mtd) in falcon_mtd_sync()
Dmcdi.h103 #define to_efx_mcdi_mtd_partition(mtd) \ argument
Dnet_driver.h1077 struct mtd_info mtd; member
/linux-4.4.14/drivers/mtd/maps/
Dvmu-flash.c50 struct mtd_info *mtd; member
59 struct mtd_info *mtd, int partition) in ofs_to_block()
112 struct mtd_info *mtd) in maple_vmu_read_block()
229 struct mtd_info *mtd) in maple_vmu_write_block()
305 struct mtd_info *mtd) in vmu_flash_read_char()
352 static int vmu_flash_read(struct mtd_info *mtd, loff_t from, size_t len, in vmu_flash_read()
418 static int vmu_flash_write(struct mtd_info *mtd, loff_t to, size_t len, in vmu_flash_write()
495 static void vmu_flash_sync(struct mtd_info *mtd) in vmu_flash_sync()
719 struct mtd_info *mtd; in vmu_can_unload() local
Duclinux.c58 static int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len, in uclinux_point()
73 struct mtd_info *mtd; in uclinux_mtd_init() local
Dphysmap_of.c29 struct mtd_info *mtd; member
82 struct mtd_info *mtd; in obsolete_probe() local
Dsa1100-flash.c29 struct mtd_info *mtd; member
34 struct mtd_info *mtd; member
Drbtx4939-flash.c25 struct mtd_info *mtd; member
Dpci.c259 struct mtd_info *mtd = NULL; in mtd_pci_probe() local
310 struct mtd_info *mtd = pci_get_drvdata(dev); in mtd_pci_remove() local
Dscb2_flash.c71 static int scb2_fixup_mtd(struct mtd_info *mtd) in scb2_fixup_mtd()
Dsun_uflash.c41 struct mtd_info *mtd; /* mtd info */ member
Dpxa2xx-flash.c43 struct mtd_info *mtd; member
Dplat-ram.c44 struct mtd_info *mtd; member
Dtsunami_flash.c76 struct mtd_info *mtd; in cleanup_tsunami_flash() local
Dlatch-addr-flash.c25 struct mtd_info *mtd; member
Dlantiq-flash.c43 struct mtd_info *mtd; member
Dphysmap.c27 struct mtd_info *mtd[MAX_RESOURCES]; member
Dixp4xx.c146 struct mtd_info *mtd; member
Dck804xrom.c46 struct mtd_info *mtd; member
Dbfin-async-flash.c38 struct mtd_info *mtd; member
Damd76xrom.c42 struct mtd_info *mtd; member
Dichxrom.c47 struct mtd_info *mtd; member
Dgpio-addr-flash.c44 struct mtd_info *mtd; member
Desb2rom.c108 struct mtd_info *mtd; member
Dpcmciamtd.c466 struct mtd_info *mtd = NULL; in pcmciamtd_config() local
/linux-4.4.14/arch/arm/mach-imx/
Dmach-qong.c132 static void qong_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in qong_nand_cmd_ctrl()
148 static int qong_nand_device_ready(struct mtd_info *mtd) in qong_nand_device_ready()
153 static void qong_nand_select_chip(struct mtd_info *mtd, int chip) in qong_nand_select_chip()
/linux-4.4.14/drivers/mtd/nand/brcmnand/
Dbrcmnand.c182 struct mtd_info mtd; member
907 static void brcmnand_wp(struct mtd_info *mtd, int wp) in brcmnand_wp()
1067 static void brcmnand_cmd_ctrl(struct mtd_info *mtd, int dat, in brcmnand_cmd_ctrl()
1073 static int brcmnand_waitfunc(struct mtd_info *mtd, struct nand_chip *this) in brcmnand_waitfunc()
1110 struct mtd_info *mtd = &host->mtd; in brcmnand_low_level_op() local
1146 static void brcmnand_cmdfunc(struct mtd_info *mtd, unsigned command, in brcmnand_cmdfunc()
1247 static uint8_t brcmnand_read_byte(struct mtd_info *mtd) in brcmnand_read_byte()
1305 static void brcmnand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in brcmnand_read_buf()
1313 static void brcmnand_write_buf(struct mtd_info *mtd, const uint8_t *buf, in brcmnand_write_buf()
1424 static int brcmnand_read_by_pio(struct mtd_info *mtd, struct nand_chip *chip, in brcmnand_read_by_pio()
[all …]
/linux-4.4.14/fs/romfs/
Dmmap-nommu.c29 struct mtd_info *mtd = inode->i_sb->s_mtd; in romfs_get_unmapped_area() local
75 struct mtd_info *mtd = file_inode(file)->i_sb->s_mtd; in romfs_mmap_capabilities() local
/linux-4.4.14/arch/arm/mach-ep93xx/
Dsnappercl15.c49 static void snappercl15_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in snappercl15_nand_cmd_ctrl()
77 static int snappercl15_nand_dev_ready(struct mtd_info *mtd) in snappercl15_nand_dev_ready()
Dts72xx.c74 static void ts72xx_nand_hwcontrol(struct mtd_info *mtd, in ts72xx_nand_hwcontrol()
97 static int ts72xx_nand_device_ready(struct mtd_info *mtd) in ts72xx_nand_device_ready()
/linux-4.4.14/arch/cris/arch-v32/drivers/mach-fs/
Dnandflash.c49 static void crisv32_hwcontrol(struct mtd_info *mtd, int cmd, in crisv32_hwcontrol()
91 static int crisv32_device_ready(struct mtd_info *mtd) in crisv32_device_ready()
/linux-4.4.14/arch/arm/mach-orion5x/
Dts78xx-setup.c176 static void ts78xx_ts_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in ts78xx_ts_nand_cmd_ctrl()
195 static int ts78xx_ts_nand_dev_ready(struct mtd_info *mtd) in ts78xx_ts_nand_dev_ready()
200 static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd, in ts78xx_ts_nand_write_buf()
227 static void ts78xx_ts_nand_read_buf(struct mtd_info *mtd, in ts78xx_ts_nand_read_buf()
/linux-4.4.14/arch/cris/arch-v32/drivers/mach-a3/
Dnandflash.c50 static void crisv32_hwcontrol(struct mtd_info *mtd, int cmd, in crisv32_hwcontrol()
96 static int crisv32_device_ready(struct mtd_info *mtd) in crisv32_device_ready()
/linux-4.4.14/arch/mips/rb532/
Ddevices.c144 static int rb532_dev_ready(struct mtd_info *mtd) in rb532_dev_ready()
149 static void rb532_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in rb532_cmd_ctrl()
/linux-4.4.14/arch/arm/mach-omap1/
Dboard-nand.c23 void omap1_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in omap1_nand_cmd_ctl()
Dboard-perseus2.c147 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready()
Dboard-h2.c185 static int h2_nand_dev_ready(struct mtd_info *mtd) in h2_nand_dev_ready()
Dboard-h3.c188 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready()
Dboard-fsample.c189 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready()
/linux-4.4.14/arch/sh/boards/mach-migor/
Dsetup.c167 static void migor_nand_flash_cmd_ctl(struct mtd_info *mtd, int cmd, in migor_nand_flash_cmd_ctl()
183 static int migor_nand_flash_ready(struct mtd_info *mtd) in migor_nand_flash_ready()
/linux-4.4.14/arch/blackfin/mach-bf561/boards/
Dacvilon.c267 static void bfin_plat_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in bfin_plat_nand_cmd_ctrl()
282 static int bfin_plat_nand_dev_ready(struct mtd_info *mtd) in bfin_plat_nand_dev_ready()
/linux-4.4.14/arch/mips/alchemy/devboards/
Ddb1550.c128 static void au1550_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in au1550_nand_cmd_ctrl()
151 static int au1550_nand_device_ready(struct mtd_info *mtd) in au1550_nand_device_ready()
Ddb1300.c150 static void au1300_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in au1300_nand_cmd_ctrl()
173 static int au1300_nand_device_ready(struct mtd_info *mtd) in au1300_nand_device_ready()
Ddb1200.c200 static void au1200_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, in au1200_nand_cmd_ctrl()
223 static int au1200_nand_device_ready(struct mtd_info *mtd) in au1200_nand_device_ready()
/linux-4.4.14/arch/arm/mach-pxa/
Dballoon3.c573 static void balloon3_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in balloon3_nand_cmd_ctl()
602 static void balloon3_nand_select_chip(struct mtd_info *mtd, int chip) in balloon3_nand_select_chip()
618 static int balloon3_nand_dev_ready(struct mtd_info *mtd) in balloon3_nand_dev_ready()
Dpalmtx.c250 static void palmtx_nand_cmd_ctl(struct mtd_info *mtd, int cmd, in palmtx_nand_cmd_ctl()
Dem-x270.c289 static void em_x270_nand_cmd_ctl(struct mtd_info *mtd, int dat, in em_x270_nand_cmd_ctl()
321 static int em_x270_nand_device_ready(struct mtd_info *mtd) in em_x270_nand_device_ready()
/linux-4.4.14/arch/mips/pnx833x/common/
Dplatform.c181 pnx833x_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in pnx833x_flash_nand_cmd_ctrl()
/linux-4.4.14/arch/arm/mach-ixp4xx/
Dixdp425-setup.c77 ixdp425_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in ixdp425_flash_nand_cmd_ctrl()
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-flash.c100 struct mtd_info *mtd; in cobalt_flash_probe() local
Dcobalt-driver.h301 struct mtd_info *mtd; member
/linux-4.4.14/arch/mips/netlogic/xlr/
Dplatform-flash.c95 static void xlr_nand_ctrl(struct mtd_info *mtd, int cmd, in xlr_nand_ctrl()
/linux-4.4.14/drivers/firmware/broadcom/
Dbcm47xx_nvram.c147 struct mtd_info *mtd; in nvram_init() local
/linux-4.4.14/arch/blackfin/mach-bf537/boards/
Dstamp.c405 static void bfin_plat_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in bfin_plat_nand_cmd_ctrl()
419 static int bfin_plat_nand_dev_ready(struct mtd_info *mtd) in bfin_plat_nand_dev_ready()
/linux-4.4.14/fs/jffs2/
Djffs2_fs_sb.h49 struct mtd_info *mtd; member
/linux-4.4.14/include/uapi/mtd/
Dmtd-abi.h279 static inline int mtd_type_is_nand_user(const struct mtd_info_user *mtd) in mtd_type_is_nand_user()
/linux-4.4.14/arch/arm/mach-davinci/
Dboard-da850-evm.c129 static void da850_evm_m25p80_notify_add(struct mtd_info *mtd) in da850_evm_m25p80_notify_add()
/linux-4.4.14/include/linux/bcma/
Dbcma_driver_chipcommon.h589 struct mtd_info *mtd; member
601 struct mtd_info *mtd; member
/linux-4.4.14/drivers/block/
Dskd_main.c3107 u32 mtd; in skd_isr_fwstate() local
3311 u32 mtd; in skd_isr_msg_from_dev() local