Lines Matching defs:nand
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()
444 static int meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips, in meson_nfc_ecc_correct()
473 static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf, in meson_nfc_dma_buffer_setup()
512 static void meson_nfc_dma_buffer_release(struct nand_chip *nand, in meson_nfc_dma_buffer_release()
523 static int meson_nfc_read_buf(struct nand_chip *nand, u8 *buf, int len) in meson_nfc_read_buf()
552 static int meson_nfc_write_buf(struct nand_chip *nand, u8 *buf, int len) in meson_nfc_write_buf()
573 static int meson_nfc_rw_cmd_prepare_and_execute(struct nand_chip *nand, in meson_nfc_rw_cmd_prepare_and_execute()
626 static int meson_nfc_write_page_sub(struct nand_chip *nand, in meson_nfc_write_page_sub()
671 static int meson_nfc_write_page_raw(struct nand_chip *nand, const u8 *buf, in meson_nfc_write_page_raw()
681 static int meson_nfc_write_page_hwecc(struct nand_chip *nand, in meson_nfc_write_page_hwecc()
696 struct nand_chip *nand, int raw) in meson_nfc_check_ecc_pages_valid()
713 static int meson_nfc_read_page_sub(struct nand_chip *nand, in meson_nfc_read_page_sub()
754 static int meson_nfc_read_page_raw(struct nand_chip *nand, u8 *buf, in meson_nfc_read_page_raw()
769 static int meson_nfc_read_page_hwecc(struct nand_chip *nand, u8 *buf, in meson_nfc_read_page_hwecc()
823 static int meson_nfc_read_oob_raw(struct nand_chip *nand, int page) in meson_nfc_read_oob_raw()
828 static int meson_nfc_read_oob(struct nand_chip *nand, int page) in meson_nfc_read_oob()
892 static int meson_nfc_exec_op(struct nand_chip *nand, in meson_nfc_exec_op()
958 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_ecc() local
972 struct nand_chip *nand = mtd_to_nand(mtd); in meson_ooblayout_free() local
1070 static void meson_nfc_free_buffer(struct nand_chip *nand) in meson_nfc_free_buffer()
1078 static int meson_chip_buffer_init(struct nand_chip *nand) in meson_chip_buffer_init()
1103 int meson_nfc_setup_interface(struct nand_chip *nand, int csline, in meson_nfc_setup_interface()
1145 static int meson_nand_bch_mode(struct nand_chip *nand) in meson_nand_bch_mode()
1163 static void meson_nand_detach_chip(struct nand_chip *nand) in meson_nand_detach_chip()
1168 static int meson_nand_attach_chip(struct nand_chip *nand) in meson_nand_attach_chip()
1237 struct nand_chip *nand; in meson_nfc_nand_chip_init() local