Lines Matching defs:nand

121 	struct nand_chip nand;  member
253 static struct meson_nfc_nand_chip *to_meson_nand(struct nand_chip *nand) in to_meson_nand()
258 static void meson_nfc_select_chip(struct nand_chip *nand, int chip) in meson_nfc_select_chip()
301 static void meson_nfc_cmd_access(struct nand_chip *nand, int raw, bool dir, in meson_nfc_cmd_access()
367 static u8 *meson_nfc_oob_ptr(struct nand_chip *nand, int i) in meson_nfc_oob_ptr()
377 static u8 *meson_nfc_data_ptr(struct nand_chip *nand, int i) in meson_nfc_data_ptr()
388 static void meson_nfc_get_data_oob(struct nand_chip *nand, in meson_nfc_get_data_oob()
407 static void meson_nfc_set_data_oob(struct nand_chip *nand, in meson_nfc_set_data_oob()
426 static int meson_nfc_wait_no_rb_pin(struct nand_chip *nand, int timeout_ms, in meson_nfc_wait_no_rb_pin()
485 static int meson_nfc_queue_rb(struct nand_chip *nand, int timeout_ms, in meson_nfc_queue_rb()
508 static void meson_nfc_set_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_set_user_byte()
521 static void meson_nfc_get_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_get_user_byte()
534 static int meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips, in meson_nfc_ecc_correct()
563 static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf, in meson_nfc_dma_buffer_setup()
603 static void meson_nfc_dma_buffer_release(struct nand_chip *nand, in meson_nfc_dma_buffer_release()
616 static int meson_nfc_read_buf(struct nand_chip *nand, u8 *buf, int len) in meson_nfc_read_buf()
645 static int meson_nfc_write_buf(struct nand_chip *nand, u8 *buf, int len) in meson_nfc_write_buf()
666 static int meson_nfc_rw_cmd_prepare_and_execute(struct nand_chip *nand, in meson_nfc_rw_cmd_prepare_and_execute()
719 static int meson_nfc_write_page_sub(struct nand_chip *nand, in meson_nfc_write_page_sub()
764 static int meson_nfc_write_page_raw(struct nand_chip *nand, const u8 *buf, in meson_nfc_write_page_raw()
774 static int meson_nfc_write_page_hwecc(struct nand_chip *nand, in meson_nfc_write_page_hwecc()
789 struct nand_chip *nand, int raw) in meson_nfc_check_ecc_pages_valid()
808 static int meson_nfc_read_page_sub(struct nand_chip *nand, in meson_nfc_read_page_sub()
849 static int meson_nfc_read_page_raw(struct nand_chip *nand, u8 *buf, in meson_nfc_read_page_raw()
864 static int meson_nfc_read_page_hwecc(struct nand_chip *nand, u8 *buf, in meson_nfc_read_page_hwecc()
918 static int meson_nfc_read_oob_raw(struct nand_chip *nand, int page) in meson_nfc_read_oob_raw()
923 static int meson_nfc_read_oob(struct nand_chip *nand, int page) in meson_nfc_read_oob()
1015 static int meson_nfc_exec_op(struct nand_chip *nand, in meson_nfc_exec_op()
1087 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_ecc() local
1101 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_free() local
1202 static void meson_nfc_free_buffer(struct nand_chip *nand) in meson_nfc_free_buffer()
1210 static int meson_chip_buffer_init(struct nand_chip *nand) in meson_chip_buffer_init()
1235 int meson_nfc_setup_interface(struct nand_chip *nand, int csline, in meson_nfc_setup_interface()
1277 static int meson_nand_bch_mode(struct nand_chip *nand) in meson_nand_bch_mode()
1296 static void meson_nand_detach_chip(struct nand_chip *nand) in meson_nand_detach_chip()
1301 static int meson_nand_attach_chip(struct nand_chip *nand) in meson_nand_attach_chip()
1377 struct nand_chip *nand; in meson_nfc_nand_chip_init() local