Lines Matching refs:step_size
30 bch_encode(engine_conf->bch, buf, nand->ecc.ctx.conf.step_size, code); in nand_ecc_sw_bch_calculate()
53 unsigned int step_size = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_correct() local
57 count = bch_decode(engine_conf->bch, NULL, step_size, read_ecc, in nand_ecc_sw_bch_correct()
61 if (errloc[i] < (step_size * 8)) in nand_ecc_sw_bch_correct()
111 unsigned int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_init()
189 conf->step_size = nand->ecc.user_conf.step_size; in nand_ecc_sw_bch_init_ctx()
198 if (!conf->step_size) { in nand_ecc_sw_bch_init_ctx()
200 conf->step_size = 512; in nand_ecc_sw_bch_init_ctx()
202 conf->step_size = 256; in nand_ecc_sw_bch_init_ctx()
207 nsteps = mtd->writesize / conf->step_size; in nand_ecc_sw_bch_init_ctx()
211 conf->step_size = 1024; in nand_ecc_sw_bch_init_ctx()
212 nsteps = mtd->writesize / conf->step_size; 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()
220 fls(8 * conf->step_size), 8); 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()
296 int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_prepare_io_req()
333 int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_finish_io_req()