Searched refs:oobregion (Results 1 - 25 of 40) sorted by relevance

12

/linux-master/drivers/mtd/nand/raw/
H A Dsm_common.c13 struct mtd_oob_region *oobregion)
18 oobregion->length = 3;
19 oobregion->offset = ((section + 1) * 8) - 3;
25 struct mtd_oob_region *oobregion)
30 oobregion->offset = 0;
31 oobregion->length = 4;
35 oobregion->offset = 6;
36 oobregion->length = 2;
40 oobregion->offset = 11;
41 oobregion
12 oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
24 oob_sm_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
61 oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
73 oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
H A Dnand_micron.c102 struct mtd_oob_region *oobregion)
107 oobregion->offset = (section * 16) + 8;
108 oobregion->length = 8;
115 struct mtd_oob_region *oobregion)
120 oobregion->offset = (section * 16) + 2;
121 oobregion->length = 6;
133 struct mtd_oob_region *oobregion)
140 oobregion->offset = mtd->oobsize - chip->ecc.total;
141 oobregion->length = chip->ecc.total;
148 struct mtd_oob_region *oobregion)
100 micron_nand_on_die_4_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
113 micron_nand_on_die_4_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
131 micron_nand_on_die_8_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
146 micron_nand_on_die_8_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
H A Dfsmc_nand.c168 struct mtd_oob_region *oobregion)
175 oobregion->offset = (section * 16) + 2;
176 oobregion->length = 3;
182 struct mtd_oob_region *oobregion)
189 oobregion->offset = (section * 16) + 8;
192 oobregion->length = 8;
194 oobregion->length = mtd->oobsize - oobregion->offset;
211 struct mtd_oob_region *oobregion)
218 oobregion
167 fsmc_ecc1_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
181 fsmc_ecc1_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
210 fsmc_ecc4_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
228 fsmc_ecc4_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
733 struct mtd_oob_region oobregion; local
[all...]
H A Ddavinci_nand.c380 struct mtd_oob_region *oobregion)
386 oobregion->offset = 0;
387 oobregion->length = 5;
389 oobregion->offset = 6;
390 oobregion->length = 2;
392 oobregion->offset = 13;
393 oobregion->length = 3;
400 struct mtd_oob_region *oobregion)
406 oobregion->offset = 8;
407 oobregion
379 hwecc4_ooblayout_small_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
399 hwecc4_ooblayout_small_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
H A Dfsl_ifc_nand.c85 struct mtd_oob_region *oobregion)
92 oobregion->offset = 8;
93 oobregion->length = chip->ecc.total;
99 struct mtd_oob_region *oobregion)
109 oobregion->offset = 0;
110 oobregion->length = 5;
112 oobregion->offset = 6;
113 oobregion->length = 2;
120 oobregion->offset = 2;
121 oobregion
84 fsl_ifc_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
98 fsl_ifc_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
645 struct mtd_oob_region oobregion = { }; local
[all...]
H A Dlpc32xx_slc.c138 struct mtd_oob_region *oobregion)
143 oobregion->length = 6;
144 oobregion->offset = 10;
150 struct mtd_oob_region *oobregion)
156 oobregion->offset = 0;
157 oobregion->length = 4;
159 oobregion->offset = 6;
160 oobregion->length = 4;
605 struct mtd_oob_region oobregion = { }; local
622 error = mtd_ooblayout_ecc(mtd, 0, &oobregion);
137 lpc32xx_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
149 lpc32xx_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
673 struct mtd_oob_region oobregion = { }; local
[all...]
H A Dmxc_nand.c1003 struct mtd_oob_region *oobregion)
1010 oobregion->offset = (section * 16) + 6;
1011 oobregion->length = MXC_V1_ECCBYTES;
1017 struct mtd_oob_region *oobregion)
1026 oobregion->offset = 0;
1027 oobregion->length = 5;
1029 oobregion->offset = 2;
1030 oobregion->length = 4;
1033 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6;
1035 oobregion
1002 mxc_v1_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1016 mxc_v1_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1049 mxc_v2_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1064 mxc_v2_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
H A Dfsl_elbc_nand.c69 struct mtd_oob_region *oobregion)
77 oobregion->offset = (16 * section) + 6;
79 oobregion->offset += 2;
81 oobregion->length = chip->ecc.bytes;
87 struct mtd_oob_region *oobregion)
96 oobregion->offset = 0;
98 oobregion->offset++;
99 oobregion->length = (priv->fmr & FMR_ECCM) ? 7 : 5;
101 oobregion->offset = (16 * section) -
104 oobregion
68 fsl_elbc_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
86 fsl_elbc_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
H A Dsh_flctl.c32 struct mtd_oob_region *oobregion)
39 oobregion->offset = 0;
40 oobregion->length = chip->ecc.bytes;
46 struct mtd_oob_region *oobregion)
51 oobregion->offset = 12;
52 oobregion->length = 4;
63 struct mtd_oob_region *oobregion)
70 oobregion->offset = (section * 16) + 6;
71 oobregion->length = chip->ecc.bytes;
77 struct mtd_oob_region *oobregion)
31 flctl_4secc_ooblayout_sp_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
45 flctl_4secc_ooblayout_sp_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
62 flctl_4secc_ooblayout_lp_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
76 flctl_4secc_ooblayout_lp_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
H A Dintel-nand-controller.c237 struct mtd_oob_region *oobregion)
244 oobregion->offset = HSNAND_ECC_OFFSET;
245 oobregion->length = chip->ecc.total;
251 struct mtd_oob_region *oobregion)
258 oobregion->offset = chip->ecc.total + HSNAND_ECC_OFFSET;
259 oobregion->length = mtd->oobsize - oobregion->offset;
236 ebu_nand_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
250 ebu_nand_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
H A Dcafe_nand.c451 struct mtd_oob_region *oobregion)
458 oobregion->offset = 0;
459 oobregion->length = chip->ecc.total;
465 struct mtd_oob_region *oobregion)
472 oobregion->offset = chip->ecc.total;
473 oobregion->length = mtd->oobsize - chip->ecc.total;
450 cafe_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
464 cafe_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
H A Ds3c2410.c74 struct mtd_oob_region *oobregion)
79 oobregion->offset = 0;
80 oobregion->length = 3;
86 struct mtd_oob_region *oobregion)
91 oobregion->offset = 8;
92 oobregion->length = 8;
73 s3c2410_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
85 s3c2410_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
H A Dpl35x-nand-controller.c158 struct mtd_oob_region *oobregion)
165 oobregion->offset = (section * chip->ecc.bytes);
166 oobregion->length = chip->ecc.bytes;
172 struct mtd_oob_region *oobregion)
179 oobregion->offset = (section * chip->ecc.bytes) + 8;
180 oobregion->length = 8;
157 pl35x_ecc_ooblayout16_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
171 pl35x_ecc_ooblayout16_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
H A Dlpc32xx_mlc.c130 struct mtd_oob_region *oobregion)
137 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes;
138 oobregion->length = nand_chip->ecc.bytes;
144 struct mtd_oob_region *oobregion)
151 oobregion->offset = 16 * section;
152 oobregion->length = 16 - nand_chip->ecc.bytes;
129 lpc32xx_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
143 lpc32xx_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
H A Ddenali.c923 struct mtd_oob_region *oobregion)
931 oobregion->offset = denali->oob_skip_bytes;
932 oobregion->length = chip->ecc.total;
938 struct mtd_oob_region *oobregion)
946 oobregion->offset = chip->ecc.total + denali->oob_skip_bytes;
947 oobregion->length = mtd->oobsize - oobregion->offset;
922 denali_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
937 denali_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
H A Dtegra_nand.c204 struct mtd_oob_region *oobregion)
213 oobregion->offset = SKIP_SPARE_BYTES;
214 oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4);
220 struct mtd_oob_region *oobregion)
231 struct mtd_oob_region *oobregion)
240 oobregion->offset = SKIP_SPARE_BYTES;
241 oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4);
203 tegra_nand_ooblayout_rs_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
219 tegra_nand_ooblayout_no_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
230 tegra_nand_ooblayout_bch_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
/linux-master/drivers/mtd/nand/
H A Decc.c164 struct mtd_oob_region *oobregion)
173 oobregion->offset = 0;
175 oobregion->length = 4;
177 oobregion->length = 3;
182 oobregion->offset = 6;
183 oobregion->length = total_ecc_bytes - 4;
190 struct mtd_oob_region *oobregion)
199 oobregion->length = 8;
200 oobregion->offset = 8;
202 oobregion
163 nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
189 nand_ooblayout_free_sp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
223 nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
238 nand_ooblayout_free_lp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
268 nand_ooblayout_ecc_lp_hamming(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
295 nand_ooblayout_free_lp_hamming(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
H A Decc-mxic.c135 struct mtd_oob_region *oobregion)
143 oobregion->offset = (section * ctx->oob_step_sz) + ctx->meta_sz;
144 oobregion->length = ctx->parity_sz;
150 struct mtd_oob_region *oobregion)
159 oobregion->offset = 2;
160 oobregion->length = ctx->meta_sz - 2;
162 oobregion->offset = section * ctx->oob_step_sz;
163 oobregion->length = ctx->meta_sz;
134 mxic_ecc_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
149 mxic_ecc_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
/linux-master/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c72 struct mtd_oob_region *oobregion)
80 oobregion->length = ecc->total;
81 oobregion->offset = 12;
87 struct mtd_oob_region *oobregion)
95 oobregion->length = mtd->oobsize - ecc->total - 12;
96 oobregion->offset = 12 + ecc->total;
107 struct mtd_oob_region *oobregion)
115 oobregion->length = ecc->total;
116 oobregion->offset = 3;
122 struct mtd_oob_region *oobregion)
71 qi_lb60_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
86 qi_lb60_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
106 jz4725b_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
121 jz4725b_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
/linux-master/drivers/mtd/nand/spi/
H A Dgigadevice.c156 struct mtd_oob_region *oobregion)
161 oobregion->offset = 128;
162 oobregion->length = 128;
168 struct mtd_oob_region *oobregion)
173 oobregion->offset = 1;
174 oobregion->length = 127;
155 gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
167 gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
/linux-master/arch/arm/mach-pxa/
H A Dspitz.c748 struct mtd_oob_region *oobregion)
755 oobregion->offset = 5;
756 oobregion->length = 1;
760 oobregion->offset = 1;
761 oobregion->length = 3;
765 oobregion->offset = 6;
766 oobregion->length = 2;
770 oobregion->offset += (section / 3) * 0x10;
776 struct mtd_oob_region *oobregion)
781 oobregion
747 akita_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
775 akita_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
/linux-master/drivers/mtd/
H A Dmtdchar.c446 struct mtd_oob_region oobregion; local
458 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion);
466 eccpos = oobregion.offset;
468 eccpos < oobregion.offset + oobregion.length; i++) {
475 ret = mtd_ooblayout_free(mtd, i, &oobregion);
483 to->oobfree[i].offset = oobregion.offset;
484 to->oobfree[i].length = oobregion.length;
493 struct mtd_oob_region oobregion; local
505 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion);
[all...]
H A Dmtdcore.c1837 * @oobregion: used to retrieve the ECC position
1841 * This function returns the section id and oobregion information of a
1845 * mtd_ooblayout_find_region(mtd, 3, &section, &oobregion, mtd_ooblayout_ecc);
1850 int *sectionp, struct mtd_oob_region *oobregion,
1853 struct mtd_oob_region *oobregion))
1857 memset(oobregion, 0, sizeof(*oobregion));
1860 ret = iter(mtd, section, oobregion);
1864 if (pos + oobregion->length > byte)
1867 pos += oobregion
1849 mtd_ooblayout_find_region(struct mtd_info *mtd, int byte, int *sectionp, struct mtd_oob_region *oobregion, int (*iter)(struct mtd_info *, int section, struct mtd_oob_region *oobregion)) argument
1895 mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, int *section, struct mtd_oob_region *oobregion) argument
1918 mtd_ooblayout_get_bytes(struct mtd_info *mtd, u8 *buf, const u8 *oobbuf, int start, int nbytes, int (*iter)(struct mtd_info *, int section, struct mtd_oob_region *oobregion)) argument
1924 struct mtd_oob_region oobregion; local
1961 mtd_ooblayout_set_bytes(struct mtd_info *mtd, const u8 *buf, u8 *oobbuf, int start, int nbytes, int (*iter)(struct mtd_info *, int section, struct mtd_oob_region *oobregion)) argument
1967 struct mtd_oob_region oobregion; local
1999 mtd_ooblayout_count_bytes(struct mtd_info *mtd, int (*iter)(struct mtd_info *, int section, struct mtd_oob_region *oobregion)) argument
2004 struct mtd_oob_region oobregion; local
[all...]
/linux-master/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c1252 struct mtd_oob_region *oobregion)
1263 oobregion->offset = (section * sas) + 6;
1264 oobregion->length = 3;
1270 struct mtd_oob_region *oobregion)
1287 oobregion->offset = ((section - 1) * sas) + 9;
1291 oobregion->offset = 2;
1294 oobregion->offset = 0;
1299 oobregion->length = next - oobregion->offset;
1310 struct mtd_oob_region *oobregion)
1251 brcmnand_hamming_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1269 brcmnand_hamming_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1309 brcmnand_bch_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1327 brcmnand_bch_ooblayout_free_lp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
1353 brcmnand_bch_ooblayout_free_sp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]
/linux-master/drivers/mtd/nand/onenand/
H A Donenand_base.c67 struct mtd_oob_region *oobregion)
72 oobregion->offset = (section * 16) + 6;
73 oobregion->length = 10;
79 struct mtd_oob_region *oobregion)
84 oobregion->offset = (section * 16) + 2;
85 oobregion->length = 4;
103 struct mtd_oob_region *oobregion)
108 oobregion->offset = (section * 16) + 7;
109 oobregion->length = 9;
115 struct mtd_oob_region *oobregion)
66 flexonenand_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
78 flexonenand_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
102 onenand_ooblayout_128_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
114 onenand_ooblayout_128_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
138 onenand_ooblayout_32_64_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
150 onenand_ooblayout_32_64_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
[all...]

Completed in 315 milliseconds

12