Lines Matching refs:ecc
272 unsigned int ecc; in tmio_nand_calculate_ecc() local
276 ecc = tmio_ioread16(tmio->fcr + FCR_DATA); in tmio_nand_calculate_ecc()
277 ecc_code[1] = ecc; /* 000-255 LP7-0 */ in tmio_nand_calculate_ecc()
278 ecc_code[0] = ecc >> 8; /* 000-255 LP15-8 */ in tmio_nand_calculate_ecc()
279 ecc = tmio_ioread16(tmio->fcr + FCR_DATA); in tmio_nand_calculate_ecc()
280 ecc_code[2] = ecc; /* 000-255 CP5-0,11b */ in tmio_nand_calculate_ecc()
281 ecc_code[4] = ecc >> 8; /* 256-511 LP7-0 */ in tmio_nand_calculate_ecc()
282 ecc = tmio_ioread16(tmio->fcr + FCR_DATA); in tmio_nand_calculate_ecc()
283 ecc_code[3] = ecc; /* 256-511 LP15-8 */ in tmio_nand_calculate_ecc()
284 ecc_code[5] = ecc >> 8; /* 256-511 CP5-0,11b */ in tmio_nand_calculate_ecc()
412 nand_chip->ecc.mode = NAND_ECC_HW; in tmio_probe()
413 nand_chip->ecc.size = 512; in tmio_probe()
414 nand_chip->ecc.bytes = 6; in tmio_probe()
415 nand_chip->ecc.strength = 2; in tmio_probe()
416 nand_chip->ecc.hwctl = tmio_nand_enable_hwecc; in tmio_probe()
417 nand_chip->ecc.calculate = tmio_nand_calculate_ecc; in tmio_probe()
418 nand_chip->ecc.correct = tmio_nand_correct_data; in tmio_probe()