| /u-boot/drivers/mtd/ |
| A D | mtdcore.c | 193 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() 808 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local 888 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device() [all …]
|
| A D | mtdpart.c | 292 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read() 324 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area() 333 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob() 398 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, in part_write() 412 static int part_write_oob(struct mtd_info *mtd, loff_t to, in part_write_oob() 474 static void part_sync(struct mtd_info *mtd) in part_sync() 480 static int part_suspend(struct mtd_info *mtd) in part_suspend() 485 static void part_resume(struct mtd_info *mtd) in part_resume() 497 static int part_block_isbad(struct mtd_info *mtd, loff_t ofs) in part_block_isbad() 503 static int part_block_markbad(struct mtd_info *mtd, loff_t ofs) in part_block_markbad() [all …]
|
| A D | mtdconcat.c | 40 struct mtd_info mtd; member 64 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read() 120 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write() 163 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev() 563 static void concat_sync(struct mtd_info *mtd) in concat_sync() 575 static int concat_suspend(struct mtd_info *mtd) in concat_suspend() 588 static void concat_resume(struct mtd_info *mtd) in concat_resume() 600 static int concat_block_isbad(struct mtd_info *mtd, loff_t ofs) in concat_block_isbad() 623 static int concat_block_markbad(struct mtd_info *mtd, loff_t ofs) in concat_block_markbad() 649 static unsigned long concat_get_unmapped_area(struct mtd_info *mtd, in concat_get_unmapped_area() [all …]
|
| A D | cfi_mtd.c | 24 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() 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
|
| /u-boot/drivers/mtd/nand/raw/ |
| A D | nand_base.c | 149 uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte() 568 void nand_wait_ready(struct mtd_info *mtd) in nand_wait_ready() 961 struct mtd_info *mtd = nand_to_mtd(chip); in nand_reset_data_interface() local 1021 struct mtd_info *mtd = nand_to_mtd(chip); in nand_setup_data_interface() local 1056 struct mtd_info *mtd = nand_to_mtd(chip); in nand_init_data_interface() local 1120 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_page_op() local 1151 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_param_page_op() local 4154 struct mtd_info *mtd = &chip->mtd; in nand_decode_ext_id() local 4221 struct mtd_info *mtd = &chip->mtd; in nand_decode_id() local 4301 struct mtd_info *mtd = &chip->mtd; in nand_detect() local [all …]
|
| A D | mxs_nand.c | 127 struct mtd_info *mtd, in mxs_nand_bbm_in_data_chunk() 156 struct mtd_info *mtd, in mxs_nand_calc_ecc_layout_by_info() 200 struct mtd_info *mtd) in mxs_nand_legacy_calc_ecc_layout() 258 struct mtd_info *mtd) in mxs_nand_calc_ecc_for_large_oob() 433 static int mxs_nand_device_ready(struct mtd_info *mtd) in mxs_nand_device_ready() 1169 void mxs_nand_dump_geo(struct mtd_info *mtd) in mxs_nand_dump_geo() 1203 int mxs_nand_setup_ecc(struct mtd_info *mtd) in mxs_nand_setup_ecc() 1595 struct mtd_info *mtd; in mxs_nand_init_ctrl() local 1751 void mxs_nand_mode_fcb_62bit(struct mtd_info *mtd) in mxs_nand_mode_fcb_62bit() 1787 void mxs_nand_mode_fcb_40bit(struct mtd_info *mtd) in mxs_nand_mode_fcb_40bit() [all …]
|
| A D | davinci_nand.c | 57 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_davinci_read_buf() 101 static void nand_davinci_write_buf(struct mtd_info *mtd, const uint8_t *buf, in nand_davinci_write_buf() 146 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, in nand_davinci_hwcontrol() 168 static u_int32_t nand_davinci_readecc(struct mtd_info *mtd) in nand_davinci_readecc() 178 static void nand_davinci_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_enable_hwecc() 191 static int nand_davinci_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_davinci_calculate_ecc() 225 static int nand_davinci_correct_data(struct mtd_info *mtd, u_char *dat, in nand_davinci_correct_data() 476 static void nand_davinci_4bit_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_4bit_enable_hwecc() 514 static int nand_davinci_4bit_calculate_ecc(struct mtd_info *mtd, in nand_davinci_4bit_calculate_ecc() 731 static int nand_davinci_dev_ready(struct mtd_info *mtd) in nand_davinci_dev_ready() [all …]
|
| A D | mt7621_nand_spl.c | 19 static void nand_command_lp(struct mtd_info *mtd, unsigned int command, in nand_command_lp() 74 static int nfc_read_page_hwecc(struct mtd_info *mtd, void *buf, in nfc_read_page_hwecc() 89 static int nfc_read_oob_hwecc(struct mtd_info *mtd, void *buf, u32 len, in nfc_read_oob_hwecc() 109 static int nfc_check_bad_block(struct mtd_info *mtd, unsigned int page) in nfc_check_bad_block() 143 struct mtd_info *mtd = &chip->mtd; in nand_spl_load_image() local 189 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt() 212 struct mtd_info *mtd; in nand_init() local
|
| A D | mxs_nand_spl.c | 18 static struct mtd_info *mtd; variable 21 static void mxs_nand_command(struct mtd_info *mtd, unsigned int command, in mxs_nand_command() 80 static int mxs_flash_full_ident(struct mtd_info *mtd) in mxs_flash_full_ident() 99 static int mxs_flash_onfi_ident(struct mtd_info *mtd) in mxs_flash_onfi_ident() 161 static int mxs_flash_ident(struct mtd_info *mtd) in mxs_flash_ident() 172 static int mxs_read_page_ecc(struct mtd_info *mtd, void *buf, unsigned int page) in mxs_read_page_ecc() 186 static int is_badblock(struct mtd_info *mtd, loff_t offs, int allowbbt) in is_badblock() 293 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt()
|
| A D | nand_bbt.c | 345 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read() 355 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt() 389 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, in read_abs_bbts() 455 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, in create_bbt() 596 static void search_read_bbts(struct mtd_info *mtd, uint8_t *buf, in search_read_bbts() 618 static int write_bbt(struct mtd_info *mtd, uint8_t *buf, in write_bbt() 1149 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs) in nand_update_bbt() 1283 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt() 1319 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs) in nand_isreserved_bbt() 1335 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in nand_isbad_bbt() [all …]
|
| A D | nand.c | 40 int nand_mtd_to_devnum(struct mtd_info *mtd) in nand_mtd_to_devnum() 53 int nand_register(int devnum, struct mtd_info *mtd) in nand_register() 83 struct mtd_info *mtd = nand_to_mtd(nand); in nand_init_chip() local 110 struct mtd_info *mtd = get_nand_dev_by_index(i); in create_mtd_concat() local 117 struct mtd_info *mtd; in create_mtd_concat() local
|
| A D | denali.c | 236 static uint8_t denali_read_byte(struct mtd_info *mtd) in denali_read_byte() 245 static void denali_write_byte(struct mtd_info *mtd, uint8_t byte) in denali_write_byte() 250 static uint16_t denali_read_word(struct mtd_info *mtd) in denali_read_word() 281 static int denali_dev_ready(struct mtd_info *mtd) in denali_dev_ready() 288 static int denali_check_erased_page(struct mtd_info *mtd, in denali_check_erased_page() 326 static int denali_hw_ecc_fixup(struct mtd_info *mtd, in denali_hw_ecc_fixup() 361 static int denali_sw_ecc_fixup(struct mtd_info *mtd, in denali_sw_ecc_fixup() 888 static void denali_select_chip(struct mtd_info *mtd, int chip) in denali_select_chip() 906 static int denali_erase(struct mtd_info *mtd, int page) in denali_erase() 1175 struct mtd_info *mtd = nand_to_mtd(chip); in denali_multidev_fixup() local [all …]
|
| A D | vf610_nfc.c | 200 static inline u32 vf610_nfc_read(struct mtd_info *mtd, uint reg) in vf610_nfc_read() 224 static inline void vf610_nfc_set_field(struct mtd_info *mtd, u32 reg, in vf610_nfc_set_field() 254 static void vf610_nfc_done(struct mtd_info *mtd) in vf610_nfc_done() 279 static u8 vf610_nfc_get_id(struct mtd_info *mtd, int col) in vf610_nfc_get_id() 294 static u8 vf610_nfc_get_status(struct mtd_info *mtd) in vf610_nfc_get_status() 355 static void vf610_nfc_command(struct mtd_info *mtd, unsigned command, in vf610_nfc_command() 479 static uint8_t vf610_nfc_read_byte(struct mtd_info *mtd) in vf610_nfc_read_byte() 507 static u16 vf610_nfc_read_word(struct mtd_info *mtd) in vf610_nfc_read_word() 516 static int vf610_nfc_dev_ready(struct mtd_info *mtd) in vf610_nfc_dev_ready() 525 static void vf610_nfc_select_chip(struct mtd_info *mtd, int chip) in vf610_nfc_select_chip() [all …]
|
| A D | nand_util.c | 55 int nand_erase_opts(struct mtd_info *mtd, in nand_erase_opts() 220 int nand_lock(struct mtd_info *mtd, int tight) in nand_lock() 269 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset) in nand_get_lock_status() 314 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, in nand_unlock() 413 static int check_skip_len(struct mtd_info *mtd, loff_t offset, size_t length, in check_skip_len() 447 static size_t drop_ffs(const struct mtd_info *mtd, const u_char *buf, in drop_ffs() 482 int nand_verify_page_oob(struct mtd_info *mtd, struct mtd_oob_ops *ops, in nand_verify_page_oob() 523 int nand_verify(struct mtd_info *mtd, loff_t ofs, size_t len, u_char *buf) in nand_verify() 574 int nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_write_skip_bad() 708 int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, in nand_read_skip_bad() [all …]
|
| A D | kmeter1_nand.c | 50 static void kpn_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in kpn_nand_hwcontrol() 75 static u_char kpn_nand_read_byte(struct mtd_info *mtd) in kpn_nand_read_byte() 80 static void kpn_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in kpn_nand_write_buf() 90 static void kpn_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in kpn_nand_read_buf() 98 static int kpn_nand_dev_ready(struct mtd_info *mtd) in kpn_nand_dev_ready()
|
| A D | cortina_nand.c | 90 static uint8_t read_byte(struct mtd_info *mtd) in read_byte() 119 static void read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in read_buf() 149 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready() 164 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip() 509 static int set_bus_width_page_size(struct mtd_info *mtd) in set_bus_width_page_size() 958 static int nand_read_page_hwecc(struct mtd_info *mtd, in nand_read_page_hwecc() 986 static int nand_write_page_hwecc(struct mtd_info *mtd, in nand_write_page_hwecc() 1015 static int nand_read_page_raw(struct mtd_info *mtd, in nand_read_page_raw() 1043 static int nand_write_page_raw(struct mtd_info *mtd, in nand_write_page_raw() 1214 struct mtd_info *mtd = nand_to_mtd(nand); in nand_config_flash_type() local [all …]
|
| A D | omap_gpmc.c | 72 static void omap_nand_hwcontrol(struct mtd_info *mtd, int32_t cmd, in omap_nand_hwcontrol() 100 static int omap_dev_ready(struct mtd_info *mtd) in omap_dev_ready() 192 static void omap_enable_hwecc(struct mtd_info *mtd, int32_t mode) in omap_enable_hwecc() 583 static int omap_calculate_ecc_bch_multi(struct mtd_info *mtd, in omap_calculate_ecc_bch_multi() 631 static int omap_correct_data_bch(struct mtd_info *mtd, uint8_t *dat, in omap_correct_data_bch() 856 static void __maybe_unused omap_free_bch(struct mtd_info *mtd) in omap_free_bch() 1060 struct mtd_info *mtd = get_nand_dev_by_index(nand_curr_device); in omap_nand_switch_ecc() local 1215 struct mtd_info *mtd = nand_to_mtd(nand); in gpmc_nand_probe() local 1284 struct mtd_info *mtd = nand_to_mtd(nand_chip); in nand_deselect() local 1292 struct mtd_info *mtd = nand_to_mtd(nand_chip); in nand_is_bad_block() local [all …]
|
| A D | lpc32xx_nand_slc.c | 140 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, in lpc32xx_nand_cmd_ctrl() 159 static int lpc32xx_nand_dev_ready(struct mtd_info *mtd) in lpc32xx_nand_dev_ready() 286 static void lpc32xx_nand_xfer(struct mtd_info *mtd, const u8 *buf, in lpc32xx_nand_xfer() 351 static int lpc32xx_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, in lpc32xx_ecc_calculate() 361 static void lpc32xx_hwecc_enable(struct mtd_info *mtd, int mode) in lpc32xx_hwecc_enable() 379 int lpc32xx_correct_data(struct mtd_info *mtd, u_char *dat, in lpc32xx_correct_data() 408 static void lpc32xx_dma_write_buf(struct mtd_info *mtd, const uint8_t *buf, in lpc32xx_dma_write_buf() 453 static int lpc32xx_write_page_hwecc(struct mtd_info *mtd, in lpc32xx_write_page_hwecc() 482 static void lpc32xx_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in lpc32xx_read_buf() 495 static uint8_t lpc32xx_read_byte(struct mtd_info *mtd) in lpc32xx_read_byte() [all …]
|
| A D | fsl_ifc_nand.c | 244 static int check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, in check_read_ecc() 253 static int fsl_ifc_run_command(struct mtd_info *mtd) in fsl_ifc_run_command() 329 struct mtd_info *mtd) in fsl_ifc_do_read() 365 static void fsl_ifc_cmdfunc(struct mtd_info *mtd, unsigned int command, in fsl_ifc_cmdfunc() 600 static u8 fsl_ifc_read_byte(struct mtd_info *mtd) in fsl_ifc_read_byte() 624 static uint8_t fsl_ifc_read_byte16(struct mtd_info *mtd) in fsl_ifc_read_byte16() 648 static void fsl_ifc_read_buf(struct mtd_info *mtd, u8 *buf, int len) in fsl_ifc_read_buf() 671 static int fsl_ifc_wait(struct mtd_info *mtd, struct nand_chip *chip) in fsl_ifc_wait() 709 check_erased_page(struct nand_chip *chip, u8 *buf, struct mtd_info *mtd) in check_erased_page() 798 static void fsl_ifc_select_chip(struct mtd_info *mtd, int chip) in fsl_ifc_select_chip() [all …]
|
| /u-boot/cmd/ |
| A D | mtd.c | 24 struct mtd_info *mtd; in get_mtd_by_name() local 36 static uint mtd_len_to_pages(struct mtd_info *mtd, u64 len) in mtd_len_to_pages() 70 static void mtd_dump_device_buf(struct mtd_info *mtd, u64 start_off, in mtd_dump_device_buf() 103 static void mtd_show_parts(struct mtd_info *mtd, int level) in mtd_show_parts() 118 static void mtd_show_device(struct mtd_info *mtd) in mtd_show_device() 208 struct mtd_info *mtd; in do_mtd_list() local 230 static int mtd_special_write_oob(struct mtd_info *mtd, u64 off, in mtd_special_write_oob() 258 struct mtd_info *mtd; in do_mtd_io() local 397 struct mtd_info *mtd; in do_mtd_erase() local 480 struct mtd_info *mtd; in do_mtd_bad() local [all …]
|
| /u-boot/drivers/mtd/onenand/ |
| A D | onenand_base.c | 296 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region() 471 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait() 1131 int onenand_read_oob(struct mtd_info *mtd, loff_t from, in onenand_read_oob() 1679 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() 2680 int onenand_scan(struct mtd_info *mtd, int maxchips) in onenand_scan() [all …]
|
| A D | samsung.c | 57 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() 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() 518 int s5pc110_chip_probe(struct mtd_info *mtd) in s5pc110_chip_probe() 523 int s5pc210_chip_probe(struct mtd_info *mtd) in s5pc210_chip_probe() [all …]
|
| /u-boot/drivers/fastboot/ |
| A D | fb_nand.c | 19 struct mtd_info *mtd; member 34 struct mtd_info **mtd, in fb_nand_lookup() 68 static int _fb_nand_erase(struct mtd_info *mtd, struct part_info *part) in _fb_nand_erase() 91 static int _fb_nand_write(struct mtd_info *mtd, struct part_info *part, in _fb_nand_write() 159 struct mtd_info *mtd = NULL; in fastboot_nand_get_part_info() local 176 struct mtd_info *mtd = NULL; in fastboot_nand_flash_write() local 240 struct mtd_info *mtd = NULL; in fastboot_nand_erase() local
|
| /u-boot/board/socrates/ |
| A D | nand.c | 37 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()
|
| /u-boot/include/linux/mtd/ |
| A D | mtd.h | 47 struct mtd_info *mtd; member 348 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node() 389 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout() 435 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync() 449 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend() 454 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume() 491 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob() 501 static inline int mtd_can_have_bb(const struct mtd_info *mtd) in mtd_can_have_bb() 562 static inline int add_mtd_partitions(struct mtd_info *mtd, in add_mtd_partitions() 569 static inline int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions() [all …]
|