Lines Matching refs:mtd_info
27 struct mtd_info;
30 extern int nand_scan(struct mtd_info *mtd, int max_chips);
35 extern int nand_scan_ident(struct mtd_info *mtd, int max_chips,
37 extern int nand_scan_tail(struct mtd_info *mtd);
40 extern void nand_release(struct mtd_info *mtd);
43 extern void nand_wait_ready(struct mtd_info *mtd);
46 extern int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
49 extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
497 void (*hwctl)(struct mtd_info *mtd, int mode);
498 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
500 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
502 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
504 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
506 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
508 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
510 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
513 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
515 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
517 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
519 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
520 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
647 uint8_t (*read_byte)(struct mtd_info *mtd);
648 u16 (*read_word)(struct mtd_info *mtd);
649 void (*write_byte)(struct mtd_info *mtd, uint8_t byte);
650 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
651 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
652 void (*select_chip)(struct mtd_info *mtd, int chip);
653 int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip);
654 int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
655 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
656 int (*init_size)(struct mtd_info *mtd, struct nand_chip *this,
658 int (*dev_ready)(struct mtd_info *mtd);
659 void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column,
661 int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
662 int (*erase)(struct mtd_info *mtd, int page);
663 int (*scan_bbt)(struct mtd_info *mtd);
664 int (*errstat)(struct mtd_info *mtd, struct nand_chip *this, int state,
666 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
669 int (*onfi_set_features)(struct mtd_info *mtd, struct nand_chip *chip,
671 int (*onfi_get_features)(struct mtd_info *mtd, struct nand_chip *chip,
673 int (*setup_read_retry)(struct mtd_info *mtd, int retry_mode);
836 extern int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd);
837 extern int nand_default_bbt(struct mtd_info *mtd);
838 extern int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs);
839 extern int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs);
840 extern int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
841 extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
843 extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len,
892 void (*hwcontrol)(struct mtd_info *mtd, int cmd);
893 int (*dev_ready)(struct mtd_info *mtd);
894 void (*select_chip)(struct mtd_info *mtd, int chip);
895 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
896 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
897 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
898 unsigned char (*read_byte)(struct mtd_info *mtd);
914 struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd) in get_platform_nandchip()