Lines Matching defs:ecc
79 /* This is the ecc value computed by the HW ecc generator upon writing an empty
135 static int doc_ecc_decode(struct rs_control *rs, uint8_t *data, uint8_t *ecc)
143 /* Convert the ecc bytes into words */
144 ds[0] = ((ecc[4] & 0xff) >> 0) | ((ecc[5] & 0x03) << 8);
145 ds[1] = ((ecc[5] & 0xfc) >> 2) | ((ecc[2] & 0x0f) << 6);
146 ds[2] = ((ecc[2] & 0xf0) >> 4) | ((ecc[3] & 0x3f) << 4);
147 ds[3] = ((ecc[3] & 0xc0) >> 6) | ((ecc[0] & 0xff) << 2);
148 parity = ecc[1];
751 Return all-0xff ecc value instead of the computed one, so
852 .ecc = doc200x_ooblayout_ecc,
1264 this->ecc.hwctl = doc2001plus_enable_hwecc;
1274 if (chip->ecc.engine_type != NAND_ECC_ENGINE_TYPE_ON_HOST)
1277 chip->ecc.placement = NAND_ECC_PLACEMENT_INTERLEAVED;
1278 chip->ecc.size = 512;
1279 chip->ecc.bytes = 6;
1280 chip->ecc.strength = 2;
1281 chip->ecc.options = NAND_ECC_GENERIC_ERASED_CHECK;
1282 chip->ecc.hwctl = doc200x_enable_hwecc;
1283 chip->ecc.calculate = doc200x_calculate_ecc;
1284 chip->ecc.correct = doc200x_correct_data;