Home
last modified time | relevance | path

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

12345

/rk3399_rockchip-uboot/drivers/mtd/
H A Dmtdcore.c184 struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev); in mtd_release() local
194 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
201 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
211 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
250 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
260 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
271 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
281 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
291 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
302 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
[all …]
H A Dmtdpart.c290 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read()
309 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point()
316 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint()
322 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area()
331 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob()
368 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg()
375 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, in part_get_user_prot_info()
382 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg()
389 static int part_get_fact_prot_info(struct mtd_info *mtd, size_t len, in part_get_fact_prot_info()
396 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, in part_write()
[all …]
H A Dcfi_mtd.c24 static int cfi_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in cfi_mtd_erase()
68 static int cfi_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in cfi_mtd_read()
80 static int cfi_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in cfi_mtd_write()
99 static void cfi_mtd_sync(struct mtd_info *mtd) in cfi_mtd_sync()
108 static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_lock()
120 static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_unlock()
132 static int cfi_mtd_set_erasesize(struct mtd_info *mtd, flash_info_t *fi) in cfi_mtd_set_erasesize()
205 struct mtd_info *mtd; in cfi_mtd_init() local
H A Dmtdconcat.c38 struct mtd_info mtd; member
62 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read()
118 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write()
161 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev()
237 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob()
294 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) in concat_write_oob()
347 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) in concat_dev_erase()
381 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase()
504 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_lock()
538 static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_unlock()
[all …]
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dnand_base.c106 static int check_offs_len(struct mtd_info *mtd, in check_offs_len()
133 static void nand_release_device(struct mtd_info *mtd) in nand_release_device()
147 uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte()
160 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16()
172 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word()
185 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip()
208 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) in nand_write_byte()
222 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) in nand_write_byte16()
287 void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf()
302 void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf()
[all …]
H A Ddavinci_nand.c55 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_davinci_read_buf()
99 static void nand_davinci_write_buf(struct mtd_info *mtd, const uint8_t *buf, in nand_davinci_write_buf()
144 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, in nand_davinci_hwcontrol()
166 static u_int32_t nand_davinci_readecc(struct mtd_info *mtd) in nand_davinci_readecc()
176 static void nand_davinci_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_enable_hwecc()
189 static int nand_davinci_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_davinci_calculate_ecc()
223 static int nand_davinci_correct_data(struct mtd_info *mtd, u_char *dat, in nand_davinci_correct_data()
363 static int nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_write_page()
422 static int nand_davinci_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_read_page_hwecc()
474 static void nand_davinci_4bit_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_4bit_enable_hwecc()
[all …]
H A Dmxs_nand_spl.c12 static struct mtd_info *mtd; variable
15 static void mxs_nand_command(struct mtd_info *mtd, unsigned int command, in mxs_nand_command()
56 static int mxs_flash_full_ident(struct mtd_info *mtd) in mxs_flash_full_ident()
75 static int mxs_flash_onfi_ident(struct mtd_info *mtd) in mxs_flash_onfi_ident()
137 static int mxs_flash_ident(struct mtd_info *mtd) in mxs_flash_ident()
148 static int mxs_read_page_ecc(struct mtd_info *mtd, void *buf, unsigned int page) in mxs_read_page_ecc()
162 static int is_badblock(struct mtd_info *mtd, loff_t offs, int allowbbt) in is_badblock()
254 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt()
H A Dmxs_nand.c165 struct mtd_info *mtd, in mxs_nand_calc_ecc_layout_by_info()
199 struct mtd_info *mtd) in mxs_nand_calc_ecc_layout()
266 static void mxs_nand_cmd_ctrl(struct mtd_info *mtd, int data, unsigned int ctrl) in mxs_nand_cmd_ctrl()
345 static int mxs_nand_device_ready(struct mtd_info *mtd) in mxs_nand_device_ready()
360 static void mxs_nand_select_chip(struct mtd_info *mtd, int chip) in mxs_nand_select_chip()
407 static void mxs_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int length) in mxs_nand_read_buf()
490 static void mxs_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, in mxs_nand_write_buf()
544 static uint8_t mxs_nand_read_byte(struct mtd_info *mtd) in mxs_nand_read_byte()
554 static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_page()
705 static int mxs_nand_ecc_write_page(struct mtd_info *mtd, in mxs_nand_ecc_write_page()
[all …]
H A Dnand_bbt.c169 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num, in read_bbt()
262 static int read_abs_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td, int chip) in read_abs_bbt()
288 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data()
312 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob()
342 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()
367 static u32 bbt_get_ver_offs(struct mtd_info *mtd, struct nand_bbt_descr *td) in bbt_get_ver_offs()
386 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, in read_abs_bbts()
411 static int scan_block_fast(struct mtd_info *mtd, struct nand_bbt_descr *bd, in scan_block_fast()
452 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, in create_bbt()
[all …]
H A Dvf610_nfc.c198 static inline u32 vf610_nfc_read(struct mtd_info *mtd, uint reg) in vf610_nfc_read()
205 static inline void vf610_nfc_write(struct mtd_info *mtd, uint reg, u32 val) in vf610_nfc_write()
212 static inline void vf610_nfc_set(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_set()
217 static inline void vf610_nfc_clear(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_clear()
222 static inline void vf610_nfc_set_field(struct mtd_info *mtd, u32 reg, in vf610_nfc_set_field()
252 static void vf610_nfc_done(struct mtd_info *mtd) in vf610_nfc_done()
277 static u8 vf610_nfc_get_id(struct mtd_info *mtd, int col) in vf610_nfc_get_id()
292 static u8 vf610_nfc_get_status(struct mtd_info *mtd) in vf610_nfc_get_status()
326 static void vf610_nfc_addr_cycle(struct mtd_info *mtd, int column, int page) in vf610_nfc_addr_cycle()
340 static inline void vf610_nfc_ecc_mode(struct mtd_info *mtd, int ecc_mode) in vf610_nfc_ecc_mode()
[all …]
H A Dfsl_upm.c65 static void fun_select_chip(struct mtd_info *mtd, int chip_nr) in fun_select_chip()
80 static void fun_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in fun_cmd_ctrl()
124 static u8 upm_nand_read_byte(struct mtd_info *mtd) in upm_nand_read_byte()
131 static void upm_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in upm_nand_write_buf()
147 static void upm_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in upm_nand_read_buf()
156 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready()
H A Dnand.c42 int nand_mtd_to_devnum(struct mtd_info *mtd) in nand_mtd_to_devnum()
55 int nand_register(int devnum, struct mtd_info *mtd) in nand_register()
85 struct mtd_info *mtd = nand_to_mtd(nand); in nand_init_chip() local
112 struct mtd_info *mtd = get_nand_dev_by_index(i); in create_mtd_concat() local
119 struct mtd_info *mtd; in create_mtd_concat() local
H A Dnand_util.c52 int nand_erase_opts(struct mtd_info *mtd, in nand_erase_opts()
216 int nand_lock(struct mtd_info *mtd, int tight) in nand_lock()
265 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset) in nand_get_lock_status()
310 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, in nand_unlock()
409 static int check_skip_len(struct mtd_info *mtd, loff_t offset, size_t length, in check_skip_len()
443 static size_t drop_ffs(const struct mtd_info *mtd, const u_char *buf, in drop_ffs()
478 int nand_verify_page_oob(struct mtd_info *mtd, struct mtd_oob_ops *ops, in nand_verify_page_oob()
519 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf) in nand_verify()
572 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_write_skip_bad()
706 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_read_skip_bad()
[all …]
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/
H A Dhyf.c33 static int hyf1gq4upacae_ooblayout_ecc(struct mtd_info *mtd, int section, in hyf1gq4upacae_ooblayout_ecc()
45 static int hyf1gq4upacae_ooblayout_free(struct mtd_info *mtd, int section, in hyf1gq4upacae_ooblayout_free()
62 static int hyf1gq4udacae_ooblayout_ecc(struct mtd_info *mtd, int section, in hyf1gq4udacae_ooblayout_ecc()
74 static int hyf1gq4udacae_ooblayout_free(struct mtd_info *mtd, int section, in hyf1gq4udacae_ooblayout_free()
91 static int hyf2gq4uaacae_ooblayout_ecc(struct mtd_info *mtd, int section, in hyf2gq4uaacae_ooblayout_ecc()
103 static int hyf2gq4uaacae_ooblayout_free(struct mtd_info *mtd, int section, in hyf2gq4uaacae_ooblayout_free()
H A Detron.c30 static int em73c044vcf_oh_ooblayout_ecc(struct mtd_info *mtd, int section, in em73c044vcf_oh_ooblayout_ecc()
42 static int em73c044vcf_oh_ooblayout_free(struct mtd_info *mtd, int section, in em73c044vcf_oh_ooblayout_free()
81 static int em73e044vce_ooblayout_ecc(struct mtd_info *mtd, int section, in em73e044vce_ooblayout_ecc()
93 static int em73e044vce_ooblayout_free(struct mtd_info *mtd, int section, in em73e044vce_ooblayout_free()
110 static int em73e044vce_oh_ooblayout_ecc(struct mtd_info *mtd, int section, in em73e044vce_oh_ooblayout_ecc()
122 static int em73e044vce_oh_ooblayout_free(struct mtd_info *mtd, int section, in em73e044vce_oh_ooblayout_free()
H A Dxtx.c31 static int xt26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g0xa_ooblayout_ecc()
43 static int xt26g0xa_ooblayout_free(struct mtd_info *mtd, int section, in xt26g0xa_ooblayout_free()
60 static int xt26g01b_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g01b_ooblayout_ecc()
66 static int xt26g01b_ooblayout_free(struct mtd_info *mtd, int section, in xt26g01b_ooblayout_free()
83 static int xt26g02b_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g02b_ooblayout_ecc()
95 static int xt26g02b_ooblayout_free(struct mtd_info *mtd, int section, in xt26g02b_ooblayout_free()
112 static int xt26g01c_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g01c_ooblayout_ecc()
124 static int xt26g01c_ooblayout_free(struct mtd_info *mtd, int section, in xt26g01c_ooblayout_free()
H A Dfmsh.c33 static int fm25s01a_ooblayout_ecc(struct mtd_info *mtd, int section, in fm25s01a_ooblayout_ecc()
39 static int fm25s01a_ooblayout_free(struct mtd_info *mtd, int section, in fm25s01a_ooblayout_free()
56 static int fm25s01_ooblayout_ecc(struct mtd_info *mtd, int section, in fm25s01_ooblayout_ecc()
68 static int fm25s01_ooblayout_free(struct mtd_info *mtd, int section, in fm25s01_ooblayout_free()
110 static int fm25g0xd_ooblayout_ecc(struct mtd_info *mtd, int section, in fm25g0xd_ooblayout_ecc()
122 static int fm25g0xd_ooblayout_free(struct mtd_info *mtd, int section, in fm25g0xd_ooblayout_free()
H A Dwinbond.c46 static int w25m02gv_ooblayout_ecc(struct mtd_info *mtd, int section, in w25m02gv_ooblayout_ecc()
58 static int w25m02gv_ooblayout_free(struct mtd_info *mtd, int section, in w25m02gv_ooblayout_free()
89 static int w25n02kv_ooblayout_ecc(struct mtd_info *mtd, int section, in w25n02kv_ooblayout_ecc()
101 static int w25n02kv_ooblayout_free(struct mtd_info *mtd, int section, in w25n02kv_ooblayout_free()
141 static int w25n04lw_ooblayout_ecc(struct mtd_info *mtd, int section, in w25n04lw_ooblayout_ecc()
153 static int w25n04lw_ooblayout_free(struct mtd_info *mtd, int section, in w25n04lw_ooblayout_free()
H A Dgsto.c33 static int gss0xgsak1_ooblayout_ecc(struct mtd_info *mtd, int section, in gss0xgsak1_ooblayout_ecc()
45 static int gss0xgsak1_ooblayout_free(struct mtd_info *mtd, int section, in gss0xgsak1_ooblayout_free()
62 static int gss0xgsax1_ooblayout_ecc(struct mtd_info *mtd, int section, in gss0xgsax1_ooblayout_ecc()
74 static int gss0xgsax1_ooblayout_free(struct mtd_info *mtd, int section, in gss0xgsax1_ooblayout_free()
H A Dgigadevice.c70 static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_ecc()
82 static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_free()
128 static int gd5fxgqx_variant2_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_ecc()
140 static int gd5fxgqx_variant2_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_free()
159 static int gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_ecc()
171 static int gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_free()
188 static int gd5fxgqx_variant3_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgqx_variant3_ooblayout_ecc()
194 static int gd5fxgqx_variant3_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgqx_variant3_ooblayout_free()
H A Dunim.c34 static int tx25g01_ooblayout_ecc(struct mtd_info *mtd, int section, in tx25g01_ooblayout_ecc()
46 static int tx25g01_ooblayout_free(struct mtd_info *mtd, int section, in tx25g01_ooblayout_free()
64 static int um19a0xisw_ooblayout_ecc(struct mtd_info *mtd, int section, in um19a0xisw_ooblayout_ecc()
70 static int um19a0xisw_ooblayout_free(struct mtd_info *mtd, int section, in um19a0xisw_ooblayout_free()
87 static int um19a1xisw_ooblayout_ecc(struct mtd_info *mtd, int section, in um19a1xisw_ooblayout_ecc()
99 static int um19a1xisw_ooblayout_free(struct mtd_info *mtd, int section, in um19a1xisw_ooblayout_free()
H A Desmt.c33 static int f50lxx41x_ooblayout_ecc(struct mtd_info *mtd, int section, in f50lxx41x_ooblayout_ecc()
45 static int f50lxx41x_ooblayout_free(struct mtd_info *mtd, int section, in f50lxx41x_ooblayout_free()
62 static int f50l2g41ka_ooblayout_ecc(struct mtd_info *mtd, int section, in f50l2g41ka_ooblayout_ecc()
74 static int f50l2g41ka_ooblayout_free(struct mtd_info *mtd, int section, in f50l2g41ka_ooblayout_free()
/rk3399_rockchip-uboot/drivers/mtd/onenand/
H A Donenand_base.c293 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region()
325 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, in onenand_command()
468 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait()
515 static inline int onenand_bufferram_offset(struct mtd_info *mtd, int area) in onenand_bufferram_offset()
539 static int onenand_read_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_read_bufferram()
564 static int onenand_sync_read_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_sync_read_bufferram()
593 static int onenand_write_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_write_bufferram()
616 static int onenand_get_2x_blockpage(struct mtd_info *mtd, loff_t addr) in onenand_get_2x_blockpage()
640 static int onenand_check_bufferram(struct mtd_info *mtd, loff_t addr) in onenand_check_bufferram()
682 static int onenand_update_bufferram(struct mtd_info *mtd, loff_t addr, in onenand_update_bufferram()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dmtd.c20 static uint mtd_len_to_pages(struct mtd_info *mtd, u64 len) in mtd_len_to_pages()
27 static bool mtd_is_aligned_with_min_io_size(struct mtd_info *mtd, u64 size) in mtd_is_aligned_with_min_io_size()
32 static bool mtd_is_aligned_with_block_size(struct mtd_info *mtd, u64 size) in mtd_is_aligned_with_block_size()
54 static void mtd_dump_device_buf(struct mtd_info *mtd, u64 start_off, in mtd_dump_device_buf()
87 static void mtd_show_parts(struct mtd_info *mtd, int level) in mtd_show_parts()
102 static void mtd_show_device(struct mtd_info *mtd) in mtd_show_device()
184 struct mtd_info *mtd; in do_mtd_list() local
206 static int mtd_special_write_oob(struct mtd_info *mtd, u64 off, in mtd_special_write_oob()
228 struct mtd_info *mtd; in do_mtd() local
/rk3399_rockchip-uboot/board/socrates/
H A Dnand.c37 static void sc_nand_write_byte(struct mtd_info *mtd, u_char byte) in sc_nand_write_byte()
48 static void sc_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in sc_nand_write_buf()
64 static u_char sc_nand_read_byte(struct mtd_info *mtd) in sc_nand_read_byte()
75 static u16 sc_nand_read_word(struct mtd_info *mtd) in sc_nand_read_word()
88 static void sc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in sc_nand_read_buf()

12345