Lines Matching refs:chip

33 					   struct nand_chip *chip,
227 #define NAND_HAS_CACHEPROG(chip) ((chip->options & NAND_CACHEPRG)) argument
228 #define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ)) argument
229 #define NAND_HAS_SUBPAGE_WRITE(chip) !((chip)->options & NAND_NO_SUBPAGE_WRITE) argument
618 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
620 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
622 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
624 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
626 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
629 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
631 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
633 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
635 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
636 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
901 void (*select_chip)(struct mtd_info *mtd, int chip);
911 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
914 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip,
916 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip,
973 static inline void nand_set_flash_node(struct nand_chip *chip, in nand_set_flash_node() argument
976 chip->flash_node = ofnode_to_offset(node); in nand_set_flash_node()
979 static inline ofnode nand_get_flash_node(struct nand_chip *chip) in nand_get_flash_node() argument
981 return offset_to_ofnode(chip->flash_node); in nand_get_flash_node()
989 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd() argument
991 return &chip->mtd; in nand_to_mtd()
994 static inline void *nand_get_controller_data(struct nand_chip *chip) in nand_get_controller_data() argument
996 return chip->priv; in nand_get_controller_data()
999 static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) in nand_set_controller_data() argument
1001 chip->priv = priv; in nand_set_controller_data()
1178 void (*select_chip)(struct mtd_info *mtd, int chip);
1192 struct platform_nand_chip chip; member
1198 static inline int onfi_feature(struct nand_chip *chip) in onfi_feature() argument
1200 return chip->onfi_version ? le16_to_cpu(chip->onfi_params.features) : 0; in onfi_feature()
1204 static inline int onfi_get_async_timing_mode(struct nand_chip *chip) in onfi_get_async_timing_mode() argument
1206 if (!chip->onfi_version) in onfi_get_async_timing_mode()
1208 return le16_to_cpu(chip->onfi_params.async_timing_mode); in onfi_get_async_timing_mode()
1212 static inline int onfi_get_sync_timing_mode(struct nand_chip *chip) in onfi_get_sync_timing_mode() argument
1214 if (!chip->onfi_version) in onfi_get_sync_timing_mode()
1216 return le16_to_cpu(chip->onfi_params.src_sync_timing_mode); in onfi_get_sync_timing_mode()
1219 static inline int onfi_feature(struct nand_chip *chip) in onfi_feature() argument
1224 static inline int onfi_get_async_timing_mode(struct nand_chip *chip) in onfi_get_async_timing_mode() argument
1229 static inline int onfi_get_sync_timing_mode(struct nand_chip *chip) in onfi_get_sync_timing_mode() argument
1235 int onfi_init_data_interface(struct nand_chip *chip,
1245 static inline bool nand_is_slc(struct nand_chip *chip) in nand_is_slc() argument
1247 return chip->bits_per_cell == 1; in nand_is_slc()
1269 static inline int jedec_feature(struct nand_chip *chip) in jedec_feature() argument
1271 return chip->jedec_version ? le16_to_cpu(chip->jedec_params.features) in jedec_feature()
1292 int nand_check_ecc_caps(struct nand_chip *chip,
1295 int nand_match_ecc_req(struct nand_chip *chip,
1298 int nand_maximize_ecc(struct nand_chip *chip,
1302 int nand_reset(struct nand_chip *chip, int chipnr);
1305 int nand_reset_op(struct nand_chip *chip);
1306 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf,
1308 int nand_status_op(struct nand_chip *chip, u8 *status);
1309 int nand_exit_status_op(struct nand_chip *chip);
1310 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock);
1311 int nand_read_page_op(struct nand_chip *chip, unsigned int page,
1313 int nand_change_read_column_op(struct nand_chip *chip,
1316 int nand_read_oob_op(struct nand_chip *chip, unsigned int page,
1318 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page,
1321 int nand_prog_page_end_op(struct nand_chip *chip);
1322 int nand_prog_page_op(struct nand_chip *chip, unsigned int page,
1325 int nand_change_write_column_op(struct nand_chip *chip,
1328 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len,
1330 int nand_write_data_op(struct nand_chip *chip, const void *buf,