| /kernel/linux/linux-6.6/drivers/mtd/ |
| D | mtdcore.c | 45 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local 52 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local 93 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() local 108 struct mtd_info *mtd = container_of(kref, struct mtd_info, refcnt); in mtd_device_release() local 138 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local 177 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local 186 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 [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 | 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 340 static int mtdchar_writeoob(struct file *file, struct mtd_info *mtd, in mtdchar_writeoob() 382 static int mtdchar_readoob(struct file *file, struct mtd_info *mtd, in mtdchar_readoob() 443 static int shrink_ecclayout(struct mtd_info *mtd, in shrink_ecclayout() 491 static int get_oobinfo(struct mtd_info *mtd, struct nand_oobinfo *to) in get_oobinfo() [all …]
|
| /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 …]
|
| /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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /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()
|
| /kernel/linux/linux-6.6/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 | 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()
|
| D | map_ram.c | 37 struct mtd_info *mtd; in map_ram_probe() local 87 static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len, in mapram_point() 101 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mapram_unpoint() 106 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read() 115 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write() 124 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) in mapram_erase() 138 static void mapram_nop(struct mtd_info *mtd) in mapram_nop()
|
| /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-6.6/include/linux/mtd/ |
| D | mtd.h | 403 static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd) in mtd_get_master() 411 static inline u64 mtd_get_master_ofs(struct mtd_info *mtd, u64 ofs) in mtd_get_master_ofs() 421 static inline bool mtd_is_partition(const struct mtd_info *mtd) in mtd_is_partition() 426 static inline bool mtd_has_partitions(const struct mtd_info *mtd) in mtd_has_partitions() 449 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout() 455 static inline void mtd_set_pairing_scheme(struct mtd_info *mtd, in mtd_set_pairing_scheme() 461 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node() 469 static inline struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node() 474 static inline u32 mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops) in mtd_oobavail() 479 static inline int mtd_max_bad_blocks(struct mtd_info *mtd, in mtd_max_bad_blocks() [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()
|
| /kernel/linux/linux-6.6/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()
|
| /kernel/linux/linux-6.6/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/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()
|