Home
last modified time | relevance | path

Searched refs:eccbytes (Results 1 – 33 of 33) sorted by relevance

/linux-4.1.27/drivers/mtd/nand/
Dnand_bch.c127 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, unsigned int eccbytes, in nand_bch_init() argument
135 if (!eccsize || !eccbytes) { in nand_bch_init()
141 t = (eccbytes*8)/m; in nand_bch_init()
152 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init()
154 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init()
171 layout->eccbytes = eccsteps*eccbytes; in nand_bch_init()
174 if (layout->eccbytes+2 > mtd->oobsize) { in nand_bch_init()
177 eccbytes); in nand_bch_init()
181 for (i = 0; i < layout->eccbytes; i++) in nand_bch_init()
182 layout->eccpos[i] = mtd->oobsize-layout->eccbytes+i; in nand_bch_init()
[all …]
Domap2.c1167 int eccbytes = info->nand.ecc.bytes; in omap_calculate_ecc_bch() local
1255 for (j = 0; j < eccbytes; j++) in omap_calculate_ecc_bch()
1260 ecc_calc[eccbytes - 1] = 0x0; in omap_calculate_ecc_bch()
1265 for (j = 0; j < eccbytes; j++) in omap_calculate_ecc_bch()
1270 ecc_calc[eccbytes - 1] = 0x0; in omap_calculate_ecc_bch()
1278 ecc_calc += eccbytes; in omap_calculate_ecc_bch()
1840 ecclayout->eccbytes = nand_chip->ecc.bytes * in omap_nand_probe()
1847 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) in omap_nand_probe()
1851 ecclayout->eccpos[ecclayout->eccbytes - 1] + 1; in omap_nand_probe()
1864 ecclayout->eccbytes = nand_chip->ecc.bytes * in omap_nand_probe()
[all …]
Dfsmc_nand.c43 .eccbytes = 24,
59 .eccbytes = 12,
70 .eccbytes = 3,
83 .eccbytes = 208,
143 .eccbytes = 104,
179 .eccbytes = 104,
215 .eccbytes = 52,
239 .eccbytes = 13,
719 int eccbytes = chip->ecc.bytes; in fsmc_read_page_hwecc() local
734 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc()
[all …]
Dsm_common.c16 .eccbytes = 6,
32 .eccbytes = 3,
Dmxc_nand.c170 int eccbytes; member
205 .eccbytes = 5,
211 .eccbytes = 20,
219 .eccbytes = 1 * 9,
230 .eccbytes = 4 * 9,
247 .eccbytes = 8 * 9,
1218 .eccbytes = 3,
1244 .eccbytes = 3,
1270 .eccbytes = 9,
1296 .eccbytes = 0,
[all …]
Dnand_base.c54 .eccbytes = 3,
64 .eccbytes = 6,
72 .eccbytes = 24,
83 .eccbytes = 48,
1138 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local
1151 chip->read_buf(mtd, oob, eccbytes); in nand_read_page_raw_syndrome()
1152 oob += eccbytes; in nand_read_page_raw_syndrome()
1179 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local
1189 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
1198 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
[all …]
Dtxx9ndfmc.c179 int eccbytes; in txx9ndfmc_calculate_ecc() local
185 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { in txx9ndfmc_calculate_ecc()
Dfsl_ifc_nand.c73 .eccbytes = 8,
80 .eccbytes = 8,
87 .eccbytes = 32,
99 .eccbytes = 64,
115 .eccbytes = 128,
139 .eccbytes = 128,
163 .eccbytes = 256,
268 for (i = 0; i < chip->ecc.layout->eccbytes; i++) { in is_blank()
Dfsl_elbc_nand.c85 .eccbytes = 3,
92 .eccbytes = 3,
99 .eccbytes = 12,
106 .eccbytes = 12,
Ddenali.c1363 .eccbytes = 14,
1368 .eccbytes = 26,
1567 denali->nand.ecc.layout->eccbytes *= in denali_init()
1570 denali->bbtskipbytes + denali->nand.ecc.layout->eccbytes; in denali_init()
1572 denali->mtd.oobsize - denali->nand.ecc.layout->eccbytes - in denali_init()
Datmel_nand.c76 .eccbytes = 4,
89 .eccbytes = 4,
482 layout->eccbytes = ecc_len; in pmecc_config_ecc_layout()
1048 ecc_layout->eccpos[ecc_layout->eccbytes - 1]); in atmel_pmecc_core_init()
1341 int eccbytes = chip->ecc.bytes; in atmel_nand_read_page() local
1378 chip->read_buf(mtd, ecc_pos, eccbytes); in atmel_nand_read_page()
Ddavinci_nand.c491 .eccbytes = 10,
507 .eccbytes = 40,
Dcafe_nand.c456 .eccbytes = 14,
491 .eccbytes = 14,
Dnandsim.c2318 unsigned int eccsteps, eccbytes; in ns_init_module() local
2326 eccbytes = (bch*13+7)/8; in ns_init_module()
2333 if ((eccbytes*eccsteps+2) > nsmtd->oobsize) { in ns_init_module()
2341 chip->ecc.bytes = eccbytes; in ns_init_module()
Dsh_flctl.c47 .eccbytes = 10,
55 .eccbytes = 4 * 10,
Dpxa3xx_nand.c289 .eccbytes = 32,
299 .eccbytes = 64,
314 .eccbytes = 128,
Dbf5xx_nand.c113 .eccbytes = 24,
Dlpc32xx_mlc.c143 .eccbytes = 40,
Ds3c2410.c89 .eccbytes = 3,
Dlpc32xx_slc.c147 .eccbytes = 6,
Ddocg4.c226 .eccbytes = 9,
Dsunxi_nand.c962 layout->eccbytes = (ecc->bytes * nsectors); in sunxi_nand_hw_common_ecc_ctrl_init()
Ddiskonchip.c994 .eccbytes = 6,
/linux-4.1.27/include/linux/mtd/
Dnand_bch.h37 unsigned int eccbytes, struct nand_ecclayout **ecclayout);
63 unsigned int eccbytes, struct nand_ecclayout **ecclayout) in nand_bch_init() argument
Dmtd.h106 __u32 eccbytes; member
/linux-4.1.27/include/uapi/mtd/
Dmtd-abi.h213 __u32 eccbytes; member
234 __u32 eccbytes; member
/linux-4.1.27/drivers/mtd/
Dmtdchar.c485 to->eccbytes = min((int)from->eccbytes, MTD_MAX_ECCPOS_ENTRIES); in shrink_ecclayout()
486 for (i = 0; i < to->eccbytes; i++) in shrink_ecclayout()
824 if (mtd->ecclayout->eccbytes > ARRAY_SIZE(oi.eccpos)) in mtdchar_ioctl()
831 oi.eccbytes = mtd->ecclayout->eccbytes; in mtdchar_ioctl()
/linux-4.1.27/arch/mips/jz4740/
Dboard-qi_lb60.c54 .eccbytes = 36,
90 .eccbytes = 72,
/linux-4.1.27/arch/arm/mach-pxa/
Dspitz.c768 .eccbytes = 24,
/linux-4.1.27/drivers/staging/mt29f_spinand/
Dmt29f_spinand.c46 .eccbytes = 24,
/linux-4.1.27/drivers/mtd/onenand/
Donenand_base.c72 .eccbytes = 64,
100 .eccbytes = 64,
121 .eccbytes = 20,
138 .eccbytes = 10,
/linux-4.1.27/drivers/mtd/nand/gpmi-nand/
Dgpmi-nand.c51 .eccbytes = 0,
/linux-4.1.27/drivers/mtd/devices/
Ddocg3.c78 .eccbytes = 8,