Home
last modified time | relevance | path

Searched refs:eccbytes (Results 1 - 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dnand_bch.c97 * Initialize NAND BCH error correction. Parameters @eccsize and @eccbytes
99 * correction capability). @eccbytes should be equal to the number of bytes
104 * @eccbytes = 7 (7 bytes are required to store m*t = 13*4 = 52 bits)
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()
137 /* verify that eccbytes ha in nand_bch_init()
[all...]
H A Dtxx9ndfmc.c172 int eccbytes; in txx9ndfmc_calculate_ecc() local
178 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { in txx9ndfmc_calculate_ecc()
H A Dnand_base.c2672 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local
2696 ret = nand_read_data_op(chip, oob, eccbytes, false, false); in nand_read_page_raw_syndrome()
2700 oob += eccbytes; in nand_read_page_raw_syndrome()
2734 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local
2743 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
2754 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
2893 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc() local
2904 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
2927 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
2935 &ecc_code[i], eccbytes, in nand_read_page_hwecc()
2965 int eccbytes = chip->ecc.bytes; nand_read_page_syndrome() local
3645 int eccbytes = chip->ecc.bytes; nand_write_page_raw_syndrome() local
3706 int eccbytes = chip->ecc.bytes; nand_write_page_swecc() local
3735 int eccbytes = chip->ecc.bytes; nand_write_page_hwecc() local
3852 int eccbytes = chip->ecc.bytes; nand_write_page_syndrome() local
[all...]
H A Domap2.c1144 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()
H A Dmxc_nand.c157 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()
H A Dstm32_fmc2_nand.c678 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()
/kernel/linux/linux-6.6/drivers/mtd/nand/
H A Decc-sw-bch.c112 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 in nand_ecc_sw_bch_finish_io_req() local
[all...]
H A Decc-sw-hamming.c551 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()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/atmel/
H A Dpmecc.c171 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) * in atmel_pmecc_correct_sector()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/atmel/
H A Dpmecc.c171 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) * in atmel_pmecc_correct_sector()
[all...]
/kernel/linux/linux-5.10/include/uapi/mtd/
H A Dmtd-abi.h215 __u32 eccbytes; member
236 __u32 eccbytes; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/mtd/
H A Dmtd-abi.h126 __u32 eccbytes; member
137 __u32 eccbytes; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/mtd/
H A Dmtd-abi.h112 __u32 eccbytes; member
123 __u32 eccbytes; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/mtd/
H A Dmtd-abi.h126 __u32 eccbytes; member
137 __u32 eccbytes; member
/kernel/linux/linux-6.6/include/uapi/mtd/
H A Dmtd-abi.h270 __u32 eccbytes; member
291 __u32 eccbytes; member
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dtxx9ndfmc.c171 int eccbytes; in txx9ndfmc_calculate_ecc() local
177 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { in txx9ndfmc_calculate_ecc()
H A Dnand_base.c2991 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local
3015 ret = nand_read_data_op(chip, oob, eccbytes, false, false); in nand_read_page_raw_syndrome()
3019 oob += eccbytes; in nand_read_page_raw_syndrome()
3053 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local
3062 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
3073 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
3212 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc() local
3223 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3246 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3254 &ecc_code[i], eccbytes, in nand_read_page_hwecc()
3285 int eccbytes = chip->ecc.bytes; nand_read_page_hwecc_oob_first() local
3351 int eccbytes = chip->ecc.bytes; nand_read_page_syndrome() local
4095 int eccbytes = chip->ecc.bytes; nand_write_page_raw_syndrome() local
4156 int eccbytes = chip->ecc.bytes; nand_write_page_swecc() local
4185 int eccbytes = chip->ecc.bytes; nand_write_page_hwecc() local
4302 int eccbytes = chip->ecc.bytes; nand_write_page_syndrome() local
[all...]
H A Dstm32_fmc2_nand.c682 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_read_page() local
695 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page()
706 eccbytes, false); in stm32_fmc2_nfc_read_page()
715 ecc_code, eccbytes, in stm32_fmc2_nfc_read_page()
1032 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_seq_correct() local
1040 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, dat += eccsize) { in stm32_fmc2_nfc_seq_correct()
1071 eccbytes, in stm32_fmc2_nfc_seq_correct()
H A Domap2.c1005 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()
H A Dmxc_nand.c155 int eccbytes; member
1479 .eccbytes = 3,
1504 .eccbytes = 3,
1530 .eccbytes = 9,
1555 .eccbytes = 0,
1581 .eccbytes = 0,
1617 chip->ecc.bytes = host->devtype_data->eccbytes; in mxcnd_attach_chip()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c187 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()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c187 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()
/kernel/linux/linux-5.10/drivers/mtd/
H A Dmtdchar.c462 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()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c1224 int eccbytes; in gpmi_count_bitflips() local
1232 eccbytes = DIV_ROUND_UP(offset + eccbits, 8); in gpmi_count_bitflips()
1234 eccbytes -= offset; in gpmi_count_bitflips()
1236 eccbytes, false); in gpmi_count_bitflips()
1250 eccbuf[eccbytes - 1] |= GENMASK(7, bitoffset); in gpmi_count_bitflips()
1268 eccbuf, eccbytes, in gpmi_count_bitflips()
1276 eccbuf, eccbytes, in gpmi_count_bitflips()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c1428 int eccbytes; in gpmi_count_bitflips() local
1436 eccbytes = DIV_ROUND_UP(offset + eccbits, 8); in gpmi_count_bitflips()
1438 eccbytes -= offset; in gpmi_count_bitflips()
1440 eccbytes, false); in gpmi_count_bitflips()
1454 eccbuf[eccbytes - 1] |= GENMASK(7, bitoffset); in gpmi_count_bitflips()
1472 eccbuf, eccbytes, in gpmi_count_bitflips()
1480 eccbuf, eccbytes, in gpmi_count_bitflips()

Completed in 45 milliseconds

12