Home
last modified time | relevance | path

Searched defs:mtd (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/openbmc/linux/drivers/mtd/
H A Dmtdcore.c45 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
416 struct mtd_info *mtd; in mtd_reboot_notifier() local
535 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() local
924 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read() local
938 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read() local
1150 struct mtd_info *mtd; in register_mtd_user() local
1176 struct mtd_info *mtd; in unregister_mtd_user() local
1274 struct mtd_info *mtd = NULL; in of_get_mtd_device_by_node() local
1306 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
[all …]
H A Dmtdpstore.c16 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 Dmtdconcat.c30 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 Dmtdchar.c35 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 …]
/openbmc/u-boot/drivers/mtd/
H A Dmtdcore.c193 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
200 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
210 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
410 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
524 int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
663 struct mtd_info *mtd; in register_mtd_user() local
689 struct mtd_info *mtd; in unregister_mtd_user() local
751 int __get_mtd_device(struct mtd_info *mtd) in __get_mtd_device()
782 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
853 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device()
[all …]
H A Dmtdpart.c289 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read()
321 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area()
330 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob()
395 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, in part_write()
409 static int part_write_oob(struct mtd_info *mtd, loff_t to, in part_write_oob()
482 static void part_sync(struct mtd_info *mtd) in part_sync()
488 static int part_suspend(struct mtd_info *mtd) in part_suspend()
493 static void part_resume(struct mtd_info *mtd) in part_resume()
505 static int part_block_isbad(struct mtd_info *mtd, loff_t ofs) in part_block_isbad()
511 static int part_block_markbad(struct mtd_info *mtd, loff_t ofs) in part_block_markbad()
[all …]
H A Dmtdconcat.c37 struct mtd_info mtd; member
61 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read()
117 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write()
160 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev()
571 static void concat_sync(struct mtd_info *mtd) in concat_sync()
583 static int concat_suspend(struct mtd_info *mtd) in concat_suspend()
596 static void concat_resume(struct mtd_info *mtd) in concat_resume()
608 static int concat_block_isbad(struct mtd_info *mtd, loff_t ofs) in concat_block_isbad()
631 static int concat_block_markbad(struct mtd_info *mtd, loff_t ofs) in concat_block_markbad()
657 static unsigned long concat_get_unmapped_area(struct mtd_info *mtd, in concat_get_unmapped_area()
[all …]
H A Dcfi_mtd.c23 static int cfi_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in cfi_mtd_erase()
67 static int cfi_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in cfi_mtd_read()
79 static int cfi_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in cfi_mtd_write()
98 static void cfi_mtd_sync(struct mtd_info *mtd) in cfi_mtd_sync()
107 static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_lock()
119 static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_unlock()
131 static int cfi_mtd_set_erasesize(struct mtd_info *mtd, flash_info_t *fi) in cfi_mtd_set_erasesize()
204 struct mtd_info *mtd; in cfi_mtd_init() local
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_base.c106 static int check_offs_len(struct mtd_info *mtd, in check_offs_len()
147 uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte()
172 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word()
548 void nand_wait_ready(struct mtd_info *mtd) in nand_wait_ready()
813 struct mtd_info *mtd, int new_state) in panic_nand_get_device()
915 struct mtd_info *mtd = nand_to_mtd(chip); in nand_reset_data_interface() local
959 struct mtd_info *mtd = nand_to_mtd(chip); in nand_setup_data_interface() local
1002 struct mtd_info *mtd = nand_to_mtd(chip); in nand_init_data_interface() local
1059 struct mtd_info *mtd = nand_to_mtd(chip); in nand_reset() local
4043 struct mtd_info *mtd = nand_to_mtd(chip); in nand_check_ecc_caps() local
[all …]
H A Ddavinci_nand.c54 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_davinci_read_buf()
98 static void nand_davinci_write_buf(struct mtd_info *mtd, const uint8_t *buf, in nand_davinci_write_buf()
143 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, in nand_davinci_hwcontrol()
165 static u_int32_t nand_davinci_readecc(struct mtd_info *mtd) in nand_davinci_readecc()
175 static void nand_davinci_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_enable_hwecc()
188 static int nand_davinci_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_davinci_calculate_ecc()
222 static int nand_davinci_correct_data(struct mtd_info *mtd, u_char *dat, in nand_davinci_correct_data()
473 static void nand_davinci_4bit_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_4bit_enable_hwecc()
511 static int nand_davinci_4bit_calculate_ecc(struct mtd_info *mtd, in nand_davinci_4bit_calculate_ecc()
557 static int nand_davinci_4bit_correct_data(struct mtd_info *mtd, uint8_t *dat, in nand_davinci_4bit_correct_data()
[all …]
H A Dmxs_nand_spl.c11 static struct mtd_info *mtd; variable
14 static void mxs_nand_command(struct mtd_info *mtd, unsigned int command, in mxs_nand_command()
55 static int mxs_flash_full_ident(struct mtd_info *mtd) in mxs_flash_full_ident()
74 static int mxs_flash_onfi_ident(struct mtd_info *mtd) in mxs_flash_onfi_ident()
136 static int mxs_flash_ident(struct mtd_info *mtd) in mxs_flash_ident()
147 static int mxs_read_page_ecc(struct mtd_info *mtd, void *buf, unsigned int page) in mxs_read_page_ecc()
161 static int is_badblock(struct mtd_info *mtd, loff_t offs, int allowbbt) in is_badblock()
253 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt()
H A Dnand_bbt.c342 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read()
352 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt()
386 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, in read_abs_bbts()
452 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, in create_bbt()
593 static void search_read_bbts(struct mtd_info *mtd, uint8_t *buf, in search_read_bbts()
615 static int write_bbt(struct mtd_info *mtd, uint8_t *buf, in write_bbt()
1146 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs) in nand_update_bbt()
1280 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt()
1316 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs) in nand_isreserved_bbt()
1331 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in nand_isbad_bbt()
[all …]
H A Dmxs_nand.c164 struct mtd_info *mtd, in mxs_nand_calc_ecc_layout_by_info()
198 struct mtd_info *mtd) in mxs_nand_calc_ecc_layout()
344 static int mxs_nand_device_ready(struct mtd_info *mtd) in mxs_nand_device_ready()
359 static void mxs_nand_select_chip(struct mtd_info *mtd, int chip) in mxs_nand_select_chip()
543 static uint8_t mxs_nand_read_byte(struct mtd_info *mtd) in mxs_nand_read_byte()
704 static int mxs_nand_ecc_write_page(struct mtd_info *mtd, in mxs_nand_ecc_write_page()
772 static int mxs_nand_hook_read_oob(struct mtd_info *mtd, loff_t from, in mxs_nand_hook_read_oob()
797 static int mxs_nand_hook_write_oob(struct mtd_info *mtd, loff_t to, in mxs_nand_hook_write_oob()
961 static int mxs_nand_block_bad(struct mtd_info *mtd, loff_t ofs) in mxs_nand_block_bad()
997 int mxs_nand_setup_ecc(struct mtd_info *mtd) in mxs_nand_setup_ecc()
[all …]
H A Dvf610_nfc.c197 static inline u32 vf610_nfc_read(struct mtd_info *mtd, uint reg) in vf610_nfc_read()
221 static inline void vf610_nfc_set_field(struct mtd_info *mtd, u32 reg, in vf610_nfc_set_field()
251 static void vf610_nfc_done(struct mtd_info *mtd) in vf610_nfc_done()
276 static u8 vf610_nfc_get_id(struct mtd_info *mtd, int col) in vf610_nfc_get_id()
291 static u8 vf610_nfc_get_status(struct mtd_info *mtd) in vf610_nfc_get_status()
352 static void vf610_nfc_command(struct mtd_info *mtd, unsigned command, in vf610_nfc_command()
476 static uint8_t vf610_nfc_read_byte(struct mtd_info *mtd) in vf610_nfc_read_byte()
504 static u16 vf610_nfc_read_word(struct mtd_info *mtd) in vf610_nfc_read_word()
513 static int vf610_nfc_dev_ready(struct mtd_info *mtd) in vf610_nfc_dev_ready()
522 static void vf610_nfc_select_chip(struct mtd_info *mtd, int chip) in vf610_nfc_select_chip()
[all …]
/openbmc/linux/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()
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 …]
/openbmc/u-boot/drivers/mtd/onenand/
H A Donenand_base.c293 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region()
468 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait()
1128 int onenand_read_oob(struct mtd_info *mtd, loff_t from, in onenand_read_oob()
1676 int onenand_write_oob(struct mtd_info *mtd, loff_t to, in onenand_write_oob()
1852 void onenand_sync(struct mtd_info *mtd) in onenand_sync()
2096 static void onenand_unlock_all(struct mtd_info *mtd) in onenand_unlock_all()
2310 static void flexonenand_get_size(struct mtd_info *mtd) in flexonenand_get_size()
2528 static int onenand_chip_probe(struct mtd_info *mtd) in onenand_chip_probe()
2580 int onenand_probe(struct mtd_info *mtd) in onenand_probe()
2679 int onenand_scan(struct mtd_info *mtd, int maxchips) in onenand_scan()
[all …]
/openbmc/u-boot/cmd/
H A Dmtd.c22 struct mtd_info *mtd; in get_mtd_by_name() local
34 static uint mtd_len_to_pages(struct mtd_info *mtd, u64 len) in mtd_len_to_pages()
68 static void mtd_dump_device_buf(struct mtd_info *mtd, u64 start_off, in mtd_dump_device_buf()
101 static void mtd_show_parts(struct mtd_info *mtd, int level) in mtd_show_parts()
116 static void mtd_show_device(struct mtd_info *mtd) in mtd_show_device()
199 struct mtd_info *mtd; in do_mtd_list() local
221 static int mtd_special_write_oob(struct mtd_info *mtd, u64 off, in mtd_special_write_oob()
248 struct mtd_info *mtd; in do_mtd_io() local
387 struct mtd_info *mtd; in do_mtd_erase() local
458 struct mtd_info *mtd; in do_mtd_bad() local
[all …]
/openbmc/linux/drivers/mtd/nand/raw/
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() 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 Dmpc5121_nfc.c122 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 …]
/openbmc/linux/drivers/mtd/chips/
H A Dmap_absent.c47 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 Dmap_rom.c46 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 Dmap_ram.c37 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()
/openbmc/linux/include/linux/mtd/
H A Dmtd.h449 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 …]
/openbmc/linux/drivers/mtd/devices/
H A Dmtdram.c37 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()
/openbmc/linux/drivers/mtd/tests/
H A Dmtd_test.c10 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()

12345678910>>...12