/linux-6.3-rc2/drivers/mtd/ |
A D | mtdcore.c | 44 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local 51 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local 387 struct mtd_info *mtd; in mtd_reboot_notifier() local 506 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() local 916 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read() local 930 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read() local 1113 struct mtd_info *mtd; in register_mtd_user() local 1139 struct mtd_info *mtd; in unregister_mtd_user() local 1235 struct mtd_info *mtd = NULL; in of_get_mtd_device_by_node() local 1267 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local [all …]
|
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 …]
|
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 …]
|
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-6.3-rc2/drivers/mtd/nand/onenand/ |
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 …]
|
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 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-6.3-rc2/drivers/mtd/nand/raw/ |
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() 624 struct mtd_info *mtd; in mpc5121_nfc_probe() local [all …]
|
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()
|
A D | fsl_ifc_nand.c | 251 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 D | nand_base.c | 228 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 388 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_oob() local 427 struct mtd_info *mtd = nand_to_mtd(chip); in nand_do_write_oob() local 501 struct mtd_info *mtd = nand_to_mtd(chip); in nand_default_block_markbad() local 567 struct mtd_info *mtd = nand_to_mtd(chip); in nand_block_markbad_lowlevel() local 1092 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_column_cycles() local 1137 struct mtd_info *mtd = nand_to_mtd(chip); in nand_sp_exec_read_page_op() local 1294 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_page_op() local 1391 struct mtd_info *mtd = nand_to_mtd(chip); in nand_change_read_column_op() local [all …]
|
A D | s3c2410.c | 446 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_hwcontrol() local 463 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_hwcontrol() local 482 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_devready() local 489 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_devready() local 496 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_devready() local 506 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_correct_data() local 618 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2410_nand_calculate_ecc() local 633 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2412_nand_calculate_ecc() local 649 struct mtd_info *mtd = nand_to_mtd(chip); in s3c2440_nand_calculate_ecc() local 673 struct mtd_info *mtd = nand_to_mtd(this); in s3c2440_nand_read_buf() local [all …]
|
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-6.3-rc2/drivers/mtd/chips/ |
A D | map_rom.c | 45 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 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()
|
A D | map_ram.c | 36 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 D | cfi_cmdset_0001.c | 211 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 D | cfi_cmdset_0002.c | 226 static void fixup_amd_bootblock(struct mtd_info *mtd) in fixup_amd_bootblock() 323 static void fixup_use_secsi(struct mtd_info *mtd) in fixup_use_secsi() 330 static void fixup_use_erase_chip(struct mtd_info *mtd) in fixup_use_erase_chip() 345 static void fixup_use_atmel_lock(struct mtd_info *mtd) in fixup_use_atmel_lock() 366 static void fixup_sst39vf(struct mtd_info *mtd) in fixup_sst39vf() 377 static void fixup_sst39vf_rev_b(struct mtd_info *mtd) in fixup_sst39vf_rev_b() 444 static void fixup_quirks(struct mtd_info *mtd) in fixup_quirks() 606 struct mtd_info *mtd; in cfi_cmdset_0002() local 2912 static void cfi_amdstd_sync (struct mtd_info *mtd) in cfi_amdstd_sync() 3061 static int cfi_amdstd_reset(struct mtd_info *mtd) in cfi_amdstd_reset() [all …]
|
A D | cfi_cmdset_0020.c | 169 struct mtd_info *mtd; in cfi_staa_setup() local 383 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() 606 static int cfi_staa_write_buffers (struct mtd_info *mtd, loff_t to, in cfi_staa_write_buffers() 663 cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs, in cfi_staa_writev() 890 static int cfi_staa_erase_varsize(struct mtd_info *mtd, in cfi_staa_erase_varsize() 972 static void cfi_staa_sync (struct mtd_info *mtd) in cfi_staa_sync() 1126 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_staa_lock() 1272 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_staa_unlock() 1311 static int cfi_staa_suspend(struct mtd_info *mtd) in cfi_staa_suspend() 1369 static void cfi_staa_resume(struct mtd_info *mtd) in cfi_staa_resume() [all …]
|
/linux-6.3-rc2/include/linux/mtd/ |
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-6.3-rc2/drivers/mtd/devices/ |
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()
|
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-6.3-rc2/drivers/mtd/tests/ |
A D | mtd_test.c | 10 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-6.3-rc2/drivers/mtd/ubi/ |
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-6.3-rc2/drivers/mtd/nand/spi/ |
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-6.3-rc2/drivers/mtd/lpddr/ |
A D | lpddr_cmds.c | 40 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 …]
|