/linux/drivers/mtd/ |
H A D | mtdcore.c | 46 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local 53 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local 417 struct mtd_info *mtd; in mtd_reboot_notifier() local 536 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() local 925 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read() local 939 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read() local 1154 struct mtd_info *mtd; in register_mtd_user() local 1180 struct mtd_info *mtd; in unregister_mtd_user() local 1278 struct mtd_info *mtd = NULL; in of_get_mtd_device_by_node() local 1310 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local [all …]
|
H A D | mtdpstore.c | 16 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 …]
|
H A D | mtdconcat.c | 30 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 …]
|
H A D | mtdchar.c | 35 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 825 struct mtd_info *mtd = mfi->mtd; in mtdchar_ioctl() local 1234 struct mtd_info *mtd = mfi->mtd; in mtdchar_unlocked_ioctl() local 1260 struct mtd_info *mtd = mfi->mtd; in mtdchar_compat_ioctl() local 1348 struct mtd_info *mtd = mfi->mtd; in mtdchar_get_unmapped_area() local [all …]
|
/linux/drivers/mtd/nand/onenand/ |
H A D | onenand_base.c | 553 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() 1683 static void onenand_panic_wait(struct mtd_info *mtd) in onenand_panic_wait() 2407 static void onenand_sync(struct mtd_info *mtd) in onenand_sync() 2652 static void onenand_unlock_all(struct mtd_info *mtd) in onenand_unlock_all() 3655 static int onenand_chip_probe(struct mtd_info *mtd) in onenand_chip_probe() 3700 static int onenand_probe(struct mtd_info *mtd) in onenand_probe() 3795 static int onenand_suspend(struct mtd_info *mtd) in onenand_suspend() 3804 static void onenand_resume(struct mtd_info *mtd) in onenand_resume() 3825 int onenand_scan(struct mtd_info *mtd, int maxchips) in onenand_scan() [all …]
|
H A D | onenand_samsung.c | 123 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 945 struct mtd_info *mtd = platform_get_drvdata(pdev); in s3c_onenand_remove() local 952 struct mtd_info *mtd = dev_get_drvdata(dev); in s3c_pm_ops_suspend() local [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | mpc5121_nfc.c | 122 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read() 168 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) in mpc5121_nfc_send_prog_page() 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() 323 struct mtd_info *mtd = nand_to_mtd(chip); in mpc5121_nfc_command() local 514 static int mpc5121_nfc_read_hw_config(struct mtd_info *mtd) in mpc5121_nfc_read_hw_config() 622 struct mtd_info *mtd; in mpc5121_nfc_probe() local [all …]
|
H A D | sm_common.c | 12 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 D | fsl_ifc_nand.c | 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 670 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_read_page() local 698 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_write_page() local 708 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_ifc_attach_chip() local 860 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_init() local 953 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_ifc_chip_remove() local [all …]
|
H A D | s3c2410.c | 443 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_hwcontrol() local 460 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_hwcontrol() local 479 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_devready() local 486 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_devready() local 493 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_devready() local 503 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_correct_data() local 615 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_calculate_ecc() local 630 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_calculate_ecc() local 646 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_calculate_ecc() local 670 struct mtd_info *mtd = nand_to_mtd(this); in s3c2440_nand_read_buf() local [all …]
|
H A D | nand_base.c | 227 struct mtd_info *mtd = nand_to_mtd(chip); in nand_bbm_get_next_page() local 314 struct mtd_info *mtd = nand_to_mtd(chip); in nand_isbad_bbm() local 391 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_oob() local 430 struct mtd_info *mtd = nand_to_mtd(chip); in nand_do_write_oob() local 504 struct mtd_info *mtd = nand_to_mtd(chip); in nand_default_block_markbad() local 570 struct mtd_info *mtd = nand_to_mtd(chip); in nand_block_markbad_lowlevel() local 1095 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_column_cycles() local 1144 struct mtd_info *mtd = nand_to_mtd(chip); in nand_sp_exec_read_page_op() local 1345 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_page_op() local 1442 struct mtd_info *mtd = nand_to_mtd(chip); in nand_change_read_column_op() local [all …]
|
H A D | fsl_elbc_nand.c | 68 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 843 struct mtd_info *mtd = nand_to_mtd(&priv->chip); in fsl_elbc_chip_remove() local [all …]
|
/linux/drivers/mtd/chips/ |
H A D | map_rom.c | 46 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 D | map_absent.c | 47 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 D | map_ram.c | 37 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()
|
H A D | cfi_cmdset_0001.c | 212 static void fixup_at49bv640dx_lock(struct mtd_info *mtd) in fixup_at49bv640dx_lock() 237 static void fixup_no_write_suspend(struct mtd_info *mtd) in fixup_no_write_suspend() 250 static void fixup_st_m28w320ct(struct mtd_info *mtd) in fixup_st_m28w320ct() 259 static void fixup_st_m28w320cb(struct mtd_info *mtd) in fixup_st_m28w320cb() 279 static void fixup_LH28F640BF(struct mtd_info *mtd) in fixup_LH28F640BF() 299 static void fixup_use_point(struct mtd_info *mtd) in fixup_use_point() 501 struct mtd_info *mtd; in cfi_cmdset_0001() local 2048 static void cfi_intelext_sync (struct mtd_info *mtd) in cfi_intelext_sync() 2525 static int cfi_intelext_suspend(struct mtd_info *mtd) in cfi_intelext_suspend() 2651 static int cfi_intelext_reset(struct mtd_info *mtd) in cfi_intelext_reset() [all …]
|
H A D | cfi_cmdset_0002.c | 224 static void fixup_amd_bootblock(struct mtd_info *mtd) in fixup_amd_bootblock() 321 static void fixup_use_secsi(struct mtd_info *mtd) in fixup_use_secsi() 328 static void fixup_use_erase_chip(struct mtd_info *mtd) in fixup_use_erase_chip() 343 static void fixup_use_atmel_lock(struct mtd_info *mtd) in fixup_use_atmel_lock() 364 static void fixup_sst39vf(struct mtd_info *mtd) in fixup_sst39vf() 375 static void fixup_sst39vf_rev_b(struct mtd_info *mtd) in fixup_sst39vf_rev_b() 442 static void fixup_quirks(struct mtd_info *mtd) in fixup_quirks() 604 struct mtd_info *mtd; in cfi_cmdset_0002() local 2910 static void cfi_amdstd_sync (struct mtd_info *mtd) in cfi_amdstd_sync() 3059 static int cfi_amdstd_reset(struct mtd_info *mtd) in cfi_amdstd_reset() [all …]
|
H A D | cfi_cmdset_0020.c | 170 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() 607 static int cfi_staa_write_buffers (struct mtd_info *mtd, loff_t to, in cfi_staa_write_buffers() 664 cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, in cfi_staa_writev() 891 static int cfi_staa_erase_varsize(struct mtd_info *mtd, in cfi_staa_erase_varsize() 973 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() 1370 static void cfi_staa_resume(struct mtd_info *mtd) in cfi_staa_resume() [all …]
|
/linux/include/linux/mtd/ |
H A D | mtd.h | 449 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout() 461 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node() 479 static inline int mtd_max_bad_blocks(struct mtd_info *mtd, in mtd_max_bad_blocks() 531 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync() 546 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend() 562 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume() 599 static inline void mtd_align_erase_req(struct mtd_info *mtd, in mtd_align_erase_req() 633 static inline int mtd_wunit_per_eb(struct mtd_info *mtd) in mtd_wunit_per_eb() 652 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob() 659 static inline int mtd_type_is_nand(const struct mtd_info *mtd) in mtd_type_is_nand() [all …]
|
/linux/drivers/mtd/devices/ |
H A D | mtdram.c | 37 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 D | powernv_flash.c | 31 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/ubi/ |
H A D | gluebi.c | 44 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 D | mtd_test.c | 10 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/nand/spi/ |
H A D | gigadevice.c | 66 static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_ecc() 78 static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_free() 124 static int gd5fxgqx_variant2_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_ecc() 136 static int gd5fxgqx_variant2_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_free() 155 static int gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_ecc() 167 static int gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_free()
|
/linux/drivers/mtd/lpddr/ |
H A D | lpddr_cmds.c | 40 struct mtd_info *mtd; in lpddr_cmdset() local 481 static int do_erase_oneblock(struct mtd_info *mtd, loff_t adr) in do_erase_oneblock() 508 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_read() 532 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len, in lpddr_point() 585 static int lpddr_unpoint (struct mtd_info *mtd, loff_t adr, size_t len) in lpddr_unpoint() 630 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to, size_t len, in lpddr_write_buffers() 642 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs, in lpddr_writev() 689 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) in lpddr_erase() 713 static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) in do_xxlock() 748 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in lpddr_lock() [all …]
|