Home
last modified time | relevance | path

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

1234

/external/u-boot/drivers/mtd/
Dmtdcore.c169 struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev); in mtd_release() local
179 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
186 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
196 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
235 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
245 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
256 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
266 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
276 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
287 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
[all …]
Dmtdpart.c42 struct mtd_info mtd; member
84 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read()
104 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point()
113 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint()
121 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area()
133 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob()
171 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg()
179 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, in part_get_user_prot_info()
187 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg()
195 static int part_get_fact_prot_info(struct mtd_info *mtd, size_t len, in part_get_fact_prot_info()
[all …]
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
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()
236 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob()
293 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) in concat_write_oob()
346 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) in concat_dev_erase()
380 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase()
503 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_lock()
537 static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_unlock()
[all …]
/external/u-boot/drivers/mtd/nand/
Dnand_base.c104 static int check_offs_len(struct mtd_info *mtd, in check_offs_len()
131 static void nand_release_device(struct mtd_info *mtd) in nand_release_device()
145 uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte()
158 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16()
170 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word()
183 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip()
206 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) in nand_write_byte()
220 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) in nand_write_byte16()
285 void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf()
300 void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf()
[all …]
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()
252 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt()
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()
362 static int nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_write_page()
421 static int nand_davinci_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_read_page_hwecc()
473 static void nand_davinci_4bit_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_4bit_enable_hwecc()
[all …]
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()
265 static void mxs_nand_cmd_ctrl(struct mtd_info *mtd, int data, unsigned int ctrl) in mxs_nand_cmd_ctrl()
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()
406 static void mxs_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int length) in mxs_nand_read_buf()
489 static void mxs_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, in mxs_nand_write_buf()
543 static uint8_t mxs_nand_read_byte(struct mtd_info *mtd) in mxs_nand_read_byte()
553 static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_page()
704 static int mxs_nand_ecc_write_page(struct mtd_info *mtd, in mxs_nand_ecc_write_page()
[all …]
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 …]
Dfsl_upm.c64 static void fun_select_chip(struct mtd_info *mtd, int chip_nr) in fun_select_chip()
79 static void fun_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in fun_cmd_ctrl()
123 static u8 upm_nand_read_byte(struct mtd_info *mtd) in upm_nand_read_byte()
130 static void upm_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in upm_nand_write_buf()
146 static void upm_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in upm_nand_read_buf()
155 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready()
Dnand.c39 int nand_mtd_to_devnum(struct mtd_info *mtd) in nand_mtd_to_devnum()
52 int nand_register(int devnum, struct mtd_info *mtd) in nand_register()
82 struct mtd_info *mtd = nand_to_mtd(nand); in nand_init_chip() local
109 struct mtd_info *mtd = get_nand_dev_by_index(i); in create_mtd_concat() local
116 struct mtd_info *mtd; in create_mtd_concat() local
Dvf610_nfc.c192 static inline u32 vf610_nfc_read(struct mtd_info *mtd, uint reg) in vf610_nfc_read()
199 static inline void vf610_nfc_write(struct mtd_info *mtd, uint reg, u32 val) in vf610_nfc_write()
206 static inline void vf610_nfc_set(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_set()
211 static inline void vf610_nfc_clear(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_clear()
216 static inline void vf610_nfc_set_field(struct mtd_info *mtd, u32 reg, in vf610_nfc_set_field()
246 static void vf610_nfc_done(struct mtd_info *mtd) in vf610_nfc_done()
271 static u8 vf610_nfc_get_id(struct mtd_info *mtd, int col) in vf610_nfc_get_id()
286 static u8 vf610_nfc_get_status(struct mtd_info *mtd) in vf610_nfc_get_status()
320 static void vf610_nfc_addr_cycle(struct mtd_info *mtd, int column, int page) in vf610_nfc_addr_cycle()
334 static inline void vf610_nfc_ecc_mode(struct mtd_info *mtd, int ecc_mode) in vf610_nfc_ecc_mode()
[all …]
Dnand_util.c51 int nand_erase_opts(struct mtd_info *mtd, in nand_erase_opts()
215 int nand_lock(struct mtd_info *mtd, int tight) in nand_lock()
264 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset) in nand_get_lock_status()
309 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, in nand_unlock()
408 static int check_skip_len(struct mtd_info *mtd, loff_t offset, size_t length, in check_skip_len()
442 static size_t drop_ffs(const struct mtd_info *mtd, const u_char *buf, in drop_ffs()
477 int nand_verify_page_oob(struct mtd_info *mtd, struct mtd_oob_ops *ops, in nand_verify_page_oob()
518 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf) in nand_verify()
571 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_write_skip_bad()
705 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_read_skip_bad()
[all …]
Dkmeter1_nand.c48 static void kpn_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in kpn_nand_hwcontrol()
73 static u_char kpn_nand_read_byte(struct mtd_info *mtd) in kpn_nand_read_byte()
78 static void kpn_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in kpn_nand_write_buf()
88 static void kpn_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in kpn_nand_read_buf()
96 static int kpn_nand_dev_ready(struct mtd_info *mtd) in kpn_nand_dev_ready()
Dfsmc_nand.c165 static void fsmc_nand_hwcontrol(struct mtd_info *mtd, int cmd, uint ctrl) in fsmc_nand_hwcontrol()
193 static int fsmc_bch8_correct_data(struct mtd_info *mtd, u_char *dat, in fsmc_bch8_correct_data()
260 static int fsmc_read_hwecc(struct mtd_info *mtd, in fsmc_read_hwecc()
312 void fsmc_enable_hwecc(struct mtd_info *mtd, int mode) in fsmc_enable_hwecc()
336 static int fsmc_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in fsmc_read_page_hwecc()
402 struct mtd_info *mtd; in fsmc_nand_switch_ecc() local
444 struct mtd_info *mtd; in fsmc_nand_init() local
Dlpc32xx_nand_slc.c144 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, in lpc32xx_nand_cmd_ctrl()
163 static int lpc32xx_nand_dev_ready(struct mtd_info *mtd) in lpc32xx_nand_dev_ready()
290 static void lpc32xx_nand_xfer(struct mtd_info *mtd, const u8 *buf, in lpc32xx_nand_xfer()
356 static int lpc32xx_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, in lpc32xx_ecc_calculate()
366 static void lpc32xx_hwecc_enable(struct mtd_info *mtd, int mode) in lpc32xx_hwecc_enable()
384 int lpc32xx_correct_data(struct mtd_info *mtd, u_char *dat, in lpc32xx_correct_data()
410 static void lpc32xx_dma_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in lpc32xx_dma_read_buf()
415 static void lpc32xx_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in lpc32xx_read_buf()
422 static uint8_t lpc32xx_read_byte(struct mtd_info *mtd) in lpc32xx_read_byte()
428 static void lpc32xx_dma_write_buf(struct mtd_info *mtd, const uint8_t *buf, in lpc32xx_dma_write_buf()
[all …]
Ddenali.c76 static inline struct denali_nand_info *mtd_to_denali(struct mtd_info *mtd) in mtd_to_denali()
216 static void denali_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in denali_read_buf()
226 static void denali_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in denali_write_buf()
236 static void denali_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) in denali_read_buf16()
247 static void denali_write_buf16(struct mtd_info *mtd, const uint8_t *buf, in denali_write_buf16()
259 static uint8_t denali_read_byte(struct mtd_info *mtd) in denali_read_byte()
268 static void denali_write_byte(struct mtd_info *mtd, uint8_t byte) in denali_write_byte()
273 static uint16_t denali_read_word(struct mtd_info *mtd) in denali_read_word()
282 static void denali_cmd_ctrl(struct mtd_info *mtd, int dat, unsigned int ctrl) in denali_cmd_ctrl()
304 static int denali_dev_ready(struct mtd_info *mtd) in denali_dev_ready()
[all …]
Dfsl_ifc_nand.c221 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr()
245 static int is_blank(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, in is_blank()
271 static int check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, in check_read_ecc()
280 static int fsl_ifc_run_command(struct mtd_info *mtd) in fsl_ifc_run_command()
358 struct mtd_info *mtd) in fsl_ifc_do_read()
394 static void fsl_ifc_cmdfunc(struct mtd_info *mtd, unsigned int command, in fsl_ifc_cmdfunc()
598 static void fsl_ifc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) in fsl_ifc_write_buf()
626 static u8 fsl_ifc_read_byte(struct mtd_info *mtd) in fsl_ifc_read_byte()
650 static uint8_t fsl_ifc_read_byte16(struct mtd_info *mtd) in fsl_ifc_read_byte16()
674 static void fsl_ifc_read_buf(struct mtd_info *mtd, u8 *buf, int len) in fsl_ifc_read_buf()
[all …]
/external/u-boot/drivers/mtd/onenand/
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 …]
Dsamsung.c57 struct mtd_info *mtd; member
209 static int s3c_onenand_wait(struct mtd_info *mtd, int state) in s3c_onenand_wait()
270 static int s3c_onenand_command(struct mtd_info *mtd, int cmd, in s3c_onenand_command()
374 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) in s3c_get_bufferram()
393 static int onenand_read_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_read_bufferram()
404 static int onenand_write_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_write_bufferram()
415 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait()
447 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status()
464 static void s3c_onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, in s3c_onenand_do_lock_cmd()
486 static void s3c_onenand_unlock_all(struct mtd_info *mtd) in s3c_onenand_unlock_all()
[all …]
/external/u-boot/drivers/fastboot/
Dfb_nand.c18 struct mtd_info *mtd; member
33 struct mtd_info **mtd, in fb_nand_lookup()
67 static int _fb_nand_erase(struct mtd_info *mtd, struct part_info *part) in _fb_nand_erase()
90 static int _fb_nand_write(struct mtd_info *mtd, struct part_info *part, in _fb_nand_write()
158 struct mtd_info *mtd = NULL; in fastboot_nand_get_part_info() local
175 struct mtd_info *mtd = NULL; in fastboot_nand_flash_write() local
239 struct mtd_info *mtd = NULL; in fastboot_nand_erase() local
/external/u-boot/board/socrates/
Dnand.c36 static void sc_nand_write_byte(struct mtd_info *mtd, u_char byte) in sc_nand_write_byte()
47 static void sc_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in sc_nand_write_buf()
63 static u_char sc_nand_read_byte(struct mtd_info *mtd) in sc_nand_read_byte()
74 static u16 sc_nand_read_word(struct mtd_info *mtd) in sc_nand_read_word()
87 static void sc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in sc_nand_read_buf()
/external/u-boot/drivers/mtd/spi/
Dsf_mtd.c15 static int spi_flash_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in spi_flash_mtd_erase()
35 static int spi_flash_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in spi_flash_mtd_read()
48 static int spi_flash_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in spi_flash_mtd_write()
61 static void spi_flash_mtd_sync(struct mtd_info *mtd) in spi_flash_mtd_sync()
/external/u-boot/include/linux/mtd/
Dnand_bch.h46 nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_bch_calculate_ecc()
53 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_bch_correct_data()
59 static inline struct nand_bch_control *nand_bch_init(struct mtd_info *mtd) in nand_bch_init()
/external/u-boot/cmd/
Dnand.c41 static int nand_dump(struct mtd_info *mtd, ulong off, int only_oob, in nand_dump()
118 struct mtd_info *mtd = get_nand_dev_by_index(dev); in set_dev() local
155 static void do_nand_status(struct mtd_info *mtd) in do_nand_status()
191 struct mtd_info *mtd = get_nand_dev_by_index(0); in do_nand_env_oob() local
287 struct mtd_info *mtd; in nand_print_and_set_info() local
313 static int raw_access(struct mtd_info *mtd, ulong addr, loff_t off, in raw_access()
357 struct mtd_info *mtd = get_nand_dev_by_index(dev); in adjust_size_for_badblocks() local
380 struct mtd_info *mtd; in do_nand() local
843 static int nand_load_image(cmd_tbl_t *cmdtp, struct mtd_info *mtd, in nand_load_image()
937 struct mtd_info *mtd; in do_nandboot() local

1234