Lines Matching refs:nand_chip

27 struct nand_chip;
361 void (*hwctl)(struct nand_chip *chip, int mode);
362 int (*calculate)(struct nand_chip *chip, const uint8_t *dat,
364 int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc,
366 int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf,
368 int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf,
370 int (*read_page)(struct nand_chip *chip, uint8_t *buf,
372 int (*read_subpage)(struct nand_chip *chip, uint32_t offs,
374 int (*write_subpage)(struct nand_chip *chip, uint32_t offset,
377 int (*write_page)(struct nand_chip *chip, const uint8_t *buf,
379 int (*write_oob_raw)(struct nand_chip *chip, int page);
380 int (*read_oob_raw)(struct nand_chip *chip, int page);
381 int (*read_oob)(struct nand_chip *chip, int page);
382 int (*write_oob)(struct nand_chip *chip, int page);
815 int (*exec)(struct nand_chip *chip, const struct nand_subop *subop);
873 int nand_op_parser_exec_op(struct nand_chip *chip,
936 int (*attach_chip)(struct nand_chip *chip);
937 void (*detach_chip)(struct nand_chip *chip);
938 int (*exec_op)(struct nand_chip *chip,
941 int (*setup_interface)(struct nand_chip *chip, int chipnr,
992 void (*select_chip)(struct nand_chip *chip, int cs);
993 u8 (*read_byte)(struct nand_chip *chip);
994 void (*write_byte)(struct nand_chip *chip, u8 byte);
995 void (*write_buf)(struct nand_chip *chip, const u8 *buf, int len);
996 void (*read_buf)(struct nand_chip *chip, u8 *buf, int len);
997 void (*cmd_ctrl)(struct nand_chip *chip, int dat, unsigned int ctrl);
998 void (*cmdfunc)(struct nand_chip *chip, unsigned command, int column,
1000 int (*dev_ready)(struct nand_chip *chip);
1001 int (*waitfunc)(struct nand_chip *chip);
1002 int (*block_bad)(struct nand_chip *chip, loff_t ofs);
1003 int (*block_markbad)(struct nand_chip *chip, loff_t ofs);
1004 int (*set_features)(struct nand_chip *chip, int feature_addr,
1006 int (*get_features)(struct nand_chip *chip, int feature_addr,
1022 int (*suspend)(struct nand_chip *chip);
1023 void (*resume)(struct nand_chip *chip);
1024 int (*lock_area)(struct nand_chip *chip, loff_t ofs, uint64_t len);
1025 int (*unlock_area)(struct nand_chip *chip, loff_t ofs, uint64_t len);
1026 int (*setup_read_retry)(struct nand_chip *chip, int retry_mode);
1027 int (*choose_interface_config)(struct nand_chip *chip,
1096 struct nand_chip { struct
1147 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand() argument
1149 return container_of(mtd, struct nand_chip, base.mtd); in mtd_to_nand()
1152 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd()
1157 static inline void *nand_get_controller_data(struct nand_chip *chip) in nand_get_controller_data()
1162 static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) in nand_set_controller_data()
1167 static inline void nand_set_manufacturer_data(struct nand_chip *chip, in nand_set_manufacturer_data()
1173 static inline void *nand_get_manufacturer_data(struct nand_chip *chip) in nand_get_manufacturer_data()
1178 static inline void nand_set_flash_node(struct nand_chip *chip, in nand_set_flash_node()
1184 static inline struct device_node *nand_get_flash_node(struct nand_chip *chip) in nand_get_flash_node()
1195 nand_get_interface_config(struct nand_chip *chip) in nand_get_interface_config()
1274 int nand_create_bbt(struct nand_chip *chip);
1281 static inline bool nand_is_slc(struct nand_chip *chip) in nand_is_slc()
1311 int nand_ecc_choose_conf(struct nand_chip *chip,
1315 int nand_write_oob_std(struct nand_chip *chip, int page);
1318 int nand_read_oob_std(struct nand_chip *chip, int page);
1321 int nand_get_set_features_notsupp(struct nand_chip *chip, int addr,
1325 int nand_read_page_raw(struct nand_chip *chip, uint8_t *buf, int oob_required,
1327 int nand_monolithic_read_page_raw(struct nand_chip *chip, uint8_t *buf,
1331 int nand_write_page_raw(struct nand_chip *chip, const uint8_t *buf,
1333 int nand_monolithic_write_page_raw(struct nand_chip *chip, const uint8_t *buf,
1337 int nand_reset(struct nand_chip *chip, int chipnr);
1340 int nand_reset_op(struct nand_chip *chip);
1341 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf,
1343 int nand_status_op(struct nand_chip *chip, u8 *status);
1344 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock);
1345 int nand_read_page_op(struct nand_chip *chip, unsigned int page,
1347 int nand_change_read_column_op(struct nand_chip *chip,
1350 int nand_read_oob_op(struct nand_chip *chip, unsigned int page,
1352 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page,
1355 int nand_prog_page_end_op(struct nand_chip *chip);
1356 int nand_prog_page_op(struct nand_chip *chip, unsigned int page,
1359 int nand_change_write_column_op(struct nand_chip *chip,
1362 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len,
1364 int nand_write_data_op(struct nand_chip *chip, const void *buf,
1368 int nand_scan_with_ids(struct nand_chip *chip, unsigned int max_chips,
1371 static inline int nand_scan(struct nand_chip *chip, unsigned int max_chips) in nand_scan()
1377 void nand_wait_ready(struct nand_chip *chip);
1383 void nand_cleanup(struct nand_chip *chip);
1389 int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms);
1391 int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod,
1395 void nand_select_target(struct nand_chip *chip, unsigned int cs);
1396 void nand_deselect_target(struct nand_chip *chip);
1416 static inline void *nand_get_data_buf(struct nand_chip *chip) in nand_get_data_buf()