Home
last modified time | relevance | path

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

123456

/linux/drivers/mtd/
H A Dmtdcore.c47 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
54 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
95 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_release() local
119 struct mtd_info *mtd = container_of(kref, struct mtd_info, refcnt); mtd_device_release() local
149 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_type_show() local
188 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_flags_show() local
197 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_size_show() local
206 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_erasesize_show() local
215 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_writesize_show() local
224 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_subpagesize_show() local
234 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_oobsize_show() local
243 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_oobavail_show() local
252 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_numeraseregions_show() local
261 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_name_show() local
270 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_strength_show() local
280 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bitflip_threshold_show() local
289 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bitflip_threshold_store() local
305 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_step_size_show() local
315 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_corrected_bits_show() local
325 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_ecc_failures_show() local
335 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bad_blocks_show() local
345 struct mtd_info *mtd = dev_get_drvdata(dev); mtd_bbt_blocks_show() local
401 struct mtd_info *mtd = s->private; mtd_ooblayout_show() local
435 mtd_debugfs_populate(struct mtd_info * mtd) mtd_debugfs_populate() argument
458 mtd_mmap_capabilities(struct mtd_info * mtd) mtd_mmap_capabilities() argument
477 struct mtd_info *mtd; mtd_reboot_notifier() local
511 mtd_wunit_to_pairing_info(struct mtd_info * mtd,int wunit,struct mtd_pairing_info * info) mtd_wunit_to_pairing_info() argument
554 mtd_pairing_info_to_wunit(struct mtd_info * mtd,const struct mtd_pairing_info * info) mtd_pairing_info_to_wunit() argument
582 mtd_pairing_groups(struct mtd_info * mtd) mtd_pairing_groups() argument
596 struct mtd_info *mtd = priv; mtd_nvmem_reg_read() local
607 mtd_nvmem_add(struct mtd_info * mtd) mtd_nvmem_add() argument
639 mtd_check_of_node(struct mtd_info * mtd) mtd_check_of_node() argument
703 add_mtd_device(struct mtd_info * mtd) add_mtd_device() argument
878 del_mtd_device(struct mtd_info * mtd) del_mtd_device() argument
907 mtd_set_dev_defaults(struct mtd_info * mtd) mtd_set_dev_defaults() argument
923 mtd_otp_size(struct mtd_info * mtd,bool is_user) mtd_otp_size() argument
955 mtd_otp_nvmem_register(struct mtd_info * mtd,const char * compatible,int size,nvmem_reg_read_t reg_read) mtd_otp_nvmem_register() argument
994 struct mtd_info *mtd = priv; mtd_nvmem_user_otp_reg_read() local
1008 struct mtd_info *mtd = priv; mtd_nvmem_fact_otp_reg_read() local
1019 mtd_otp_nvmem_add(struct mtd_info * mtd) mtd_otp_nvmem_add() argument
1120 mtd_device_parse_register(struct mtd_info * mtd,const char * const * types,struct mtd_part_parser_data * parser_data,const struct mtd_partition * parts,int nr_parts) mtd_device_parse_register() argument
1242 struct mtd_info *mtd; register_mtd_user() local
1268 struct mtd_info *mtd; unregister_mtd_user() local
1294 get_mtd_device(struct mtd_info * mtd,int num) get_mtd_device() argument
1329 __get_mtd_device(struct mtd_info * mtd) __get_mtd_device() argument
1366 struct mtd_info *mtd = NULL; of_get_mtd_device_by_node() local
1398 struct mtd_info *mtd = NULL, *other; get_mtd_device_nm() local
1425 put_mtd_device(struct mtd_info * mtd) put_mtd_device() argument
1434 __put_mtd_device(struct mtd_info * mtd) __put_mtd_device() argument
1463 mtd_erase(struct mtd_info * mtd,struct erase_info * instr) mtd_erase() argument
1515 mtd_point(struct mtd_info * mtd,loff_t from,size_t len,size_t * retlen,void ** virt,resource_size_t * phys) mtd_point() argument
1537 mtd_unpoint(struct mtd_info * mtd,loff_t from,size_t len) mtd_unpoint() argument
1556 mtd_get_unmapped_area(struct mtd_info * mtd,unsigned long len,unsigned long offset,unsigned long flags) mtd_get_unmapped_area() argument
1574 mtd_update_ecc_stats(struct mtd_info * mtd,struct mtd_info * master,const struct mtd_ecc_stats * old_stats) mtd_update_ecc_stats() argument
1593 mtd_read(struct mtd_info * mtd,loff_t from,size_t len,size_t * retlen,u_char * buf) mtd_read() argument
1612 mtd_write(struct mtd_info * mtd,loff_t to,size_t len,size_t * retlen,const u_char * buf) mtd_write() argument
1636 mtd_panic_write(struct mtd_info * mtd,loff_t to,size_t len,size_t * retlen,const u_char * buf) mtd_panic_write() argument
1658 mtd_check_oob_ops(struct mtd_info * mtd,loff_t offs,struct mtd_oob_ops * ops) mtd_check_oob_ops() argument
1691 mtd_read_oob_std(struct mtd_info * mtd,loff_t from,struct mtd_oob_ops * ops) mtd_read_oob_std() argument
1707 mtd_write_oob_std(struct mtd_info * mtd,loff_t to,struct mtd_oob_ops * ops) mtd_write_oob_std() argument
1723 mtd_io_emulated_slc(struct mtd_info * mtd,loff_t start,bool read,struct mtd_oob_ops * ops) mtd_io_emulated_slc() argument
1786 mtd_read_oob(struct mtd_info * mtd,loff_t from,struct mtd_oob_ops * ops) mtd_read_oob() argument
1830 mtd_write_oob(struct mtd_info * mtd,loff_t to,struct mtd_oob_ops * ops) mtd_write_oob() argument
1874 mtd_ooblayout_ecc(struct mtd_info * mtd,int section,struct mtd_oob_region * oobecc) mtd_ooblayout_ecc() argument
1908 mtd_ooblayout_free(struct mtd_info * mtd,int section,struct mtd_oob_region * oobfree) mtd_ooblayout_free() argument
1942 mtd_ooblayout_find_region(struct mtd_info * mtd,int byte,int * sectionp,struct mtd_oob_region * oobregion,int (* iter)(struct mtd_info *,int section,struct mtd_oob_region * oobregion)) mtd_ooblayout_find_region() argument
1988 mtd_ooblayout_find_eccregion(struct mtd_info * mtd,int eccbyte,int * section,struct mtd_oob_region * oobregion) mtd_ooblayout_find_eccregion() argument
2011 mtd_ooblayout_get_bytes(struct mtd_info * mtd,u8 * buf,const u8 * oobbuf,int start,int nbytes,int (* iter)(struct mtd_info *,int section,struct mtd_oob_region * oobregion)) mtd_ooblayout_get_bytes() argument
2054 mtd_ooblayout_set_bytes(struct mtd_info * mtd,const u8 * buf,u8 * oobbuf,int start,int nbytes,int (* iter)(struct mtd_info *,int section,struct mtd_oob_region * oobregion)) mtd_ooblayout_set_bytes() argument
2092 mtd_ooblayout_count_bytes(struct mtd_info * mtd,int (* iter)(struct mtd_info *,int section,struct mtd_oob_region * oobregion)) mtd_ooblayout_count_bytes() argument
2126 mtd_ooblayout_get_eccbytes(struct mtd_info * mtd,u8 * eccbuf,const u8 * oobbuf,int start,int nbytes) mtd_ooblayout_get_eccbytes() argument
2146 mtd_ooblayout_set_eccbytes(struct mtd_info * mtd,const u8 * eccbuf,u8 * oobbuf,int start,int nbytes) mtd_ooblayout_set_eccbytes() argument
2166 mtd_ooblayout_get_databytes(struct mtd_info * mtd,u8 * databuf,const u8 * oobbuf,int start,int nbytes) mtd_ooblayout_get_databytes() argument
2186 mtd_ooblayout_set_databytes(struct mtd_info * mtd,const u8 * databuf,u8 * oobbuf,int start,int nbytes) mtd_ooblayout_set_databytes() argument
2202 mtd_ooblayout_count_freebytes(struct mtd_info * mtd) mtd_ooblayout_count_freebytes() argument
2216 mtd_ooblayout_count_eccbytes(struct mtd_info * mtd) mtd_ooblayout_count_eccbytes() argument
2227 mtd_get_fact_prot_info(struct mtd_info * mtd,size_t len,size_t * retlen,struct otp_info * buf) mtd_get_fact_prot_info() argument
2240 mtd_read_fact_prot_reg(struct mtd_info * mtd,loff_t from,size_t len,size_t * retlen,u_char * buf) mtd_read_fact_prot_reg() argument
2254 mtd_get_user_prot_info(struct mtd_info * mtd,size_t len,size_t * retlen,struct otp_info * buf) mtd_get_user_prot_info() argument
2267 mtd_read_user_prot_reg(struct mtd_info * mtd,loff_t from,size_t len,size_t * retlen,u_char * buf) mtd_read_user_prot_reg() argument
2281 mtd_write_user_prot_reg(struct mtd_info * mtd,loff_t to,size_t len,size_t * retlen,const u_char * buf) mtd_write_user_prot_reg() argument
2304 mtd_lock_user_prot_reg(struct mtd_info * mtd,loff_t from,size_t len) mtd_lock_user_prot_reg() argument
2316 mtd_erase_user_prot_reg(struct mtd_info * mtd,loff_t from,size_t len) mtd_erase_user_prot_reg() argument
2329 mtd_lock(struct mtd_info * mtd,loff_t ofs,uint64_t len) mtd_lock() argument
2349 mtd_unlock(struct mtd_info * mtd,loff_t ofs,uint64_t len) mtd_unlock() argument
2369 mtd_is_locked(struct mtd_info * mtd,loff_t ofs,uint64_t len) mtd_is_locked() argument
2389 mtd_block_isreserved(struct mtd_info * mtd,loff_t ofs) mtd_block_isreserved() argument
2405 mtd_block_isbad(struct mtd_info * mtd,loff_t ofs) mtd_block_isbad() argument
2421 mtd_block_markbad(struct mtd_info * mtd,loff_t ofs) mtd_block_markbad() argument
2470 default_mtd_writev(struct mtd_info * mtd,const struct kvec * vecs,unsigned long count,loff_t to,size_t * retlen) default_mtd_writev() argument
2502 mtd_writev(struct mtd_info * mtd,const struct kvec * vecs,unsigned long count,loff_t to,size_t * retlen) mtd_writev() argument
2543 mtd_kmalloc_up_to(const struct mtd_info * mtd,size_t * size) mtd_kmalloc_up_to() argument
2575 struct mtd_info *mtd; mtd_proc_show() local
[all...]
H A Dmtdconcat.c42 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read()
94 concat_panic_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_panic_write()
135 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write()
173 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev()
248 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob()
305 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) in concat_write_oob()
351 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase()
469 static int concat_xxlock(struct mtd_info *mtd, loff_t ofs, uint64_t len, in concat_xxlock()
507 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_lock()
512 static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_unlock()
[all …]
H A Dnftlmount.c32 struct mtd_info *mtd = nftl->mbd.mtd; in find_boot_record() local
262 struct mtd_info *mtd = nftl->mbd.mtd; in check_free_sectors() local
308 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_formatblock() local
371 struct mtd_info *mtd = nftl->mbd.mtd; in check_sectors_in_chain() local
490 struct mtd_info *mtd = nftl->mbd.mtd; in check_and_mark_free_block() local
551 struct mtd_info *mtd = nftl->mbd.mtd; in get_fold_mark() local
570 struct mtd_info *mtd = s->mbd.mtd; in NFTL_mount() local
H A Dinftlcore.c35 static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in inftl_add_mtd()
136 int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_read_oob()
156 int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_write_oob()
176 static int inftl_write(struct mtd_info *mtd, loff_t offs, size_t len, in inftl_write()
241 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_foldchain() local
465 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_findwriteunit() local
628 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_trydeletechain() local
750 struct mtd_info *mtd = inftl->mbd.mtd; in INFTL_deleteblock() local
859 struct mtd_info *mtd = inftl->mbd.mtd; in inftl_readblock() local
H A Dnftlcore.c35 static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in nftl_add_mtd()
123 int nftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, in nftl_read_oob()
144 int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, in nftl_write_oob()
167 static int nftl_write(struct mtd_info *mtd, loff_t offs, size_t len, in nftl_write()
231 static noinline_for_stack void NFTL_move_block(struct mtd_info *mtd, loff_t src, loff_t dst) in NFTL_move_block()
252 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_foldchain() local
525 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_findwriteunit() local
703 struct mtd_info *mtd = nftl->mbd.mtd; in nftl_readblock() local
/linux/drivers/mtd/nand/onenand/
H A Donenand_base.c66 static int flexonenand_ooblayout_ecc(struct mtd_info *mtd, int section, in flexonenand_ooblayout_ecc()
78 static int flexonenand_ooblayout_free(struct mtd_info *mtd, int section, in flexonenand_ooblayout_free()
102 static int onenand_ooblayout_128_ecc(struct mtd_info *mtd, int section, in onenand_ooblayout_128_ecc()
114 static int onenand_ooblayout_128_free(struct mtd_info *mtd, int section, in onenand_ooblayout_128_free()
138 static int onenand_ooblayout_32_64_ecc(struct mtd_info *mtd, int section, in onenand_ooblayout_32_64_ecc()
150 static int onenand_ooblayout_32_64_free(struct mtd_info *mtd, int section, in onenand_ooblayout_32_64_free()
377 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region()
398 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) in onenand_command()
553 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait()
651 static int onenand_interrupt_wait(struct mtd_info *mtd, int state) in onenand_interrupt_wait()
[all …]
H A Donenand_samsung.c123 struct mtd_info *mtd; member
310 static int s3c_onenand_wait(struct mtd_info *mtd, int state) in s3c_onenand_wait()
376 static int s3c_onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, in s3c_onenand_command()
475 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) in s3c_get_bufferram()
494 static int onenand_read_bufferram(struct mtd_info *mtd, int area, in onenand_read_bufferram()
505 static int onenand_write_bufferram(struct mtd_info *mtd, int area, in onenand_write_bufferram()
621 static int s5pc110_read_bufferram(struct mtd_info *mtd, int area, in s5pc110_read_bufferram()
693 static int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe()
699 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait()
732 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status()
[all …]
H A Donenand_bbt.c56 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd, int chip) in create_bbt()
131 static inline int onenand_memory_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_memory_bbt()
144 static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in onenand_isbad_bbt()
181 static int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_scan_bbt()
229 int onenand_default_bbt(struct mtd_info *mtd) in onenand_default_bbt()
/linux/drivers/mtd/nand/raw/
H A Dsm_common.c12 static int oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_ooblayout_ecc()
24 static int oob_sm_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_ooblayout_free()
61 static int oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_ecc()
73 static int oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_free()
101 struct mtd_info *mtd = nand_to_mtd(chip); in sm_block_markbad() local
163 struct mtd_info *mtd = nand_to_mtd(chip); in sm_attach_chip() local
185 int sm_register_device(struct mtd_info *mtd, int smartmedia) in sm_register_device()
H A Dfsl_ifc_nand.c85 static int fsl_ifc_ooblayout_ecc(struct mtd_info *mtd, int section, in fsl_ifc_ooblayout_ecc()
99 static int fsl_ifc_ooblayout_free(struct mtd_info *mtd, int section, in fsl_ifc_ooblayout_free()
140 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr()
164 static int check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, in check_read_ecc()
173 static void fsl_ifc_run_command(struct mtd_info *mtd) in fsl_ifc_run_command()
253 struct mtd_info *mtd) in fsl_ifc_do_read()
294 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_cmdfunc() local
512 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_write_buf() local
607 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_wait() local
641 struct mtd_info *mtd = nand_to_mtd(chip); in check_erased_page() local
[all …]
H A Dfsl_elbc_nand.c68 static int fsl_elbc_ooblayout_ecc(struct mtd_info *mtd, int section, in fsl_elbc_ooblayout_ecc()
86 static int fsl_elbc_ooblayout_free(struct mtd_info *mtd, int section, in fsl_elbc_ooblayout_free()
151 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr()
202 static int fsl_elbc_run_command(struct mtd_info *mtd) in fsl_elbc_run_command()
309 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_cmdfunc() local
542 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_buf() local
635 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_read_page() local
656 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_page() local
671 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_subpage() local
685 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_chip_init() local
[all …]
H A Dsh_flctl.c31 static int flctl_4secc_ooblayout_sp_ecc(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_sp_ecc()
45 static int flctl_4secc_ooblayout_sp_free(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_sp_free()
62 static int flctl_4secc_ooblayout_lp_ecc(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_lp_ecc()
76 static int flctl_4secc_ooblayout_lp_free(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_lp_free()
222 static void set_addr(struct mtd_info *mtd, int column, int page_addr) in set_addr()
538 static void set_cmd_regs(struct mtd_info *mtd, uint32_t cmd, uint32_t flcmcdr_val) in set_cmd_regs()
603 struct mtd_info *mtd = nand_to_mtd(chip); in flctl_read_page_hwecc() local
614 struct mtd_info *mtd = nand_to_mtd(chip); in flctl_write_page_hwecc() local
621 static void execmd_read_page_sector(struct mtd_info *mtd, int page_addr) in execmd_read_page_sector()
670 static void execmd_read_oob(struct mtd_info *mtd, int page_addr) in execmd_read_oob()
[all …]
H A Dnand_bbt.c169 struct mtd_info *mtd = nand_to_mtd(this); in read_bbt() local
262 struct mtd_info *mtd = nand_to_mtd(this); in read_abs_bbt() local
290 struct mtd_info *mtd = nand_to_mtd(this); in scan_read_data() local
315 struct mtd_info *mtd = nand_to_mtd(this); in scan_read_oob() local
356 struct mtd_info *mtd = nand_to_mtd(this); in scan_write_bbt() local
371 struct mtd_info *mtd = nand_to_mtd(this); in bbt_get_ver_offs() local
392 struct mtd_info *mtd = nand_to_mtd(this); in read_abs_bbts() local
417 struct mtd_info *mtd = nand_to_mtd(this); in scan_block_fast() local
494 struct mtd_info *mtd = nand_to_mtd(this); in create_bbt() local
556 struct mtd_info *mtd = nand_to_mtd(this); in search_bbt() local
[all …]
H A Dnuvoton-ma35d1-nand-controller.c113 static int ma35_ooblayout_ecc(struct mtd_info *mtd, int section, in ma35_ooblayout_ecc()
127 static int ma35_ooblayout_free(struct mtd_info *mtd, int section, in ma35_ooblayout_free()
237 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_hwecc_init() local
391 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nfi_ecc_check() local
435 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_do_write() local
479 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_do_read() local
531 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_format_subpage() local
555 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_write_subpage_hwecc() local
597 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_write_page_hwecc() local
628 struct mtd_info *mtd = nand_to_mtd(chip); in ma35_nand_read_subpage_hwecc() local
[all …]
/linux/include/linux/mtd/
H A Dmtd.h403 static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd) in mtd_get_master()
411 static inline u64 mtd_get_master_ofs(struct mtd_info *mtd, u64 ofs) in mtd_get_master_ofs()
421 static inline bool mtd_is_partition(const struct mtd_info *mtd) in mtd_is_partition()
426 static inline bool mtd_has_partitions(const struct mtd_info *mtd) in mtd_has_partitions()
449 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout()
455 static inline void mtd_set_pairing_scheme(struct mtd_info *mtd, in mtd_set_pairing_scheme()
461 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
469 static inline struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node()
474 static inline u32 mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops) in mtd_oobavail()
479 static inline int mtd_max_bad_blocks(struct mtd_info *mtd, in mtd_max_bad_blocks()
[all …]
/linux/drivers/mtd/chips/
H A Dmap_rom.c46 struct mtd_info *mtd; in map_rom_probe() local
73 static int maprom_point(struct mtd_info *mtd, loff_t from, size_t len, in maprom_point()
87 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in maprom_unpoint()
92 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read()
101 static void maprom_nop(struct mtd_info *mtd) in maprom_nop()
106 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write()
111 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info) in maprom_erase()
H A Dmap_absent.c47 struct mtd_info *mtd; in map_absent_probe() local
72 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b… in map_absent_read()
77 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write()
82 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) in map_absent_erase()
87 static void map_absent_sync(struct mtd_info *mtd) in map_absent_sync()
92 static void map_absent_destroy(struct mtd_info *mtd) in map_absent_destroy()
H A Dmap_ram.c37 struct mtd_info *mtd; in map_ram_probe() local
91 static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len, in mapram_point()
105 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mapram_unpoint()
110 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read()
119 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write()
128 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) in mapram_erase()
142 static void mapram_nop(struct mtd_info *mtd) in mapram_nop()
/linux/drivers/mtd/devices/
H A Dmtdram.c37 static int check_offs_len(struct mtd_info *mtd, loff_t ofs, uint64_t len) in check_offs_len()
56 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) in ram_erase()
65 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, in ram_point()
94 static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in ram_unpoint()
99 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, in ram_read()
107 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, in ram_write()
124 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, in mtdram_init_device()
H A Dpowernv_flash.c31 struct mtd_info mtd; member
46 static int powernv_flash_async_op(struct mtd_info *mtd, enum flash_op op, in powernv_flash_async_op()
138 static int powernv_flash_read(struct mtd_info *mtd, loff_t from, size_t len, in powernv_flash_read()
155 static int powernv_flash_write(struct mtd_info *mtd, loff_t to, size_t len, in powernv_flash_write()
168 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) in powernv_flash_erase()
186 struct mtd_info *mtd) in powernv_flash_set_driver_info()
H A Dbcm47xxsflash.c69 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) in bcm47xxsflash_erase()
95 static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len, in bcm47xxsflash_read()
128 static int bcm47xxsflash_write_st(struct mtd_info *mtd, u32 offset, size_t len, in bcm47xxsflash_write_st()
173 static int bcm47xxsflash_write_at(struct mtd_info *mtd, u32 offset, size_t len, in bcm47xxsflash_write_at()
216 static int bcm47xxsflash_write(struct mtd_info *mtd, loff_t to, size_t len, in bcm47xxsflash_write()
252 struct mtd_info *mtd = &b47s->mtd; in bcm47xxsflash_fill_mtd() local
H A Dpmc551.c135 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) in pmc551_erase()
189 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_point()
215 static int pmc551_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in pmc551_unpoint()
223 static int pmc551_read(struct mtd_info *mtd, loff_t from, size_t len, in pmc551_read()
279 static int pmc551_write(struct mtd_info *mtd, loff_t to, size_t len, in pmc551_write()
656 struct mtd_info *mtd; in init_pmc551() local
823 struct mtd_info *mtd; in cleanup_pmc551() local
/linux/drivers/mtd/ubi/
H A Dgluebi.c44 struct mtd_info mtd; member
84 static int gluebi_get_device(struct mtd_info *mtd) in gluebi_get_device()
130 static void gluebi_put_device(struct mtd_info *mtd) in gluebi_put_device()
153 static int gluebi_read(struct mtd_info *mtd, loff_t from, size_t len, in gluebi_read()
193 static int gluebi_write(struct mtd_info *mtd, loff_t to, size_t len, in gluebi_write()
234 static int gluebi_erase(struct mtd_info *mtd, struct erase_info *instr) in gluebi_erase()
282 struct mtd_info *mtd; in gluebi_create() local
351 struct mtd_info *mtd; in gluebi_remove() local
483 struct mtd_info *mtd = &gluebi->mtd; in ubi_gluebi_exit() local
/linux/drivers/mtd/tests/
H A Dmtd_test.c10 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) in mtdtest_erase_eraseblock()
30 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad()
42 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_scan_for_bad_eraseblocks()
63 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_erase_good_eraseblocks()
82 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) in mtdtest_read()
100 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, in mtdtest_write()
/linux/drivers/mtd/lpddr/
H A Dlpddr_cmds.c40 struct mtd_info *mtd; in lpddr_cmdset() local
480 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock()
507 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_read()
531 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_point()
584 static int lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) in lpddr_unpoint()
629 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, in lpddr_write_buffers()
641 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, in lpddr_writev()
688 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) in lpddr_erase()
712 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) in do_xxlock()
747 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in lpddr_lock()
[all …]

123456