Lines Matching defs:nand_ecc_ctrl
348 struct nand_ecc_ctrl { struct
349 nand_ecc_modes_t mode;
350 int steps;
351 int size;
352 int bytes;
353 int total;
354 int prepad;
355 int postpad;
356 struct nand_ecclayout *layout;
357 void *priv;
358 void (*hwctl)(struct mtd_info *mtd, int mode);
359 int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
361 int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
363 int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
365 void (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
367 int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
369 int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
371 void (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
373 int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
375 int (*read_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
377 int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page,
379 int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,