Lines Matching defs:conf
30 bch_encode(engine_conf->bch, buf, nand->ecc.ctx.conf.step_size, code);
53 unsigned int step_size = nand->ecc.ctx.conf.step_size;
111 unsigned int eccsize = nand->ecc.ctx.conf.step_size;
172 struct nand_ecc_props *conf = &nand->ecc.ctx.conf;
187 conf->engine_type = NAND_ECC_ENGINE_TYPE_SOFT;
188 conf->algo = NAND_ECC_ALGO_BCH;
189 conf->step_size = nand->ecc.user_conf.step_size;
190 conf->strength = nand->ecc.user_conf.strength;
198 if (!conf->step_size) {
200 conf->step_size = 512;
202 conf->step_size = 256;
204 conf->strength = 4;
207 nsteps = mtd->writesize / conf->step_size;
211 conf->step_size = 1024;
212 nsteps = mtd->writesize / conf->step_size;
215 conf->strength = code_size * 8 / fls(8 * conf->step_size);
219 code_size = DIV_ROUND_UP(conf->strength *
220 fls(8 * conf->step_size), 8);
222 if (!conf->strength)
223 conf->strength = (code_size * 8) / fls(8 * conf->step_size);
225 if (!code_size && !conf->strength) {
296 int eccsize = nand->ecc.ctx.conf.step_size;
333 int eccsize = nand->ecc.ctx.conf.step_size;