Searched refs:nsteps (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/mtd/nand/ |
D | ecc-sw-bch.c | 175 unsigned int code_size = 0, nsteps; in nand_ecc_sw_bch_init_ctx() local 207 nsteps = mtd->writesize / conf->step_size; in nand_ecc_sw_bch_init_ctx() 212 nsteps = mtd->writesize / conf->step_size; in nand_ecc_sw_bch_init_ctx() 214 code_size = (mtd->oobsize - 2) / nsteps; in nand_ecc_sw_bch_init_ctx() 247 nand->ecc.ctx.nsteps = nsteps; 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() 298 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_bch_prepare_io_req() 336 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_bch_finish_io_req() 368 for (eccsteps = nand->ecc.ctx.nsteps, i = 0, data = req->databuf.in; in nand_ecc_sw_bch_finish_io_req()
|
D | ecc-sw-hamming.c | 516 nand->ecc.ctx.nsteps = mtd->writesize / conf->step_size; in nand_ecc_sw_hamming_init_ctx() 517 nand->ecc.ctx.total = nand->ecc.ctx.nsteps * engine_conf->code_size; in nand_ecc_sw_hamming_init_ctx() 552 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_hamming_prepare_io_req() 590 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_hamming_finish_io_req() 622 for (eccsteps = nand->ecc.ctx.nsteps, i = 0, data = req->databuf.in; in nand_ecc_sw_hamming_finish_io_req()
|
/linux-6.1.9/include/linux/mtd/ |
D | nand.h | 241 unsigned int nsteps; member 641 return nand->ecc.ctx.nsteps; in nanddev_get_ecc_nsteps() 651 return nand->ecc.ctx.total / nand->ecc.ctx.nsteps; in nanddev_get_ecc_bytes_per_step()
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | nand_base.c | 5780 int ecc_bytes, nsteps = mtd->writesize / preset_step; in nand_check_ecc_caps() local 5798 if (ecc_bytes * nsteps > oobavail) { in nand_check_ecc_caps() 5836 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_total; in nand_match_ecc_req() local 5866 nsteps = mtd->writesize / step_size; in nand_match_ecc_req() 5871 ecc_bytes_total = ecc_bytes * nsteps; in nand_match_ecc_req() 5874 strength * nsteps < req_corr) in nand_match_ecc_req() 5915 int step_size, strength, nsteps, ecc_bytes, corr; in nand_maximize_ecc() local 5935 nsteps = mtd->writesize / step_size; in nand_maximize_ecc() 5941 if (ecc_bytes * nsteps > oobavail) in nand_maximize_ecc() 5944 corr = strength * nsteps; in nand_maximize_ecc()
|
D | omap2.c | 1777 unsigned int nsteps = nanddev_get_ecc_nsteps(nand); in omap_sw_ooblayout_ecc() local 1781 if (section >= nsteps) in omap_sw_ooblayout_ecc() 1798 unsigned int nsteps = nanddev_get_ecc_nsteps(nand); in omap_sw_ooblayout_free() local 1809 off += ((ecc_bytes + 1) * nsteps); in omap_sw_ooblayout_free()
|