Lines Matching refs:nand_chip
119 struct nand_chip nand;
251 static struct meson_nfc_nand_chip *to_meson_nand(struct nand_chip *nand) in to_meson_nand()
256 static void meson_nfc_select_chip(struct nand_chip *nand, int chip) in meson_nfc_select_chip()
299 static void meson_nfc_cmd_access(struct nand_chip *nand, int raw, bool dir, in meson_nfc_cmd_access()
365 static u8 *meson_nfc_oob_ptr(struct nand_chip *nand, int i) in meson_nfc_oob_ptr()
375 static u8 *meson_nfc_data_ptr(struct nand_chip *nand, int i) in meson_nfc_data_ptr()
386 static void meson_nfc_get_data_oob(struct nand_chip *nand, in meson_nfc_get_data_oob()
405 static void meson_nfc_set_data_oob(struct nand_chip *nand, in meson_nfc_set_data_oob()
424 static int meson_nfc_wait_no_rb_pin(struct nand_chip *nand, int timeout_ms, in meson_nfc_wait_no_rb_pin()
483 static int meson_nfc_queue_rb(struct nand_chip *nand, int timeout_ms, in meson_nfc_queue_rb()
506 static void meson_nfc_set_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_set_user_byte()
519 static void meson_nfc_get_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_get_user_byte()
532 static int meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips, in meson_nfc_ecc_correct()
561 static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf, in meson_nfc_dma_buffer_setup()
601 static void meson_nfc_dma_buffer_release(struct nand_chip *nand, in meson_nfc_dma_buffer_release()
614 static int meson_nfc_read_buf(struct nand_chip *nand, u8 *buf, int len) in meson_nfc_read_buf()
643 static int meson_nfc_write_buf(struct nand_chip *nand, u8 *buf, int len) in meson_nfc_write_buf()
664 static int meson_nfc_rw_cmd_prepare_and_execute(struct nand_chip *nand, in meson_nfc_rw_cmd_prepare_and_execute()
717 static int meson_nfc_write_page_sub(struct nand_chip *nand, in meson_nfc_write_page_sub()
762 static int meson_nfc_write_page_raw(struct nand_chip *nand, const u8 *buf, in meson_nfc_write_page_raw()
772 static int meson_nfc_write_page_hwecc(struct nand_chip *nand, in meson_nfc_write_page_hwecc()
787 struct nand_chip *nand, int raw) in meson_nfc_check_ecc_pages_valid()
806 static int meson_nfc_read_page_sub(struct nand_chip *nand, in meson_nfc_read_page_sub()
847 static int meson_nfc_read_page_raw(struct nand_chip *nand, u8 *buf, in meson_nfc_read_page_raw()
862 static int meson_nfc_read_page_hwecc(struct nand_chip *nand, u8 *buf, in meson_nfc_read_page_hwecc()
916 static int meson_nfc_read_oob_raw(struct nand_chip *nand, int page) in meson_nfc_read_oob_raw()
921 static int meson_nfc_read_oob(struct nand_chip *nand, int page) in meson_nfc_read_oob()
988 static int meson_nfc_check_op(struct nand_chip *chip, in meson_nfc_check_op()
1013 static int meson_nfc_exec_op(struct nand_chip *nand, in meson_nfc_exec_op()
1085 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_ecc()
1099 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_free()
1197 static void meson_nfc_free_buffer(struct nand_chip *nand) in meson_nfc_free_buffer()
1205 static int meson_chip_buffer_init(struct nand_chip *nand) in meson_chip_buffer_init()
1230 int meson_nfc_setup_interface(struct nand_chip *nand, int csline, in meson_nfc_setup_interface()
1272 static int meson_nand_bch_mode(struct nand_chip *nand) in meson_nand_bch_mode()
1291 static void meson_nand_detach_chip(struct nand_chip *nand) in meson_nand_detach_chip()
1296 static int meson_nand_attach_chip(struct nand_chip *nand) in meson_nand_attach_chip()
1372 struct nand_chip *nand; in meson_nfc_nand_chip_init()