Home | History | Annotate | Download | only in nand

Lines Matching refs:strength

1406 						chip->ecc.strength);
1464 chip->ecc.strength);
1525 chip->ecc.strength);
1589 chip->ecc.strength);
3965 ecc_strength = fdtdec_get_int(blob, node, "nand-ecc-strength", -1);
3970 pr_err("must set both strength and step size in DT\n");
3978 chip->ecc.strength = ecc_strength;
4088 * When ECC step size and strength are already set, check if they are supported
4098 int preset_strength = chip->ecc.strength;
4126 pr_err("ECC (step, strength) = (%d, %d) does not fit in OOB",
4137 pr_err("ECC (step, strength) = (%d, %d) not supported on this controller",
4161 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_total;
4181 strength = stepinfo->strengths[j];
4184 * If both step size and strength are smaller than the
4188 if (step_size < req_step && strength < req_strength)
4196 ecc_bytes = caps->calc_ecc_bytes(step_size, strength);
4202 strength * nsteps < req_corr)
4212 best_strength = strength;
4222 chip->ecc.strength = best_strength;
4230 * nand_maximize_ecc - choose the max ECC strength available
4235 * Choose the max ECC strength that is supported on the controller, and can fit
4243 int step_size, strength, nsteps, ecc_bytes, corr;
4261 strength = stepinfo->strengths[j];
4268 ecc_bytes = caps->calc_ecc_bytes(step_size, strength);
4275 corr = strength * nsteps;
4285 best_strength = strength;
4295 chip->ecc.strength = best_strength;
4330 corr = (mtd->writesize * ecc->strength) / ecc->size;
4333 return corr >= ds_corr && ecc->strength >= chip->ecc_strength_ds;
4476 if (!ecc->strength) {
4477 pr_warn("Driver must set ecc.strength when using hardware ECC\n");
4499 ecc->strength = 1;
4517 * Board driver should supply ecc.size and ecc.strength values
4523 ecc->strength = 4;
4545 ecc->strength = 0;
4638 mtd->ecc_strength = ecc->strength;