Lines Matching defs:nand_ecc_ctrl
635 struct nand_ecc_ctrl { struct
636 nand_ecc_modes_t mode;
637 enum nand_ecc_algo algo;
638 int steps;
639 int size;
640 int bytes;
641 int total;
642 int strength;
643 int prepad;
644 int postpad;
645 unsigned int options;
646 void *priv;
647 u8 *calc_buf;
648 u8 *code_buf;
649 void (*hwctl)(struct mtd_info *mtd, int mode);
650 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
652 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
654 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
656 int (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
658 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
660 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
662 int (*write_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
665 int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
667 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
669 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
671 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page);
672 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,