Lines Matching refs: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);
626 void (*hwctl)(struct mtd_info *mtd, int mode);
627 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
629 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
631 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
633 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
635 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
637 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
639 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
642 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
644 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
646 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
648 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
649 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
915 struct mtd_info mtd; member
923 uint8_t (*read_byte)(struct mtd_info *mtd);
924 u16 (*read_word)(struct mtd_info *mtd);
925 void (*write_byte)(struct mtd_info *mtd, uint8_t byte);
926 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
927 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
928 void (*select_chip)(struct mtd_info *mtd, int chip);
929 int (*block_bad)(struct mtd_info *mtd, loff_t ofs);
930 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
931 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
932 int (*dev_ready)(struct mtd_info *mtd);
933 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column,
935 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
936 int (*erase)(struct mtd_info *mtd, int page);
937 int (*scan_bbt)(struct mtd_info *mtd);
938 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
941 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip,
943 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip,
945 int (*setup_read_retry)(struct mtd_info *mtd, int retry_mode);
946 int (*setup_data_interface)(struct mtd_info *mtd, int chipnr,
1016 static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) in mtd_to_nand() argument
1018 return container_of(mtd, struct nand_chip, mtd); in mtd_to_nand()
1023 return &chip->mtd; in nand_to_mtd()
1169 int nand_default_bbt(struct mtd_info *mtd);
1170 int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs);
1171 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs);
1172 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
1173 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
1175 int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len,
1228 void (*hwcontrol)(struct mtd_info *mtd, int cmd);
1229 int (*dev_ready)(struct mtd_info *mtd);
1230 void (*select_chip)(struct mtd_info *mtd, int chip);
1231 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
1232 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
1233 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
1234 unsigned char (*read_byte)(struct mtd_info *mtd);
1328 void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len);
1329 void nand_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len);
1330 void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len);
1331 void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len);
1332 uint8_t nand_read_byte(struct mtd_info *mtd);