Lines Matching refs:mtd

32 extern int nand_scan(struct mtd_info *mtd, int max_chips);
37 extern int nand_scan_ident(struct mtd_info *mtd, int max_chips,
39 extern int nand_scan_tail(struct mtd_info *mtd);
42 extern void nand_release(struct mtd_info *mtd);
45 extern void nand_wait_ready(struct mtd_info *mtd);
48 extern int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
51 extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
499 void (*hwctl)(struct mtd_info *mtd, int mode);
500 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
502 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
504 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
506 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
508 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
510 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
512 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
515 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
517 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
519 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
521 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
522 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
648 uint8_t (*read_byte)(struct mtd_info *mtd);
649 u16 (*read_word)(struct mtd_info *mtd);
650 void (*write_byte)(struct mtd_info *mtd, uint8_t byte);
651 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
652 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
653 void (*select_chip)(struct mtd_info *mtd, int chip);
654 int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip);
655 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
656 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
657 int (*dev_ready)(struct mtd_info *mtd);
658 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column,
660 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
661 int (*erase)(struct mtd_info *mtd, int page);
662 int (*scan_bbt)(struct mtd_info *mtd);
663 int (*errstat)(struct mtd_info *mtd, struct nand_chip *this, int state,
665 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
668 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip,
670 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip,
672 int (*setup_read_retry)(struct mtd_info *mtd, int retry_mode);
835 extern int nand_default_bbt(struct mtd_info *mtd);
836 extern int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs);
837 extern int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs);
838 extern int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
839 extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
841 extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len,
890 void (*hwcontrol)(struct mtd_info *mtd, int cmd);
891 int (*dev_ready)(struct mtd_info *mtd);
892 void (*select_chip)(struct mtd_info *mtd, int chip);
893 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
894 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
895 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
896 unsigned char (*read_byte)(struct mtd_info *mtd);
912 struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd) in get_platform_nandchip() argument
914 struct nand_chip *chip = mtd->priv; in get_platform_nandchip()