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

/linux-4.4.14/drivers/mtd/nand/
H A Dnand_bch.c111 * @eccbytes: ecc length in bytes
117 * Initialize NAND BCH error correction. Parameters @eccsize and @eccbytes
119 * correction capability). @eccbytes should be equal to the number of bytes
124 * @eccbytes = 7 (7 bytes are required to store m*t = 13*4 = 52 bits)
127 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, unsigned int eccbytes, nand_bch_init() argument
135 if (!eccsize || !eccbytes) { nand_bch_init()
141 t = (eccbytes*8)/m; nand_bch_init()
151 /* verify that eccbytes has the expected value */ nand_bch_init()
152 if (nbc->bch->ecc_bytes != eccbytes) { nand_bch_init()
153 printk(KERN_WARNING "invalid eccbytes %u, should be %u\n", nand_bch_init()
154 eccbytes, nbc->bch->ecc_bytes); nand_bch_init()
171 layout->eccbytes = eccsteps*eccbytes; nand_bch_init()
174 if (layout->eccbytes+2 > mtd->oobsize) { nand_bch_init()
176 "for oobsize %d eccbytes %u\n", mtd->oobsize, nand_bch_init()
177 eccbytes); nand_bch_init()
181 for (i = 0; i < layout->eccbytes; i++) nand_bch_init()
182 layout->eccpos[i] = mtd->oobsize-layout->eccbytes+i; nand_bch_init()
185 layout->oobfree[0].length = mtd->oobsize-2-layout->eccbytes; nand_bch_init()
191 if (8*(eccsize+eccbytes) >= (1 << m)) { nand_bch_init()
195 if ((*ecclayout)->eccbytes != (eccsteps*eccbytes)) { nand_bch_init()
200 nbc->eccmask = kmalloc(eccbytes, GFP_KERNEL); nand_bch_init()
212 memset(nbc->eccmask, 0, eccbytes); nand_bch_init()
216 for (i = 0; i < eccbytes; i++) nand_bch_init()
H A Dsm_common.c16 .eccbytes = 6,
32 .eccbytes = 3,
H A Domap2.c1167 int eccbytes = info->nand.ecc.bytes; omap_calculate_ecc_bch() local
1255 for (j = 0; j < eccbytes; j++) omap_calculate_ecc_bch()
1260 ecc_calc[eccbytes - 1] = 0x0; omap_calculate_ecc_bch()
1265 for (j = 0; j < eccbytes; j++) omap_calculate_ecc_bch()
1270 ecc_calc[eccbytes - 1] = 0x0; omap_calculate_ecc_bch()
1278 ecc_calc += eccbytes; omap_calculate_ecc_bch()
1840 ecclayout->eccbytes = nand_chip->ecc.bytes * omap_nand_probe()
1847 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) omap_nand_probe()
1851 ecclayout->eccpos[ecclayout->eccbytes - 1] + 1; omap_nand_probe()
1864 ecclayout->eccbytes = nand_chip->ecc.bytes * omap_nand_probe()
1868 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) { omap_nand_probe()
1875 ecclayout->eccpos[ecclayout->eccbytes - 1] + 1; omap_nand_probe()
1901 ecclayout->eccbytes = nand_chip->ecc.bytes * omap_nand_probe()
1905 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) omap_nand_probe()
1907 /* reserved marker already included in ecclayout->eccbytes */ omap_nand_probe()
1909 ecclayout->eccpos[ecclayout->eccbytes - 1] + 1; omap_nand_probe()
1928 ecclayout->eccbytes = nand_chip->ecc.bytes * omap_nand_probe()
1932 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) { omap_nand_probe()
1939 ecclayout->eccpos[ecclayout->eccbytes - 1] + 1; omap_nand_probe()
1972 ecclayout->eccbytes = nand_chip->ecc.bytes * omap_nand_probe()
1976 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) omap_nand_probe()
1978 /* reserved marker already included in ecclayout->eccbytes */ omap_nand_probe()
1980 ecclayout->eccpos[ecclayout->eccbytes - 1] + 1; omap_nand_probe()
2002 ecclayout->eccbytes = nand_chip->ecc.bytes * omap_nand_probe()
2006 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) omap_nand_probe()
2008 /* reserved marker already included in ecclayout->eccbytes */ omap_nand_probe()
2010 ecclayout->eccpos[ecclayout->eccbytes - 1] + 1; omap_nand_probe()
2024 if (mtd->oobsize < (ecclayout->eccbytes + BADBLOCK_MARKER_LENGTH)) { omap_nand_probe()
2027 ecclayout->eccbytes, mtd->oobsize); omap_nand_probe()
H A Dtxx9ndfmc.c179 int eccbytes; txx9ndfmc_calculate_ecc() local
185 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { txx9ndfmc_calculate_ecc()
H A 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; fsmc_read_page_hwecc() local
734 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { fsmc_read_page_hwecc()
739 for (j = 0; j < eccbytes;) { fsmc_read_page_hwecc()
H A Dmxc_nand.c170 int eccbytes; member in struct:mxc_nand_devtype_data
206 .eccbytes = 5,
212 .eccbytes = 20,
220 .eccbytes = 1 * 9,
231 .eccbytes = 4 * 9,
248 .eccbytes = 8 * 9,
967 layout->eccbytes = 8*18; ecc_8bit_layout_4k()
1284 .eccbytes = 3,
1310 .eccbytes = 3,
1336 .eccbytes = 9,
1362 .eccbytes = 0,
1389 .eccbytes = 0,
1576 this->ecc.bytes = host->devtype_data->eccbytes; mxcnd_probe()
H A 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++) { is_blank()
H A Dnand_base.c53 .eccbytes = 3,
63 .eccbytes = 6,
71 .eccbytes = 24,
82 .eccbytes = 48,
1272 int eccbytes = chip->ecc.bytes; nand_read_page_raw_syndrome() local
1285 chip->read_buf(mtd, oob, eccbytes); nand_read_page_raw_syndrome()
1286 oob += eccbytes; nand_read_page_raw_syndrome()
1313 int eccbytes = chip->ecc.bytes; nand_read_page_swecc() local
1323 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) nand_read_page_swecc()
1332 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { nand_read_page_swecc()
1453 int eccbytes = chip->ecc.bytes; nand_read_page_hwecc() local
1461 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { nand_read_page_hwecc()
1474 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { nand_read_page_hwecc()
1506 int eccbytes = chip->ecc.bytes; nand_read_page_hwecc_oob_first() local
1522 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { nand_read_page_hwecc_oob_first()
1555 int eccbytes = chip->ecc.bytes; nand_read_page_syndrome() local
1561 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { nand_read_page_syndrome()
1573 chip->read_buf(mtd, oob, eccbytes); nand_read_page_syndrome()
1583 oob += eccbytes; nand_read_page_syndrome()
2195 int eccbytes = chip->ecc.bytes; nand_write_page_raw_syndrome() local
2208 chip->write_buf(mtd, oob, eccbytes); nand_write_page_raw_syndrome()
2209 oob += eccbytes; nand_write_page_raw_syndrome()
2236 int eccbytes = chip->ecc.bytes; nand_write_page_swecc() local
2243 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) nand_write_page_swecc()
2265 int eccbytes = chip->ecc.bytes; nand_write_page_hwecc() local
2271 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { nand_write_page_hwecc()
2365 int eccbytes = chip->ecc.bytes; nand_write_page_syndrome() local
2370 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { nand_write_page_syndrome()
2381 chip->write_buf(mtd, oob, eccbytes); nand_write_page_syndrome()
2382 oob += eccbytes; nand_write_page_syndrome()
H A Dfsl_elbc_nand.c85 .eccbytes = 3,
92 .eccbytes = 3,
99 .eccbytes = 12,
106 .eccbytes = 12,
H A Ddenali.c1373 .eccbytes = 14,
1378 .eccbytes = 26,
1576 denali->nand.ecc.layout->eccbytes *= denali_init()
1579 denali->bbtskipbytes + denali->nand.ecc.layout->eccbytes; denali_init()
1581 denali->mtd.oobsize - denali->nand.ecc.layout->eccbytes - denali_init()
H A Datmel_nand.c76 .eccbytes = 4,
89 .eccbytes = 4,
482 layout->eccbytes = ecc_len; pmecc_config_ecc_layout()
1049 ecc_layout->eccpos[ecc_layout->eccbytes - 1]); atmel_pmecc_core_init()
1342 int eccbytes = chip->ecc.bytes; atmel_nand_read_page() local
1379 chip->read_buf(mtd, ecc_pos, eccbytes); atmel_nand_read_page()
H A Dcafe_nand.c456 .eccbytes = 14,
491 .eccbytes = 14,
H A Dvf610_nfc.c177 .eccbytes = 45,
190 .eccbytes = 60,
H A Ddavinci_nand.c491 .eccbytes = 10,
507 .eccbytes = 40,
529 .eccbytes = 80,
H A Dpxa3xx_nand.c317 .eccbytes = 32,
327 .eccbytes = 64,
342 .eccbytes = 128,
H A Dsh_flctl.c47 .eccbytes = 10,
55 .eccbytes = 4 * 10,
H A Dbf5xx_nand.c113 .eccbytes = 24,
H A Dlpc32xx_mlc.c143 .eccbytes = 40,
H A Dnandsim.c2317 unsigned int eccsteps, eccbytes; ns_init_module() local
2325 eccbytes = (bch*13+7)/8; ns_init_module()
2332 if ((eccbytes*eccsteps+2) > nsmtd->oobsize) { ns_init_module()
2340 chip->ecc.bytes = eccbytes; ns_init_module()
H A Dlpc32xx_slc.c150 .eccbytes = 6,
H A Ds3c2410.c89 .eccbytes = 3,
H A Dsunxi_nand.c1075 layout->eccbytes = (ecc->bytes * nsectors); sunxi_nand_hw_common_ecc_ctrl_init()
H A Ddiskonchip.c997 .eccbytes = 6,
H A Ddocg4.c226 .eccbytes = 9,
/linux-4.4.14/include/linux/mtd/
H A Dnand_bch.h37 unsigned int eccbytes, struct nand_ecclayout **ecclayout); mtd_nand_has_bch()
63 unsigned int eccbytes, struct nand_ecclayout **ecclayout) nand_bch_init()
62 nand_bch_init(struct mtd_info *mtd, unsigned int eccsize, unsigned int eccbytes, struct nand_ecclayout **ecclayout) nand_bch_init() argument
H A Dmtd.h106 __u32 eccbytes; member in struct:nand_ecclayout
/linux-4.4.14/arch/mips/jz4740/
H A Dboard-qi_lb60.c54 .eccbytes = 36,
90 .eccbytes = 72,
/linux-4.4.14/include/uapi/mtd/
H A Dmtd-abi.h213 __u32 eccbytes; member in struct:nand_oobinfo
234 __u32 eccbytes; member in struct:nand_ecclayout_user
/linux-4.4.14/drivers/mtd/
H A Dmtdchar.c485 to->eccbytes = min((int)from->eccbytes, MTD_MAX_ECCPOS_ENTRIES); shrink_ecclayout()
486 for (i = 0; i < to->eccbytes; i++) shrink_ecclayout()
820 if (mtd->ecclayout->eccbytes > ARRAY_SIZE(oi.eccpos)) mtdchar_ioctl()
827 oi.eccbytes = mtd->ecclayout->eccbytes; mtdchar_ioctl()
/linux-4.4.14/arch/arm/mach-pxa/
H A Dspitz.c768 .eccbytes = 24,
/linux-4.4.14/drivers/mtd/devices/
H A Ddocg3.c72 * @eccbytes: 8 bytes are used (1 for Hamming ECC, 7 for BCH ECC)
78 .eccbytes = 8,
/linux-4.4.14/drivers/staging/mt29f_spinand/
H A Dmt29f_spinand.c46 .eccbytes = 24,
/linux-4.4.14/drivers/mtd/onenand/
H A Donenand_base.c72 .eccbytes = 64,
100 .eccbytes = 64,
121 .eccbytes = 20,
138 .eccbytes = 10,
/linux-4.4.14/drivers/mtd/nand/brcmnand/
H A Dbrcmnand.c846 layout->eccbytes = req * sectors; brcmnand_create_layout()
/linux-4.4.14/drivers/mtd/nand/gpmi-nand/
H A Dgpmi-nand.c51 .eccbytes = 0,

Completed in 1058 milliseconds