Home
last modified time | relevance | path

Searched refs:eccbytes (Results 1 – 14 of 14) sorted by relevance

/Linux-v4.19/drivers/mtd/nand/raw/
Dnand_bch.c128 unsigned int eccbytes = nand->ecc.bytes; in nand_bch_init() local
131 if (!eccbytes && eccstrength) { in nand_bch_init()
132 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); in nand_bch_init()
133 nand->ecc.bytes = eccbytes; in nand_bch_init()
136 if (!eccsize || !eccbytes) { in nand_bch_init()
142 t = (eccbytes*8)/m; in nand_bch_init()
153 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init()
155 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init()
168 if (8*(eccsize+eccbytes) >= (1 << m)) { in nand_bch_init()
182 nand->ecc.total = eccsteps * eccbytes; in nand_bch_init()
[all …]
Djz4780_nand.c165 int eccbytes; in jz4780_nand_attach_chip() local
201 eccbytes = mtd->writesize / chip->ecc.size * chip->ecc.bytes; in jz4780_nand_attach_chip()
203 if (eccbytes > mtd->oobsize - 2) { in jz4780_nand_attach_chip()
206 eccbytes, mtd->oobsize - 2); in jz4780_nand_attach_chip()
Dtxx9ndfmc.c178 int eccbytes; in txx9ndfmc_calculate_ecc() local
184 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { in txx9ndfmc_calculate_ecc()
Dnand_base.c3031 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local
3055 ret = nand_read_data_op(chip, oob, eccbytes, false); in nand_read_page_raw_syndrome()
3059 oob += eccbytes; in nand_read_page_raw_syndrome()
3093 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local
3102 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
3113 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
3253 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc() local
3264 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3286 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3294 &ecc_code[i], eccbytes, in nand_read_page_hwecc()
[all …]
Dmxc_nand.c157 int eccbytes; member
1498 .eccbytes = 3,
1523 .eccbytes = 3,
1549 .eccbytes = 9,
1574 .eccbytes = 0,
1600 .eccbytes = 0,
1846 this->ecc.bytes = host->devtype_data->eccbytes; in mxcnd_probe()
Domap2.c1143 int eccbytes = info->nand.ecc.bytes; in _omap_calculate_ecc_bch() local
1230 for (j = 0; j < eccbytes; j++) in _omap_calculate_ecc_bch()
1235 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch()
1241 for (j = 0; j < eccbytes; j++) in _omap_calculate_ecc_bch()
1246 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch()
1285 int eccbytes = info->nand.ecc.bytes; in omap_calculate_ecc_bch_multi() local
1295 ecc_calc += eccbytes; in omap_calculate_ecc_bch_multi()
Dfsmc_nand.c726 int eccbytes = chip->ecc.bytes; in fsmc_read_page_hwecc() local
741 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc()
746 for (j = 0; j < eccbytes;) { in fsmc_read_page_hwecc()
Dnandsim.c2197 unsigned int eccsteps, eccbytes; in ns_attach_chip() local
2209 eccbytes = ((bch * 13) + 7) / 8; in ns_attach_chip()
2217 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { in ns_attach_chip()
2226 chip->ecc.bytes = eccbytes; in ns_attach_chip()
/Linux-v4.19/drivers/mtd/nand/raw/atmel/
Dpmecc.c174 int eccbytes; member
283 int i, max_eccbytes, eccbytes = 0, eccstrength = 0; in atmel_pmecc_prepare_user_req() local
327 eccbytes = nbytes; in atmel_pmecc_prepare_user_req()
336 req->ecc.bytes = eccbytes; in atmel_pmecc_prepare_user_req()
340 req->ecc.ooboffset = req->oobsize - eccbytes; in atmel_pmecc_prepare_user_req()
393 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user()
698 int eccbytes = user->eccbytes; in atmel_pmecc_correct_sector() local
728 } else if (byte < sectorsize + eccbytes) { in atmel_pmecc_correct_sector()
734 errpos, (sectorsize + eccbytes) * 8); in atmel_pmecc_correct_sector()
762 for (i = 0; i < user->eccbytes; i++) in atmel_pmecc_get_generated_eccbytes()
/Linux-v4.19/include/uapi/mtd/
Dmtd-abi.h214 __u32 eccbytes; member
235 __u32 eccbytes; member
/Linux-v4.19/arch/mips/jz4740/
Dboard-qi_lb60.c114 int eccbytes = 36, eccoff = 6; in qi_lb60_ooblayout_free() local
120 eccbytes *= 2; in qi_lb60_ooblayout_free()
128 oobregion->offset = eccoff + eccbytes; in qi_lb60_ooblayout_free()
/Linux-v4.19/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c995 int eccbytes; in gpmi_ecc_read_page_data() local
1003 eccbytes = DIV_ROUND_UP(offset + eccbits, 8); in gpmi_ecc_read_page_data()
1005 eccbytes -= offset; in gpmi_ecc_read_page_data()
1007 eccbytes, false); in gpmi_ecc_read_page_data()
1021 eccbuf[eccbytes - 1] |= GENMASK(7, bitoffset); in gpmi_ecc_read_page_data()
1039 eccbuf, eccbytes, in gpmi_ecc_read_page_data()
1047 eccbuf, eccbytes, in gpmi_ecc_read_page_data()
/Linux-v4.19/drivers/mtd/
Dmtdchar.c478 to->eccbytes = 0; in shrink_ecclayout()
494 to->eccbytes++; in shrink_ecclayout()
525 to->eccbytes = 0; in get_oobinfo()
543 to->eccbytes++; in get_oobinfo()
/Linux-v4.19/Documentation/driver-api/
Dmtdnand.rst622 int eccbytes;
637 - eccbytes
639 The eccbytes member defines the number of ecc bytes per page.