| /Linux-v5.4/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 | 2637 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local 2661 ret = nand_read_data_op(chip, oob, eccbytes, false); in nand_read_page_raw_syndrome() 2665 oob += eccbytes; in nand_read_page_raw_syndrome() 2699 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local 2708 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc() 2719 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc() 2858 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc() local 2869 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2891 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2899 &ecc_code[i], eccbytes, in nand_read_page_hwecc() [all …]
|
| D | mxc_nand.c | 157 int eccbytes; member 1481 .eccbytes = 3, 1506 .eccbytes = 3, 1532 .eccbytes = 9, 1557 .eccbytes = 0, 1583 .eccbytes = 0, 1838 this->ecc.bytes = host->devtype_data->eccbytes; in mxcnd_probe()
|
| D | stm32_fmc2_nand.c | 725 int eccbytes = chip->ecc.bytes; in stm32_fmc2_read_page() local 738 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_read_page() 749 eccbytes, false); in stm32_fmc2_read_page() 758 ecc_code, eccbytes, in stm32_fmc2_read_page() 1084 int eccbytes = chip->ecc.bytes; in stm32_fmc2_sequencer_correct() local 1092 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, dat += eccsize) { in stm32_fmc2_sequencer_correct() 1122 eccbytes, in stm32_fmc2_sequencer_correct()
|
| 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 | fsmc_nand.c | 676 int eccbytes = chip->ecc.bytes; in fsmc_read_page_hwecc() local 691 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc() 698 for (j = 0; j < eccbytes;) { in fsmc_read_page_hwecc()
|
| D | nandsim.c | 2181 unsigned int eccsteps, eccbytes; in ns_attach_chip() local 2193 eccbytes = ((bch * 13) + 7) / 8; in ns_attach_chip() 2201 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { in ns_attach_chip() 2210 chip->ecc.bytes = eccbytes; in ns_attach_chip()
|
| /Linux-v5.4/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.4/include/uapi/mtd/ |
| D | mtd-abi.h | 214 __u32 eccbytes; member 235 __u32 eccbytes; member
|
| /Linux-v5.4/drivers/mtd/nand/raw/ingenic/ |
| D | ingenic_nand_drv.c | 236 int eccbytes; in ingenic_nand_attach_chip() local 276 eccbytes = mtd->writesize / chip->ecc.size * chip->ecc.bytes; in ingenic_nand_attach_chip() 278 if (eccbytes > mtd->oobsize - 2) { in ingenic_nand_attach_chip() 281 eccbytes, mtd->oobsize - 2); in ingenic_nand_attach_chip()
|
| /Linux-v5.4/drivers/mtd/ |
| D | mtdchar.c | 464 to->eccbytes = 0; in shrink_ecclayout() 480 to->eccbytes++; in shrink_ecclayout() 511 to->eccbytes = 0; in get_oobinfo() 529 to->eccbytes++; in get_oobinfo()
|
| /Linux-v5.4/drivers/mtd/nand/raw/gpmi-nand/ |
| D | gpmi-nand.c | 1351 int eccbytes; in gpmi_count_bitflips() local 1359 eccbytes = DIV_ROUND_UP(offset + eccbits, 8); in gpmi_count_bitflips() 1361 eccbytes -= offset; in gpmi_count_bitflips() 1363 eccbytes, false); in gpmi_count_bitflips() 1377 eccbuf[eccbytes - 1] |= GENMASK(7, bitoffset); in gpmi_count_bitflips() 1395 eccbuf, eccbytes, in gpmi_count_bitflips() 1403 eccbuf, eccbytes, in gpmi_count_bitflips()
|
| /Linux-v5.4/Documentation/driver-api/ |
| D | mtdnand.rst | 622 int eccbytes; 637 - eccbytes 639 The eccbytes member defines the number of ecc bytes per page.
|