Lines Matching refs:step

484 	int step;  in mxic_ecc_extract_status_bytes()  local
487 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_extract_status_bytes()
489 ((STAT_BYTES + ctx->oob_step_sz) * step); in mxic_ecc_extract_status_bytes()
491 ctx->status[step] = buf[next_stat_pos]; in mxic_ecc_extract_status_bytes()
498 int step; in mxic_ecc_reconstruct_oobbuf() local
501 for (step = 0; step < ctx->steps; step++) in mxic_ecc_reconstruct_oobbuf()
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()
510 int step; in mxic_ecc_add_room_in_oobbuf() local
513 for (step = 0; step < ctx->steps; step++) in mxic_ecc_add_room_in_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()
527 int step; in mxic_ecc_count_biterrs() local
529 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_count_biterrs()
530 u8 stat = ctx->status[step]; in mxic_ecc_count_biterrs()
533 dev_dbg(dev, "ECC step %d: no error\n", step); in mxic_ecc_count_biterrs()
535 dev_dbg(dev, "ECC step %d: erased\n", step); in mxic_ecc_count_biterrs()
537 dev_dbg(dev, "ECC step %d: uncorrectable\n", step); in mxic_ecc_count_biterrs()
542 step, stat); in mxic_ecc_count_biterrs()
558 int offset, nents, step, ret; in mxic_ecc_prepare_io_req_external() local
582 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_prepare_io_req_external()
583 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_prepare_io_req_external()
585 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_prepare_io_req_external()
600 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_prepare_io_req_external()
601 offset = ctx->meta_sz + (step * ctx->oob_step_sz); in mxic_ecc_prepare_io_req_external()
604 ctx->oobwithstat + (step * STAT_BYTES), in mxic_ecc_prepare_io_req_external()
605 step * ctx->parity_sz, in mxic_ecc_prepare_io_req_external()
617 int nents, step, ret; in mxic_ecc_finish_io_req_external() local
639 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_finish_io_req_external()
640 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_finish_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()