Lines Matching refs: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()
400 writel(ctx->steps, mxic->regs + CHUNK_CNT); in mxic_ecc_init_ctx_pipelined()
486 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_extract_status_bytes()
500 for (step = 0; step < ctx->steps; step++) in mxic_ecc_reconstruct_oobbuf()
512 for (step = 0; step < ctx->steps; step++) in mxic_ecc_add_room_in_oobbuf()
528 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_count_biterrs()
573 req->ooblen + (ctx->steps * STAT_BYTES)); in mxic_ecc_prepare_io_req_external()
581 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_prepare_io_req_external()
599 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_prepare_io_req_external()
631 req->ooblen + (ctx->steps * STAT_BYTES)); in mxic_ecc_finish_io_req_external()
638 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_finish_io_req_external()
685 req->ooblen + (ctx->steps * STAT_BYTES)); in mxic_ecc_prepare_io_req_pipelined()