/external/u-boot/drivers/mtd/nand/ |
D | zynq_nand.c | 422 static int zynq_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in zynq_nand_read_oob() 449 static int zynq_nand_write_oob(struct mtd_info *mtd, struct nand_chip *chip, in zynq_nand_write_oob() 482 static int zynq_nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in zynq_nand_read_page_raw() 504 struct nand_chip *chip, u8 *buf, int oob_required, int page) in zynq_nand_read_page_raw_nooob() 511 struct nand_chip *chip, u32 data_offs, in zynq_nand_read_subpage_raw() 531 struct nand_chip *chip, const u8 *buf, int oob_required, int page) in zynq_nand_write_page_raw() 563 struct nand_chip *chip, const u8 *buf, int oob_required, int page) in zynq_nand_write_page_hwecc() 621 struct nand_chip *chip, const u8 *buf, int oob_required, int page) in zynq_nand_write_page_swecc() 654 struct nand_chip *chip, u8 *buf, int oob_required, int page) in zynq_nand_read_page_hwecc() 726 struct nand_chip *chip, u8 *buf, int oob_required, int page) in zynq_nand_read_page_swecc() [all …]
|
D | mxs_nand_spl.c | 12 static struct nand_chip nand_chip; variable 17 register struct nand_chip *chip = mtd_to_nand(mtd); in mxs_nand_command() 58 struct nand_chip *chip = mtd_to_nand(mtd); in mxs_flash_full_ident() 76 register struct nand_chip *chip = mtd_to_nand(mtd); in mxs_flash_onfi_ident() 149 register struct nand_chip *chip = mtd_to_nand(mtd); in mxs_read_page_ecc() 153 ret = nand_chip.ecc.read_page(mtd, chip, buf, 1, page); in mxs_read_page_ecc() 163 register struct nand_chip *chip = mtd_to_nand(mtd); in is_badblock() 180 if (nand_chip.numchips) in mxs_nand_init() 184 mxs_nand_init_spl(&nand_chip); in mxs_nand_init() 185 mtd = nand_to_mtd(&nand_chip); in mxs_nand_init() [all …]
|
D | nand_spl_simple.c | 14 static struct nand_chip nand_chip; variable 28 struct nand_chip *this = mtd_to_nand(mtd); in nand_command() 65 struct nand_chip *this = mtd_to_nand(mtd); in nand_command() 116 struct nand_chip *this = mtd_to_nand(mtd); in nand_is_bad_block() 141 struct nand_chip *this = mtd_to_nand(mtd); in nand_read_page() 172 struct nand_chip *this = mtd_to_nand(mtd); in nand_read_page() 217 mtd = nand_to_mtd(&nand_chip); in nand_init() 218 nand_chip.IO_ADDR_R = nand_chip.IO_ADDR_W = in nand_init() 220 board_nand_init(&nand_chip); in nand_init() 223 if (nand_chip.ecc.mode == NAND_ECC_SOFT) { in nand_init() [all …]
|
D | arasan_nfc.c | 260 static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE]; variable 279 struct nand_chip *chip = mtd_to_nand(mtd); in arasan_nand_get_addrcycle() 313 struct nand_chip *chip = mtd_to_nand(mtd); in arasan_nand_read_page() 434 struct nand_chip *chip, u8 *buf, int oob_required, int page) in arasan_nand_read_page_hwecc() 487 struct nand_chip *chip, const u8 *buf, int oob_required, in arasan_nand_write_page_hwecc() 590 static int arasan_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in arasan_nand_read_oob() 599 static int arasan_nand_write_oob(struct mtd_info *mtd, struct nand_chip *chip, in arasan_nand_write_oob() 1004 struct nand_chip *chip = mtd_to_nand(mtd); in arasan_nand_read_byte() 1036 struct nand_chip *chip = mtd_to_nand(mtd); in arasan_nand_cmd_function() 1091 struct nand_chip *nand_chip = mtd_to_nand(mtd); in arasan_check_ondie() local [all …]
|
D | am335x_spl_bch.c | 19 static struct nand_chip nand_chip; variable 32 struct nand_chip *this = mtd_to_nand(mtd); in nand_command() 130 struct nand_chip *this = mtd_to_nand(mtd); in nand_is_bad_block() 151 struct nand_chip *this = mtd_to_nand(mtd); in nand_read_page() 206 mtd = nand_to_mtd(&nand_chip); in nand_init() 207 nand_chip.IO_ADDR_R = nand_chip.IO_ADDR_W = in nand_init() 209 board_nand_init(&nand_chip); in nand_init() 211 if (nand_chip.select_chip) in nand_init() 212 nand_chip.select_chip(mtd, 0); in nand_init() 221 if (nand_chip.select_chip) in nand_deselect() [all …]
|
D | atmel_nand.c | 162 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_gen_syndrome() local 163 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_gen_syndrome() 179 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_substitute() local 180 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_substitute() 229 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_get_sigma() local 230 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_get_sigma() 385 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_err_location() local 386 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_err_location() 439 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_correct_data() local 440 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_correct_data() [all …]
|
D | mxc_nand.c | 21 struct nand_chip *nand; 352 struct nand_chip *nand_chip = mtd_to_nand(mtd); local 353 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); 384 struct nand_chip *chip, 436 struct nand_chip *chip, 481 struct nand_chip *chip, 548 struct nand_chip *chip, int page) 574 struct nand_chip *chip, 614 struct nand_chip *chip, 661 struct nand_chip *nand_chip = mtd_to_nand(mtd); local [all …]
|
D | fsl_upm.c | 66 struct nand_chip *chip = mtd_to_nand(mtd); in fun_select_chip() 81 struct nand_chip *chip = mtd_to_nand(mtd); in fun_cmd_ctrl() 125 struct nand_chip *chip = mtd_to_nand(mtd); in upm_nand_read_byte() 133 struct nand_chip *chip = mtd_to_nand(mtd); in upm_nand_write_buf() 149 struct nand_chip *chip = mtd_to_nand(mtd); in upm_nand_read_buf() 157 struct nand_chip *chip = mtd_to_nand(mtd); in nand_dev_ready() 163 int fsl_upm_nand_init(struct nand_chip *chip, struct fsl_upm_nand *fun) in fsl_upm_nand_init()
|
D | nand_base.c | 107 struct nand_chip *chip = mtd_to_nand(mtd); in check_offs_len() 133 struct nand_chip *chip = mtd_to_nand(mtd); in nand_release_device() 147 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte() 160 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte16() 172 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_word() 185 struct nand_chip *chip = mtd_to_nand(mtd); in nand_select_chip() 208 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_byte() 222 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_byte16() 287 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_buf() 302 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_buf() [all …]
|
D | mxs_nand.c | 168 struct nand_chip *chip = mtd_to_nand(mtd); in mxs_nand_calc_ecc_layout_by_info() 200 struct nand_chip *chip = mtd_to_nand(mtd); in mxs_nand_calc_ecc_layout() 267 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_cmd_ctrl() 346 struct nand_chip *chip = mtd_to_nand(mtd); in mxs_nand_device_ready() 361 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_select_chip() 408 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_read_buf() 492 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_write_buf() 553 static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_page() 705 struct nand_chip *nand, const uint8_t *buf, in mxs_nand_ecc_write_page() 775 struct nand_chip *chip = mtd_to_nand(mtd); in mxs_nand_hook_read_oob() [all …]
|
D | tegra_nand.c | 104 struct nand_chip nand_chip; member 155 struct nand_chip *chip = mtd_to_nand(mtd); in read_byte() 181 struct nand_chip *chip = mtd_to_nand(mtd); in read_buf() 206 struct nand_chip *chip = mtd_to_nand(mtd); in nand_dev_ready() 257 struct nand_chip *chip = mtd_to_nand(mtd); in nand_command() 505 static int nand_rw_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_rw_page() 656 struct nand_chip *chip, uint8_t *buf, int oob_required, int page) in nand_read_page_hwecc() 669 struct nand_chip *chip, const uint8_t *buf, int oob_required, in nand_write_page_hwecc() 689 struct nand_chip *chip, uint8_t *buf, int oob_required, int page) in nand_read_page_raw() 702 struct nand_chip *chip, const uint8_t *buf, in nand_write_page_raw() [all …]
|
D | nand.c | 22 static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE]; variable 81 struct nand_chip *nand = &nand_chip[i]; in nand_init_chip()
|
D | nand_plat.c | 28 struct nand_chip *this = mtd_to_nand(mtd); in plat_cmd_ctrl() 42 return NAND_PLAT_DEV_READY((struct nand_chip *)mtd_to_nand(mtd)); in plat_dev_ready() 48 int board_nand_init(struct nand_chip *nand) in board_nand_init()
|
D | fsl_elbc_nand.c | 47 struct nand_chip chip; 156 struct nand_chip *chip = mtd_to_nand(mtd); in set_addr() 196 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_run_command() 246 static void fsl_elbc_do_read(struct nand_chip *chip, int oob) in fsl_elbc_do_read() 281 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_cmdfunc() 491 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_write_buf() 528 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_read_byte() 545 struct nand_chip *chip = mtd_to_nand(mtd); in fsl_elbc_read_buf() 566 static int fsl_elbc_wait(struct mtd_info *mtd, struct nand_chip *chip) in fsl_elbc_wait() 597 static int fsl_elbc_read_page(struct mtd_info *mtd, struct nand_chip *chip, in fsl_elbc_read_page() [all …]
|
D | nand_bbt.c | 79 static inline uint8_t bbt_get_entry(struct nand_chip *chip, int block) in bbt_get_entry() 86 static inline void bbt_mark_entry(struct nand_chip *chip, int block, in bbt_mark_entry() 173 struct nand_chip *this = mtd_to_nand(mtd); in read_bbt() 264 struct nand_chip *this = mtd_to_nand(mtd); in read_abs_bbt() 389 struct nand_chip *this = mtd_to_nand(mtd); in read_abs_bbts() 455 struct nand_chip *this = mtd_to_nand(mtd); in create_bbt() 524 struct nand_chip *this = mtd_to_nand(mtd); in search_bbt() 619 struct nand_chip *this = mtd_to_nand(mtd); in write_bbt() 820 struct nand_chip *this = mtd_to_nand(mtd); in nand_memory_bbt() 839 struct nand_chip *this = mtd_to_nand(mtd); in check_create() [all …]
|
D | omap_gpmc.c | 60 register struct nand_chip *this = mtd_to_nand(mtd); in omap_nand_hwcontrol() 87 register struct nand_chip *this = mtd_to_nand(mtd); in omap_dev_ready() 179 struct nand_chip *nand = mtd_to_nand(mtd); in omap_enable_hwecc() 264 struct nand_chip *chip = mtd_to_nand(mtd); in omap_calculate_ecc() 391 static int __read_prefetch_aligned(struct nand_chip *chip, uint32_t *buf, int len) in __read_prefetch_aligned() 420 struct nand_chip *chip = mtd_to_nand(mtd); in omap_nand_read() 432 struct nand_chip *chip = mtd_to_nand(mtd); in omap_nand_read_prefetch() 494 struct nand_chip *chip = mtd_to_nand(mtd); in omap_correct_data_bch() 583 static int omap_read_page_bch(struct mtd_info *mtd, struct nand_chip *chip, in omap_read_page_bch() 655 struct nand_chip *chip = mtd_to_nand(mtd); in omap_correct_data_bch_sw() [all …]
|
D | lpc32xx_nand_mlc.c | 230 struct nand_chip *chip, uint8_t *buf, int oob_required, in lpc32xx_read_page_hwecc() 278 struct nand_chip *chip, uint8_t *buf, int oob_required, in lpc32xx_read_page_raw() 326 static int lpc32xx_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_read_oob() 380 struct nand_chip *chip, const uint8_t *buf, int oob_required, in lpc32xx_write_page_hwecc() 438 struct nand_chip *chip, const uint8_t *buf, int oob_required, in lpc32xx_write_page_raw() 473 static int lpc32xx_write_oob(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_write_oob() 509 static int lpc32xx_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) in lpc32xx_waitfunc() 535 static struct nand_chip lpc32xx_chip;
|
D | sunxi_nand.c | 237 struct nand_chip nand; 250 static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand) in to_sunxi_nand() 381 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_dev_ready() 419 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_select_chip() 464 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_read_buf() 497 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_write_buf() 538 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_cmd_ctrl() 705 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_config() 721 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_enable() 733 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_disable() [all …]
|
/external/u-boot/include/linux/mtd/ |
D | rawnand.h | 25 struct nand_chip; 31 struct nand_chip *chip, 492 struct nand_chip *active; 601 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 603 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip, 605 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip, 607 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 609 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip, 612 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip, 614 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip, [all …]
|
/external/u-boot/board/spear/spear600/ |
D | spear600.c | 18 static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE]; variable 36 struct nand_chip *nand = &nand_chip[0]; in board_nand_init()
|
/external/u-boot/board/spear/spear300/ |
D | spear300.c | 18 static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE]; variable 36 struct nand_chip *nand = &nand_chip[0]; in board_nand_init()
|
/external/u-boot/board/spear/spear320/ |
D | spear320.c | 22 static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE]; variable 47 struct nand_chip *nand = &nand_chip[0]; in board_nand_init()
|
/external/u-boot/board/spear/spear310/ |
D | spear310.c | 19 static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE]; variable 37 struct nand_chip *nand = &nand_chip[0]; in board_nand_init()
|
/external/u-boot/board/spear/x600/ |
D | x600.c | 23 static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE]; variable 65 struct nand_chip *nand = &nand_chip[0]; in board_nand_init()
|
/external/u-boot/board/socrates/ |
D | nand.c | 50 struct nand_chip *this = mtd_to_nand(mtd); in sc_nand_write_buf() 90 struct nand_chip *this = mtd_to_nand(mtd); in sc_nand_read_buf() 107 struct nand_chip *this = mtd_to_nand(mtdinfo); in sc_nand_device_ready() 149 int board_nand_init(struct nand_chip *nand) in board_nand_init()
|