Lines Matching refs:nand_chip
226 struct nand_chip;
516 int (*attach_chip)(struct nand_chip *chip);
517 void (*detach_chip)(struct nand_chip *chip);
532 struct nand_chip *active;
654 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
656 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
658 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
660 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
662 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
665 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
667 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
669 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
671 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
672 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
813 void (*detect)(struct nand_chip *chip);
814 int (*init)(struct nand_chip *chip);
815 void (*cleanup)(struct nand_chip *chip);
816 void (*fixup_onfi_param_page)(struct nand_chip *chip,
1118 int (*exec)(struct nand_chip *chip, const struct nand_subop *subop);
1173 int nand_op_parser_exec_op(struct nand_chip *chip,
1284 struct nand_chip { struct
1301 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this); argument
1302 int (*exec_op)(struct nand_chip *chip, argument
1306 int (*set_features)(struct mtd_info *mtd, struct nand_chip *chip, argument
1308 int (*get_features)(struct mtd_info *mtd, struct nand_chip *chip, argument
1368 static inline int nand_exec_op(struct nand_chip *chip, in nand_exec_op() argument
1380 static inline void nand_set_flash_node(struct nand_chip *chip, in nand_set_flash_node()
1386 static inline struct device_node *nand_get_flash_node(struct nand_chip *chip) in nand_get_flash_node()
1391 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand()
1393 return container_of(mtd, struct nand_chip, mtd); in mtd_to_nand()
1396 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd()
1401 static inline void *nand_get_controller_data(struct nand_chip *chip) in nand_get_controller_data()
1406 static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) in nand_set_controller_data()
1411 static inline void nand_set_manufacturer_data(struct nand_chip *chip, in nand_set_manufacturer_data()
1417 static inline void *nand_get_manufacturer_data(struct nand_chip *chip) in nand_get_manufacturer_data()
1551 int nand_create_bbt(struct nand_chip *chip);
1619 static inline int onfi_get_async_timing_mode(struct nand_chip *chip) in onfi_get_async_timing_mode()
1627 int onfi_fill_data_interface(struct nand_chip *chip,
1636 static inline bool nand_is_slc(struct nand_chip *chip) in nand_is_slc()
1669 int nand_ecc_choose_conf(struct nand_chip *chip,
1673 int nand_write_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page);
1676 int nand_write_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip,
1680 int nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page);
1683 int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip,
1687 int nand_get_features(struct nand_chip *chip, int addr, u8 *subfeature_param);
1688 int nand_set_features(struct nand_chip *chip, int addr, u8 *subfeature_param);
1690 int nand_get_set_features_notsupp(struct mtd_info *mtd, struct nand_chip *chip,
1694 int nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip,
1696 int nand_read_page_raw_notsupp(struct mtd_info *mtd, struct nand_chip *chip,
1700 int nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip,
1702 int nand_write_page_raw_notsupp(struct mtd_info *mtd, struct nand_chip *chip,
1706 int nand_reset(struct nand_chip *chip, int chipnr);
1709 int nand_reset_op(struct nand_chip *chip);
1710 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf,
1712 int nand_status_op(struct nand_chip *chip, u8 *status);
1713 int nand_exit_status_op(struct nand_chip *chip);
1714 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock);
1715 int nand_read_page_op(struct nand_chip *chip, unsigned int page,
1717 int nand_change_read_column_op(struct nand_chip *chip,
1720 int nand_read_oob_op(struct nand_chip *chip, unsigned int page,
1722 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page,
1725 int nand_prog_page_end_op(struct nand_chip *chip);
1726 int nand_prog_page_op(struct nand_chip *chip, unsigned int page,
1729 int nand_change_write_column_op(struct nand_chip *chip,
1732 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len,
1734 int nand_write_data_op(struct nand_chip *chip, const void *buf,
1741 void nand_cleanup(struct nand_chip *chip);
1746 void nand_decode_ext_id(struct nand_chip *chip);
1752 int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms);