Lines Matching full:strength

290 		if (req->ecc.strength != ATMEL_PMECC_MAXIMIZE_ECC_STRENGTH)
310 int nbytes, strength = pmecc->caps->strengths[i];
312 if (req->ecc.strength != ATMEL_PMECC_MAXIMIZE_ECC_STRENGTH &&
313 strength < req->ecc.strength)
316 nbytes = DIV_ROUND_UP(strength * fls(8 * req->ecc.sectorsize),
323 eccstrength = strength;
326 if (req->ecc.strength != ATMEL_PMECC_MAXIMIZE_ECC_STRENGTH)
334 req->ecc.strength = eccstrength;
348 int strength, size, ret;
357 size += ((2 * req->ecc.strength) + 1) * sizeof(u16) *
358 (2 + req->ecc.strength + 2);
360 size += (req->ecc.strength + 1) * sizeof(u16);
363 size += (req->ecc.strength + 1) * sizeof(s32) * 3;
372 user->si = user->partial_syn + ((2 * req->ecc.strength) + 1);
373 user->lmu = user->si + ((2 * req->ecc.strength) + 1);
374 user->smu = user->lmu + (req->ecc.strength + 1);
376 (((2 * req->ecc.strength) + 1) *
377 (req->ecc.strength + 2)),
379 user->dmu = user->mu + req->ecc.strength + 1;
380 user->delta = user->dmu + req->ecc.strength + 1;
390 for (strength = 0; strength < pmecc->caps->nstrengths; strength++) {
391 if (pmecc->caps->strengths[strength] == req->ecc.strength)
395 user->cache.cfg = PMECC_CFG_BCH_STRENGTH(strength) |
423 int strength = get_strength(user);
428 for (i = 0; i < strength; i++) {
442 int strength = get_strength(user);
455 memset(&si[1], 0, sizeof(s16) * ((2 * strength) - 1));
459 for (i = 1; i < 2 * strength; i += 2) {
466 for (i = 2, j = 1; j <= strength; i = ++j << 1) {
488 int strength = get_strength(user);
489 int num = 2 * strength + 1;
534 memset(&smu[(strength + 1) * num], 0, sizeof(s16) * num);
536 for (i = 1; i <= strength; i++) {
543 tmp = ((strength - (lmu[i] >> 1) - 1) / 2);
544 if ((strength - (lmu[i] >> 1) - 1) & 0x1)
551 smu[(strength + 1) * num + j] =
554 lmu[strength + 1] = lmu[i];
612 if (i >= strength)
638 int strength = get_strength(user);
640 int num = (2 * strength) + 1;
646 for (i = 0; i <= user->lmu[strength + 1] >> 1; i++) {
647 writel_relaxed(smu[(strength + 1) * num + i],
657 writel((sector_size * 8) + (degree * strength),
672 if (roots_nbr == user->lmu[strength + 1] >> 1)