Lines Matching refs:nand_chip
127 struct nand_chip nand;
179 static inline struct mtk_nfc_nand_chip *to_mtk_nand(struct nand_chip *nand) in to_mtk_nand()
184 static inline u8 *data_ptr(struct nand_chip *chip, const u8 *p, int i) in data_ptr()
189 static inline u8 *oob_ptr(struct nand_chip *chip, int i) in oob_ptr()
208 static inline int mtk_data_len(struct nand_chip *chip) in mtk_data_len()
215 static inline u8 *mtk_data_ptr(struct nand_chip *chip, int i) in mtk_data_ptr()
222 static inline u8 *mtk_oob_ptr(struct nand_chip *chip, int i) in mtk_oob_ptr()
321 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_hw_runtime_config()
401 static inline u8 mtk_nfc_read_byte(struct nand_chip *chip) in mtk_nfc_read_byte()
429 static void mtk_nfc_read_buf(struct nand_chip *chip, u8 *buf, int len) in mtk_nfc_read_buf()
437 static void mtk_nfc_write_byte(struct nand_chip *chip, u8 byte) in mtk_nfc_write_byte()
458 static void mtk_nfc_write_buf(struct nand_chip *chip, const u8 *buf, int len) in mtk_nfc_write_buf()
466 static int mtk_nfc_exec_instr(struct nand_chip *chip, in mtk_nfc_exec_instr()
500 static void mtk_nfc_select_target(struct nand_chip *nand, unsigned int cs) in mtk_nfc_select_target()
510 static int mtk_nfc_exec_op(struct nand_chip *chip, in mtk_nfc_exec_op()
534 static int mtk_nfc_setup_interface(struct nand_chip *chip, int csline, in mtk_nfc_setup_interface()
642 static int mtk_nfc_sector_encode(struct nand_chip *chip, u8 *data) in mtk_nfc_sector_encode()
661 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_bad_mark_swap()
676 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_format_subpage()
710 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_format_page()
729 static inline void mtk_nfc_read_fdm(struct nand_chip *chip, u32 start, in mtk_nfc_read_fdm()
749 static inline void mtk_nfc_write_fdm(struct nand_chip *chip) in mtk_nfc_write_fdm()
775 static int mtk_nfc_do_write_page(struct mtd_info *mtd, struct nand_chip *chip, in mtk_nfc_do_write_page()
826 static int mtk_nfc_write_page(struct mtd_info *mtd, struct nand_chip *chip, in mtk_nfc_write_page()
878 static int mtk_nfc_write_page_hwecc(struct nand_chip *chip, const u8 *buf, in mtk_nfc_write_page_hwecc()
884 static int mtk_nfc_write_page_raw(struct nand_chip *chip, const u8 *buf, in mtk_nfc_write_page_raw()
894 static int mtk_nfc_write_subpage_hwecc(struct nand_chip *chip, u32 offset, in mtk_nfc_write_subpage_hwecc()
910 static int mtk_nfc_write_oob_std(struct nand_chip *chip, int page) in mtk_nfc_write_oob_std()
918 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_update_ecc_stats()
940 static int mtk_nfc_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, in mtk_nfc_read_subpage()
1039 static int mtk_nfc_read_subpage_hwecc(struct nand_chip *chip, u32 off, in mtk_nfc_read_subpage_hwecc()
1046 static int mtk_nfc_read_page_hwecc(struct nand_chip *chip, u8 *p, int oob_on, in mtk_nfc_read_page_hwecc()
1054 static int mtk_nfc_read_page_raw(struct nand_chip *chip, u8 *buf, int oob_on, in mtk_nfc_read_page_raw()
1083 static int mtk_nfc_read_oob_std(struct nand_chip *chip, int page) in mtk_nfc_read_oob_std()
1151 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_ooblayout_free()
1170 struct nand_chip *chip = mtd_to_nand(mtd); in mtk_nfc_ooblayout_ecc()
1191 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_set_fdm()
1210 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_set_bad_mark_ctl()
1223 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_set_spare_per_sector()
1255 struct nand_chip *nand = mtd_to_nand(mtd); in mtk_nfc_ecc_init()
1323 static int mtk_nfc_attach_chip(struct nand_chip *chip) in mtk_nfc_attach_chip()
1370 struct nand_chip *nand; in mtk_nfc_nand_chip_init()
1608 struct nand_chip *chip; in mtk_nfc_remove()
1641 struct nand_chip *nand; in mtk_nfc_resume()