/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() 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 …]
|
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() 485 static void part_sync(struct mtd_info *mtd) in part_sync() 491 static int part_suspend(struct mtd_info *mtd) in part_suspend() 496 static void part_resume(struct mtd_info *mtd) in part_resume() 508 static int part_block_isbad(struct mtd_info *mtd, loff_t ofs) in part_block_isbad() 514 static int part_block_markbad(struct mtd_info *mtd, loff_t ofs) in part_block_markbad() [all …]
|
A D | cfi_mtd.c | 24 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() 81 static int cfi_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in cfi_mtd_write() 100 static void cfi_mtd_sync(struct mtd_info *mtd) in cfi_mtd_sync() 109 static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_lock() 121 static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_unlock() 133 static int cfi_mtd_set_erasesize(struct mtd_info *mtd, flash_info_t *fi) in cfi_mtd_set_erasesize() 206 struct mtd_info *mtd; in cfi_mtd_init() local
|
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() 574 static void concat_sync(struct mtd_info *mtd) in concat_sync() 586 static int concat_suspend(struct mtd_info *mtd) in concat_suspend() 599 static void concat_resume(struct mtd_info *mtd) in concat_resume() 611 static int concat_block_isbad(struct mtd_info *mtd, loff_t ofs) in concat_block_isbad() 634 static int concat_block_markbad(struct mtd_info *mtd, loff_t ofs) in concat_block_markbad() 660 static unsigned long concat_get_unmapped_area(struct mtd_info *mtd, in concat_get_unmapped_area() [all …]
|
/u-boot/drivers/mtd/nand/raw/ |
A D | nand_base.c | 152 uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte() 558 void nand_wait_ready(struct mtd_info *mtd) in nand_wait_ready() 951 struct mtd_info *mtd = nand_to_mtd(chip); in nand_reset_data_interface() local 995 struct mtd_info *mtd = nand_to_mtd(chip); in nand_setup_data_interface() local 1038 struct mtd_info *mtd = nand_to_mtd(chip); in nand_init_data_interface() local 1102 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_page_op() local 1133 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_param_page_op() local 1164 struct mtd_info *mtd = nand_to_mtd(chip); in nand_change_read_column_op() local 1196 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_oob_op() local 1229 struct mtd_info *mtd = nand_to_mtd(chip); in nand_prog_page_begin_op() local [all …]
|
A D | mxs_nand.c | 120 struct mtd_info *mtd, in mxs_nand_bbm_in_data_chunk() 149 struct mtd_info *mtd, in mxs_nand_calc_ecc_layout_by_info() 193 struct mtd_info *mtd) in mxs_nand_legacy_calc_ecc_layout() 239 struct mtd_info *mtd) in mxs_nand_calc_ecc_for_large_oob() 414 static int mxs_nand_device_ready(struct mtd_info *mtd) in mxs_nand_device_ready() 613 static uint8_t mxs_nand_read_byte(struct mtd_info *mtd) in mxs_nand_read_byte() 1145 int mxs_nand_setup_ecc(struct mtd_info *mtd) in mxs_nand_setup_ecc() 1358 struct mtd_info *mtd; in mxs_nand_init_ctrl() local 1495 void mxs_nand_mode_fcb_62bit(struct mtd_info *mtd) in mxs_nand_mode_fcb_62bit() 1531 void mxs_nand_mode_fcb_40bit(struct mtd_info *mtd) in mxs_nand_mode_fcb_40bit() [all …]
|
A D | mxs_nand_spl.c | 17 static struct mtd_info *mtd; variable 20 static void mxs_nand_command(struct mtd_info *mtd, unsigned int command, in mxs_nand_command() 67 static int mxs_flash_full_ident(struct mtd_info *mtd) in mxs_flash_full_ident() 86 static int mxs_flash_onfi_ident(struct mtd_info *mtd) in mxs_flash_onfi_ident() 148 static int mxs_flash_ident(struct mtd_info *mtd) in mxs_flash_ident() 159 static int mxs_read_page_ecc(struct mtd_info *mtd, void *buf, unsigned int page) in mxs_read_page_ecc() 173 static int is_badblock(struct mtd_info *mtd, loff_t offs, int allowbbt) in is_badblock() 285 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt()
|
A D | davinci_nand.c | 56 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_davinci_read_buf() 100 static void nand_davinci_write_buf(struct mtd_info *mtd, const uint8_t *buf, in nand_davinci_write_buf() 145 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, in nand_davinci_hwcontrol() 167 static u_int32_t nand_davinci_readecc(struct mtd_info *mtd) in nand_davinci_readecc() 177 static void nand_davinci_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_enable_hwecc() 190 static int nand_davinci_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_davinci_calculate_ecc() 224 static int nand_davinci_correct_data(struct mtd_info *mtd, u_char *dat, in nand_davinci_correct_data() 475 static void nand_davinci_4bit_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_4bit_enable_hwecc() 513 static int nand_davinci_4bit_calculate_ecc(struct mtd_info *mtd, in nand_davinci_4bit_calculate_ecc() 730 static int nand_davinci_dev_ready(struct mtd_info *mtd) in nand_davinci_dev_ready() [all …]
|
A D | fsl_upm.c | 66 static void fun_select_chip(struct mtd_info *mtd, int chip_nr) in fun_select_chip() 81 static void fun_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) in fun_cmd_ctrl() 125 static u8 upm_nand_read_byte(struct mtd_info *mtd) in upm_nand_read_byte() 132 static void upm_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in upm_nand_write_buf() 148 static void upm_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in upm_nand_read_buf() 157 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready()
|
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() 1334 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in nand_isbad_bbt() [all …]
|
A D | nand.c | 39 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
|
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 | kmeter1_nand.c | 49 static void kpn_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in kpn_nand_hwcontrol() 74 static u_char kpn_nand_read_byte(struct mtd_info *mtd) in kpn_nand_read_byte() 79 static void kpn_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in kpn_nand_write_buf() 89 static void kpn_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in kpn_nand_read_buf() 97 static int kpn_nand_dev_ready(struct mtd_info *mtd) in kpn_nand_dev_ready()
|
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 | 54 int nand_erase_opts(struct mtd_info *mtd, in nand_erase_opts() 218 int nand_lock(struct mtd_info *mtd, int tight) in nand_lock() 267 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset) in nand_get_lock_status() 312 int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length, in nand_unlock() 411 static int check_skip_len(struct mtd_info *mtd, loff_t offset, size_t length, in check_skip_len() 445 static size_t drop_ffs(const struct mtd_info *mtd, const u_char *buf, in drop_ffs() 480 int nand_verify_page_oob(struct mtd_info *mtd, struct mtd_oob_ops *ops, in nand_verify_page_oob() 521 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 | cortina_nand.c | 89 static uint8_t read_byte(struct mtd_info *mtd) in read_byte() 118 static void read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in read_buf() 148 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready() 163 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip() 508 static int set_bus_width_page_size(struct mtd_info *mtd) in set_bus_width_page_size() 957 static int nand_read_page_hwecc(struct mtd_info *mtd, in nand_read_page_hwecc() 985 static int nand_write_page_hwecc(struct mtd_info *mtd, in nand_write_page_hwecc() 1014 static int nand_read_page_raw(struct mtd_info *mtd, in nand_read_page_raw() 1042 static int nand_write_page_raw(struct mtd_info *mtd, in nand_write_page_raw() 1213 struct mtd_info *mtd = nand_to_mtd(nand); in nand_config_flash_type() local [all …]
|
A D | fsmc_nand.c | 165 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
|
A D | lpc32xx_nand_slc.c | 139 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, in lpc32xx_nand_cmd_ctrl() 158 static int lpc32xx_nand_dev_ready(struct mtd_info *mtd) in lpc32xx_nand_dev_ready() 285 static void lpc32xx_nand_xfer(struct mtd_info *mtd, const u8 *buf, in lpc32xx_nand_xfer() 350 static int lpc32xx_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, in lpc32xx_ecc_calculate() 360 static void lpc32xx_hwecc_enable(struct mtd_info *mtd, int mode) in lpc32xx_hwecc_enable() 378 int lpc32xx_correct_data(struct mtd_info *mtd, u_char *dat, in lpc32xx_correct_data() 407 static void lpc32xx_dma_write_buf(struct mtd_info *mtd, const uint8_t *buf, in lpc32xx_dma_write_buf() 452 static int lpc32xx_write_page_hwecc(struct mtd_info *mtd, in lpc32xx_write_page_hwecc() 481 static void lpc32xx_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in lpc32xx_read_buf() 494 static uint8_t lpc32xx_read_byte(struct mtd_info *mtd) in lpc32xx_read_byte() [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() 201 struct mtd_info *mtd; in do_mtd_list() local 223 static int mtd_special_write_oob(struct mtd_info *mtd, u64 off, in mtd_special_write_oob() 251 struct mtd_info *mtd; in do_mtd_io() local 390 struct mtd_info *mtd; in do_mtd_erase() local 461 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() 1855 void onenand_sync(struct mtd_info *mtd) in onenand_sync() 2099 static void onenand_unlock_all(struct mtd_info *mtd) in onenand_unlock_all() 2313 static void flexonenand_get_size(struct mtd_info *mtd) in flexonenand_get_size() 2531 static int onenand_chip_probe(struct mtd_info *mtd) in onenand_chip_probe() 2583 int onenand_probe(struct mtd_info *mtd) in onenand_probe() 2683 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 | 20 struct mtd_info *mtd; member 35 struct mtd_info **mtd, in fb_nand_lookup() 69 static int _fb_nand_erase(struct mtd_info *mtd, struct part_info *part) in _fb_nand_erase() 92 static int _fb_nand_write(struct mtd_info *mtd, struct part_info *part, in _fb_nand_write() 160 struct mtd_info *mtd = NULL; in fastboot_nand_get_part_info() local 177 struct mtd_info *mtd = NULL; in fastboot_nand_flash_write() local 241 struct mtd_info *mtd = NULL; in fastboot_nand_erase() local
|
/u-boot/board/socrates/ |
A D | nand.c | 36 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()
|
/u-boot/include/linux/mtd/ |
A D | nand_bch.h | 46 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()
|
A D | mtd.h | 46 struct mtd_info *mtd; member 347 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node() 388 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout() 434 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync() 448 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend() 453 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume() 490 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob() 500 static inline int mtd_can_have_bb(const struct mtd_info *mtd) in mtd_can_have_bb() 571 static inline int add_mtd_partitions(struct mtd_info *mtd, in add_mtd_partitions() 578 static inline int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions() [all …]
|