Lines Matching refs:strength
1302 int strength, int ecc_stepsize, int page_size)
1304 if (strength == 1 && ecc_stepsize == 512 && page_size == 2048) {
1310 ecc->strength = 1;
1312 } else if (strength == 1 && ecc_stepsize == 512 && page_size == 512) {
1318 ecc->strength = 1;
1324 } else if (strength == 4 && ecc_stepsize == 512 && page_size == 2048) {
1332 ecc->strength = 16;
1334 } else if (strength == 4 && ecc_stepsize == 512 && page_size == 4096) {
1342 ecc->strength = 16;
1348 } else if (strength == 8 && ecc_stepsize == 512 && page_size == 4096) {
1356 ecc->strength = 16;
1359 "ECC strength %d at page size %d is not supported\n",
1360 strength, page_size);
1444 /* Set default ECC strength requirements on non-ONFI devices */
1578 /* ECC strength */
1580 "nand-ecc-strength", 0);