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);
936 int (*exec)(struct nand_chip *chip, const struct nand_subop *subop);
994 int nand_op_parser_exec_op(struct nand_chip *chip,
1057 int (*attach_chip)(struct nand_chip *chip);
1058 void (*detach_chip)(struct nand_chip *chip);
1059 int (*exec_op)(struct nand_chip *chip,
1062 int (*setup_interface)(struct nand_chip *chip, int chipnr,
1113 void (*select_chip)(struct nand_chip *chip, int cs);
1114 u8 (*read_byte)(struct nand_chip *chip);
1115 void (*write_byte)(struct nand_chip *chip, u8 byte);
1116 void (*write_buf)(struct nand_chip *chip, const u8 *buf, int len);
1117 void (*read_buf)(struct nand_chip *chip, u8 *buf, int len);
1118 void (*cmd_ctrl)(struct nand_chip *chip, int dat, unsigned int ctrl);
1119 void (*cmdfunc)(struct nand_chip *chip, unsigned command, int column,
1121 int (*dev_ready)(struct nand_chip *chip);
1122 int (*waitfunc)(struct nand_chip *chip);
1123 int (*block_bad)(struct nand_chip *chip, loff_t ofs);
1124 int (*block_markbad)(struct nand_chip *chip, loff_t ofs);
1125 int (*set_features)(struct nand_chip *chip, int feature_addr,
1127 int (*get_features)(struct nand_chip *chip, int feature_addr,
1143 int (*suspend)(struct nand_chip *chip);
1144 void (*resume)(struct nand_chip *chip);
1145 int (*lock_area)(struct nand_chip *chip, loff_t ofs, uint64_t len);
1146 int (*unlock_area)(struct nand_chip *chip, loff_t ofs, uint64_t len);
1147 int (*setup_read_retry)(struct nand_chip *chip, int retry_mode);
1148 int (*choose_interface_config)(struct nand_chip *chip,
1218 struct nand_chip { struct
1270 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand() argument
1272 return container_of(mtd, struct nand_chip, base.mtd); in mtd_to_nand()
1275 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd()
1280 static inline void *nand_get_controller_data(struct nand_chip *chip) in nand_get_controller_data()
1285 static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) in nand_set_controller_data()
1290 static inline void nand_set_manufacturer_data(struct nand_chip *chip, in nand_set_manufacturer_data()
1296 static inline void *nand_get_manufacturer_data(struct nand_chip *chip) in nand_get_manufacturer_data()
1301 static inline void nand_set_flash_node(struct nand_chip *chip, in nand_set_flash_node()
1307 static inline struct device_node *nand_get_flash_node(struct nand_chip *chip) in nand_get_flash_node()
1318 nand_get_interface_config(struct nand_chip *chip) in nand_get_interface_config()
1397 int nand_create_bbt(struct nand_chip *chip);
1404 static inline bool nand_is_slc(struct nand_chip *chip) in nand_is_slc()
1434 int nand_ecc_choose_conf(struct nand_chip *chip,
1438 int nand_write_oob_std(struct nand_chip *chip, int page);
1441 int nand_read_oob_std(struct nand_chip *chip, int page);
1444 int nand_get_set_features_notsupp(struct nand_chip *chip, int addr,
1448 int nand_read_page_raw(struct nand_chip *chip, uint8_t *buf, int oob_required,
1450 int nand_monolithic_read_page_raw(struct nand_chip *chip, uint8_t *buf,
1454 int nand_write_page_raw(struct nand_chip *chip, const uint8_t *buf,
1456 int nand_monolithic_write_page_raw(struct nand_chip *chip, const uint8_t *buf,
1460 int nand_reset(struct nand_chip *chip, int chipnr);
1463 int nand_reset_op(struct nand_chip *chip);
1464 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf,
1466 int nand_status_op(struct nand_chip *chip, u8 *status);
1467 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock);
1468 int nand_read_page_op(struct nand_chip *chip, unsigned int page,
1470 int nand_change_read_column_op(struct nand_chip *chip,
1473 int nand_read_oob_op(struct nand_chip *chip, unsigned int page,
1475 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page,
1478 int nand_prog_page_end_op(struct nand_chip *chip);
1479 int nand_prog_page_op(struct nand_chip *chip, unsigned int page,
1482 int nand_change_write_column_op(struct nand_chip *chip,
1485 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len,
1487 int nand_write_data_op(struct nand_chip *chip, const void *buf,
1491 int nand_scan_with_ids(struct nand_chip *chip, unsigned int max_chips,
1494 static inline int nand_scan(struct nand_chip *chip, unsigned int max_chips) in nand_scan()
1500 void nand_wait_ready(struct nand_chip *chip);
1506 void nand_cleanup(struct nand_chip *chip);
1512 int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms);
1514 int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod,
1518 void nand_select_target(struct nand_chip *chip, unsigned int cs);
1519 void nand_deselect_target(struct nand_chip *chip);
1539 static inline void *nand_get_data_buf(struct nand_chip *chip) in nand_get_data_buf()