/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtdcore.c | 43 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 127 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() local 137 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local 176 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local 185 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local 195 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local 204 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local 213 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local 223 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local [all …]
|
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 …]
|
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() 260 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob() 317 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) in concat_write_oob() 363 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase() 481 static int concat_xxlock(struct mtd_info *mtd, loff_t ofs, uint64_t len, in concat_xxlock() 519 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_lock() [all …]
|
D | mtdchar.c | 37 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() 390 static int mtdchar_readoob(struct file *file, struct mtd_info *mtd, in mtdchar_readoob() 451 static int shrink_ecclayout(struct mtd_info *mtd, in shrink_ecclayout() 499 static int get_oobinfo(struct mtd_info *mtd, struct nand_oobinfo *to) in get_oobinfo() [all …]
|
D | mtdsuper.c | 27 struct mtd_info *mtd = fc->sget_key; in mtd_test_super() local 57 struct mtd_info *mtd, in mtd_get_sb() 102 struct mtd_info *mtd; in mtd_get_sb_by_nr() local 142 struct mtd_info *mtd; in get_tree_mtd() local
|
/kernel/linux/linux-5.10/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 66 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 …]
|
D | onenand_bbt.c | 56 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()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
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()
|
D | mpc5121_nfc.c | 122 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read() 131 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) in nfc_write() 140 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) in nfc_set() 146 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) in nfc_clear() 152 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) in mpc5121_nfc_send_addr() 160 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) in mpc5121_nfc_send_cmd() 168 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) in mpc5121_nfc_send_prog_page() 176 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) in mpc5121_nfc_send_read_page() 184 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) in mpc5121_nfc_send_read_id() 192 static inline void mpc5121_nfc_send_read_status(struct mtd_info *mtd) in mpc5121_nfc_send_read_status() [all …]
|
D | fsl_ifc_nand.c | 84 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 …]
|
D | nand_base.c | 49 static int nand_pairing_dist3_get_info(struct mtd_info *mtd, int page, in nand_pairing_dist3_get_info() 69 static int nand_pairing_dist3_get_wunit(struct mtd_info *mtd, in nand_pairing_dist3_get_wunit() 227 struct mtd_info *mtd = nand_to_mtd(chip); in nand_bbm_get_next_page() local 349 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_oob() local 388 struct mtd_info *mtd = nand_to_mtd(chip); in nand_do_write_oob() local 458 struct mtd_info *mtd = nand_to_mtd(chip); in nand_default_block_markbad() local 524 struct mtd_info *mtd = nand_to_mtd(chip); in nand_block_markbad_lowlevel() local 563 static int nand_block_isreserved(struct mtd_info *mtd, loff_t ofs) in nand_block_isreserved() 966 struct mtd_info *mtd = nand_to_mtd(chip); in nand_fill_column_cycles() local 1011 struct mtd_info *mtd = nand_to_mtd(chip); in nand_sp_exec_read_page_op() local [all …]
|
D | fsl_elbc_nand.c | 69 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 543 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_buf() local 636 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_read_page() local 657 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_page() local 672 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_write_subpage() local 686 struct mtd_info *mtd = nand_to_mtd(chip); in fsl_elbc_chip_init() local [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/chips/ |
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()
|
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()
|
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()
|
D | cfi_cmdset_0001.c | 170 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 …]
|
D | cfi_cmdset_0002.c | 225 static void fixup_amd_bootblock(struct mtd_info *mtd) in fixup_amd_bootblock() 275 static void fixup_use_write_buffers(struct mtd_info *mtd) in fixup_use_write_buffers() 287 static void fixup_convert_atmel_pri(struct mtd_info *mtd) in fixup_convert_atmel_pri() 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() 347 static void fixup_old_sst_eraseregion(struct mtd_info *mtd) in fixup_old_sst_eraseregion() 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() 385 static void fixup_sst38vf640x_sectorsize(struct mtd_info *mtd) in fixup_sst38vf640x_sectorsize() [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/devices/ |
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()
|
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() 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()
|
D | bcm47xxsflash.c | 69 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
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
D | mtd.h | 395 static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd) in mtd_get_master() 403 static inline u64 mtd_get_master_ofs(struct mtd_info *mtd, u64 ofs) in mtd_get_master_ofs() 413 static inline bool mtd_is_partition(const struct mtd_info *mtd) in mtd_is_partition() 418 static inline bool mtd_has_partitions(const struct mtd_info *mtd) in mtd_has_partitions() 441 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout() 447 static inline void mtd_set_pairing_scheme(struct mtd_info *mtd, in mtd_set_pairing_scheme() 453 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node() 461 static inline struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node() 466 static inline u32 mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops) in mtd_oobavail() 471 static inline int mtd_max_bad_blocks(struct mtd_info *mtd, in mtd_max_bad_blocks() [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/tests/ |
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()
|
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
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
|
/kernel/linux/linux-5.10/drivers/mtd/nand/spi/ |
D | gigadevice.c | 47 static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_ecc() 59 static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_free() 105 static int gd5fxgq4_variant2_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgq4_variant2_ooblayout_ecc() 117 static int gd5fxgq4_variant2_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgq4_variant2_ooblayout_free() 135 static int gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_ecc() 147 static int gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_free()
|
/kernel/linux/linux-5.10/drivers/mtd/lpddr/ |
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 …]
|