Home
last modified time | relevance | path

Searched refs:oobregion (Results 1 – 25 of 30) sorted by relevance

12

/drivers/mtd/nand/
Dsm_common.c16 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_ecc() argument
21 oobregion->length = 3; in oob_sm_ooblayout_ecc()
22 oobregion->offset = ((section + 1) * 8) - 3; in oob_sm_ooblayout_ecc()
28 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_free() argument
33 oobregion->offset = 0; in oob_sm_ooblayout_free()
34 oobregion->length = 4; in oob_sm_ooblayout_free()
38 oobregion->offset = 6; in oob_sm_ooblayout_free()
39 oobregion->length = 2; in oob_sm_ooblayout_free()
43 oobregion->offset = 11; in oob_sm_ooblayout_free()
44 oobregion->length = 2; in oob_sm_ooblayout_free()
[all …]
Dfsmc_nand.c43 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_ecc() argument
50 oobregion->offset = (section * 16) + 2; in fsmc_ecc1_ooblayout_ecc()
51 oobregion->length = 3; in fsmc_ecc1_ooblayout_ecc()
57 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_free() argument
64 oobregion->offset = (section * 16) + 8; in fsmc_ecc1_ooblayout_free()
67 oobregion->length = 8; in fsmc_ecc1_ooblayout_free()
69 oobregion->length = mtd->oobsize - oobregion->offset; in fsmc_ecc1_ooblayout_free()
86 struct mtd_oob_region *oobregion) in fsmc_ecc4_ooblayout_ecc() argument
93 oobregion->length = chip->ecc.bytes; in fsmc_ecc4_ooblayout_ecc()
96 oobregion->offset = 0; in fsmc_ecc4_ooblayout_ecc()
[all …]
Dfsl_ifc_nand.c97 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_ecc() argument
104 oobregion->offset = 8; in fsl_ifc_ooblayout_ecc()
105 oobregion->length = chip->ecc.total; in fsl_ifc_ooblayout_ecc()
111 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_free() argument
121 oobregion->offset = 0; in fsl_ifc_ooblayout_free()
122 oobregion->length = 5; in fsl_ifc_ooblayout_free()
124 oobregion->offset = 6; in fsl_ifc_ooblayout_free()
125 oobregion->length = 2; in fsl_ifc_ooblayout_free()
132 oobregion->offset = 2; in fsl_ifc_ooblayout_free()
133 oobregion->length = 6; in fsl_ifc_ooblayout_free()
[all …]
Ddavinci_nand.c485 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_ecc() argument
491 oobregion->offset = 0; in hwecc4_ooblayout_small_ecc()
492 oobregion->length = 5; in hwecc4_ooblayout_small_ecc()
494 oobregion->offset = 6; in hwecc4_ooblayout_small_ecc()
495 oobregion->length = 2; in hwecc4_ooblayout_small_ecc()
497 oobregion->offset = 13; in hwecc4_ooblayout_small_ecc()
498 oobregion->length = 3; in hwecc4_ooblayout_small_ecc()
505 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_free() argument
511 oobregion->offset = 8; in hwecc4_ooblayout_small_free()
512 oobregion->length = 5; in hwecc4_ooblayout_small_free()
[all …]
Dmxc_nand.c883 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_ecc() argument
890 oobregion->offset = (section * 16) + 6; in mxc_v1_ooblayout_ecc()
891 oobregion->length = MXC_V1_ECCBYTES; in mxc_v1_ooblayout_ecc()
897 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_free() argument
906 oobregion->offset = 0; in mxc_v1_ooblayout_free()
907 oobregion->length = 5; in mxc_v1_ooblayout_free()
909 oobregion->offset = 2; in mxc_v1_ooblayout_free()
910 oobregion->length = 4; in mxc_v1_ooblayout_free()
913 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; in mxc_v1_ooblayout_free()
915 oobregion->length = (section * 16) + 6 - in mxc_v1_ooblayout_free()
[all …]
Dlpc32xx_slc.c149 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument
154 oobregion->length = 6; in lpc32xx_ooblayout_ecc()
155 oobregion->offset = 10; in lpc32xx_ooblayout_ecc()
161 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument
167 oobregion->offset = 0; in lpc32xx_ooblayout_free()
168 oobregion->length = 4; in lpc32xx_ooblayout_free()
170 oobregion->offset = 6; in lpc32xx_ooblayout_free()
171 oobregion->length = 4; in lpc32xx_ooblayout_free()
630 struct mtd_oob_region oobregion = { }; in lpc32xx_nand_read_page_syndrome() local
647 error = mtd_ooblayout_ecc(mtd, 0, &oobregion); in lpc32xx_nand_read_page_syndrome()
[all …]
Datmel_nand.c82 struct mtd_oob_region *oobregion) in atmel_ooblayout_ecc_sp() argument
87 oobregion->length = 4; in atmel_ooblayout_ecc_sp()
88 oobregion->offset = 0; in atmel_ooblayout_ecc_sp()
94 struct mtd_oob_region *oobregion) in atmel_ooblayout_free_sp() argument
99 oobregion->offset = 6; in atmel_ooblayout_free_sp()
100 oobregion->length = mtd->oobsize - oobregion->offset; in atmel_ooblayout_free_sp()
827 struct mtd_oob_region oobregion; in pmecc_correct_data() local
835 mtd_ooblayout_ecc(mtd, 0, &oobregion); in pmecc_correct_data()
836 pos = tmp + oobregion.offset; in pmecc_correct_data()
949 struct mtd_oob_region oobregion; in atmel_nand_pmecc_read_page() local
[all …]
Dfsl_elbc_nand.c83 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_ecc() argument
91 oobregion->offset = (16 * section) + 6; in fsl_elbc_ooblayout_ecc()
93 oobregion->offset += 2; in fsl_elbc_ooblayout_ecc()
95 oobregion->length = chip->ecc.bytes; in fsl_elbc_ooblayout_ecc()
101 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_free() argument
110 oobregion->offset = 0; in fsl_elbc_ooblayout_free()
112 oobregion->offset++; in fsl_elbc_ooblayout_free()
113 oobregion->length = (priv->fmr & FMR_ECCM) ? 7 : 5; in fsl_elbc_ooblayout_free()
115 oobregion->offset = (16 * section) - in fsl_elbc_ooblayout_free()
118 oobregion->length = 13; in fsl_elbc_ooblayout_free()
[all …]
Dsh_flctl.c46 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_ecc() argument
53 oobregion->offset = 0; in flctl_4secc_ooblayout_sp_ecc()
54 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_sp_ecc()
60 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_free() argument
65 oobregion->offset = 12; in flctl_4secc_ooblayout_sp_free()
66 oobregion->length = 4; in flctl_4secc_ooblayout_sp_free()
77 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_ecc() argument
84 oobregion->offset = (section * 16) + 6; in flctl_4secc_ooblayout_lp_ecc()
85 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_lp_ecc()
91 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_free() argument
[all …]
Dnand_base.c57 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_sp() argument
66 oobregion->offset = 0; in nand_ooblayout_ecc_sp()
68 oobregion->length = 4; in nand_ooblayout_ecc_sp()
70 oobregion->length = 3; in nand_ooblayout_ecc_sp()
75 oobregion->offset = 6; in nand_ooblayout_ecc_sp()
76 oobregion->length = ecc->total - 4; in nand_ooblayout_ecc_sp()
83 struct mtd_oob_region *oobregion) in nand_ooblayout_free_sp() argument
92 oobregion->length = 8; in nand_ooblayout_free_sp()
93 oobregion->offset = 8; in nand_ooblayout_free_sp()
95 oobregion->length = 2; in nand_ooblayout_free_sp()
[all …]
Dbf5xx_nand.c113 struct mtd_oob_region *oobregion) in bootrom_ooblayout_ecc() argument
118 oobregion->offset = section * 8; in bootrom_ooblayout_ecc()
119 oobregion->length = 3; in bootrom_ooblayout_ecc()
125 struct mtd_oob_region *oobregion) in bootrom_ooblayout_free() argument
130 oobregion->offset = (section * 8) + 3; in bootrom_ooblayout_free()
131 oobregion->length = 5; in bootrom_ooblayout_free()
Dlpc32xx_mlc.c142 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument
149 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
150 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
156 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument
163 oobregion->offset = 16 * section; in lpc32xx_ooblayout_free()
164 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free()
Ds3c2410.c88 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_ecc() argument
93 oobregion->offset = 0; in s3c2410_ooblayout_ecc()
94 oobregion->length = 3; in s3c2410_ooblayout_ecc()
100 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_free() argument
105 oobregion->offset = 8; in s3c2410_ooblayout_free()
106 oobregion->length = 8; in s3c2410_ooblayout_free()
Domap2.c1818 struct mtd_oob_region *oobregion) in omap_ooblayout_ecc() argument
1831 oobregion->offset = off; in omap_ooblayout_ecc()
1832 oobregion->length = chip->ecc.total; in omap_ooblayout_ecc()
1838 struct mtd_oob_region *oobregion) in omap_ooblayout_free() argument
1855 oobregion->offset = off; in omap_ooblayout_free()
1856 oobregion->length = mtd->oobsize - off; in omap_ooblayout_free()
1867 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_ecc() argument
1879 oobregion->offset = off + (section * (chip->ecc.bytes + 1)); in omap_sw_ooblayout_ecc()
1880 oobregion->length = chip->ecc.bytes; in omap_sw_ooblayout_ecc()
1886 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_free() argument
[all …]
Dcafe_nand.c463 struct mtd_oob_region *oobregion) in cafe_ooblayout_ecc() argument
470 oobregion->offset = 0; in cafe_ooblayout_ecc()
471 oobregion->length = chip->ecc.total; in cafe_ooblayout_ecc()
477 struct mtd_oob_region *oobregion) in cafe_ooblayout_free() argument
484 oobregion->offset = chip->ecc.total; in cafe_ooblayout_free()
485 oobregion->length = mtd->oobsize - chip->ecc.total; in cafe_ooblayout_free()
Dpxa3xx_nand.c327 struct mtd_oob_region *oobregion) in pxa3xx_ooblayout_ecc() argument
337 oobregion->offset = ((info->ecc_size + info->spare_size) * section) + in pxa3xx_ooblayout_ecc()
339 oobregion->length = info->ecc_size; in pxa3xx_ooblayout_ecc()
345 struct mtd_oob_region *oobregion) in pxa3xx_ooblayout_free() argument
358 oobregion->offset = section * (info->ecc_size + info->spare_size); in pxa3xx_ooblayout_free()
359 oobregion->length = info->spare_size; in pxa3xx_ooblayout_free()
366 oobregion->offset += 6; in pxa3xx_ooblayout_free()
367 oobregion->length -= 6; in pxa3xx_ooblayout_free()
369 oobregion->offset += 2; in pxa3xx_ooblayout_free()
370 oobregion->length -= 2; in pxa3xx_ooblayout_free()
Ddocg4.c226 struct mtd_oob_region *oobregion) in docg4_ooblayout_ecc() argument
231 oobregion->offset = 7; in docg4_ooblayout_ecc()
232 oobregion->length = 9; in docg4_ooblayout_ecc()
238 struct mtd_oob_region *oobregion) in docg4_ooblayout_free() argument
243 oobregion->offset = 2; in docg4_ooblayout_free()
244 oobregion->length = 5; in docg4_ooblayout_free()
Ddenali.c1380 struct mtd_oob_region *oobregion) in denali_ooblayout_ecc() argument
1388 oobregion->offset = denali->bbtskipbytes; in denali_ooblayout_ecc()
1389 oobregion->length = chip->ecc.total; in denali_ooblayout_ecc()
1395 struct mtd_oob_region *oobregion) in denali_ooblayout_free() argument
1403 oobregion->offset = chip->ecc.total + denali->bbtskipbytes; in denali_ooblayout_free()
1404 oobregion->length = mtd->oobsize - oobregion->offset; in denali_ooblayout_free()
Dqcom_nandc.c1721 struct mtd_oob_region *oobregion) in qcom_nand_ooblayout_ecc() argument
1731 oobregion->length = (ecc->bytes * (ecc->steps - 1)) + in qcom_nand_ooblayout_ecc()
1733 oobregion->offset = 0; in qcom_nand_ooblayout_ecc()
1735 oobregion->length = host->ecc_bytes_hw + host->spare_bytes; in qcom_nand_ooblayout_ecc()
1736 oobregion->offset = mtd->oobsize - oobregion->length; in qcom_nand_ooblayout_ecc()
1743 struct mtd_oob_region *oobregion) in qcom_nand_ooblayout_free() argument
1752 oobregion->length = ecc->steps * 4; in qcom_nand_ooblayout_free()
1753 oobregion->offset = ((ecc->steps - 1) * ecc->bytes) + host->bbm_size; in qcom_nand_ooblayout_free()
Dsunxi_nand.c1731 struct mtd_oob_region *oobregion) in sunxi_nand_ooblayout_ecc() argument
1739 oobregion->offset = section * (ecc->bytes + 4) + 4; in sunxi_nand_ooblayout_ecc()
1740 oobregion->length = ecc->bytes; in sunxi_nand_ooblayout_ecc()
1746 struct mtd_oob_region *oobregion) in sunxi_nand_ooblayout_free() argument
1760 oobregion->offset = 2; in sunxi_nand_ooblayout_free()
1761 oobregion->length = 2; in sunxi_nand_ooblayout_free()
1766 oobregion->offset = section * (ecc->bytes + 4); in sunxi_nand_ooblayout_free()
1769 oobregion->length = 4; in sunxi_nand_ooblayout_free()
1771 oobregion->offset = mtd->oobsize - oobregion->offset; in sunxi_nand_ooblayout_free()
/drivers/mtd/
Dmtdcore.c1203 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region() argument
1206 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1210 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1213 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1217 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1220 pos += oobregion->length; in mtd_ooblayout_find_region()
1228 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1229 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1250 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1252 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
[all …]
Dmtdchar.c478 struct mtd_oob_region oobregion; in shrink_ecclayout() local
490 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in shrink_ecclayout()
498 eccpos = oobregion.offset; in shrink_ecclayout()
500 eccpos < oobregion.offset + oobregion.length; i++) { in shrink_ecclayout()
507 ret = mtd_ooblayout_free(mtd, i, &oobregion); in shrink_ecclayout()
515 to->oobfree[i].offset = oobregion.offset; in shrink_ecclayout()
516 to->oobfree[i].length = oobregion.length; in shrink_ecclayout()
525 struct mtd_oob_region oobregion; in get_oobinfo() local
537 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in get_oobinfo()
545 if (oobregion.length + i > ARRAY_SIZE(to->eccpos)) in get_oobinfo()
[all …]
/drivers/mtd/nand/brcmnand/
Dbrcmnand.c873 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_ecc() argument
884 oobregion->offset = (section * sas) + 6; in brcmnand_hamming_ooblayout_ecc()
885 oobregion->length = 3; in brcmnand_hamming_ooblayout_ecc()
891 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_free() argument
902 oobregion->offset = (section / 2) * sas; in brcmnand_hamming_ooblayout_free()
905 oobregion->offset += 9; in brcmnand_hamming_ooblayout_free()
906 oobregion->length = 7; in brcmnand_hamming_ooblayout_free()
908 oobregion->length = 6; in brcmnand_hamming_ooblayout_free()
917 oobregion->offset++; in brcmnand_hamming_ooblayout_free()
918 oobregion->length--; in brcmnand_hamming_ooblayout_free()
[all …]
/drivers/staging/mt29f_spinand/
Dmt29f_spinand.c46 struct mtd_oob_region *oobregion) in spinand_ooblayout_64_ecc() argument
51 oobregion->offset = (section * 16) + 1; in spinand_ooblayout_64_ecc()
52 oobregion->length = 6; in spinand_ooblayout_64_ecc()
58 struct mtd_oob_region *oobregion) in spinand_ooblayout_64_free() argument
63 oobregion->offset = (section * 16) + 8; in spinand_ooblayout_64_free()
64 oobregion->length = 8; in spinand_ooblayout_64_free()
/drivers/mtd/onenand/
Donenand_base.c72 struct mtd_oob_region *oobregion) in flexonenand_ooblayout_ecc() argument
77 oobregion->offset = (section * 16) + 6; in flexonenand_ooblayout_ecc()
78 oobregion->length = 10; in flexonenand_ooblayout_ecc()
84 struct mtd_oob_region *oobregion) in flexonenand_ooblayout_free() argument
89 oobregion->offset = (section * 16) + 2; in flexonenand_ooblayout_free()
90 oobregion->length = 4; in flexonenand_ooblayout_free()
108 struct mtd_oob_region *oobregion) in onenand_ooblayout_128_ecc() argument
113 oobregion->offset = (section * 16) + 7; in onenand_ooblayout_128_ecc()
114 oobregion->length = 9; in onenand_ooblayout_128_ecc()
120 struct mtd_oob_region *oobregion) in onenand_ooblayout_128_free() argument
[all …]

12