Lines Matching defs:ecc
271 unsigned int ecc;
275 ecc = tmio_ioread16(tmio->fcr + FCR_DATA);
276 ecc_code[1] = ecc; /* 000-255 LP7-0 */
277 ecc_code[0] = ecc >> 8; /* 000-255 LP15-8 */
278 ecc = tmio_ioread16(tmio->fcr + FCR_DATA);
279 ecc_code[2] = ecc; /* 000-255 CP5-0,11b */
280 ecc_code[4] = ecc >> 8; /* 256-511 LP7-0 */
281 ecc = tmio_ioread16(tmio->fcr + FCR_DATA);
282 ecc_code[3] = ecc; /* 256-511 LP15-8 */
283 ecc_code[5] = ecc >> 8; /* 256-511 CP5-0,11b */
295 /* assume ecc.size = 512 and ecc.bytes = 6 */
361 if (chip->ecc.engine_type != NAND_ECC_ENGINE_TYPE_ON_HOST)
364 chip->ecc.size = 512;
365 chip->ecc.bytes = 6;
366 chip->ecc.strength = 2;
367 chip->ecc.hwctl = tmio_nand_enable_hwecc;
368 chip->ecc.calculate = tmio_nand_calculate_ecc;
369 chip->ecc.correct = tmio_nand_correct_data;