Home
last modified time | relevance | path

Searched refs:mtd_info (Results 1 – 25 of 259) sorted by relevance

1234567891011

/linux-6.15/include/linux/mtd/
H A Dmtd.h23 struct mtd_info;
185 int (*get_wunit)(struct mtd_info *mtd,
238 struct mtd_info { struct
347 void (*_sync) (struct mtd_info *mtd); argument
394 struct mtd_info *parent; argument
403 static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd) in mtd_get_master() argument
654 struct mtd_info *master = mtd_get_master((struct mtd_info *)mtd); in mtd_has_oob()
666 struct mtd_info *master = mtd_get_master((struct mtd_info *)mtd); in mtd_can_have_bb()
684 extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num);
693 void (*add)(struct mtd_info *mtd);
[all …]
H A Donenand.h22 extern int onenand_scan(struct mtd_info *mtd, int max_chips);
24 extern void onenand_release(struct mtd_info *mtd);
105 int (*wait)(struct mtd_info *mtd, int state);
106 int (*bbt_wait)(struct mtd_info *mtd, int state);
107 void (*unlock_all)(struct mtd_info *mtd);
108 int (*read_bufferram)(struct mtd_info *mtd, int area,
110 int (*write_bufferram)(struct mtd_info *mtd, int area,
115 int (*chip_probe)(struct mtd_info *mtd);
117 int (*scan_bbt)(struct mtd_info *mtd);
118 int (*enable)(struct mtd_info *mtd);
[all …]
H A Dpartitions.h62 struct mtd_info;
83 int (*parse_fn)(struct mtd_info *, const struct mtd_partition **,
110 int mtd_add_partition(struct mtd_info *master, const char *name,
112 int mtd_del_partition(struct mtd_info *master, int partno);
113 uint64_t mtd_get_device_size(const struct mtd_info *mtd);
H A Dconcat.h12 struct mtd_info *mtd_concat_create(
13 struct mtd_info *subdev[], /* subdevices to concatenate */
17 void mtd_concat_destroy(struct mtd_info *mtd);
/linux-6.15/drivers/mtd/devices/
H A Dmtdram.c35 static struct mtd_info *mtd_info; variable
117 if (mtd_info) { in cleanup_mtdram()
118 mtd_device_unregister(mtd_info); in cleanup_mtdram()
119 vfree(mtd_info->priv); in cleanup_mtdram()
120 kfree(mtd_info); in cleanup_mtdram()
161 mtd_info = kmalloc(sizeof(struct mtd_info), GFP_KERNEL); in init_mtdram()
162 if (!mtd_info) in init_mtdram()
167 kfree(mtd_info); in init_mtdram()
168 mtd_info = NULL; in init_mtdram()
174 kfree(mtd_info); in init_mtdram()
[all …]
H A Dslram.c61 struct mtd_info *mtdinfo;
76 static int slram_erase(struct mtd_info *, struct erase_info *);
77 static int slram_point(struct mtd_info *, loff_t, size_t, size_t *, void **,
79 static int slram_unpoint(struct mtd_info *, loff_t, size_t);
80 static int slram_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *);
83 static int slram_erase(struct mtd_info *mtd, struct erase_info *instr) in slram_erase()
92 static int slram_point(struct mtd_info *mtd, loff_t from, size_t len, in slram_point()
102 static int slram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in slram_unpoint()
107 static int slram_read(struct mtd_info *mtd, loff_t from, size_t len, in slram_read()
117 static int slram_write(struct mtd_info *mtd, loff_t to, size_t len, in slram_write()
[all …]
H A Dpowernv_flash.c31 struct mtd_info mtd;
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.15/drivers/mtd/chips/
H A Dmap_absent.c30 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
31 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
32 static int map_absent_erase (struct mtd_info *, struct erase_info *);
33 static void map_absent_sync (struct mtd_info *);
34 static struct mtd_info *map_absent_probe(struct map_info *map);
35 static void map_absent_destroy (struct mtd_info *);
45 static struct mtd_info *map_absent_probe(struct map_info *map) in map_absent_probe()
47 struct mtd_info *mtd; in map_absent_probe()
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()
[all …]
H A Dmap_rom.c21 static void maprom_nop (struct mtd_info *);
22 static struct mtd_info *map_rom_probe(struct map_info *map);
23 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info);
24 static int maprom_point (struct mtd_info *mtd, loff_t from, size_t len,
26 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len);
44 static struct mtd_info *map_rom_probe(struct map_info *map) in map_rom_probe()
46 struct mtd_info *mtd; in map_rom_probe()
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()
101 static void maprom_nop(struct mtd_info *mtd) in maprom_nop()
[all …]
H A Dmap_ram.c21 static int mapram_erase (struct mtd_info *, struct erase_info *);
22 static void mapram_nop (struct mtd_info *);
23 static struct mtd_info *map_ram_probe(struct map_info *map);
24 static int mapram_point (struct mtd_info *mtd, loff_t from, size_t len,
26 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len);
35 static struct mtd_info *map_ram_probe(struct map_info *map) in map_ram_probe()
37 struct mtd_info *mtd; in map_ram_probe()
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()
128 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) in mapram_erase()
[all …]
H A Dcfi_cmdset_0001.c68 static void cfi_intelext_sync (struct mtd_info *);
84 static int cfi_intelext_suspend (struct mtd_info *);
85 static void cfi_intelext_resume (struct mtd_info *);
88 static void cfi_intelext_destroy(struct mtd_info *);
92 static struct mtd_info *cfi_intelext_setup (struct mtd_info *);
250 static void fixup_st_m28w320ct(struct mtd_info *mtd) in fixup_st_m28w320ct()
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()
617 static struct mtd_info *cfi_intelext_setup(struct mtd_info *mtd) in cfi_intelext_setup()
[all …]
H A Dcfi_cmdset_0002.c72 static void cfi_amdstd_sync (struct mtd_info *);
73 static int cfi_amdstd_suspend (struct mtd_info *);
74 static void cfi_amdstd_resume (struct mtd_info *);
92 static void cfi_amdstd_destroy(struct mtd_info *);
95 static struct mtd_info *cfi_amdstd_setup (struct mtd_info *);
321 static void fixup_use_secsi(struct mtd_info *mtd) in fixup_use_secsi()
364 static void fixup_sst39vf(struct mtd_info *mtd) in fixup_sst39vf()
442 static void fixup_quirks(struct mtd_info *mtd) in fixup_quirks()
604 struct mtd_info *mtd; in cfi_cmdset_0002()
765 static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) in cfi_amdstd_setup()
[all …]
H A Dgen_probe.c15 static struct mtd_info *check_cmd_set(struct map_info *, int);
21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) in mtd_do_chip_probe()
23 struct mtd_info *mtd; in mtd_do_chip_probe()
192 typedef struct mtd_info *cfi_cmdset_fn_t(struct map_info *, int);
198 static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, in cfi_cmdset_unknown()
219 struct mtd_info *mtd; in cfi_cmdset_unknown()
232 static struct mtd_info *check_cmd_set(struct map_info *map, int primary) in check_cmd_set()
/linux-6.15/drivers/mtd/
H A Dmtdcore.c109 struct mtd_info *mtd = container_of(kref, struct mtd_info, refcnt); in mtd_device_release()
417 struct mtd_info *mtd; in mtd_reboot_notifier()
536 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read()
928 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read()
942 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read()
1160 struct mtd_info *mtd; in register_mtd_user()
1186 struct mtd_info *mtd; in unregister_mtd_user()
1212 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device()
1285 struct mtd_info *tmp; in of_get_mtd_device_by_node()
1492 static void mtd_update_ecc_stats(struct mtd_info *mtd, struct mtd_info *master, in mtd_update_ecc_stats()
[all …]
H A Dmtdcore.h10 struct mtd_info *__mtd_next_device(int i);
11 int __must_check add_mtd_device(struct mtd_info *mtd);
12 int del_mtd_device(struct mtd_info *mtd);
13 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int);
14 int del_mtd_partitions(struct mtd_info *);
15 void release_mtd_partition(struct mtd_info *mtd);
19 int parse_mtd_partitions(struct mtd_info *master, const char * const *types,
H A Dmtdconcat.c30 struct mtd_info mtd;
32 struct mtd_info **subdev;
62 struct mtd_info *subdev = concat->subdev[i]; in concat_read()
113 struct mtd_info *subdev = concat->subdev[i]; in concat_panic_write()
155 struct mtd_info *subdev = concat->subdev[i]; in concat_write()
213 struct mtd_info *subdev = concat->subdev[i]; in concat_writev()
269 struct mtd_info *subdev = concat->subdev[i]; in concat_read_oob()
329 struct mtd_info *subdev = concat->subdev[i]; in concat_write_oob()
366 struct mtd_info *subdev; in concat_erase()
637 struct mtd_info *mtd_concat_create(struct mtd_info *subdev[], /* subdevices to concatenate */ in mtd_concat_create()
[all …]
H A Dmtdpart.c35 void release_mtd_partition(struct mtd_info *mtd) in release_mtd_partition()
41 static struct mtd_info *allocate_partition(struct mtd_info *parent, in allocate_partition()
45 struct mtd_info *master = mtd_get_master(parent); in allocate_partition()
50 struct mtd_info *child; in allocate_partition()
225 struct mtd_info *mtd = dev_get_drvdata(dev); in offset_show()
252 struct mtd_info *child; in mtd_add_partition()
307 struct mtd_info *child, *next; in __mtd_del_partition()
332 struct mtd_info *child, *next; in __del_mtd_partitions()
353 int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions()
521 struct mtd_info *master, in mtd_part_do_parse()
[all …]
H A Dmtdpstore.c16 struct mtd_info *mtd;
30 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_isbad()
52 struct mtd_info *mtd = cxt->mtd; in mtdpstore_panic_block_isbad()
63 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_used()
73 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_unused()
83 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_mark_unused()
110 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_is_used()
128 struct mtd_info *mtd = cxt->mtd; in mtdpstore_is_empty()
142 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_removed()
152 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_clear_removed()
[all …]
/linux-6.15/drivers/mtd/tests/
H A Dmtd_test.h16 int mtdtest_erase_eraseblock(struct mtd_info *mtd, unsigned int ebnum);
17 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt,
19 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt,
22 int mtdtest_read(struct mtd_info *mtd, loff_t addr, size_t size, void *buf);
23 int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size,
H A Dmtd_test.c10 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-6.15/drivers/mtd/nand/raw/
H A Dmpc5121_nfc.c119 static void mpc5121_nfc_done(struct mtd_info *mtd);
122 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()
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()
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()
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()
[all …]
H 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()
163 struct mtd_info *mtd = nand_to_mtd(chip); in sm_attach_chip()
185 int sm_register_device(struct mtd_info *mtd, int smartmedia) in sm_register_device()
/linux-6.15/drivers/mtd/nand/onenand/
H 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()
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()
3656 static int onenand_chip_probe(struct mtd_info *mtd) in onenand_chip_probe()
3701 static int onenand_probe(struct mtd_info *mtd) in onenand_probe()
3796 static int onenand_suspend(struct mtd_info *mtd) in onenand_suspend()
3805 static void onenand_resume(struct mtd_info *mtd) in onenand_resume()
3826 int onenand_scan(struct mtd_info *mtd, int maxchips) in onenand_scan()
[all …]
/linux-6.15/drivers/mtd/nand/spi/
H A Dotp.c178 static int spinand_mtd_otp_info(struct mtd_info *mtd, size_t len, in spinand_mtd_otp_info()
199 static int spinand_mtd_fact_otp_info(struct mtd_info *mtd, size_t len, in spinand_mtd_fact_otp_info()
205 static int spinand_mtd_user_otp_info(struct mtd_info *mtd, size_t len, in spinand_mtd_user_otp_info()
211 static int spinand_mtd_otp_read(struct mtd_info *mtd, loff_t ofs, size_t len, in spinand_mtd_otp_read()
242 static int spinand_mtd_fact_otp_read(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_fact_otp_read()
248 static int spinand_mtd_user_otp_read(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_user_otp_read()
254 static int spinand_mtd_user_otp_write(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_user_otp_write()
277 static int spinand_mtd_user_otp_erase(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_user_otp_erase()
298 static int spinand_mtd_user_otp_lock(struct mtd_info *mtd, loff_t ofs, in spinand_mtd_user_otp_lock()
329 struct mtd_info *mtd = spinand_to_mtd(spinand); in spinand_set_mtd_otp_ops()
/linux-6.15/drivers/mtd/lpddr/
H A Dlpddr_cmds.c19 static int lpddr_read(struct mtd_info *mtd, loff_t adr, size_t len,
21 static int lpddr_write_buffers(struct mtd_info *mtd, loff_t to,
23 static int lpddr_writev(struct mtd_info *mtd, const struct kvec *vecs,
25 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr);
26 static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
27 static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
28 static int lpddr_point(struct mtd_info *mtd, loff_t adr, size_t len,
30 static int lpddr_unpoint(struct mtd_info *mtd, loff_t adr, size_t len);
35 struct mtd_info *lpddr_cmdset(struct map_info *map) in lpddr_cmdset()
40 struct mtd_info *mtd; in lpddr_cmdset()
[all …]

1234567891011