Lines Matching refs:mtd_info

30 int nand_scan_with_ids(struct mtd_info *mtd, int max_chips,
33 static inline int nand_scan(struct mtd_info *mtd, int max_chips) in nand_scan()
39 void nand_wait_ready(struct mtd_info *mtd);
649 void (*hwctl)(struct mtd_info *mtd, int mode);
650 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
652 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
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,
1285 struct mtd_info mtd;
1289 uint8_t (*read_byte)(struct mtd_info *mtd);
1290 u16 (*read_word)(struct mtd_info *mtd);
1291 void (*write_byte)(struct mtd_info *mtd, uint8_t byte);
1292 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
1293 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
1294 void (*select_chip)(struct mtd_info *mtd, int chip);
1295 int (*block_bad)(struct mtd_info *mtd, loff_t ofs);
1296 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
1297 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
1298 int (*dev_ready)(struct mtd_info *mtd);
1299 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column,
1301 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
1305 int (*erase)(struct mtd_info *mtd, int page);
1306 int (*set_features)(struct mtd_info *mtd, struct nand_chip *chip,
1308 int (*get_features)(struct mtd_info *mtd, struct nand_chip *chip,
1310 int (*setup_read_retry)(struct mtd_info *mtd, int retry_mode);
1311 int (*setup_data_interface)(struct mtd_info *mtd, int chipnr,
1391 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand()
1396 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd()
1552 int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs);
1553 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs);
1554 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
1555 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
1600 int (*dev_ready)(struct mtd_info *mtd);
1601 void (*select_chip)(struct mtd_info *mtd, int chip);
1602 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
1603 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
1604 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
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,
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,
1743 void nand_release(struct mtd_info *mtd);