Home | History | Annotate | Download | only in nand

Lines Matching refs:strength

334 						  chip->ecc.strength);
1103 int denali_calc_ecc_bytes(int step_size, int strength)
1106 return DIV_ROUND_UP(strength * fls(step_size * 8), 16) * 2;
1117 * If .size and .strength are already set (usually by DT),
1120 if (chip->ecc.size && chip->ecc.strength)
1124 * We want .size and .strength closest to the chip's requirement
1133 /* Max ECC strength is the last thing we can do */
1219 chip->ecc.strength <<= 1;
1297 "chosen ECC settings: step=%d, strength=%d, bytes=%d\n",
1298 chip->ecc.size, chip->ecc.strength, chip->ecc.bytes);
1301 FIELD_PREP(ECC_CORRECTION__VALUE, chip->ecc.strength),