Lines Matching refs:code_size
29 memset(code, 0, engine_conf->code_size); in nand_ecc_sw_bch_calculate()
33 for (i = 0; i < engine_conf->code_size; i++) in nand_ecc_sw_bch_calculate()
112 unsigned int eccbytes = engine_conf->code_size; in nand_ecc_sw_bch_init()
175 unsigned int code_size = 0, nsteps; in nand_ecc_sw_bch_init_ctx() local
214 code_size = (mtd->oobsize - 2) / nsteps; in nand_ecc_sw_bch_init_ctx()
215 conf->strength = code_size * 8 / fls(8 * conf->step_size); in nand_ecc_sw_bch_init_ctx()
218 if (!code_size) in nand_ecc_sw_bch_init_ctx()
219 code_size = DIV_ROUND_UP(conf->strength * in nand_ecc_sw_bch_init_ctx()
223 conf->strength = (code_size * 8) / fls(8 * conf->step_size); in nand_ecc_sw_bch_init_ctx()
225 if (!code_size && !conf->strength) { in nand_ecc_sw_bch_init_ctx()
238 engine_conf->code_size = code_size; in nand_ecc_sw_bch_init_ctx()
248 nand->ecc.ctx.total = nsteps * code_size; in nand_ecc_sw_bch_init_ctx()
256 nand->ecc.ctx.nsteps * engine_conf->code_size) { in nand_ecc_sw_bch_init_ctx()
297 int eccbytes = engine_conf->code_size; in nand_ecc_sw_bch_prepare_io_req()
335 int eccbytes = engine_conf->code_size; in nand_ecc_sw_bch_finish_io_req()