Lines Matching defs:ecc
169 .ecc = lpc32xx_ooblayout_ecc,
407 static void lpc32xx_slc_ecc_copy(uint8_t *spare, const uint32_t *ecc, int count)
412 uint32_t ce = ecc[i / 3];
531 for (i = 0; i < chip->ecc.steps; i++) {
534 dma_buf + i * chip->ecc.size,
535 mtd->writesize / chip->ecc.steps, dir);
540 if (i == chip->ecc.steps - 1)
572 host->ecc_buf[chip->ecc.steps - 1] =
615 status = lpc32xx_xfer(mtd, buf, chip->ecc.steps, 1);
621 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps);
630 for (i = 0; i < chip->ecc.steps; i++) {
631 stat = chip->ecc.correct(chip, buf, oobecc,
632 &tmpecc[i * chip->ecc.bytes]);
638 buf += chip->ecc.size;
639 oobecc += chip->ecc.bytes;
659 chip->legacy.read_buf(chip, buf, chip->ecc.size * chip->ecc.steps);
682 error = lpc32xx_xfer(mtd, (uint8_t *)buf, chip->ecc.steps, 0);
695 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps);
715 chip->ecc.size * chip->ecc.steps);
778 if (chip->ecc.engine_type != NAND_ECC_ENGINE_TYPE_ON_HOST)
792 chip->ecc.placement = NAND_ECC_PLACEMENT_INTERLEAVED;
794 chip->ecc.size = 256;
795 chip->ecc.strength = 1;
796 chip->ecc.bytes = LPC32XX_SLC_DEV_ECC_BYTES;
797 chip->ecc.prepad = 0;
798 chip->ecc.postpad = 0;
799 chip->ecc.read_page_raw = lpc32xx_nand_read_page_raw_syndrome;
800 chip->ecc.read_page = lpc32xx_nand_read_page_syndrome;
801 chip->ecc.write_page_raw = lpc32xx_nand_write_page_raw_syndrome;
802 chip->ecc.write_page = lpc32xx_nand_write_page_syndrome;
803 chip->ecc.write_oob = lpc32xx_nand_write_oob_syndrome;
804 chip->ecc.read_oob = lpc32xx_nand_read_oob_syndrome;
805 chip->ecc.calculate = lpc32xx_nand_ecc_calculate;
806 chip->ecc.correct = nand_correct_data;
807 chip->ecc.hwctl = lpc32xx_nand_ecc_enable;