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