Home
last modified time | relevance | path

Searched refs:nsteps (Results 1 – 5 of 5) sorted by relevance

/linux-6.3-rc2/drivers/mtd/nand/
A Decc-sw-bch.c175 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()
A Decc-sw-hamming.c516 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.3-rc2/include/linux/mtd/
A Dnand.h241 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.3-rc2/drivers/mtd/nand/raw/
A Dnand_base.c5919 int ecc_bytes, nsteps = mtd->writesize / preset_step; in nand_check_ecc_caps() local
5937 if (ecc_bytes * nsteps > oobavail) { in nand_check_ecc_caps()
5975 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_total; in nand_match_ecc_req() local
6005 nsteps = mtd->writesize / step_size; in nand_match_ecc_req()
6010 ecc_bytes_total = ecc_bytes * nsteps; in nand_match_ecc_req()
6013 strength * nsteps < req_corr) in nand_match_ecc_req()
6054 int step_size, strength, nsteps, ecc_bytes, corr; in nand_maximize_ecc() local
6074 nsteps = mtd->writesize / step_size; in nand_maximize_ecc()
6080 if (ecc_bytes * nsteps > oobavail) in nand_maximize_ecc()
6083 corr = strength * nsteps; in nand_maximize_ecc()
A Domap2.c1777 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()

Completed in 22 milliseconds