Lines Matching full:step

265 	/* Step size is fixed to 1kiB, strength may vary (4 possible values) */  in mxic_ecc_init_ctx()
372 /* Trigger each step manually */ in mxic_ecc_init_ctx_external()
483 int step; in mxic_ecc_extract_status_bytes() local
486 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_extract_status_bytes()
488 ((STAT_BYTES + ctx->oob_step_sz) * step); in mxic_ecc_extract_status_bytes()
490 ctx->status[step] = buf[next_stat_pos]; in mxic_ecc_extract_status_bytes()
497 int step; in mxic_ecc_reconstruct_oobbuf() local
500 for (step = 0; step < ctx->steps; step++) in mxic_ecc_reconstruct_oobbuf()
501 memcpy(dst + (step * ctx->oob_step_sz), in mxic_ecc_reconstruct_oobbuf()
502 src + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_reconstruct_oobbuf()
509 int step; in mxic_ecc_add_room_in_oobbuf() local
512 for (step = 0; step < ctx->steps; step++) in mxic_ecc_add_room_in_oobbuf()
513 memcpy(dst + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_add_room_in_oobbuf()
514 src + (step * ctx->oob_step_sz), in mxic_ecc_add_room_in_oobbuf()
526 int step; in mxic_ecc_count_biterrs() local
528 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_count_biterrs()
529 u8 stat = ctx->status[step]; in mxic_ecc_count_biterrs()
532 dev_dbg(dev, "ECC step %d: no error\n", step); in mxic_ecc_count_biterrs()
534 dev_dbg(dev, "ECC step %d: erased\n", step); in mxic_ecc_count_biterrs()
536 dev_dbg(dev, "ECC step %d: uncorrectable\n", step); in mxic_ecc_count_biterrs()
540 dev_dbg(dev, "ECC step %d: %d bits corrected\n", in mxic_ecc_count_biterrs()
541 step, stat); in mxic_ecc_count_biterrs()
557 int offset, nents, step, ret; in mxic_ecc_prepare_io_req_external() local
581 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_prepare_io_req_external()
582 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_prepare_io_req_external()
584 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_prepare_io_req_external()
599 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_prepare_io_req_external()
600 offset = ctx->meta_sz + (step * ctx->oob_step_sz); in mxic_ecc_prepare_io_req_external()
603 ctx->oobwithstat + (step * STAT_BYTES), in mxic_ecc_prepare_io_req_external()
604 step * ctx->parity_sz, in mxic_ecc_prepare_io_req_external()
616 int nents, step, ret; in mxic_ecc_finish_io_req_external() local
638 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_finish_io_req_external()
639 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_finish_io_req_external()
641 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_finish_io_req_external()