Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/mtd/nand/
H A Decc.c157 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_sp()
166 oobregion->offset = 0; in nand_ooblayout_ecc_sp()
168 oobregion->length = 4; in nand_ooblayout_ecc_sp()
170 oobregion->length = 3; in nand_ooblayout_ecc_sp()
175 oobregion->offset = 6; in nand_ooblayout_ecc_sp()
176 oobregion->length = total_ecc_bytes - 4; in nand_ooblayout_ecc_sp()
183 struct mtd_oob_region *oobregion) in nand_ooblayout_free_sp()
192 oobregion->length = 8; in nand_ooblayout_free_sp()
193 oobregion->offset = 8; in nand_ooblayout_free_sp()
195 oobregion in nand_ooblayout_free_sp()
156 nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_ecc_sp() argument
182 nand_ooblayout_free_sp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_free_sp() argument
216 nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_ecc_lp() argument
231 nand_ooblayout_free_lp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_free_lp() argument
261 nand_ooblayout_ecc_lp_hamming(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_ecc_lp_hamming() argument
288 nand_ooblayout_free_lp_hamming(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_free_lp_hamming() argument
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dsm_common.c13 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_ecc()
18 oobregion->length = 3; in oob_sm_ooblayout_ecc()
19 oobregion->offset = ((section + 1) * 8) - 3; in oob_sm_ooblayout_ecc()
25 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_free()
30 oobregion->offset = 0; in oob_sm_ooblayout_free()
31 oobregion->length = 4; in oob_sm_ooblayout_free()
35 oobregion->offset = 6; in oob_sm_ooblayout_free()
36 oobregion->length = 2; in oob_sm_ooblayout_free()
40 oobregion->offset = 11; in oob_sm_ooblayout_free()
41 oobregion in oob_sm_ooblayout_free()
12 oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) oob_sm_ooblayout_ecc() argument
24 oob_sm_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) oob_sm_ooblayout_free() argument
61 oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) oob_sm_small_ooblayout_ecc() argument
73 oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) oob_sm_small_ooblayout_free() argument
[all...]
H A Dnand_micron.c102 struct mtd_oob_region *oobregion) in micron_nand_on_die_4_ooblayout_ecc()
107 oobregion->offset = (section * 16) + 8; in micron_nand_on_die_4_ooblayout_ecc()
108 oobregion->length = 8; in micron_nand_on_die_4_ooblayout_ecc()
115 struct mtd_oob_region *oobregion) in micron_nand_on_die_4_ooblayout_free()
120 oobregion->offset = (section * 16) + 2; in micron_nand_on_die_4_ooblayout_free()
121 oobregion->length = 6; in micron_nand_on_die_4_ooblayout_free()
133 struct mtd_oob_region *oobregion) in micron_nand_on_die_8_ooblayout_ecc()
140 oobregion->offset = mtd->oobsize - chip->ecc.total; in micron_nand_on_die_8_ooblayout_ecc()
141 oobregion->length = chip->ecc.total; in micron_nand_on_die_8_ooblayout_ecc()
148 struct mtd_oob_region *oobregion) in micron_nand_on_die_8_ooblayout_free()
100 micron_nand_on_die_4_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) micron_nand_on_die_4_ooblayout_ecc() argument
113 micron_nand_on_die_4_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) micron_nand_on_die_4_ooblayout_free() argument
131 micron_nand_on_die_8_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) micron_nand_on_die_8_ooblayout_ecc() argument
146 micron_nand_on_die_8_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) micron_nand_on_die_8_ooblayout_free() argument
[all...]
H A Dfsmc_nand.c168 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_ecc()
175 oobregion->offset = (section * 16) + 2; in fsmc_ecc1_ooblayout_ecc()
176 oobregion->length = 3; in fsmc_ecc1_ooblayout_ecc()
182 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_free()
189 oobregion->offset = (section * 16) + 8; in fsmc_ecc1_ooblayout_free()
192 oobregion->length = 8; in fsmc_ecc1_ooblayout_free()
194 oobregion->length = mtd->oobsize - oobregion->offset; in fsmc_ecc1_ooblayout_free()
211 struct mtd_oob_region *oobregion) in fsmc_ecc4_ooblayout_ecc()
218 oobregion in fsmc_ecc4_ooblayout_ecc()
167 fsmc_ecc1_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsmc_ecc1_ooblayout_ecc() argument
181 fsmc_ecc1_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsmc_ecc1_ooblayout_free() argument
210 fsmc_ecc4_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsmc_ecc4_ooblayout_ecc() argument
228 fsmc_ecc4_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsmc_ecc4_ooblayout_free() argument
722 struct mtd_oob_region oobregion; fsmc_read_page_hwecc() local
[all...]
H A Dlpc32xx_slc.c140 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc()
145 oobregion->length = 6; in lpc32xx_ooblayout_ecc()
146 oobregion->offset = 10; in lpc32xx_ooblayout_ecc()
152 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free()
158 oobregion->offset = 0; in lpc32xx_ooblayout_free()
159 oobregion->length = 4; in lpc32xx_ooblayout_free()
161 oobregion->offset = 6; in lpc32xx_ooblayout_free()
162 oobregion->length = 4; in lpc32xx_ooblayout_free()
607 struct mtd_oob_region oobregion = { }; in lpc32xx_nand_read_page_syndrome() local
624 error = mtd_ooblayout_ecc(mtd, 0, &oobregion); in lpc32xx_nand_read_page_syndrome()
139 lpc32xx_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) lpc32xx_ooblayout_ecc() argument
151 lpc32xx_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) lpc32xx_ooblayout_free() argument
675 struct mtd_oob_region oobregion = { }; lpc32xx_nand_write_page_syndrome() local
[all...]
H A Ddavinci_nand.c448 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_ecc()
454 oobregion->offset = 0; in hwecc4_ooblayout_small_ecc()
455 oobregion->length = 5; in hwecc4_ooblayout_small_ecc()
457 oobregion->offset = 6; in hwecc4_ooblayout_small_ecc()
458 oobregion->length = 2; in hwecc4_ooblayout_small_ecc()
460 oobregion->offset = 13; in hwecc4_ooblayout_small_ecc()
461 oobregion->length = 3; in hwecc4_ooblayout_small_ecc()
468 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_free()
474 oobregion->offset = 8; in hwecc4_ooblayout_small_free()
475 oobregion in hwecc4_ooblayout_small_free()
447 hwecc4_ooblayout_small_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) hwecc4_ooblayout_small_ecc() argument
467 hwecc4_ooblayout_small_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) hwecc4_ooblayout_small_free() argument
[all...]
H A Dfsl_elbc_nand.c70 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_ecc()
78 oobregion->offset = (16 * section) + 6; in fsl_elbc_ooblayout_ecc()
80 oobregion->offset += 2; in fsl_elbc_ooblayout_ecc()
82 oobregion->length = chip->ecc.bytes; in fsl_elbc_ooblayout_ecc()
88 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_free()
97 oobregion->offset = 0; in fsl_elbc_ooblayout_free()
99 oobregion->offset++; in fsl_elbc_ooblayout_free()
100 oobregion->length = (priv->fmr & FMR_ECCM) ? 7 : 5; in fsl_elbc_ooblayout_free()
102 oobregion->offset = (16 * section) - in fsl_elbc_ooblayout_free()
105 oobregion in fsl_elbc_ooblayout_free()
69 fsl_elbc_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsl_elbc_ooblayout_ecc() argument
87 fsl_elbc_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsl_elbc_ooblayout_free() argument
[all...]
H A Dfsl_ifc_nand.c85 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_ecc()
92 oobregion->offset = 8; in fsl_ifc_ooblayout_ecc()
93 oobregion->length = chip->ecc.total; in fsl_ifc_ooblayout_ecc()
99 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_free()
109 oobregion->offset = 0; in fsl_ifc_ooblayout_free()
110 oobregion->length = 5; in fsl_ifc_ooblayout_free()
112 oobregion->offset = 6; in fsl_ifc_ooblayout_free()
113 oobregion->length = 2; in fsl_ifc_ooblayout_free()
120 oobregion->offset = 2; in fsl_ifc_ooblayout_free()
121 oobregion in fsl_ifc_ooblayout_free()
84 fsl_ifc_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsl_ifc_ooblayout_ecc() argument
98 fsl_ifc_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsl_ifc_ooblayout_free() argument
645 struct mtd_oob_region oobregion = { }; check_erased_page() local
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dsm_common.c13 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_ecc()
18 oobregion->length = 3; in oob_sm_ooblayout_ecc()
19 oobregion->offset = ((section + 1) * 8) - 3; in oob_sm_ooblayout_ecc()
25 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_free()
30 oobregion->offset = 0; in oob_sm_ooblayout_free()
31 oobregion->length = 4; in oob_sm_ooblayout_free()
35 oobregion->offset = 6; in oob_sm_ooblayout_free()
36 oobregion->length = 2; in oob_sm_ooblayout_free()
40 oobregion->offset = 11; in oob_sm_ooblayout_free()
41 oobregion in oob_sm_ooblayout_free()
12 oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) oob_sm_ooblayout_ecc() argument
24 oob_sm_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) oob_sm_ooblayout_free() argument
61 oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) oob_sm_small_ooblayout_ecc() argument
73 oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) oob_sm_small_ooblayout_free() argument
[all...]
H A Dnand_micron.c102 struct mtd_oob_region *oobregion) in micron_nand_on_die_4_ooblayout_ecc()
107 oobregion->offset = (section * 16) + 8; in micron_nand_on_die_4_ooblayout_ecc()
108 oobregion->length = 8; in micron_nand_on_die_4_ooblayout_ecc()
115 struct mtd_oob_region *oobregion) in micron_nand_on_die_4_ooblayout_free()
120 oobregion->offset = (section * 16) + 2; in micron_nand_on_die_4_ooblayout_free()
121 oobregion->length = 6; in micron_nand_on_die_4_ooblayout_free()
133 struct mtd_oob_region *oobregion) in micron_nand_on_die_8_ooblayout_ecc()
140 oobregion->offset = mtd->oobsize - chip->ecc.total; in micron_nand_on_die_8_ooblayout_ecc()
141 oobregion->length = chip->ecc.total; in micron_nand_on_die_8_ooblayout_ecc()
148 struct mtd_oob_region *oobregion) in micron_nand_on_die_8_ooblayout_free()
100 micron_nand_on_die_4_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) micron_nand_on_die_4_ooblayout_ecc() argument
113 micron_nand_on_die_4_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) micron_nand_on_die_4_ooblayout_free() argument
131 micron_nand_on_die_8_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) micron_nand_on_die_8_ooblayout_ecc() argument
146 micron_nand_on_die_8_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) micron_nand_on_die_8_ooblayout_free() argument
[all...]
H A Ddavinci_nand.c380 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_ecc()
386 oobregion->offset = 0; in hwecc4_ooblayout_small_ecc()
387 oobregion->length = 5; in hwecc4_ooblayout_small_ecc()
389 oobregion->offset = 6; in hwecc4_ooblayout_small_ecc()
390 oobregion->length = 2; in hwecc4_ooblayout_small_ecc()
392 oobregion->offset = 13; in hwecc4_ooblayout_small_ecc()
393 oobregion->length = 3; in hwecc4_ooblayout_small_ecc()
400 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_free()
406 oobregion->offset = 8; in hwecc4_ooblayout_small_free()
407 oobregion in hwecc4_ooblayout_small_free()
379 hwecc4_ooblayout_small_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) hwecc4_ooblayout_small_ecc() argument
399 hwecc4_ooblayout_small_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) hwecc4_ooblayout_small_free() argument
[all...]
H A Dfsmc_nand.c168 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_ecc()
175 oobregion->offset = (section * 16) + 2; in fsmc_ecc1_ooblayout_ecc()
176 oobregion->length = 3; in fsmc_ecc1_ooblayout_ecc()
182 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_free()
189 oobregion->offset = (section * 16) + 8; in fsmc_ecc1_ooblayout_free()
192 oobregion->length = 8; in fsmc_ecc1_ooblayout_free()
194 oobregion->length = mtd->oobsize - oobregion->offset; in fsmc_ecc1_ooblayout_free()
211 struct mtd_oob_region *oobregion) in fsmc_ecc4_ooblayout_ecc()
218 oobregion in fsmc_ecc4_ooblayout_ecc()
167 fsmc_ecc1_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsmc_ecc1_ooblayout_ecc() argument
181 fsmc_ecc1_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsmc_ecc1_ooblayout_free() argument
210 fsmc_ecc4_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsmc_ecc4_ooblayout_ecc() argument
228 fsmc_ecc4_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsmc_ecc4_ooblayout_free() argument
733 struct mtd_oob_region oobregion; fsmc_read_page_hwecc() local
[all...]
H A Dlpc32xx_slc.c138 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc()
143 oobregion->length = 6; in lpc32xx_ooblayout_ecc()
144 oobregion->offset = 10; in lpc32xx_ooblayout_ecc()
150 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free()
156 oobregion->offset = 0; in lpc32xx_ooblayout_free()
157 oobregion->length = 4; in lpc32xx_ooblayout_free()
159 oobregion->offset = 6; in lpc32xx_ooblayout_free()
160 oobregion->length = 4; in lpc32xx_ooblayout_free()
605 struct mtd_oob_region oobregion = { }; in lpc32xx_nand_read_page_syndrome() local
622 error = mtd_ooblayout_ecc(mtd, 0, &oobregion); in lpc32xx_nand_read_page_syndrome()
137 lpc32xx_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) lpc32xx_ooblayout_ecc() argument
149 lpc32xx_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) lpc32xx_ooblayout_free() argument
673 struct mtd_oob_region oobregion = { }; lpc32xx_nand_write_page_syndrome() local
[all...]
H A Dfsl_elbc_nand.c69 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_ecc()
77 oobregion->offset = (16 * section) + 6; in fsl_elbc_ooblayout_ecc()
79 oobregion->offset += 2; in fsl_elbc_ooblayout_ecc()
81 oobregion->length = chip->ecc.bytes; in fsl_elbc_ooblayout_ecc()
87 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_free()
96 oobregion->offset = 0; in fsl_elbc_ooblayout_free()
98 oobregion->offset++; in fsl_elbc_ooblayout_free()
99 oobregion->length = (priv->fmr & FMR_ECCM) ? 7 : 5; in fsl_elbc_ooblayout_free()
101 oobregion->offset = (16 * section) - in fsl_elbc_ooblayout_free()
104 oobregion in fsl_elbc_ooblayout_free()
68 fsl_elbc_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsl_elbc_ooblayout_ecc() argument
86 fsl_elbc_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) fsl_elbc_ooblayout_free() argument
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/
H A Decc.c164 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_sp()
173 oobregion->offset = 0; in nand_ooblayout_ecc_sp()
175 oobregion->length = 4; in nand_ooblayout_ecc_sp()
177 oobregion->length = 3; in nand_ooblayout_ecc_sp()
182 oobregion->offset = 6; in nand_ooblayout_ecc_sp()
183 oobregion->length = total_ecc_bytes - 4; in nand_ooblayout_ecc_sp()
190 struct mtd_oob_region *oobregion) in nand_ooblayout_free_sp()
199 oobregion->length = 8; in nand_ooblayout_free_sp()
200 oobregion->offset = 8; in nand_ooblayout_free_sp()
202 oobregion in nand_ooblayout_free_sp()
163 nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_ecc_sp() argument
189 nand_ooblayout_free_sp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_free_sp() argument
223 nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_ecc_lp() argument
238 nand_ooblayout_free_lp(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_free_lp() argument
268 nand_ooblayout_ecc_lp_hamming(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_ecc_lp_hamming() argument
295 nand_ooblayout_free_lp_hamming(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) nand_ooblayout_free_lp_hamming() argument
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/spi/
H A Dgigadevice.c136 struct mtd_oob_region *oobregion) in gd5fxgq4xc_ooblayout_256_ecc()
141 oobregion->offset = 128; in gd5fxgq4xc_ooblayout_256_ecc()
142 oobregion->length = 128; in gd5fxgq4xc_ooblayout_256_ecc()
148 struct mtd_oob_region *oobregion) in gd5fxgq4xc_ooblayout_256_free()
153 oobregion->offset = 1; in gd5fxgq4xc_ooblayout_256_free()
154 oobregion->length = 127; in gd5fxgq4xc_ooblayout_256_free()
135 gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) gd5fxgq4xc_ooblayout_256_ecc() argument
147 gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) gd5fxgq4xc_ooblayout_256_free() argument
/kernel/linux/linux-5.10/drivers/mtd/
H A Dmtdchar.c454 struct mtd_oob_region oobregion; in shrink_ecclayout() local
466 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in shrink_ecclayout()
474 eccpos = oobregion.offset; in shrink_ecclayout()
476 eccpos < oobregion.offset + oobregion.length; i++) { in shrink_ecclayout()
483 ret = mtd_ooblayout_free(mtd, i, &oobregion); in shrink_ecclayout()
491 to->oobfree[i].offset = oobregion.offset; in shrink_ecclayout()
492 to->oobfree[i].length = oobregion.length; in shrink_ecclayout()
501 struct mtd_oob_region oobregion; in get_oobinfo() local
513 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in get_oobinfo()
[all...]
H A Dmtdcore.c1575 * @oobregion: used to retrieve the ECC position
1579 * This function returns the section id and oobregion information of a
1583 * mtd_ooblayout_find_region(mtd, 3, &section, &oobregion, mtd_ooblayout_ecc);
1588 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region()
1591 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1595 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1598 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1602 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1605 pos += oobregion in mtd_ooblayout_find_region()
1587 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)) mtd_ooblayout_find_region() argument
1633 mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, int *section, struct mtd_oob_region *oobregion) mtd_ooblayout_find_eccregion() argument
1656 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)) mtd_ooblayout_get_bytes() argument
1662 struct mtd_oob_region oobregion; mtd_ooblayout_get_bytes() local
1699 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)) mtd_ooblayout_set_bytes() argument
1705 struct mtd_oob_region oobregion; mtd_ooblayout_set_bytes() local
1737 mtd_ooblayout_count_bytes(struct mtd_info *mtd, int (*iter)(struct mtd_info *, int section, struct mtd_oob_region *oobregion)) mtd_ooblayout_count_bytes() argument
1742 struct mtd_oob_region oobregion; mtd_ooblayout_count_bytes() local
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c72 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_ecc()
80 oobregion->length = ecc->total; in qi_lb60_ooblayout_ecc()
81 oobregion->offset = 12; in qi_lb60_ooblayout_ecc()
87 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_free()
95 oobregion->length = mtd->oobsize - ecc->total - 12; in qi_lb60_ooblayout_free()
96 oobregion->offset = 12 + ecc->total; in qi_lb60_ooblayout_free()
107 struct mtd_oob_region *oobregion) in jz4725b_ooblayout_ecc()
115 oobregion->length = ecc->total; in jz4725b_ooblayout_ecc()
116 oobregion->offset = 3; in jz4725b_ooblayout_ecc()
122 struct mtd_oob_region *oobregion) in jz4725b_ooblayout_free()
71 qi_lb60_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) qi_lb60_ooblayout_ecc() argument
86 qi_lb60_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) qi_lb60_ooblayout_free() argument
106 jz4725b_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) jz4725b_ooblayout_ecc() argument
121 jz4725b_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) jz4725b_ooblayout_free() argument
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c72 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_ecc()
80 oobregion->length = ecc->total; in qi_lb60_ooblayout_ecc()
81 oobregion->offset = 12; in qi_lb60_ooblayout_ecc()
87 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_free()
95 oobregion->length = mtd->oobsize - ecc->total - 12; in qi_lb60_ooblayout_free()
96 oobregion->offset = 12 + ecc->total; in qi_lb60_ooblayout_free()
107 struct mtd_oob_region *oobregion) in jz4725b_ooblayout_ecc()
115 oobregion->length = ecc->total; in jz4725b_ooblayout_ecc()
116 oobregion->offset = 3; in jz4725b_ooblayout_ecc()
122 struct mtd_oob_region *oobregion) in jz4725b_ooblayout_free()
71 qi_lb60_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) qi_lb60_ooblayout_ecc() argument
86 qi_lb60_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) qi_lb60_ooblayout_free() argument
106 jz4725b_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) jz4725b_ooblayout_ecc() argument
121 jz4725b_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) jz4725b_ooblayout_free() argument
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
H A Dspitz.c764 struct mtd_oob_region *oobregion) in akita_ooblayout_ecc()
771 oobregion->offset = 5; in akita_ooblayout_ecc()
772 oobregion->length = 1; in akita_ooblayout_ecc()
776 oobregion->offset = 1; in akita_ooblayout_ecc()
777 oobregion->length = 3; in akita_ooblayout_ecc()
781 oobregion->offset = 6; in akita_ooblayout_ecc()
782 oobregion->length = 2; in akita_ooblayout_ecc()
786 oobregion->offset += (section / 3) * 0x10; in akita_ooblayout_ecc()
792 struct mtd_oob_region *oobregion) in akita_ooblayout_free()
797 oobregion in akita_ooblayout_free()
763 akita_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) akita_ooblayout_ecc() argument
791 akita_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) akita_ooblayout_free() argument
[all...]
/kernel/linux/linux-6.6/arch/arm/mach-pxa/
H A Dspitz.c748 struct mtd_oob_region *oobregion) in akita_ooblayout_ecc()
755 oobregion->offset = 5; in akita_ooblayout_ecc()
756 oobregion->length = 1; in akita_ooblayout_ecc()
760 oobregion->offset = 1; in akita_ooblayout_ecc()
761 oobregion->length = 3; in akita_ooblayout_ecc()
765 oobregion->offset = 6; in akita_ooblayout_ecc()
766 oobregion->length = 2; in akita_ooblayout_ecc()
770 oobregion->offset += (section / 3) * 0x10; in akita_ooblayout_ecc()
776 struct mtd_oob_region *oobregion) in akita_ooblayout_free()
781 oobregion in akita_ooblayout_free()
747 akita_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) akita_ooblayout_ecc() argument
775 akita_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) akita_ooblayout_free() argument
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/spi/
H A Dgigadevice.c156 struct mtd_oob_region *oobregion) in gd5fxgq4xc_ooblayout_256_ecc()
161 oobregion->offset = 128; in gd5fxgq4xc_ooblayout_256_ecc()
162 oobregion->length = 128; in gd5fxgq4xc_ooblayout_256_ecc()
168 struct mtd_oob_region *oobregion) in gd5fxgq4xc_ooblayout_256_free()
173 oobregion->offset = 1; in gd5fxgq4xc_ooblayout_256_free()
174 oobregion->length = 127; in gd5fxgq4xc_ooblayout_256_free()
155 gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) gd5fxgq4xc_ooblayout_256_ecc() argument
167 gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) gd5fxgq4xc_ooblayout_256_free() argument
/kernel/linux/linux-6.6/drivers/mtd/
H A Dmtdcore.c1829 * @oobregion: used to retrieve the ECC position
1833 * This function returns the section id and oobregion information of a
1837 * mtd_ooblayout_find_region(mtd, 3, &section, &oobregion, mtd_ooblayout_ecc);
1842 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region()
1845 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1849 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1852 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1856 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1859 pos += oobregion in mtd_ooblayout_find_region()
1841 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)) mtd_ooblayout_find_region() argument
1887 mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, int *section, struct mtd_oob_region *oobregion) mtd_ooblayout_find_eccregion() argument
1910 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)) mtd_ooblayout_get_bytes() argument
1916 struct mtd_oob_region oobregion; mtd_ooblayout_get_bytes() local
1953 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)) mtd_ooblayout_set_bytes() argument
1959 struct mtd_oob_region oobregion; mtd_ooblayout_set_bytes() local
1991 mtd_ooblayout_count_bytes(struct mtd_info *mtd, int (*iter)(struct mtd_info *, int section, struct mtd_oob_region *oobregion)) mtd_ooblayout_count_bytes() argument
1996 struct mtd_oob_region oobregion; mtd_ooblayout_count_bytes() local
[all...]
H A Dmtdchar.c446 struct mtd_oob_region oobregion; in shrink_ecclayout() local
458 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in shrink_ecclayout()
466 eccpos = oobregion.offset; in shrink_ecclayout()
468 eccpos < oobregion.offset + oobregion.length; i++) { in shrink_ecclayout()
475 ret = mtd_ooblayout_free(mtd, i, &oobregion); in shrink_ecclayout()
483 to->oobfree[i].offset = oobregion.offset; in shrink_ecclayout()
484 to->oobfree[i].length = oobregion.length; in shrink_ecclayout()
493 struct mtd_oob_region oobregion; in get_oobinfo() local
505 ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); in get_oobinfo()
[all...]

Completed in 24 milliseconds

1234