Lines Matching refs:nand_chip
25 struct nand_chip;
31 struct nand_chip *chip,
492 struct nand_chip *active;
587 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
589 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
591 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
593 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
595 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
598 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
600 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
602 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
604 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
605 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
858 struct nand_chip { struct
877 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this); argument
880 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip, argument
883 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip, argument
885 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip, argument
944 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand() argument
946 return container_of(mtd, struct nand_chip, mtd); in mtd_to_nand()
949 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd()
954 static inline void *nand_get_controller_data(struct nand_chip *chip) in nand_get_controller_data()
959 static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) in nand_set_controller_data()
1158 static inline int onfi_feature(struct nand_chip *chip) in onfi_feature()
1164 static inline int onfi_get_async_timing_mode(struct nand_chip *chip) in onfi_get_async_timing_mode()
1172 static inline int onfi_get_sync_timing_mode(struct nand_chip *chip) in onfi_get_sync_timing_mode()
1180 int onfi_init_data_interface(struct nand_chip *chip,
1190 static inline bool nand_is_slc(struct nand_chip *chip) in nand_is_slc()
1214 static inline int jedec_feature(struct nand_chip *chip) in jedec_feature()
1237 int nand_check_ecc_caps(struct nand_chip *chip,
1240 int nand_match_ecc_req(struct nand_chip *chip,
1243 int nand_maximize_ecc(struct nand_chip *chip,
1247 int nand_reset(struct nand_chip *chip, int chipnr);
1250 int nand_reset_op(struct nand_chip *chip);
1251 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf,
1253 int nand_status_op(struct nand_chip *chip, u8 *status);
1254 int nand_exit_status_op(struct nand_chip *chip);
1255 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock);
1256 int nand_read_page_op(struct nand_chip *chip, unsigned int page,
1258 int nand_change_read_column_op(struct nand_chip *chip,
1261 int nand_read_oob_op(struct nand_chip *chip, unsigned int page,
1263 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page,
1266 int nand_prog_page_end_op(struct nand_chip *chip);
1267 int nand_prog_page_op(struct nand_chip *chip, unsigned int page,
1270 int nand_change_write_column_op(struct nand_chip *chip,
1273 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len,
1275 int nand_write_data_op(struct nand_chip *chip, const void *buf,