Lines Matching refs:oob_step_sz
100 unsigned int oob_step_sz; member
143 oobregion->offset = (section * ctx->oob_step_sz) + ctx->meta_sz; in mxic_ecc_ooblayout_ecc()
162 oobregion->offset = section * ctx->oob_step_sz; in mxic_ecc_ooblayout_free()
304 ctx->oob_step_sz = mtd->oobsize / steps; in mxic_ecc_init_ctx()
343 if (ctx->oob_step_sz != SPARE_SZ(spare_reg)) { in mxic_ecc_init_ctx()
345 ctx->oob_step_sz, SPARE_SZ(spare_reg)); in mxic_ecc_init_ctx()
488 next_stat_pos = ctx->oob_step_sz + in mxic_ecc_extract_status_bytes()
489 ((STAT_BYTES + ctx->oob_step_sz) * step); in mxic_ecc_extract_status_bytes()
502 memcpy(dst + (step * ctx->oob_step_sz), in mxic_ecc_reconstruct_oobbuf()
503 src + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_reconstruct_oobbuf()
504 ctx->oob_step_sz); in mxic_ecc_reconstruct_oobbuf()
514 memcpy(dst + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_add_room_in_oobbuf()
515 src + (step * ctx->oob_step_sz), in mxic_ecc_add_room_in_oobbuf()
516 ctx->oob_step_sz); in mxic_ecc_add_room_in_oobbuf()
585 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_prepare_io_req_external()
601 offset = ctx->meta_sz + (step * ctx->oob_step_sz); in mxic_ecc_prepare_io_req_external()
642 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_finish_io_req_external()