Home
last modified time | relevance | path

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

12345678

/linux/drivers/mtd/
A Dmtdcore.c43 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
341 struct mtd_info *mtd = s->private; in mtd_partid_debug_show() local
352 struct mtd_info *mtd = s->private; in mtd_partname_debug_show() local
404 struct mtd_info *mtd; in mtd_reboot_notifier() local
523 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() local
852 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read() local
866 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read() local
1051 struct mtd_info *mtd; in register_mtd_user() local
1077 struct mtd_info *mtd; in unregister_mtd_user() local
1177 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
[all …]
A Dmtdpstore.c16 struct mtd_info *mtd; member
30 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_isbad() local
52 struct mtd_info *mtd = cxt->mtd; in mtdpstore_panic_block_isbad() local
63 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_used() local
73 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_unused() local
83 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_mark_unused() local
110 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_is_used() local
128 struct mtd_info *mtd = cxt->mtd; in mtdpstore_is_empty() local
142 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_removed() local
152 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_clear_removed() local
[all …]
A 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_panic_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_panic_write()
147 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write()
185 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev()
551 static void concat_sync(struct mtd_info *mtd) in concat_sync()
562 static int concat_suspend(struct mtd_info *mtd) in concat_suspend()
575 static void concat_resume(struct mtd_info *mtd) in concat_resume()
586 static int concat_block_isbad(struct mtd_info *mtd, loff_t ofs) in concat_block_isbad()
609 static int concat_block_markbad(struct mtd_info *mtd, loff_t ofs) in concat_block_markbad()
[all …]
A Dmtdchar.c35 struct mtd_info *mtd; member
50 struct mtd_info *mtd; in mtdchar_open() local
94 struct mtd_info *mtd = mfi->mtd; in mtdchar_close() local
131 struct mtd_info *mtd = mfi->mtd; in mtdchar_read() local
221 struct mtd_info *mtd = mfi->mtd; in mtdchar_write() local
312 struct mtd_info *mtd = mfi->mtd; in otp_select_filemode() local
627 struct mtd_info *mtd = mfi->mtd; in mtdchar_ioctl() local
1028 struct mtd_info *mtd = mfi->mtd; in mtdchar_unlocked_ioctl() local
1054 struct mtd_info *mtd = mfi->mtd; in mtdchar_compat_ioctl() local
1142 struct mtd_info *mtd = mfi->mtd; in mtdchar_get_unmapped_area() local
[all …]
/linux/drivers/mtd/nand/onenand/
A Donenand_base.c553 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait()
698 static void onenand_setup_wait(struct mtd_info *mtd) in onenand_setup_wait()
1671 static void onenand_panic_wait(struct mtd_info *mtd) in onenand_panic_wait()
2395 static void onenand_sync(struct mtd_info *mtd) in onenand_sync()
2640 static void onenand_unlock_all(struct mtd_info *mtd) in onenand_unlock_all()
3643 static int onenand_chip_probe(struct mtd_info *mtd) in onenand_chip_probe()
3688 static int onenand_probe(struct mtd_info *mtd) in onenand_probe()
3783 static int onenand_suspend(struct mtd_info *mtd) in onenand_suspend()
3792 static void onenand_resume(struct mtd_info *mtd) in onenand_resume()
3813 int onenand_scan(struct mtd_info *mtd, int maxchips) in onenand_scan()
[all …]
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()
688 static int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe()
694 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait()
727 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status()
772 static void s3c_unlock_all(struct mtd_info *mtd) in s3c_unlock_all()
801 static void s3c_onenand_setup(struct mtd_info *mtd) in s3c_onenand_setup()
838 struct mtd_info *mtd; in s3c_onenand_probe() local
948 struct mtd_info *mtd = platform_get_drvdata(pdev); in s3c_onenand_remove() local
957 struct mtd_info *mtd = dev_get_drvdata(dev); in s3c_pm_ops_suspend() local
[all …]
/linux/drivers/mtd/nand/raw/
A Dmpc5121_nfc.c122 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read()
184 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) in mpc5121_nfc_send_read_id()
202 struct mtd_info *mtd = data; in mpc5121_nfc_irq() local
213 static void mpc5121_nfc_done(struct mtd_info *mtd) in mpc5121_nfc_done()
256 struct mtd_info *mtd = nand_to_mtd(nand); in mpc5121_nfc_select_chip() local
270 static int ads5121_chipselect_init(struct mtd_info *mtd) in ads5121_chipselect_init()
294 struct mtd_info *mtd = nand_to_mtd(nand); in ads5121_select_chip() local
324 struct mtd_info *mtd = nand_to_mtd(chip); in mpc5121_nfc_command() local
515 static int mpc5121_nfc_read_hw_config(struct mtd_info *mtd) in mpc5121_nfc_read_hw_config()
626 struct mtd_info *mtd; in mpc5121_nfc_probe() local
[all …]
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()
A Dfsl_ifc_nand.c251 struct mtd_info *mtd) in fsl_ifc_do_read()
292 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_cmdfunc() local
510 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_write_buf() local
605 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_wait() local
639 struct mtd_info *mtd = nand_to_mtd(chip); in check_erased_page() local
669 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_read_page() local
697 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_write_page() local
707 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_attach_chip() local
859 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_init() local
952 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_remove() local
[all …]
A Dnand_base.c228 struct mtd_info *mtd = nand_to_mtd(chip); in nand_bbm_get_next_page() local
315 struct mtd_info *mtd = nand_to_mtd(chip); in nand_isbad_bbm() local
384 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_oob() local
423 struct mtd_info *mtd = nand_to_mtd(chip); in nand_do_write_oob() local
497 struct mtd_info *mtd = nand_to_mtd(chip); in nand_default_block_markbad() local
563 struct mtd_info *mtd = nand_to_mtd(chip); in nand_block_markbad_lowlevel() local
1090 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_column_cycles() local
1135 struct mtd_info *mtd = nand_to_mtd(chip); in nand_sp_exec_read_page_op() local
1225 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_page_op() local
1316 struct mtd_info *mtd = nand_to_mtd(chip); in nand_change_read_column_op() local
[all …]
A Dfsl_elbc_nand.c68 static int fsl_elbc_ooblayout_ecc(struct mtd_info *mtd, int section, in fsl_elbc_ooblayout_ecc()
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
723 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_attach_chip() local
831 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_elbc_chip_remove() local
[all …]
A 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()
223 static void set_addr(struct mtd_info *mtd, int column, int page_addr) in set_addr()
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
669 static void execmd_read_oob(struct mtd_info *mtd, int page_addr) in execmd_read_oob()
690 static void execmd_write_page_sector(struct mtd_info *mtd) in execmd_write_page_sector()
716 static void execmd_write_oob(struct mtd_info *mtd) in execmd_write_oob()
741 struct mtd_info *mtd = nand_to_mtd(chip); in flctl_cmdfunc() local
[all …]
A Ds3c2410.c450 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_hwcontrol() local
467 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_hwcontrol() local
486 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_devready() local
493 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_devready() local
500 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_devready() local
510 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_correct_data() local
622 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_calculate_ecc() local
637 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_calculate_ecc() local
653 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_calculate_ecc() local
677 struct mtd_info *mtd = nand_to_mtd(this); in s3c2440_nand_read_buf() local
[all …]
/linux/drivers/mtd/chips/
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()
A 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()
A 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()
A Dcfi_cmdset_0001.c211 static void fixup_at49bv640dx_lock(struct mtd_info *mtd) in fixup_at49bv640dx_lock()
236 static void fixup_no_write_suspend(struct mtd_info *mtd) in fixup_no_write_suspend()
249 static void fixup_st_m28w320ct(struct mtd_info *mtd) in fixup_st_m28w320ct()
258 static void fixup_st_m28w320cb(struct mtd_info *mtd) in fixup_st_m28w320cb()
278 static void fixup_LH28F640BF(struct mtd_info *mtd) in fixup_LH28F640BF()
298 static void fixup_use_point(struct mtd_info *mtd) in fixup_use_point()
484 struct mtd_info *mtd; in cfi_cmdset_0001() local
2031 static void cfi_intelext_sync (struct mtd_info *mtd) in cfi_intelext_sync()
2508 static int cfi_intelext_suspend(struct mtd_info *mtd) in cfi_intelext_suspend()
2634 static int cfi_intelext_reset(struct mtd_info *mtd) in cfi_intelext_reset()
[all …]
A Dcfi_cmdset_0002.c221 static void fixup_amd_bootblock(struct mtd_info *mtd) in fixup_amd_bootblock()
318 static void fixup_use_secsi(struct mtd_info *mtd) in fixup_use_secsi()
325 static void fixup_use_erase_chip(struct mtd_info *mtd) in fixup_use_erase_chip()
340 static void fixup_use_atmel_lock(struct mtd_info *mtd) in fixup_use_atmel_lock()
361 static void fixup_sst39vf(struct mtd_info *mtd) in fixup_sst39vf()
372 static void fixup_sst39vf_rev_b(struct mtd_info *mtd) in fixup_sst39vf_rev_b()
591 struct mtd_info *mtd; in cfi_cmdset_0002() local
2916 static void cfi_amdstd_sync (struct mtd_info *mtd) in cfi_amdstd_sync()
2978 static int cfi_amdstd_suspend(struct mtd_info *mtd) in cfi_amdstd_suspend()
3065 static int cfi_amdstd_reset(struct mtd_info *mtd) in cfi_amdstd_reset()
[all …]
/linux/include/linux/mtd/
A Dmtd.h447 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout()
459 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
477 static inline int mtd_max_bad_blocks(struct mtd_info *mtd, in mtd_max_bad_blocks()
529 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync()
544 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend()
560 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume()
597 static inline void mtd_align_erase_req(struct mtd_info *mtd, in mtd_align_erase_req()
631 static inline int mtd_wunit_per_eb(struct mtd_info *mtd) in mtd_wunit_per_eb()
650 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob()
657 static inline int mtd_type_is_nand(const struct mtd_info *mtd) in mtd_type_is_nand()
[all …]
/linux/drivers/mtd/devices/
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()
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()
/linux/drivers/mtd/tests/
A 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()
/linux/drivers/mtd/ubi/
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/nand/spi/
A Dgigadevice.c50 static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_ecc()
62 static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_free()
108 static int gd5fxgqx_variant2_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_ecc()
120 static int gd5fxgqx_variant2_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_free()
139 static int gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_ecc()
151 static int gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_free()
/linux/drivers/mtd/lpddr/
A Dlpddr_cmds.c40 struct mtd_info *mtd; in lpddr_cmdset() local
484 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock()
511 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_read()
535 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_point()
588 static int lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) in lpddr_unpoint()
633 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, in lpddr_write_buffers()
645 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, in lpddr_writev()
692 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) in lpddr_erase()
716 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) in do_xxlock()
751 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in lpddr_lock()
[all …]

Completed in 80 milliseconds

12345678