Lines Matching refs:ecc
313 if (chip->ecc.size == 512) { in bf5xx_nand_correct_data()
349 if (chip->ecc.size == 512) { in bf5xx_nand_calculate_ecc()
483 (unsigned int)(buf + chip->ecc.size)); in bf5xx_nand_dma_rw()
486 (unsigned int)(buf + chip->ecc.size)); in bf5xx_nand_dma_rw()
507 set_dma_x_count(CH_NFC, (chip->ecc.size >> 1)); in bf5xx_nand_dma_rw()
513 set_dma_x_count(CH_NFC, (chip->ecc.size >> 2)); in bf5xx_nand_dma_rw()
539 if (len == chip->ecc.size) in bf5xx_nand_dma_read_buf()
553 if (len == chip->ecc.size) in bf5xx_nand_dma_write_buf()
700 chip->ecc.size = 512; in bf5xx_nand_scan()
701 chip->ecc.bytes = 6; in bf5xx_nand_scan()
702 chip->ecc.strength = 2; in bf5xx_nand_scan()
704 chip->ecc.size = 256; in bf5xx_nand_scan()
705 chip->ecc.bytes = 3; in bf5xx_nand_scan()
706 chip->ecc.strength = 1; in bf5xx_nand_scan()
796 chip->ecc.layout = &bootrom_ecclayout; in bf5xx_nand_probe()
800 chip->ecc.calculate = bf5xx_nand_calculate_ecc; in bf5xx_nand_probe()
801 chip->ecc.correct = bf5xx_nand_correct_data; in bf5xx_nand_probe()
802 chip->ecc.mode = NAND_ECC_HW; in bf5xx_nand_probe()
803 chip->ecc.hwctl = bf5xx_nand_enable_hwecc; in bf5xx_nand_probe()
804 chip->ecc.read_page_raw = bf5xx_nand_read_page_raw; in bf5xx_nand_probe()
805 chip->ecc.write_page_raw = bf5xx_nand_write_page_raw; in bf5xx_nand_probe()
807 chip->ecc.mode = NAND_ECC_SOFT; in bf5xx_nand_probe()