Lines Matching refs:nand_chip

128 	int (*read_page)(struct nand_chip *chip, void *buf, void *oob, bool ecc,
142 void (*enable_hwecc)(struct nand_chip *chip, bool enable);
163 struct nand_chip nand;
252 struct nand_chip *this = mtd_to_nand(mtd); in copy_spare()
295 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_do_addr_cycle() local
296 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_do_addr_cycle()
328 if (nand_chip->options & NAND_ROW_ADDR_3) { in mxc_do_addr_cycle()
557 struct nand_chip *nand_chip = mtd_to_nand(mtd); in send_page_v3() local
558 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in send_page_v3()
573 struct nand_chip *nand_chip = mtd_to_nand(mtd); in send_page_v2() local
574 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in send_page_v2()
587 struct nand_chip *nand_chip = mtd_to_nand(mtd); in send_page_v1() local
588 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in send_page_v1()
667 static void mxc_nand_enable_hwecc_v1_v2(struct nand_chip *chip, bool enable) in mxc_nand_enable_hwecc_v1_v2()
685 static void mxc_nand_enable_hwecc_v3(struct nand_chip *chip, bool enable) in mxc_nand_enable_hwecc_v3()
713 static int mxc_nand_read_page_v1(struct nand_chip *chip, void *buf, void *oob, in mxc_nand_read_page_v1()
771 static int mxc_nand_read_page_v2_v3(struct nand_chip *chip, void *buf, in mxc_nand_read_page_v2_v3()
819 static int mxc_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip, in mxc_nand_read_page()
833 static int mxc_nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in mxc_nand_read_page_raw()
847 static int mxc_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in mxc_nand_read_oob()
856 static int mxc_nand_write_page(struct nand_chip *chip, const uint8_t *buf, in mxc_nand_write_page()
877 static int mxc_nand_write_page_ecc(struct mtd_info *mtd, struct nand_chip *chip, in mxc_nand_write_page_ecc()
884 static int mxc_nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in mxc_nand_write_page_raw()
890 static int mxc_nand_write_oob(struct mtd_info *mtd, struct nand_chip *chip, in mxc_nand_write_oob()
902 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_read_byte() local
903 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_read_byte()
910 if (nand_chip->options & NAND_BUSWIDTH_16) { in mxc_nand_read_byte()
926 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_read_word() local
927 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_read_word()
942 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_write_buf() local
943 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_write_buf()
960 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_read_buf() local
961 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_read_buf()
976 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_select_chip_v1_v3() local
977 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_select_chip_v1_v3()
997 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_select_chip_v2() local
998 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_select_chip_v2()
1024 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_v1_ooblayout_ecc() local
1026 if (section >= nand_chip->ecc.steps) in mxc_v1_ooblayout_ecc()
1038 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_v1_ooblayout_free() local
1040 if (section > nand_chip->ecc.steps) in mxc_v1_ooblayout_free()
1053 if (section < nand_chip->ecc.steps) in mxc_v1_ooblayout_free()
1071 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_v2_ooblayout_ecc() local
1072 int stepsize = nand_chip->ecc.bytes == 9 ? 16 : 26; in mxc_v2_ooblayout_ecc()
1074 if (section >= nand_chip->ecc.steps) in mxc_v2_ooblayout_ecc()
1078 oobregion->length = nand_chip->ecc.bytes; in mxc_v2_ooblayout_ecc()
1086 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_v2_ooblayout_free() local
1087 int stepsize = nand_chip->ecc.bytes == 9 ? 16 : 26; in mxc_v2_ooblayout_free()
1089 if (section >= nand_chip->ecc.steps) in mxc_v2_ooblayout_free()
1132 struct nand_chip *nand_chip = mtd_to_nand(mtd); in preset_v1() local
1133 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in preset_v1()
1136 if (nand_chip->ecc.mode == NAND_ECC_HW && mtd->writesize) in preset_v1()
1161 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_v2_setup_data_interface() local
1162 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_v2_setup_data_interface()
1235 struct nand_chip *nand_chip = mtd_to_nand(mtd); in preset_v2() local
1236 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in preset_v2()
1247 if (nand_chip->ecc.mode == NAND_ECC_HW) in preset_v2()
1284 struct nand_chip *chip = mtd_to_nand(mtd); in preset_v3()
1355 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_command() local
1356 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_command()
1412 static int mxc_nand_set_features(struct mtd_info *mtd, struct nand_chip *chip, in mxc_nand_set_features()
1415 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_set_features() local
1416 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_set_features()
1432 static int mxc_nand_get_features(struct mtd_info *mtd, struct nand_chip *chip, in mxc_nand_get_features()
1435 struct nand_chip *nand_chip = mtd_to_nand(mtd); in mxc_nand_get_features() local
1436 struct mxc_nand_host *host = nand_get_controller_data(nand_chip); in mxc_nand_get_features()
1694 static int mxcnd_attach_chip(struct nand_chip *chip) in mxcnd_attach_chip()
1764 struct nand_chip *this; in mxcnd_probe()