Lines Matching refs: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;
392 for (strength = 0; strength < pmecc->caps->nstrengths; strength++) {
393 if (pmecc->caps->strengths[strength] == req->ecc.strength)
397 user->cache.cfg = PMECC_CFG_BCH_STRENGTH(strength) |
431 int strength = get_strength(user);
436 for (i = 0; i < strength; i++) {
450 int strength = get_strength(user);
463 memset(&si[1], 0, sizeof(s16) * ((2 * strength) - 1));
467 for (i = 1; i < 2 * strength; i += 2) {
474 for (i = 2, j = 1; j <= strength; i = ++j << 1) {
496 int strength = get_strength(user);
497 int num = 2 * strength + 1;
542 memset(&smu[(strength + 1) * num], 0, sizeof(s16) * num);
544 for (i = 1; i <= strength; i++) {
551 tmp = ((strength - (lmu[i] >> 1) - 1) / 2);
552 if ((strength - (lmu[i] >> 1) - 1) & 0x1)
559 smu[(strength + 1) * num + j] =
562 lmu[strength + 1] = lmu[i];
620 if (i >= strength)
646 int strength = get_strength(user);
648 int num = (2 * strength) + 1;
654 for (i = 0; i <= user->lmu[strength + 1] >> 1; i++) {
655 writel_relaxed(smu[(strength + 1) * num + i],
665 writel((sector_size * 8) + (degree * strength),
680 if (roots_nbr == user->lmu[strength + 1] >> 1)