Lines Matching defs:nand

124 	struct nand_chip nand;  member
258 static struct meson_nfc_nand_chip *to_meson_nand(struct nand_chip *nand) in to_meson_nand()
263 static void meson_nfc_select_chip(struct nand_chip *nand, int chip) in meson_nfc_select_chip()
306 static int meson_nfc_is_boot_page(struct nand_chip *nand, int page) in meson_nfc_is_boot_page()
315 static void meson_nfc_cmd_access(struct nand_chip *nand, int raw, bool dir, int page) in meson_nfc_cmd_access()
393 static u8 *meson_nfc_oob_ptr(struct nand_chip *nand, int i) in meson_nfc_oob_ptr()
403 static u8 *meson_nfc_data_ptr(struct nand_chip *nand, int i) in meson_nfc_data_ptr()
414 static void meson_nfc_get_data_oob(struct nand_chip *nand, in meson_nfc_get_data_oob()
433 static void meson_nfc_set_data_oob(struct nand_chip *nand, in meson_nfc_set_data_oob()
452 static int meson_nfc_wait_no_rb_pin(struct nand_chip *nand, int timeout_ms, in meson_nfc_wait_no_rb_pin()
511 static int meson_nfc_queue_rb(struct nand_chip *nand, int timeout_ms, in meson_nfc_queue_rb()
534 static void meson_nfc_set_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_set_user_byte()
547 static void meson_nfc_get_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_get_user_byte()
560 static int meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips, in meson_nfc_ecc_correct()
589 static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf, in meson_nfc_dma_buffer_setup()
629 static void meson_nfc_dma_buffer_release(struct nand_chip *nand, in meson_nfc_dma_buffer_release()
642 static int meson_nfc_read_buf(struct nand_chip *nand, u8 *buf, int len) in meson_nfc_read_buf()
671 static int meson_nfc_write_buf(struct nand_chip *nand, u8 *buf, int len) in meson_nfc_write_buf()
692 static int meson_nfc_rw_cmd_prepare_and_execute(struct nand_chip *nand, in meson_nfc_rw_cmd_prepare_and_execute()
745 static int meson_nfc_write_page_sub(struct nand_chip *nand, in meson_nfc_write_page_sub()
783 static int meson_nfc_write_page_raw(struct nand_chip *nand, const u8 *buf, in meson_nfc_write_page_raw()
793 static int meson_nfc_write_page_hwecc(struct nand_chip *nand, in meson_nfc_write_page_hwecc()
808 struct nand_chip *nand, int raw) in meson_nfc_check_ecc_pages_valid()
827 static int meson_nfc_read_page_sub(struct nand_chip *nand, in meson_nfc_read_page_sub()
861 static int meson_nfc_read_page_raw(struct nand_chip *nand, u8 *buf, in meson_nfc_read_page_raw()
876 static int meson_nfc_read_page_hwecc(struct nand_chip *nand, u8 *buf, in meson_nfc_read_page_hwecc()
930 static int meson_nfc_read_oob_raw(struct nand_chip *nand, int page) in meson_nfc_read_oob_raw()
935 static int meson_nfc_read_oob(struct nand_chip *nand, int page) in meson_nfc_read_oob()
1027 static int meson_nfc_exec_op(struct nand_chip *nand, in meson_nfc_exec_op()
1099 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_ecc() local
1113 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_free() local
1214 static void meson_nfc_free_buffer(struct nand_chip *nand) in meson_nfc_free_buffer()
1222 static int meson_chip_buffer_init(struct nand_chip *nand) in meson_chip_buffer_init()
1247 int meson_nfc_setup_interface(struct nand_chip *nand, int csline, in meson_nfc_setup_interface()
1289 static int meson_nand_bch_mode(struct nand_chip *nand) in meson_nand_bch_mode()
1308 static void meson_nand_detach_chip(struct nand_chip *nand) in meson_nand_detach_chip()
1313 static int meson_nand_attach_chip(struct nand_chip *nand) in meson_nand_attach_chip()
1389 struct nand_chip *nand; in meson_nfc_nand_chip_init() local