Lines Matching refs:nand_chip

26 struct nand_chip;
359 void (*hwctl)(struct nand_chip *chip, int mode);
360 int (*calculate)(struct nand_chip *chip, const uint8_t *dat,
362 int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc,
364 int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf,
366 int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf,
368 int (*read_page)(struct nand_chip *chip, uint8_t *buf,
370 int (*read_subpage)(struct nand_chip *chip, uint32_t offs,
372 int (*write_subpage)(struct nand_chip *chip, uint32_t offset,
375 int (*write_page)(struct nand_chip *chip, const uint8_t *buf,
377 int (*write_oob_raw)(struct nand_chip *chip, int page);
378 int (*read_oob_raw)(struct nand_chip *chip, int page);
379 int (*read_oob)(struct nand_chip *chip, int page);
380 int (*write_oob)(struct nand_chip *chip, int page);
962 int (*exec)(struct nand_chip *chip, const struct nand_subop *subop);
1020 int nand_op_parser_exec_op(struct nand_chip *chip,
1083 int (*attach_chip)(struct nand_chip *chip);
1084 void (*detach_chip)(struct nand_chip *chip);
1085 int (*exec_op)(struct nand_chip *chip,
1088 int (*setup_interface)(struct nand_chip *chip, int chipnr,
1139 void (*select_chip)(struct nand_chip *chip, int cs);
1140 u8 (*read_byte)(struct nand_chip *chip);
1141 void (*write_byte)(struct nand_chip *chip, u8 byte);
1142 void (*write_buf)(struct nand_chip *chip, const u8 *buf, int len);
1143 void (*read_buf)(struct nand_chip *chip, u8 *buf, int len);
1144 void (*cmd_ctrl)(struct nand_chip *chip, int dat, unsigned int ctrl);
1145 void (*cmdfunc)(struct nand_chip *chip, unsigned command, int column,
1147 int (*dev_ready)(struct nand_chip *chip);
1148 int (*waitfunc)(struct nand_chip *chip);
1149 int (*block_bad)(struct nand_chip *chip, loff_t ofs);
1150 int (*block_markbad)(struct nand_chip *chip, loff_t ofs);
1151 int (*set_features)(struct nand_chip *chip, int feature_addr,
1153 int (*get_features)(struct nand_chip *chip, int feature_addr,
1169 int (*suspend)(struct nand_chip *chip);
1170 void (*resume)(struct nand_chip *chip);
1171 int (*lock_area)(struct nand_chip *chip, loff_t ofs, uint64_t len);
1172 int (*unlock_area)(struct nand_chip *chip, loff_t ofs, uint64_t len);
1173 int (*setup_read_retry)(struct nand_chip *chip, int retry_mode);
1174 int (*choose_interface_config)(struct nand_chip *chip,
1256 struct nand_chip { struct
1310 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand() argument
1312 return container_of(mtd, struct nand_chip, base.mtd); in mtd_to_nand()
1315 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd()
1320 static inline void *nand_get_controller_data(struct nand_chip *chip) in nand_get_controller_data()
1325 static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) in nand_set_controller_data()
1330 static inline void nand_set_manufacturer_data(struct nand_chip *chip, in nand_set_manufacturer_data()
1336 static inline void *nand_get_manufacturer_data(struct nand_chip *chip) in nand_get_manufacturer_data()
1341 static inline void nand_set_flash_node(struct nand_chip *chip, in nand_set_flash_node()
1347 static inline struct device_node *nand_get_flash_node(struct nand_chip *chip) in nand_get_flash_node()
1358 nand_get_interface_config(struct nand_chip *chip) in nand_get_interface_config()
1437 int nand_create_bbt(struct nand_chip *chip);
1444 static inline bool nand_is_slc(struct nand_chip *chip) in nand_is_slc()
1470 int rawnand_sw_hamming_init(struct nand_chip *chip);
1471 int rawnand_sw_hamming_calculate(struct nand_chip *chip,
1474 int rawnand_sw_hamming_correct(struct nand_chip *chip,
1478 void rawnand_sw_hamming_cleanup(struct nand_chip *chip);
1479 int rawnand_sw_bch_init(struct nand_chip *chip);
1480 int rawnand_sw_bch_correct(struct nand_chip *chip, unsigned char *buf,
1482 void rawnand_sw_bch_cleanup(struct nand_chip *chip);
1489 int nand_ecc_choose_conf(struct nand_chip *chip,
1493 int nand_write_oob_std(struct nand_chip *chip, int page);
1496 int nand_read_oob_std(struct nand_chip *chip, int page);
1499 int nand_get_set_features_notsupp(struct nand_chip *chip, int addr,
1503 int nand_read_page_raw(struct nand_chip *chip, uint8_t *buf, int oob_required,
1505 int nand_monolithic_read_page_raw(struct nand_chip *chip, uint8_t *buf,
1509 int nand_write_page_raw(struct nand_chip *chip, const uint8_t *buf,
1511 int nand_monolithic_write_page_raw(struct nand_chip *chip, const uint8_t *buf,
1515 int nand_reset(struct nand_chip *chip, int chipnr);
1518 int nand_reset_op(struct nand_chip *chip);
1519 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf,
1521 int nand_status_op(struct nand_chip *chip, u8 *status);
1522 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock);
1523 int nand_read_page_op(struct nand_chip *chip, unsigned int page,
1525 int nand_change_read_column_op(struct nand_chip *chip,
1528 int nand_read_oob_op(struct nand_chip *chip, unsigned int page,
1530 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page,
1533 int nand_prog_page_end_op(struct nand_chip *chip);
1534 int nand_prog_page_op(struct nand_chip *chip, unsigned int page,
1537 int nand_change_write_column_op(struct nand_chip *chip,
1540 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len,
1542 int nand_write_data_op(struct nand_chip *chip, const void *buf,
1544 int nand_read_page_hwecc_oob_first(struct nand_chip *chip, uint8_t *buf,
1548 int nand_scan_with_ids(struct nand_chip *chip, unsigned int max_chips,
1551 static inline int nand_scan(struct nand_chip *chip, unsigned int max_chips) in nand_scan()
1557 void nand_wait_ready(struct nand_chip *chip);
1563 void nand_cleanup(struct nand_chip *chip);
1569 int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms);
1570 int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod,
1574 void nand_select_target(struct nand_chip *chip, unsigned int cs);
1575 void nand_deselect_target(struct nand_chip *chip);
1595 static inline void *nand_get_data_buf(struct nand_chip *chip) in nand_get_data_buf()