Lines Matching defs:nand_ecc_ctrl
349 struct nand_ecc_ctrl { struct
350 enum nand_ecc_engine_type engine_type;
351 enum nand_ecc_placement placement;
352 enum nand_ecc_algo algo;
353 int steps;
354 int size;
355 int bytes;
356 int total;
357 int strength;
358 int prepad;
359 int postpad;
360 unsigned int options;
361 u8 *calc_buf;
362 u8 *code_buf;
363 void (*hwctl)(struct nand_chip *chip, int mode);
364 int (*calculate)(struct nand_chip *chip, const uint8_t *dat,
366 int (*correct)(struct nand_chip *chip, uint8_t *dat, uint8_t *read_ecc,
368 int (*read_page_raw)(struct nand_chip *chip, uint8_t *buf,
370 int (*write_page_raw)(struct nand_chip *chip, const uint8_t *buf,
372 int (*read_page)(struct nand_chip *chip, uint8_t *buf,
374 int (*read_subpage)(struct nand_chip *chip, uint32_t offs,
376 int (*write_subpage)(struct nand_chip *chip, uint32_t offset,
379 int (*write_page)(struct nand_chip *chip, const uint8_t *buf,
381 int (*write_oob_raw)(struct nand_chip *chip, int page);
382 int (*read_oob_raw)(struct nand_chip *chip, int page);
383 int (*read_oob)(struct nand_chip *chip, int page);
384 int (*write_oob)(struct nand_chip *chip, int page);