Lines Matching refs:mtd_info
40 void nand_wait_ready(struct mtd_info *mtd);
650 void (*hwctl)(struct mtd_info *mtd, int mode);
651 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
653 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
655 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
657 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
659 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
661 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
663 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
666 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
668 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
670 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
672 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
673 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
1286 struct mtd_info mtd;
1290 uint8_t (*read_byte)(struct mtd_info *mtd);
1291 u16 (*read_word)(struct mtd_info *mtd);
1292 void (*write_byte)(struct mtd_info *mtd, uint8_t byte);
1293 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
1294 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
1295 void (*select_chip)(struct mtd_info *mtd, int chip);
1296 int (*block_bad)(struct mtd_info *mtd, loff_t ofs);
1297 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
1298 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
1299 int (*dev_ready)(struct mtd_info *mtd);
1300 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column,
1302 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
1306 int (*erase)(struct mtd_info *mtd, int page);
1307 int (*set_features)(struct mtd_info *mtd, struct nand_chip *chip,
1309 int (*get_features)(struct mtd_info *mtd, struct nand_chip *chip,
1311 int (*setup_read_retry)(struct mtd_info *mtd, int retry_mode);
1312 int (*setup_data_interface)(struct mtd_info *mtd, int chipnr,
1392 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand()
1397 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd()
1553 int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs);
1554 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs);
1555 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
1556 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
1601 int (*dev_ready)(struct mtd_info *mtd);
1602 void (*select_chip)(struct mtd_info *mtd, int chip);
1603 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
1604 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
1605 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
1674 int nand_write_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page);
1677 int nand_write_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip,
1681 int nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page);
1684 int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip,
1691 int nand_get_set_features_notsupp(struct mtd_info *mtd, struct nand_chip *chip,
1695 int nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip,
1697 int nand_read_page_raw_notsupp(struct mtd_info *mtd, struct nand_chip *chip,
1701 int nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip,
1703 int nand_write_page_raw_notsupp(struct mtd_info *mtd, struct nand_chip *chip,