• Home
  • Raw
  • Download

Lines Matching refs:mtd_info

24 struct mtd_info;
30 struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
36 int nand_scan(struct mtd_info *mtd, int max_chips);
41 int nand_scan_ident(struct mtd_info *mtd, int max_chips,
43 int nand_scan_tail(struct mtd_info *mtd);
46 void nand_release(struct mtd_info *mtd);
49 void nand_wait_ready(struct mtd_info *mtd);
596 void (*hwctl)(struct mtd_info *mtd, int mode);
597 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
599 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
601 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
603 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
605 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
607 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
609 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
612 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
614 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
616 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
618 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
619 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
873 struct mtd_info mtd;
879 uint8_t (*read_byte)(struct mtd_info *mtd);
880 u16 (*read_word)(struct mtd_info *mtd);
881 void (*write_byte)(struct mtd_info *mtd, uint8_t byte);
882 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
883 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
884 void (*select_chip)(struct mtd_info *mtd, int chip);
885 int (*block_bad)(struct mtd_info *mtd, loff_t ofs);
886 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
887 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
888 int (*dev_ready)(struct mtd_info *mtd);
889 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column,
891 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
892 int (*erase)(struct mtd_info *mtd, int page);
893 int (*scan_bbt)(struct mtd_info *mtd);
894 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
897 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip,
899 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip,
901 int (*setup_read_retry)(struct mtd_info *mtd, int retry_mode);
902 int (*setup_data_interface)(struct mtd_info *mtd, int chipnr,
956 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand()
961 static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) in nand_to_mtd()
1089 int nand_default_bbt(struct mtd_info *mtd);
1090 int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs);
1091 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs);
1092 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
1093 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
1095 int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len,
1148 void (*hwcontrol)(struct mtd_info *mtd, int cmd);
1149 int (*dev_ready)(struct mtd_info *mtd);
1150 void (*select_chip)(struct mtd_info *mtd, int chip);
1151 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
1152 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
1153 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
1154 unsigned char (*read_byte)(struct mtd_info *mtd);
1248 void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len);
1249 void nand_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len);
1250 void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len);
1251 void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len);
1252 uint8_t nand_read_byte(struct mtd_info *mtd);