/linux-6.12.1/drivers/mtd/nand/ |
D | ecc-sw-bch.c | 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 [all …]
|
D | ecc-sw-hamming.c | 551 int eccbytes = engine_conf->code_size; in nand_ecc_sw_hamming_prepare_io_req() local 575 eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_hamming_prepare_io_req() 589 int eccbytes = engine_conf->code_size; in nand_ecc_sw_hamming_finish_io_req() local 618 for (i = 0; eccsteps; eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_hamming_finish_io_req() 624 eccsteps--, i += eccbytes, data += eccsize) { in nand_ecc_sw_hamming_finish_io_req()
|
/linux-6.12.1/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-6.12.1/drivers/mtd/nand/raw/ |
D | txx9ndfmc.c | 171 int eccbytes; in txx9ndfmc_calculate_ecc() local 177 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { in txx9ndfmc_calculate_ecc()
|
D | nand_base.c | 3017 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local 3041 ret = nand_read_data_op(chip, oob, eccbytes, false, false); in nand_read_page_raw_syndrome() 3045 oob += eccbytes; in nand_read_page_raw_syndrome() 3079 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local 3088 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc() 3099 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc() 3238 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc() local 3249 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 3272 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 3280 &ecc_code[i], eccbytes, in nand_read_page_hwecc() [all …]
|
D | mxc_nand.c | 157 int eccbytes; member 1264 .eccbytes = 3, 1289 .eccbytes = 3, 1315 .eccbytes = 9, 1340 .eccbytes = 0, 1366 .eccbytes = 0, 1402 chip->ecc.bytes = host->devtype_data->eccbytes; in mxcnd_attach_chip()
|
D | omap2.c | 1005 int eccbytes = info->nand.ecc.bytes; in _omap_calculate_ecc_bch() local 1092 for (j = 0; j < eccbytes; j++) in _omap_calculate_ecc_bch() 1097 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch() 1103 for (j = 0; j < eccbytes; j++) in _omap_calculate_ecc_bch() 1108 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch() 1147 int eccbytes = info->nand.ecc.bytes; in omap_calculate_ecc_bch_multi() local 1157 ecc_calc += eccbytes; in omap_calculate_ecc_bch_multi()
|
D | stm32_fmc2_nand.c | 699 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_read_page() local 712 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page() 723 eccbytes, false); in stm32_fmc2_nfc_read_page() 732 ecc_code, eccbytes, in stm32_fmc2_nfc_read_page() 1049 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_seq_correct() local 1057 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, dat += eccsize) { in stm32_fmc2_nfc_seq_correct() 1088 eccbytes, in stm32_fmc2_nfc_seq_correct()
|
D | fsmc_nand.c | 710 int eccbytes = chip->ecc.bytes; in fsmc_read_page_hwecc() local 725 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc() 732 for (j = 0; j < eccbytes;) { in fsmc_read_page_hwecc()
|
D | renesas-nand-controller.c | 976 unsigned int eccbytes = round_up(chip->ecc.bytes, 4) * chip->ecc.steps; in rnandc_ooblayout_ecc() local 982 oobregion->length = eccbytes; in rnandc_ooblayout_ecc() 991 unsigned int eccbytes = round_up(chip->ecc.bytes, 4) * chip->ecc.steps; in rnandc_ooblayout_free() local 996 oobregion->offset = 2 + eccbytes; in rnandc_ooblayout_free()
|
D | nandsim.c | 2215 unsigned int eccsteps, eccbytes; in ns_attach_chip() local 2230 eccbytes = ((bch * 13) + 7) / 8; in ns_attach_chip() 2238 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { in ns_attach_chip() 2245 chip->ecc.bytes = eccbytes; in ns_attach_chip()
|
/linux-6.12.1/include/uapi/mtd/ |
D | mtd-abi.h | 270 __u32 eccbytes; member 291 __u32 eccbytes; member
|
/linux-6.12.1/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-6.12.1/drivers/mtd/ |
D | mtdchar.c | 454 to->eccbytes = 0; in shrink_ecclayout() 470 to->eccbytes++; in shrink_ecclayout() 501 to->eccbytes = 0; in get_oobinfo() 519 to->eccbytes++; in get_oobinfo()
|
/linux-6.12.1/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.c | 1445 int eccbytes; in gpmi_count_bitflips() local 1453 eccbytes = DIV_ROUND_UP(offset + eccbits, 8); in gpmi_count_bitflips() 1455 eccbytes -= offset; in gpmi_count_bitflips() 1457 eccbytes, false); in gpmi_count_bitflips() 1471 eccbuf[eccbytes - 1] |= GENMASK(7, bitoffset); in gpmi_count_bitflips() 1489 eccbuf, eccbytes, in gpmi_count_bitflips() 1497 eccbuf, eccbytes, in gpmi_count_bitflips()
|
/linux-6.12.1/Documentation/driver-api/ |
D | mtdnand.rst | 624 int eccbytes; 639 - eccbytes 641 The eccbytes member defines the number of ecc bytes per page.
|