| /OK3568_Linux_fs/u-boot/include/linux/mtd/ |
| H A D | nand.h | 231 static inline struct mtd_info *nanddev_to_mtd(struct nand_device *nand) in nanddev_to_mtd() 242 static inline unsigned int nanddev_bits_per_cell(const struct nand_device *nand) in nanddev_bits_per_cell() 253 static inline size_t nanddev_page_size(const struct nand_device *nand) in nanddev_page_size() 265 nanddev_per_page_oobsize(const struct nand_device *nand) in nanddev_per_page_oobsize() 277 nanddev_pages_per_eraseblock(const struct nand_device *nand) in nanddev_pages_per_eraseblock() 288 static inline size_t nanddev_eraseblock_size(const struct nand_device *nand) in nanddev_eraseblock_size() 300 nanddev_eraseblocks_per_lun(const struct nand_device *nand) in nanddev_eraseblocks_per_lun() 311 static inline u64 nanddev_target_size(const struct nand_device *nand) in nanddev_target_size() 325 static inline unsigned int nanddev_ntargets(const struct nand_device *nand) in nanddev_ntargets() 336 static inline unsigned int nanddev_neraseblocks(const struct nand_device *nand) in nanddev_neraseblocks() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/mtd/ |
| H A D | nand.h | 375 static inline struct mtd_info *nanddev_to_mtd(struct nand_device *nand) in nanddev_to_mtd() 386 static inline unsigned int nanddev_bits_per_cell(const struct nand_device *nand) in nanddev_bits_per_cell() 397 static inline size_t nanddev_page_size(const struct nand_device *nand) in nanddev_page_size() 409 nanddev_per_page_oobsize(const struct nand_device *nand) in nanddev_per_page_oobsize() 421 nanddev_pages_per_eraseblock(const struct nand_device *nand) in nanddev_pages_per_eraseblock() 433 nanddev_pages_per_target(const struct nand_device *nand) in nanddev_pages_per_target() 446 static inline size_t nanddev_eraseblock_size(const struct nand_device *nand) in nanddev_eraseblock_size() 458 nanddev_eraseblocks_per_lun(const struct nand_device *nand) in nanddev_eraseblocks_per_lun() 470 nanddev_eraseblocks_per_target(const struct nand_device *nand) in nanddev_eraseblocks_per_target() 481 static inline u64 nanddev_target_size(const struct nand_device *nand) in nanddev_target_size() [all …]
|
| H A D | bbt_store.h | 16 static inline int nanddev_scan_bbt_in_flash(struct nand_device *nand) in nanddev_scan_bbt_in_flash() 20 static inline int nanddev_bbt_in_flash_update(struct nand_device *nand) in nanddev_bbt_in_flash_update()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/spi/ |
| H A D | core.c | 54 struct nand_device *nand = spinand_to_nand(spinand); in spinand_get_cfg() local 66 struct nand_device *nand = spinand_to_nand(spinand); in spinand_set_cfg() local 120 struct nand_device *nand = spinand_to_nand(spinand); in spinand_select_target() local 144 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_cfg_cache() local 199 struct nand_device *nand = spinand_to_nand(spinand); in spinand_check_ecc_status() local 250 static int spinand_ondie_ecc_init_ctx(struct nand_device *nand) in spinand_ondie_ecc_init_ctx() 274 static void spinand_ondie_ecc_cleanup_ctx(struct nand_device *nand) in spinand_ondie_ecc_cleanup_ctx() 279 static int spinand_ondie_ecc_prepare_io_req(struct nand_device *nand, in spinand_ondie_ecc_prepare_io_req() 289 static int spinand_ondie_ecc_finish_io_req(struct nand_device *nand, in spinand_ondie_ecc_finish_io_req() 327 struct nand_device *nand = spinand_to_nand(spinand); in spinand_load_page_op() local [all …]
|
| H A D | winbond.c | 111 struct nand_device *nand = spinand_to_nand(spinand); in w25n02kv_ecc_get_status() local 216 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init() local
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/ |
| H A D | core.c | 22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad() 61 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad() 102 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved() 126 int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) in nanddev_erase() 155 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_erase() local 191 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_max_bad_blocks() local 221 int nanddev_init(struct nand_device *nand, const struct nand_ops *ops, in nanddev_init() 266 void nanddev_cleanup(struct nand_device *nand) in nanddev_cleanup()
|
| H A D | ecc.c | 105 int nand_ecc_init_ctx(struct nand_device *nand) in nand_ecc_init_ctx() 118 void nand_ecc_cleanup_ctx(struct nand_device *nand) in nand_ecc_cleanup_ctx() 130 int nand_ecc_prepare_io_req(struct nand_device *nand, in nand_ecc_prepare_io_req() 145 int nand_ecc_finish_io_req(struct nand_device *nand, in nand_ecc_finish_io_req() 159 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_sp() local 219 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp() local 234 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp() local 264 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_ecc_lp_hamming() local 291 struct nand_device *nand = mtd_to_nanddev(mtd); in nand_ooblayout_free_lp_hamming() local 421 void of_get_nand_ecc_user_config(struct nand_device *nand) in of_get_nand_ecc_user_config() [all …]
|
| H A D | bbt.c | 23 int nanddev_bbt_init(struct nand_device *nand) in nanddev_bbt_init() 45 void nanddev_bbt_cleanup(struct nand_device *nand) in nanddev_bbt_cleanup() 60 int nanddev_bbt_update(struct nand_device *nand) in nanddev_bbt_update() 74 int nanddev_bbt_get_block_status(const struct nand_device *nand, in nanddev_bbt_get_block_status() 107 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry, in nanddev_bbt_set_block_status()
|
| H A D | bbt_store.c | 23 static int nanddev_read_bbt(struct nand_device *nand, u32 block, bool update) in nanddev_read_bbt() 92 static int nanddev_write_bbt(struct nand_device *nand, u32 block) in nanddev_write_bbt() 155 static int nanddev_bbt_format(struct nand_device *nand) in nanddev_bbt_format() 189 int nanddev_scan_bbt_in_flash(struct nand_device *nand) in nanddev_scan_bbt_in_flash() 223 int nanddev_bbt_in_flash_update(struct nand_device *nand) in nanddev_bbt_in_flash_update()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/ |
| H A D | core.c | 24 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad() 63 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad() 104 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved() 128 int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) in nanddev_erase() 157 struct nand_device *nand = mtd_to_nanddev(mtd); in nanddev_mtd_erase() local 189 int nanddev_init(struct nand_device *nand, const struct nand_ops *ops, in nanddev_init() 234 void nanddev_cleanup(struct nand_device *nand) in nanddev_cleanup()
|
| H A D | bbt.c | 43 static int nanddev_read_bbt(struct nand_device *nand, u32 block, bool update) in nanddev_read_bbt() 113 static int nanddev_write_bbt(struct nand_device *nand, u32 block) in nanddev_write_bbt() 177 static __maybe_unused int nanddev_bbt_format(struct nand_device *nand) in nanddev_bbt_format() 203 static int nanddev_scan_bbt(struct nand_device *nand) in nanddev_scan_bbt() 238 int nanddev_bbt_init(struct nand_device *nand) in nanddev_bbt_init() 260 void nanddev_bbt_cleanup(struct nand_device *nand) in nanddev_bbt_cleanup() 275 int nanddev_bbt_update(struct nand_device *nand) in nanddev_bbt_update() 345 int nanddev_bbt_get_block_status(const struct nand_device *nand, in nanddev_bbt_get_block_status() 384 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry, in nanddev_bbt_set_block_status()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/spi/ |
| H A D | core.c | 37 struct nand_device *nand = spinand_to_nand(spinand); in spinand_cache_op_adjust_colum() local 78 struct nand_device *nand = spinand_to_nand(spinand); in spinand_get_cfg() local 90 struct nand_device *nand = spinand_to_nand(spinand); in spinand_set_cfg() local 144 struct nand_device *nand = spinand_to_nand(spinand); in spinand_select_target() local 168 struct nand_device *nand = spinand_to_nand(spinand); in spinand_init_cfg_cache() local 231 struct nand_device *nand = spinand_to_nand(spinand); in spinand_load_page_op() local 242 struct nand_device *nand = spinand_to_nand(spinand); in spinand_read_from_cache_op() local 315 struct nand_device *nand = spinand_to_nand(spinand); in spinand_write_to_cache_op() local 400 struct nand_device *nand = spinand_to_nand(spinand); in spinand_program_op() local 410 struct nand_device *nand = &spinand->base; in spinand_erase_op() local [all …]
|
| H A D | winbond.c | 112 struct nand_device *nand = spinand_to_nand(spinand); in w25n02kv_ecc_get_status() local 217 struct nand_device *nand = spinand_to_nand(spinand); in winbond_spinand_init() local
|
| /OK3568_Linux_fs/kernel/drivers/rkflash/ |
| H A D | sfc_nand_mtd_bbt.c | 42 static int nanddev_read_bbt(struct snand_mtd_dev *nand, u32 block, bool update) in nanddev_read_bbt() 126 static int nanddev_write_bbt(struct snand_mtd_dev *nand, u32 block) in nanddev_write_bbt() 209 static int nanddev_bbt_format(struct snand_mtd_dev *nand) in nanddev_bbt_format() 233 static int nanddev_scan_bbt(struct snand_mtd_dev *nand) in nanddev_scan_bbt() 267 int snanddev_bbt_init(struct snand_mtd_dev *nand) in snanddev_bbt_init() 289 void snanddev_bbt_cleanup(struct snand_mtd_dev *nand) in snanddev_bbt_cleanup() 304 int snanddev_bbt_update(struct snand_mtd_dev *nand) in snanddev_bbt_update() 374 int snanddev_bbt_get_block_status(const struct snand_mtd_dev *nand, in snanddev_bbt_get_block_status() 413 int snanddev_bbt_set_block_status(struct snand_mtd_dev *nand, in snanddev_bbt_set_block_status()
|
| H A D | sfc_nand_mtd.h | 43 static inline unsigned int snanddev_neraseblocks(const struct snand_mtd_dev *nand) in snanddev_neraseblocks() 50 static inline bool snanddev_bbt_is_initialized(struct snand_mtd_dev *nand) in snanddev_bbt_is_initialized() 55 static inline unsigned int snanddev_bbt_pos_to_entry(struct snand_mtd_dev *nand, in snanddev_bbt_pos_to_entry() 61 static inline struct mtd_info *snanddev_to_mtd(struct snand_mtd_dev *nand) in snanddev_to_mtd()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | meson_nand.c | 109 struct nand_chip nand; member 217 static struct meson_nfc_nand_chip *to_meson_nand(struct nand_chip *nand) in to_meson_nand() 222 static void meson_nfc_select_chip(struct nand_chip *nand, int chip) in meson_nfc_select_chip() 265 static void meson_nfc_cmd_access(struct nand_chip *nand, int raw, bool dir, in meson_nfc_cmd_access() 331 static u8 *meson_nfc_oob_ptr(struct nand_chip *nand, int i) in meson_nfc_oob_ptr() 341 static u8 *meson_nfc_data_ptr(struct nand_chip *nand, int i) in meson_nfc_data_ptr() 352 static void meson_nfc_get_data_oob(struct nand_chip *nand, in meson_nfc_get_data_oob() 371 static void meson_nfc_set_data_oob(struct nand_chip *nand, in meson_nfc_set_data_oob() 418 static void meson_nfc_set_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_set_user_byte() 431 static void meson_nfc_get_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_get_user_byte() [all …]
|
| H A D | sunxi_nand.c | 193 struct nand_chip nand; member 201 static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand) in to_sunxi_nand() 405 static void sunxi_nfc_select_chip(struct nand_chip *nand, unsigned int cs) in sunxi_nfc_select_chip() 436 static void sunxi_nfc_read_buf(struct nand_chip *nand, uint8_t *buf, int len) in sunxi_nfc_read_buf() 473 static void sunxi_nfc_write_buf(struct nand_chip *nand, const uint8_t *buf, in sunxi_nfc_write_buf() 592 static u16 sunxi_nfc_randomizer_state(struct nand_chip *nand, int page, in sunxi_nfc_randomizer_state() 612 static void sunxi_nfc_randomizer_config(struct nand_chip *nand, int page, in sunxi_nfc_randomizer_config() 628 static void sunxi_nfc_randomizer_enable(struct nand_chip *nand) in sunxi_nfc_randomizer_enable() 639 static void sunxi_nfc_randomizer_disable(struct nand_chip *nand) in sunxi_nfc_randomizer_disable() 650 static void sunxi_nfc_randomize_bbm(struct nand_chip *nand, int page, u8 *bbm) in sunxi_nfc_randomize_bbm() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/atmel/ |
| H A D | nand-controller.c | 471 static void atmel_nand_data_in(struct atmel_nand *nand, void *buf, in atmel_nand_data_in() 495 static void atmel_nand_data_out(struct atmel_nand *nand, const void *buf, in atmel_nand_data_out() 519 static int atmel_nand_waitrdy(struct atmel_nand *nand, unsigned int timeout_ms) in atmel_nand_waitrdy() 528 static int atmel_hsmc_nand_waitrdy(struct atmel_nand *nand, in atmel_hsmc_nand_waitrdy() 544 static void atmel_nand_select_target(struct atmel_nand *nand, in atmel_nand_select_target() 550 static void atmel_hsmc_nand_select_target(struct atmel_nand *nand, in atmel_hsmc_nand_select_target() 573 static int atmel_smc_nand_exec_instr(struct atmel_nand *nand, in atmel_smc_nand_exec_instr() 610 static int atmel_smc_nand_exec_op(struct atmel_nand *nand, in atmel_smc_nand_exec_op() 635 struct atmel_nand *nand = to_atmel_nand(chip); in atmel_hsmc_exec_cmd_addr() local 664 struct atmel_nand *nand = to_atmel_nand(chip); in atmel_hsmc_exec_rw() local [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | mxs_nand.c | 268 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_cmd_ctrl() local 362 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_select_chip() local 409 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_read_buf() local 493 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_write_buf() local 554 static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_page() 706 struct nand_chip *nand, const uint8_t *buf, in mxs_nand_ecc_write_page() 882 static int mxs_nand_ecc_read_oob(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_oob() 917 static int mxs_nand_ecc_write_oob(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_write_oob() 970 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_set_geometry() local 1000 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_setup_ecc() local [all …]
|
| H A D | sunxi_nand.c | 238 struct nand_chip nand; member 251 static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand) in to_sunxi_nand() 382 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_dev_ready() local 420 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_select_chip() local 465 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_read_buf() local 498 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_write_buf() local 539 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_cmd_ctrl() local 706 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_config() local 722 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_enable() local 734 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_randomizer_disable() local [all …]
|
| H A D | arasan_nfc.c | 327 struct arasan_nand_info *nand = nand_get_controller_data(chip); in arasan_nand_read_page() local 461 u32 __iomem *nand = &arasan_nand_base->buf_dataport; in arasan_nand_fill_tx() local 509 struct arasan_nand_info *nand = nand_get_controller_data(chip); in arasan_nand_write_page_hwecc() local 1037 struct arasan_nand_info *nand = nand_get_controller_data(chip); in arasan_nand_cmd_function() local 1092 struct arasan_nand_info *nand = nand_get_controller_data(nand_chip); in arasan_check_ondie() local 1190 struct arasan_nand_info *nand; in arasan_nand_init() local 1270 struct nand_chip *nand = &nand_chip[0]; in board_nand_init() local
|
| H A D | davinci_nand.c | 58 const u32 *nand = chip->IO_ADDR_R; in nand_davinci_read_buf() local 103 const u32 *nand = chip->IO_ADDR_W; in nand_davinci_write_buf() local 734 void davinci_nand_init(struct nand_chip *nand) in davinci_nand_init()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ingenic/ |
| H A D | ingenic_nand_drv.c | 143 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_hwctl() local 151 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_calculate() local 172 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_ecc_correct() local 258 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_exec_instr() local 312 struct ingenic_nand *nand = to_ingenic_nand(nand_to_mtd(chip)); in ingenic_nand_exec_op() local 347 struct ingenic_nand *nand; in ingenic_nand_init_chip() local
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | at91-linea.dtsi | 61 nand: nand@3 { label
|
| H A D | bcm47094-dlink-dir-885l.dts | 28 nand: nand@18028000 { label
|