Lines Matching refs:eccbytes
112 unsigned int eccbytes = engine_conf->code_size; in nand_ecc_sw_bch_init() local
118 t = (eccbytes * 8) / m; in nand_ecc_sw_bch_init()
124 engine_conf->eccmask = kzalloc(eccbytes, GFP_KERNEL); in nand_ecc_sw_bch_init()
144 for (i = 0; i < eccbytes; i++) in nand_ecc_sw_bch_init()
148 if (engine_conf->bch->ecc_bytes != eccbytes) { in nand_ecc_sw_bch_init()
150 eccbytes, engine_conf->bch->ecc_bytes); in nand_ecc_sw_bch_init()
156 if (8 * (eccsize + eccbytes) >= (1 << m)) { in nand_ecc_sw_bch_init()
297 int eccbytes = engine_conf->code_size; in nand_ecc_sw_bch_prepare_io_req() local
321 eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_bch_prepare_io_req()
335 int eccbytes = engine_conf->code_size; in nand_ecc_sw_bch_finish_io_req() local
364 for (i = 0; eccsteps; eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_bch_finish_io_req()
370 eccsteps--, i += eccbytes, data += eccsize) { in nand_ecc_sw_bch_finish_io_req()