Lines Matching refs:chip
31 struct nand_chip *chip,
219 #define NAND_HAS_CACHEPROG(chip) ((chip->options & NAND_CACHEPRG)) argument
220 #define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ)) argument
221 #define NAND_HAS_SUBPAGE_WRITE(chip) !((chip)->options & NAND_NO_SUBPAGE_WRITE) argument
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,
870 void (*select_chip)(struct mtd_info *mtd, int chip);
880 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
883 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip,
885 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip,
949 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd() argument
951 return &chip->mtd; in nand_to_mtd()
954 static inline void *nand_get_controller_data(struct nand_chip *chip) in nand_get_controller_data() argument
956 return chip->priv; in nand_get_controller_data()
959 static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) in nand_set_controller_data() argument
961 chip->priv = priv; in nand_set_controller_data()
1138 void (*select_chip)(struct mtd_info *mtd, int chip);
1152 struct platform_nand_chip chip; member
1158 static inline int onfi_feature(struct nand_chip *chip) in onfi_feature() argument
1160 return chip->onfi_version ? le16_to_cpu(chip->onfi_params.features) : 0; in onfi_feature()
1164 static inline int onfi_get_async_timing_mode(struct nand_chip *chip) in onfi_get_async_timing_mode() argument
1166 if (!chip->onfi_version) in onfi_get_async_timing_mode()
1168 return le16_to_cpu(chip->onfi_params.async_timing_mode); 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() argument
1174 if (!chip->onfi_version) in onfi_get_sync_timing_mode()
1176 return le16_to_cpu(chip->onfi_params.src_sync_timing_mode); 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() argument
1192 return chip->bits_per_cell == 1; in nand_is_slc()
1214 static inline int jedec_feature(struct nand_chip *chip) in jedec_feature() argument
1216 return chip->jedec_version ? le16_to_cpu(chip->jedec_params.features) 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,