Lines Matching defs:steps
104 int steps;
140 if (section < 0 || section >= ctx->steps)
155 if (section < 0 || section >= ctx->steps)
226 int step_size = 0, strength = 0, desired_correction = 0, steps, idx;
261 steps = mtd->writesize / step_size;
262 desired_correction = steps * strength;
267 steps = mtd->writesize / conf->step_size;
269 ctx->status = devm_kzalloc(dev, steps * sizeof(u8), GFP_KERNEL);
274 strength = desired_correction / steps;
289 if (spare_size[idx] * steps <= mtd->oobsize)
302 ctx->steps = steps;
303 ctx->data_step_sz = mtd->writesize / steps;
304 ctx->oob_step_sz = mtd->oobsize / steps;
310 (ctx->steps * STAT_BYTES);
315 ctx->oobwithstat = kmalloc(mtd->oobsize + (ctx->steps * STAT_BYTES),
399 /* All steps should be handled in one go directly by the internal DMA */
400 writel(ctx->steps, mxic->regs + CHUNK_CNT);
487 for (step = 0; step < ctx->steps; step++) {
501 for (step = 0; step < ctx->steps; step++)
513 for (step = 0; step < ctx->steps; step++)
529 for (step = 0; step < ctx->steps; step++) {
574 req->ooblen + (ctx->steps * STAT_BYTES));
582 for (step = 0; step < ctx->steps; step++) {
600 for (step = 0; step < ctx->steps; step++) {
632 req->ooblen + (ctx->steps * STAT_BYTES));
639 for (step = 0; step < ctx->steps; step++) {
686 req->ooblen + (ctx->steps * STAT_BYTES));