Home
last modified time | relevance | path

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

1234567

/drivers/mtd/
Dmtdcore.c43 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
50 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
92 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() local
102 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
141 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
150 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
160 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
169 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
178 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
188 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
[all …]
Dmtdpart.c35 struct mtd_info mtd; member
45 static inline struct mtd_part *mtd_to_part(const struct mtd_info *mtd) in mtd_to_part()
50 static u64 part_absolute_offset(struct mtd_info *mtd) in part_absolute_offset()
65 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read()
84 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point()
93 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint()
100 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob()
118 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg()
126 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, in part_get_user_prot_info()
134 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg()
[all …]
Dmtdconcat.c30 struct mtd_info mtd; member
54 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read()
106 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write()
144 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev()
219 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob()
276 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) in concat_write_oob()
322 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase()
440 static int concat_xxlock(struct mtd_info *mtd, loff_t ofs, uint64_t len, in concat_xxlock()
478 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_lock()
483 static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_unlock()
[all …]
Dmtdchar.c37 struct mtd_info *mtd; member
52 struct mtd_info *mtd; in mtdchar_open() local
102 struct mtd_info *mtd = mfi->mtd; in mtdchar_close() local
139 struct mtd_info *mtd = mfi->mtd; in mtdchar_read() local
229 struct mtd_info *mtd = mfi->mtd; in mtdchar_write() local
320 struct mtd_info *mtd = mfi->mtd; in otp_select_filemode() local
348 static int mtdchar_writeoob(struct file *file, struct mtd_info *mtd, in mtdchar_writeoob()
392 static int mtdchar_readoob(struct file *file, struct mtd_info *mtd, in mtdchar_readoob()
453 static int shrink_ecclayout(struct mtd_info *mtd, in shrink_ecclayout()
501 static int get_oobinfo(struct mtd_info *mtd, struct nand_oobinfo *to) in get_oobinfo()
[all …]
Dnftlmount.c32 struct mtd_info *mtd = nftl->mbd.mtd; in find_boot_record() local
265 struct mtd_info *mtd = nftl->mbd.mtd; in check_free_sectors() local
311 struct mtd_info *mtd = nftl->mbd.mtd; in NFTL_formatblock() local
374 struct mtd_info *mtd = nftl->mbd.mtd; in check_sectors_in_chain() local
493 struct mtd_info *mtd = nftl->mbd.mtd; in check_and_mark_free_block() local
554 struct mtd_info *mtd = nftl->mbd.mtd; in get_fold_mark() local
573 struct mtd_info *mtd = s->mbd.mtd; in NFTL_mount() local
/drivers/mtd/nand/onenand/
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 …]
Dsamsung.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()
474 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) in s3c_get_bufferram()
493 static int onenand_read_bufferram(struct mtd_info *mtd, int area, in onenand_read_bufferram()
504 static int onenand_write_bufferram(struct mtd_info *mtd, int area, in onenand_write_bufferram()
615 static int s5pc110_read_bufferram(struct mtd_info *mtd, int area, in s5pc110_read_bufferram()
687 static int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe()
693 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait()
726 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status()
[all …]
/drivers/mtd/nand/raw/
Dmpc5121_nfc.c121 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read()
130 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) in nfc_write()
139 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) in nfc_set()
145 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) in nfc_clear()
151 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) in mpc5121_nfc_send_addr()
159 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) in mpc5121_nfc_send_cmd()
167 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) in mpc5121_nfc_send_prog_page()
175 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) in mpc5121_nfc_send_read_page()
183 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) in mpc5121_nfc_send_read_id()
191 static inline void mpc5121_nfc_send_read_status(struct mtd_info *mtd) in mpc5121_nfc_send_read_status()
[all …]
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()
Dnand_base.c49 static int nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_sp()
75 static int nand_ooblayout_free_sp(struct mtd_info *mtd, int section, in nand_ooblayout_free_sp()
104 static int nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp()
119 static int nand_ooblayout_free_lp(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp()
144 static int nand_ooblayout_ecc_lp_hamming(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp_hamming()
171 static int nand_ooblayout_free_lp_hamming(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp_hamming()
292 struct mtd_info *mtd = nand_to_mtd(chip); in nand_bbm_get_next_page() local
408 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_oob() local
447 struct mtd_info *mtd = nand_to_mtd(chip); in nand_do_write_oob() local
517 struct mtd_info *mtd = nand_to_mtd(chip); in nand_default_block_markbad() local
[all …]
Dfsl_ifc_nand.c84 static int fsl_ifc_ooblayout_ecc(struct mtd_info *mtd, int section, in fsl_ifc_ooblayout_ecc()
98 static int fsl_ifc_ooblayout_free(struct mtd_info *mtd, int section, in fsl_ifc_ooblayout_free()
139 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr()
163 static int check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, in check_read_ecc()
172 static void fsl_ifc_run_command(struct mtd_info *mtd) in fsl_ifc_run_command()
252 struct mtd_info *mtd) in fsl_ifc_do_read()
293 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_cmdfunc() local
511 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_write_buf() local
606 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_wait() local
640 struct mtd_info *mtd = nand_to_mtd(chip); in check_erased_page() local
[all …]
Dfsl_elbc_nand.c69 static int fsl_elbc_ooblayout_ecc(struct mtd_info *mtd, int section, in fsl_elbc_ooblayout_ecc()
87 static int fsl_elbc_ooblayout_free(struct mtd_info *mtd, int section, in fsl_elbc_ooblayout_free()
152 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr()
203 static int fsl_elbc_run_command(struct mtd_info *mtd) in fsl_elbc_run_command()
310 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_cmdfunc() local
544 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_buf() local
637 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_read_page() local
658 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_page() local
673 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_subpage() local
687 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_chip_init() local
[all …]
Ds3c2410.c75 static int s3c2410_ooblayout_ecc(struct mtd_info *mtd, int section, in s3c2410_ooblayout_ecc()
87 static int s3c2410_ooblayout_free(struct mtd_info *mtd, int section, in s3c2410_ooblayout_free()
192 static struct s3c2410_nand_mtd *s3c2410_nand_mtd_toours(struct mtd_info *mtd) in s3c2410_nand_mtd_toours()
198 static struct s3c2410_nand_info *s3c2410_nand_mtd_toinfo(struct mtd_info *mtd) in s3c2410_nand_mtd_toinfo()
449 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_hwcontrol() local
466 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_hwcontrol() local
485 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_devready() local
492 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_devready() local
499 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_devready() local
509 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_correct_data() local
[all …]
Dsh_flctl.c32 static int flctl_4secc_ooblayout_sp_ecc(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_sp_ecc()
46 static int flctl_4secc_ooblayout_sp_free(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_sp_free()
63 static int flctl_4secc_ooblayout_lp_ecc(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_lp_ecc()
77 static int flctl_4secc_ooblayout_lp_free(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_lp_free()
223 static void set_addr(struct mtd_info *mtd, int column, int page_addr) in set_addr()
537 static void set_cmd_regs(struct mtd_info *mtd, uint32_t cmd, uint32_t flcmcdr_val) in set_cmd_regs()
602 struct mtd_info *mtd = nand_to_mtd(chip); in flctl_read_page_hwecc() local
613 struct mtd_info *mtd = nand_to_mtd(chip); in flctl_write_page_hwecc() local
620 static void execmd_read_page_sector(struct mtd_info *mtd, int page_addr) in execmd_read_page_sector()
669 static void execmd_read_oob(struct mtd_info *mtd, int page_addr) in execmd_read_oob()
[all …]
/drivers/mtd/chips/
Dmap_rom.c45 struct mtd_info *mtd; in map_rom_probe() local
72 static int maprom_point(struct mtd_info *mtd, loff_t from, size_t len, in maprom_point()
86 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in maprom_unpoint()
91 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read()
100 static void maprom_nop(struct mtd_info *mtd) in maprom_nop()
105 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write()
110 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info) in maprom_erase()
Dmap_ram.c36 struct mtd_info *mtd; in map_ram_probe() local
86 static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len, in mapram_point()
100 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mapram_unpoint()
105 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read()
114 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write()
123 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) in mapram_erase()
137 static void mapram_nop(struct mtd_info *mtd) in mapram_nop()
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()
Dcfi_cmdset_0001.c170 static void fixup_convert_atmel_pri(struct mtd_info *mtd) in fixup_convert_atmel_pri()
210 static void fixup_at49bv640dx_lock(struct mtd_info *mtd) in fixup_at49bv640dx_lock()
222 static void fixup_intel_strataflash(struct mtd_info *mtd) in fixup_intel_strataflash()
235 static void fixup_no_write_suspend(struct mtd_info *mtd) in fixup_no_write_suspend()
248 static void fixup_st_m28w320ct(struct mtd_info *mtd) in fixup_st_m28w320ct()
257 static void fixup_st_m28w320cb(struct mtd_info *mtd) in fixup_st_m28w320cb()
277 static void fixup_LH28F640BF(struct mtd_info *mtd) in fixup_LH28F640BF()
297 static void fixup_use_point(struct mtd_info *mtd) in fixup_use_point()
306 static void fixup_use_write_buffers(struct mtd_info *mtd) in fixup_use_write_buffers()
320 static void fixup_unlock_powerup_lock(struct mtd_info *mtd) in fixup_unlock_powerup_lock()
[all …]
Dcfi_cmdset_0002.c221 static void fixup_amd_bootblock(struct mtd_info *mtd) in fixup_amd_bootblock()
271 static void fixup_use_write_buffers(struct mtd_info *mtd) in fixup_use_write_buffers()
283 static void fixup_convert_atmel_pri(struct mtd_info *mtd) in fixup_convert_atmel_pri()
314 static void fixup_use_secsi(struct mtd_info *mtd) in fixup_use_secsi()
321 static void fixup_use_erase_chip(struct mtd_info *mtd) in fixup_use_erase_chip()
336 static void fixup_use_atmel_lock(struct mtd_info *mtd) in fixup_use_atmel_lock()
343 static void fixup_old_sst_eraseregion(struct mtd_info *mtd) in fixup_old_sst_eraseregion()
357 static void fixup_sst39vf(struct mtd_info *mtd) in fixup_sst39vf()
368 static void fixup_sst39vf_rev_b(struct mtd_info *mtd) in fixup_sst39vf_rev_b()
381 static void fixup_sst38vf640x_sectorsize(struct mtd_info *mtd) in fixup_sst38vf640x_sectorsize()
[all …]
Dcfi_cmdset_0020.c169 struct mtd_info *mtd; in cfi_staa_setup() local
384 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()
608 static int cfi_staa_write_buffers (struct mtd_info *mtd, loff_t to, in cfi_staa_write_buffers()
665 cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, in cfi_staa_writev()
893 static int cfi_staa_erase_varsize(struct mtd_info *mtd, in cfi_staa_erase_varsize()
975 static void cfi_staa_sync (struct mtd_info *mtd) in cfi_staa_sync()
1130 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_staa_lock()
1277 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_staa_unlock()
1316 static int cfi_staa_suspend(struct mtd_info *mtd) in cfi_staa_suspend()
1372 static void cfi_staa_resume(struct mtd_info *mtd) in cfi_staa_resume()
[all …]
/drivers/mtd/devices/
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()
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()
137 static int powernv_flash_read(struct mtd_info *mtd, loff_t from, size_t len, in powernv_flash_read()
153 static int powernv_flash_write(struct mtd_info *mtd, loff_t to, size_t len, in powernv_flash_write()
165 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) in powernv_flash_erase()
183 struct mtd_info *mtd) in powernv_flash_set_driver_info()
/drivers/mtd/ubi/
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
/drivers/mtd/tests/
Dmtd_test.c10 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum) in mtdtest_erase_eraseblock()
29 static int is_block_bad(struct mtd_info *mtd, unsigned int ebnum) in is_block_bad()
41 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_scan_for_bad_eraseblocks()
61 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_erase_good_eraseblocks()
79 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf) in mtdtest_read()
96 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size, in mtdtest_write()
/drivers/mtd/lpddr/
Dlpddr_cmds.c40 struct mtd_info *mtd; in lpddr_cmdset() local
458 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock()
485 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_read()
509 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_point()
562 static int lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) in lpddr_unpoint()
607 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, in lpddr_write_buffers()
619 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, in lpddr_writev()
666 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) in lpddr_erase()
690 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) in do_xxlock()
725 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in lpddr_lock()
[all …]

1234567