Lines Matching refs:ecc

40 	u32 ecc;  member
106 #define lpc32xx_dmac_set_ecc() ((u32)&lpc32xx_nand_slc_regs->ecc)
336 static u32 slc_ecc_copy_to_buffer(u8 *spare, const u32 *ecc, int count) in slc_ecc_copy_to_buffer() argument
341 u32 ce = ecc[i / CONFIG_SYS_NAND_ECCBYTES]; in slc_ecc_copy_to_buffer()
422 uint32_t *eccpos = chip->ecc.layout->eccpos; in lpc32xx_read_page_hwecc()
433 lpc32xx_dma_read_buf(mtd, p, chip->ecc.size * chip->ecc.steps); in lpc32xx_read_page_hwecc()
437 for (i = 0; i < chip->ecc.total; i++) in lpc32xx_read_page_hwecc()
440 stat = chip->ecc.correct(mtd, p, &ecc_code[0], &ecc_calc[0]); in lpc32xx_read_page_hwecc()
460 uint32_t *eccpos = chip->ecc.layout->eccpos; in lpc32xx_write_page_hwecc()
470 lpc32xx_dma_write_buf(mtd, p, chip->ecc.size * chip->ecc.steps); in lpc32xx_write_page_hwecc()
473 for (i = 0; i < chip->ecc.total; i++) in lpc32xx_write_page_hwecc()
536 lpc32xx_chip->ecc.mode = NAND_ECC_HW; in board_nand_init()
541 lpc32xx_chip->ecc.calculate = lpc32xx_ecc_calculate; in board_nand_init()
542 lpc32xx_chip->ecc.correct = lpc32xx_correct_data; in board_nand_init()
543 lpc32xx_chip->ecc.hwctl = lpc32xx_hwecc_enable; in board_nand_init()
546 lpc32xx_chip->ecc.read_page = lpc32xx_read_page_hwecc; in board_nand_init()
547 lpc32xx_chip->ecc.write_page = lpc32xx_write_page_hwecc; in board_nand_init()
555 lpc32xx_chip->ecc.mode = NAND_ECC_SOFT; in board_nand_init()
570 lpc32xx_chip->ecc.size = CONFIG_SYS_NAND_ECCSIZE; in board_nand_init()
571 lpc32xx_chip->ecc.bytes = CONFIG_SYS_NAND_ECCBYTES; in board_nand_init()
572 lpc32xx_chip->ecc.strength = 1; in board_nand_init()
575 lpc32xx_chip->ecc.layout = &lpc32xx_nand_oob_16; in board_nand_init()