Lines Matching refs:chip
32 int nand_detect(struct nand_chip *chip, int *maf_id, int *dev_id,
235 #define NAND_HAS_CACHEPROG(chip) ((chip->options & NAND_CACHEPRG)) argument
236 #define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ)) argument
237 #define NAND_HAS_SUBPAGE_WRITE(chip) !((chip)->options & NAND_NO_SUBPAGE_WRITE) argument
631 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
633 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
635 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
637 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
639 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
642 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
644 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
646 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
648 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
649 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
806 void (*detect)(struct nand_chip *chip);
807 int (*init)(struct nand_chip *chip);
928 void (*select_chip)(struct mtd_info *mtd, int chip);
938 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
941 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip,
943 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip,
1005 static inline void nand_set_flash_node(struct nand_chip *chip, in nand_set_flash_node() argument
1008 chip->flash_node = node; in nand_set_flash_node()
1011 static inline ofnode nand_get_flash_node(struct nand_chip *chip) in nand_get_flash_node() argument
1013 return chip->flash_node; in nand_get_flash_node()
1021 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd() argument
1023 return &chip->mtd; in nand_to_mtd()
1026 static inline void *nand_get_controller_data(struct nand_chip *chip) in nand_get_controller_data() argument
1028 return chip->priv; in nand_get_controller_data()
1031 static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) in nand_set_controller_data() argument
1033 chip->priv = priv; in nand_set_controller_data()
1036 static inline void nand_set_manufacturer_data(struct nand_chip *chip, in nand_set_manufacturer_data() argument
1039 chip->manufacturer.priv = priv; in nand_set_manufacturer_data()
1042 static inline void *nand_get_manufacturer_data(struct nand_chip *chip) in nand_get_manufacturer_data() argument
1044 return chip->manufacturer.priv; in nand_get_manufacturer_data()
1230 void (*select_chip)(struct mtd_info *mtd, int chip);
1244 struct platform_nand_chip chip; member
1250 static inline int onfi_feature(struct nand_chip *chip) in onfi_feature() argument
1252 return chip->onfi_version ? le16_to_cpu(chip->onfi_params.features) : 0; in onfi_feature()
1256 static inline int onfi_get_async_timing_mode(struct nand_chip *chip) in onfi_get_async_timing_mode() argument
1258 if (!chip->onfi_version) in onfi_get_async_timing_mode()
1260 return le16_to_cpu(chip->onfi_params.async_timing_mode); in onfi_get_async_timing_mode()
1264 static inline int onfi_get_sync_timing_mode(struct nand_chip *chip) in onfi_get_sync_timing_mode() argument
1266 if (!chip->onfi_version) in onfi_get_sync_timing_mode()
1268 return le16_to_cpu(chip->onfi_params.src_sync_timing_mode); in onfi_get_sync_timing_mode()
1271 static inline int onfi_feature(struct nand_chip *chip) in onfi_feature() argument
1276 static inline int onfi_get_async_timing_mode(struct nand_chip *chip) in onfi_get_async_timing_mode() argument
1281 static inline int onfi_get_sync_timing_mode(struct nand_chip *chip) in onfi_get_sync_timing_mode() argument
1287 int onfi_init_data_interface(struct nand_chip *chip,
1297 static inline bool nand_is_slc(struct nand_chip *chip) in nand_is_slc() argument
1299 return chip->bits_per_cell == 1; in nand_is_slc()
1321 static inline int jedec_feature(struct nand_chip *chip) in jedec_feature() argument
1323 return chip->jedec_version ? le16_to_cpu(chip->jedec_params.features) in jedec_feature()
1344 int nand_check_ecc_caps(struct nand_chip *chip,
1347 int nand_match_ecc_req(struct nand_chip *chip,
1350 int nand_maximize_ecc(struct nand_chip *chip,
1354 int nand_reset(struct nand_chip *chip, int chipnr);
1357 int nand_reset_op(struct nand_chip *chip);
1358 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf,
1360 int nand_status_op(struct nand_chip *chip, u8 *status);
1361 int nand_exit_status_op(struct nand_chip *chip);
1362 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock);
1363 int nand_read_page_op(struct nand_chip *chip, unsigned int page,
1365 int nand_change_read_column_op(struct nand_chip *chip,
1368 int nand_read_oob_op(struct nand_chip *chip, unsigned int page,
1370 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page,
1373 int nand_prog_page_end_op(struct nand_chip *chip);
1374 int nand_prog_page_op(struct nand_chip *chip, unsigned int page,
1377 int nand_change_write_column_op(struct nand_chip *chip,
1380 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len,
1382 int nand_write_data_op(struct nand_chip *chip, const void *buf,
1386 void nand_decode_ext_id(struct nand_chip *chip);