Lines Matching refs:mtd_info

24 struct mtd_info;
30 struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
36 extern int nand_scan(struct mtd_info *mtd, int max_chips);
41 extern int nand_scan_ident(struct mtd_info *mtd, int max_chips,
43 extern int nand_scan_tail(struct mtd_info *mtd);
46 extern void nand_release(struct mtd_info *mtd);
49 extern void nand_wait_ready(struct mtd_info *mtd);
582 void (*hwctl)(struct mtd_info *mtd, int mode);
583 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
585 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
587 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
589 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
591 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
593 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
595 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
598 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
600 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
602 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
604 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
605 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
859 struct mtd_info mtd;
865 uint8_t (*read_byte)(struct mtd_info *mtd);
866 u16 (*read_word)(struct mtd_info *mtd);
867 void (*write_byte)(struct mtd_info *mtd, uint8_t byte);
868 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
869 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
870 void (*select_chip)(struct mtd_info *mtd, int chip);
871 int (*block_bad)(struct mtd_info *mtd, loff_t ofs);
872 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
873 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
874 int (*dev_ready)(struct mtd_info *mtd);
875 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column,
877 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
878 int (*erase)(struct mtd_info *mtd, int page);
879 int (*scan_bbt)(struct mtd_info *mtd);
880 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
883 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip,
885 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip,
887 int (*setup_read_retry)(struct mtd_info *mtd, int retry_mode);
888 int (*setup_data_interface)(struct mtd_info *mtd, int chipnr,
944 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand()
949 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd()
1077 extern int nand_default_bbt(struct mtd_info *mtd);
1078 extern int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs);
1079 extern int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs);
1080 extern int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
1081 extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
1083 extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len,
1136 void (*hwcontrol)(struct mtd_info *mtd, int cmd);
1137 int (*dev_ready)(struct mtd_info *mtd);
1138 void (*select_chip)(struct mtd_info *mtd, int chip);
1139 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
1140 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
1141 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
1142 unsigned char (*read_byte)(struct mtd_info *mtd);
1221 void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len);
1222 void nand_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len);
1223 void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len);
1224 void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len);
1225 uint8_t nand_read_byte(struct mtd_info *mtd);