| /Linux-v5.10/drivers/mtd/nand/raw/ |
| D | nand_bch.c | 113 unsigned int eccbytes = nand->ecc.bytes; in nand_bch_init() local 116 if (!eccbytes && eccstrength) { in nand_bch_init() 117 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); in nand_bch_init() 118 nand->ecc.bytes = eccbytes; in nand_bch_init() 121 if (!eccsize || !eccbytes) { in nand_bch_init() 127 t = (eccbytes*8)/m; in nand_bch_init() 138 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init() 140 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init() 153 if (8*(eccsize+eccbytes) >= (1 << m)) { in nand_bch_init() 167 nand->ecc.total = eccsteps * eccbytes; in nand_bch_init() [all …]
|
| D | txx9ndfmc.c | 172 int eccbytes; in txx9ndfmc_calculate_ecc() local 178 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { in txx9ndfmc_calculate_ecc()
|
| D | nand_base.c | 2671 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local 2695 ret = nand_read_data_op(chip, oob, eccbytes, false, false); in nand_read_page_raw_syndrome() 2699 oob += eccbytes; in nand_read_page_raw_syndrome() 2733 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local 2742 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc() 2753 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc() 2892 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc() local 2903 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2926 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2934 &ecc_code[i], eccbytes, in nand_read_page_hwecc() [all …]
|
| D | mxc_nand.c | 157 int eccbytes; member 1482 .eccbytes = 3, 1507 .eccbytes = 3, 1533 .eccbytes = 9, 1558 .eccbytes = 0, 1584 .eccbytes = 0, 1684 chip->ecc.bytes = host->devtype_data->eccbytes; in mxcnd_attach_chip()
|
| D | davinci_nand.c | 393 int eccbytes = chip->ecc.bytes; in nand_davinci_read_page_hwecc_oob_first() local 414 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc_oob_first() 431 eccbytes, NULL, 0, in nand_davinci_read_page_hwecc_oob_first()
|
| D | omap2.c | 1144 int eccbytes = info->nand.ecc.bytes; in _omap_calculate_ecc_bch() local 1231 for (j = 0; j < eccbytes; j++) in _omap_calculate_ecc_bch() 1236 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch() 1242 for (j = 0; j < eccbytes; j++) in _omap_calculate_ecc_bch() 1247 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch() 1286 int eccbytes = info->nand.ecc.bytes; in omap_calculate_ecc_bch_multi() local 1296 ecc_calc += eccbytes; in omap_calculate_ecc_bch_multi()
|
| D | stm32_fmc2_nand.c | 678 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_read_page() local 691 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page() 702 eccbytes, false); in stm32_fmc2_nfc_read_page() 711 ecc_code, eccbytes, in stm32_fmc2_nfc_read_page() 1026 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_seq_correct() local 1034 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, dat += eccsize) { in stm32_fmc2_nfc_seq_correct() 1065 eccbytes, in stm32_fmc2_nfc_seq_correct()
|
| D | fsmc_nand.c | 679 int eccbytes = chip->ecc.bytes; in fsmc_read_page_hwecc() local 694 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc() 701 for (j = 0; j < eccbytes;) { in fsmc_read_page_hwecc()
|
| D | nandsim.c | 2212 unsigned int eccsteps, eccbytes; in ns_attach_chip() local 2224 eccbytes = ((bch * 13) + 7) / 8; in ns_attach_chip() 2232 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { in ns_attach_chip() 2241 chip->ecc.bytes = eccbytes; in ns_attach_chip()
|
| /Linux-v5.10/drivers/mtd/nand/raw/atmel/ |
| D | pmecc.c | 171 int eccbytes; member 280 int i, max_eccbytes, eccbytes = 0, eccstrength = 0; in atmel_pmecc_prepare_user_req() local 324 eccbytes = nbytes; in atmel_pmecc_prepare_user_req() 333 req->ecc.bytes = eccbytes; in atmel_pmecc_prepare_user_req() 337 req->ecc.ooboffset = req->oobsize - eccbytes; in atmel_pmecc_prepare_user_req() 390 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user() 695 int eccbytes = user->eccbytes; in atmel_pmecc_correct_sector() local 725 } else if (byte < sectorsize + eccbytes) { in atmel_pmecc_correct_sector() 731 errpos, (sectorsize + eccbytes) * 8); in atmel_pmecc_correct_sector() 759 for (i = 0; i < user->eccbytes; i++) in atmel_pmecc_get_generated_eccbytes()
|
| /Linux-v5.10/include/uapi/mtd/ |
| D | mtd-abi.h | 215 __u32 eccbytes; member 236 __u32 eccbytes; member
|
| /Linux-v5.10/drivers/mtd/nand/raw/ingenic/ |
| D | ingenic_nand_drv.c | 187 int eccbytes; in ingenic_nand_attach_chip() local 227 eccbytes = mtd->writesize / chip->ecc.size * chip->ecc.bytes; in ingenic_nand_attach_chip() 229 if (eccbytes > mtd->oobsize - 2) { in ingenic_nand_attach_chip() 232 eccbytes, mtd->oobsize - 2); in ingenic_nand_attach_chip()
|
| /Linux-v5.10/drivers/mtd/ |
| D | mtdchar.c | 462 to->eccbytes = 0; in shrink_ecclayout() 478 to->eccbytes++; in shrink_ecclayout() 509 to->eccbytes = 0; in get_oobinfo() 527 to->eccbytes++; in get_oobinfo()
|
| /Linux-v5.10/drivers/mtd/nand/raw/gpmi-nand/ |
| D | gpmi-nand.c | 1206 int eccbytes; in gpmi_count_bitflips() local 1214 eccbytes = DIV_ROUND_UP(offset + eccbits, 8); in gpmi_count_bitflips() 1216 eccbytes -= offset; in gpmi_count_bitflips() 1218 eccbytes, false); in gpmi_count_bitflips() 1232 eccbuf[eccbytes - 1] |= GENMASK(7, bitoffset); in gpmi_count_bitflips() 1250 eccbuf, eccbytes, in gpmi_count_bitflips() 1258 eccbuf, eccbytes, in gpmi_count_bitflips()
|
| /Linux-v5.10/Documentation/driver-api/ |
| D | mtdnand.rst | 624 int eccbytes; 639 - eccbytes 641 The eccbytes member defines the number of ecc bytes per page.
|