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

/linux-master/drivers/mtd/nand/
H A Decc-sw-bch.c112 unsigned int eccbytes = engine_conf->code_size; local
118 t = (eccbytes * 8) / m;
124 engine_conf->eccmask = kzalloc(eccbytes, GFP_KERNEL);
144 for (i = 0; i < eccbytes; i++)
148 if (engine_conf->bch->ecc_bytes != eccbytes) {
150 eccbytes, engine_conf->bch->ecc_bytes);
156 if (8 * (eccsize + eccbytes) >= (1 << m)) {
297 int eccbytes = engine_conf->code_size; local
321 eccsteps--, i += eccbytes, data += eccsize)
335 int eccbytes local
[all...]
H A Decc-sw-hamming.c551 int eccbytes = engine_conf->code_size; local
575 eccsteps--, i += eccbytes, data += eccsize)
589 int eccbytes = engine_conf->code_size; local
618 for (i = 0; eccsteps; eccsteps--, i += eccbytes, data += eccsize)
624 eccsteps--, i += eccbytes, data += eccsize) {
/linux-master/include/uapi/mtd/
H A Dmtd-abi.h270 __u32 eccbytes; member in struct:nand_oobinfo
291 __u32 eccbytes; member in struct:nand_ecclayout_user
/linux-master/drivers/mtd/nand/raw/atmel/
H A Dpmecc.c171 int eccbytes; member in struct:atmel_pmecc_user
280 int i, max_eccbytes, eccbytes = 0, eccstrength = 0; local
324 eccbytes = nbytes;
333 req->ecc.bytes = eccbytes;
337 req->ecc.ooboffset = req->oobsize - eccbytes;
390 user->eccbytes = req->ecc.bytes / req->ecc.nsectors;
695 int eccbytes = user->eccbytes; local
725 } else if (byte < sectorsize + eccbytes) {
731 errpos, (sectorsize + eccbytes) *
[all...]
/linux-master/drivers/mtd/nand/raw/
H A Dtxx9ndfmc.c171 int eccbytes; local
177 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) {
H A Dnand_base.c3010 int eccbytes = chip->ecc.bytes; local
3034 ret = nand_read_data_op(chip, oob, eccbytes, false, false);
3038 oob += eccbytes;
3072 int eccbytes = chip->ecc.bytes; local
3081 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
3092 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
3231 int eccbytes = chip->ecc.bytes; local
3242 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
3265 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
3273 &ecc_code[i], eccbytes,
3304 int eccbytes = chip->ecc.bytes; local
3370 int eccbytes = chip->ecc.bytes; local
4121 int eccbytes = chip->ecc.bytes; local
4182 int eccbytes = chip->ecc.bytes; local
4211 int eccbytes = chip->ecc.bytes; local
4328 int eccbytes = chip->ecc.bytes; local
[all...]
H A Dmxc_nand.c155 int eccbytes; member in struct:mxc_nand_devtype_data
1479 .eccbytes = 3,
1504 .eccbytes = 3,
1530 .eccbytes = 9,
1555 .eccbytes = 0,
1581 .eccbytes = 0,
1617 chip->ecc.bytes = host->devtype_data->eccbytes;
H A Dfsmc_nand.c710 int eccbytes = chip->ecc.bytes; local
725 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) {
732 for (j = 0; j < eccbytes;) {
H A Domap2.c1005 int eccbytes = info->nand.ecc.bytes; local
1092 for (j = 0; j < eccbytes; j++)
1097 ecc_calc[eccbytes - 1] = 0x0;
1103 for (j = 0; j < eccbytes; j++)
1108 ecc_calc[eccbytes - 1] = 0x0;
1147 int eccbytes = info->nand.ecc.bytes; local
1157 ecc_calc += eccbytes;
H A Dstm32_fmc2_nand.c699 int eccbytes = chip->ecc.bytes; local
712 s++, i += eccbytes, p += eccsize) {
723 eccbytes, false);
732 ecc_code, eccbytes,
1049 int eccbytes = chip->ecc.bytes; local
1057 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, dat += eccsize) {
1088 eccbytes,
H A Drenesas-nand-controller.c976 unsigned int eccbytes = round_up(chip->ecc.bytes, 4) * chip->ecc.steps; local
982 oobregion->length = eccbytes;
991 unsigned int eccbytes = round_up(chip->ecc.bytes, 4) * chip->ecc.steps; local
996 oobregion->offset = 2 + eccbytes;
H A Dnandsim.c2215 unsigned int eccsteps, eccbytes; local
2230 eccbytes = ((bch * 13) + 7) / 8;
2238 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) {
2245 chip->ecc.bytes = eccbytes;
/linux-master/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c187 int eccbytes; local
227 eccbytes = mtd->writesize / chip->ecc.size * chip->ecc.bytes;
229 if (eccbytes > mtd->oobsize - 2) {
232 eccbytes, mtd->oobsize - 2);
/linux-master/drivers/mtd/
H A Dmtdchar.c454 to->eccbytes = 0;
470 to->eccbytes++;
501 to->eccbytes = 0;
519 to->eccbytes++;
/linux-master/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c1428 int eccbytes; local
1436 eccbytes = DIV_ROUND_UP(offset + eccbits, 8);
1438 eccbytes -= offset;
1440 eccbytes, false);
1454 eccbuf[eccbytes - 1] |= GENMASK(7, bitoffset);
1472 eccbuf, eccbytes,
1480 eccbuf, eccbytes,

Completed in 219 milliseconds