• Home
  • Raw
  • Download

Lines Matching refs:chip

167 #define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ))  argument
367 void (*hwctl)(struct nand_chip *chip, int mode);
368 int (*calculate)(struct nand_chip *chip, const uint8_t *dat,
370 int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc,
372 int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf,
374 int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf,
376 int (*read_page)(struct nand_chip *chip, uint8_t *buf,
378 int (*read_subpage)(struct nand_chip *chip, uint32_t offs,
380 int (*write_subpage)(struct nand_chip *chip, uint32_t offset,
383 int (*write_page)(struct nand_chip *chip, const uint8_t *buf,
385 int (*write_oob_raw)(struct nand_chip *chip, int page);
386 int (*read_oob_raw)(struct nand_chip *chip, int page);
387 int (*read_oob)(struct nand_chip *chip, int page);
388 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,
937 int (*attach_chip)(struct nand_chip *chip);
938 void (*detach_chip)(struct nand_chip *chip);
939 int (*exec_op)(struct nand_chip *chip,
942 int (*setup_data_interface)(struct nand_chip *chip, int chipnr,
993 void (*select_chip)(struct nand_chip *chip, int cs);
994 u8 (*read_byte)(struct nand_chip *chip);
995 void (*write_byte)(struct nand_chip *chip, u8 byte);
996 void (*write_buf)(struct nand_chip *chip, const u8 *buf, int len);
997 void (*read_buf)(struct nand_chip *chip, u8 *buf, int len);
998 void (*cmd_ctrl)(struct nand_chip *chip, int dat, unsigned int ctrl);
999 void (*cmdfunc)(struct nand_chip *chip, unsigned command, int column,
1001 int (*dev_ready)(struct nand_chip *chip);
1002 int (*waitfunc)(struct nand_chip *chip);
1003 int (*block_bad)(struct nand_chip *chip, loff_t ofs);
1004 int (*block_markbad)(struct nand_chip *chip, loff_t ofs);
1005 int (*set_features)(struct nand_chip *chip, int feature_addr,
1007 int (*get_features)(struct nand_chip *chip, int feature_addr,
1087 int (*setup_read_retry)(struct nand_chip *chip, int retry_mode);
1149 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd() argument
1151 return &chip->base.mtd; in nand_to_mtd()
1154 static inline void *nand_get_controller_data(struct nand_chip *chip) in nand_get_controller_data() argument
1156 return chip->priv; in nand_get_controller_data()
1159 static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) in nand_set_controller_data() argument
1161 chip->priv = priv; in nand_set_controller_data()
1164 static inline void nand_set_manufacturer_data(struct nand_chip *chip, in nand_set_manufacturer_data() argument
1167 chip->manufacturer.priv = priv; in nand_set_manufacturer_data()
1170 static inline void *nand_get_manufacturer_data(struct nand_chip *chip) in nand_get_manufacturer_data() argument
1172 return chip->manufacturer.priv; in nand_get_manufacturer_data()
1175 static inline void nand_set_flash_node(struct nand_chip *chip, in nand_set_flash_node() argument
1178 mtd_set_of_node(nand_to_mtd(chip), np); in nand_set_flash_node()
1181 static inline struct device_node *nand_get_flash_node(struct nand_chip *chip) in nand_get_flash_node() argument
1183 return mtd_get_of_node(nand_to_mtd(chip)); in nand_get_flash_node()
1265 int nand_create_bbt(struct nand_chip *chip);
1272 static inline bool nand_is_slc(struct nand_chip *chip) in nand_is_slc() argument
1274 WARN(nanddev_bits_per_cell(&chip->base) == 0, in nand_is_slc()
1276 return nanddev_bits_per_cell(&chip->base) == 1; in nand_is_slc()
1302 int nand_ecc_choose_conf(struct nand_chip *chip,
1306 int nand_write_oob_std(struct nand_chip *chip, int page);
1309 int nand_read_oob_std(struct nand_chip *chip, int page);
1312 int nand_get_set_features_notsupp(struct nand_chip *chip, int addr,
1316 int nand_read_page_raw(struct nand_chip *chip, uint8_t *buf, int oob_required,
1320 int nand_write_page_raw(struct nand_chip *chip, const uint8_t *buf,
1324 int nand_reset(struct nand_chip *chip, int chipnr);
1327 int nand_reset_op(struct nand_chip *chip);
1328 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf,
1330 int nand_status_op(struct nand_chip *chip, u8 *status);
1331 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock);
1332 int nand_read_page_op(struct nand_chip *chip, unsigned int page,
1334 int nand_change_read_column_op(struct nand_chip *chip,
1337 int nand_read_oob_op(struct nand_chip *chip, unsigned int page,
1339 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page,
1342 int nand_prog_page_end_op(struct nand_chip *chip);
1343 int nand_prog_page_op(struct nand_chip *chip, unsigned int page,
1346 int nand_change_write_column_op(struct nand_chip *chip,
1349 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len,
1351 int nand_write_data_op(struct nand_chip *chip, const void *buf,
1355 int nand_scan_with_ids(struct nand_chip *chip, unsigned int max_chips,
1358 static inline int nand_scan(struct nand_chip *chip, unsigned int max_chips) in nand_scan() argument
1360 return nand_scan_with_ids(chip, max_chips, NULL); in nand_scan()
1364 void nand_wait_ready(struct nand_chip *chip);
1370 void nand_cleanup(struct nand_chip *chip);
1372 void nand_release(struct nand_chip *chip);
1378 int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms);
1380 int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod,
1384 void nand_select_target(struct nand_chip *chip, unsigned int cs);
1385 void nand_deselect_target(struct nand_chip *chip);
1401 static inline void *nand_get_data_buf(struct nand_chip *chip) in nand_get_data_buf() argument
1403 chip->pagecache.page = -1; in nand_get_data_buf()
1405 return chip->data_buf; in nand_get_data_buf()