Home
last modified time | relevance | path

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

12

/Linux-v5.10/drivers/mtd/nand/
Decc.c157 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_sp() argument
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() argument
192 oobregion->length = 8; in nand_ooblayout_free_sp()
193 oobregion->offset = 8; in nand_ooblayout_free_sp()
195 oobregion->length = 2; in nand_ooblayout_free_sp()
[all …]
/Linux-v5.10/drivers/mtd/nand/raw/
Dsm_common.c13 struct mtd_oob_region *oobregion) in oob_sm_ooblayout_ecc() argument
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() argument
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->length = 2; in oob_sm_ooblayout_free()
[all …]
Dnand_micron.c102 struct mtd_oob_region *oobregion) in micron_nand_on_die_4_ooblayout_ecc() argument
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() argument
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() argument
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() argument
[all …]
Dfsmc_nand.c159 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_ecc() argument
166 oobregion->offset = (section * 16) + 2; in fsmc_ecc1_ooblayout_ecc()
167 oobregion->length = 3; in fsmc_ecc1_ooblayout_ecc()
173 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_free() argument
180 oobregion->offset = (section * 16) + 8; in fsmc_ecc1_ooblayout_free()
183 oobregion->length = 8; in fsmc_ecc1_ooblayout_free()
185 oobregion->length = mtd->oobsize - oobregion->offset; in fsmc_ecc1_ooblayout_free()
202 struct mtd_oob_region *oobregion) in fsmc_ecc4_ooblayout_ecc() argument
209 oobregion->length = chip->ecc.bytes; in fsmc_ecc4_ooblayout_ecc()
212 oobregion->offset = 0; in fsmc_ecc4_ooblayout_ecc()
[all …]
Ddavinci_nand.c452 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_ecc() argument
458 oobregion->offset = 0; in hwecc4_ooblayout_small_ecc()
459 oobregion->length = 5; in hwecc4_ooblayout_small_ecc()
461 oobregion->offset = 6; in hwecc4_ooblayout_small_ecc()
462 oobregion->length = 2; in hwecc4_ooblayout_small_ecc()
464 oobregion->offset = 13; in hwecc4_ooblayout_small_ecc()
465 oobregion->length = 3; in hwecc4_ooblayout_small_ecc()
472 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_free() argument
478 oobregion->offset = 8; in hwecc4_ooblayout_small_free()
479 oobregion->length = 5; in hwecc4_ooblayout_small_free()
[all …]
Dlpc32xx_slc.c140 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument
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() argument
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()
[all …]
Dfsl_ifc_nand.c85 struct mtd_oob_region *oobregion) in fsl_ifc_ooblayout_ecc() argument
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() argument
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->length = 6; in fsl_ifc_ooblayout_free()
[all …]
Dmxc_nand.c1006 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_ecc() argument
1013 oobregion->offset = (section * 16) + 6; in mxc_v1_ooblayout_ecc()
1014 oobregion->length = MXC_V1_ECCBYTES; in mxc_v1_ooblayout_ecc()
1020 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_free() argument
1029 oobregion->offset = 0; in mxc_v1_ooblayout_free()
1030 oobregion->length = 5; in mxc_v1_ooblayout_free()
1032 oobregion->offset = 2; in mxc_v1_ooblayout_free()
1033 oobregion->length = 4; in mxc_v1_ooblayout_free()
1036 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; in mxc_v1_ooblayout_free()
1038 oobregion->length = (section * 16) + 6 - in mxc_v1_ooblayout_free()
[all …]
Dfsl_elbc_nand.c70 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_ecc() argument
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() argument
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->length = 13; in fsl_elbc_ooblayout_free()
[all …]
Dsh_flctl.c33 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_ecc() argument
40 oobregion->offset = 0; in flctl_4secc_ooblayout_sp_ecc()
41 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_sp_ecc()
47 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_free() argument
52 oobregion->offset = 12; in flctl_4secc_ooblayout_sp_free()
53 oobregion->length = 4; in flctl_4secc_ooblayout_sp_free()
64 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_ecc() argument
71 oobregion->offset = (section * 16) + 6; in flctl_4secc_ooblayout_lp_ecc()
72 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_lp_ecc()
78 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_free() argument
[all …]
Dlpc32xx_mlc.c132 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument
139 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
140 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
146 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument
153 oobregion->offset = 16 * section; in lpc32xx_ooblayout_free()
154 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free()
Dcafe_nand.c451 struct mtd_oob_region *oobregion) in cafe_ooblayout_ecc() argument
458 oobregion->offset = 0; in cafe_ooblayout_ecc()
459 oobregion->length = chip->ecc.total; in cafe_ooblayout_ecc()
465 struct mtd_oob_region *oobregion) in cafe_ooblayout_free() argument
472 oobregion->offset = chip->ecc.total; in cafe_ooblayout_free()
473 oobregion->length = mtd->oobsize - chip->ecc.total; in cafe_ooblayout_free()
Domap2.c1817 struct mtd_oob_region *oobregion) in omap_ooblayout_ecc() argument
1830 oobregion->offset = off; in omap_ooblayout_ecc()
1831 oobregion->length = chip->ecc.total; in omap_ooblayout_ecc()
1837 struct mtd_oob_region *oobregion) in omap_ooblayout_free() argument
1854 oobregion->offset = off; in omap_ooblayout_free()
1855 oobregion->length = mtd->oobsize - off; in omap_ooblayout_free()
1866 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_ecc() argument
1878 oobregion->offset = off + (section * (chip->ecc.bytes + 1)); in omap_sw_ooblayout_ecc()
1879 oobregion->length = chip->ecc.bytes; in omap_sw_ooblayout_ecc()
1885 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_free() argument
[all …]
Ds3c2410.c76 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_ecc() argument
81 oobregion->offset = 0; in s3c2410_ooblayout_ecc()
82 oobregion->length = 3; in s3c2410_ooblayout_ecc()
88 struct mtd_oob_region *oobregion) in s3c2410_ooblayout_free() argument
93 oobregion->offset = 8; in s3c2410_ooblayout_free()
94 oobregion->length = 8; in s3c2410_ooblayout_free()
Dtegra_nand.c201 struct mtd_oob_region *oobregion) in tegra_nand_ooblayout_rs_ecc() argument
210 oobregion->offset = SKIP_SPARE_BYTES; in tegra_nand_ooblayout_rs_ecc()
211 oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4); in tegra_nand_ooblayout_rs_ecc()
217 struct mtd_oob_region *oobregion) in tegra_nand_ooblayout_no_free() argument
228 struct mtd_oob_region *oobregion) in tegra_nand_ooblayout_bch_ecc() argument
237 oobregion->offset = SKIP_SPARE_BYTES; in tegra_nand_ooblayout_bch_ecc()
238 oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4); in tegra_nand_ooblayout_bch_ecc()
Ddiskonchip.c811 struct mtd_oob_region *oobregion) in doc200x_ooblayout_ecc() argument
816 oobregion->offset = 0; in doc200x_ooblayout_ecc()
817 oobregion->length = 6; in doc200x_ooblayout_ecc()
823 struct mtd_oob_region *oobregion) in doc200x_ooblayout_free() argument
841 oobregion->offset = 8; in doc200x_ooblayout_free()
842 oobregion->length = 8; in doc200x_ooblayout_free()
844 oobregion->offset = 6; in doc200x_ooblayout_free()
845 oobregion->length = 2; in doc200x_ooblayout_free()
Ddenali.c923 struct mtd_oob_region *oobregion) in denali_ooblayout_ecc() argument
931 oobregion->offset = denali->oob_skip_bytes; in denali_ooblayout_ecc()
932 oobregion->length = chip->ecc.total; in denali_ooblayout_ecc()
938 struct mtd_oob_region *oobregion) in denali_ooblayout_free() argument
946 oobregion->offset = chip->ecc.total + denali->oob_skip_bytes; in denali_ooblayout_free()
947 oobregion->length = mtd->oobsize - oobregion->offset; in denali_ooblayout_free()
Dhisi504_nand.c613 struct mtd_oob_region *oobregion) in hisi_ooblayout_ecc() argument
620 struct mtd_oob_region *oobregion) in hisi_ooblayout_free() argument
625 oobregion->offset = 2; in hisi_ooblayout_free()
626 oobregion->length = 6; in hisi_ooblayout_free()
/Linux-v5.10/drivers/mtd/nand/spi/
Dgigadevice.c136 struct mtd_oob_region *oobregion) in gd5fxgq4xc_ooblayout_256_ecc() argument
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() argument
153 oobregion->offset = 1; in gd5fxgq4xc_ooblayout_256_free()
154 oobregion->length = 127; in gd5fxgq4xc_ooblayout_256_free()
/Linux-v5.10/drivers/mtd/nand/raw/ingenic/
Dingenic_nand_drv.c72 struct mtd_oob_region *oobregion) in qi_lb60_ooblayout_ecc() argument
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() argument
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() argument
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() argument
[all …]
/Linux-v5.10/drivers/mtd/
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()
521 if (oobregion.length + i > ARRAY_SIZE(to->eccpos)) in get_oobinfo()
[all …]
Dmtdcore.c1544 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region() argument
1547 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1551 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1554 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1558 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1561 pos += oobregion->length; in mtd_ooblayout_find_region()
1569 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1570 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1591 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1593 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
[all …]
/Linux-v5.10/arch/arm/mach-pxa/
Dspitz.c776 struct mtd_oob_region *oobregion) in akita_ooblayout_ecc() argument
783 oobregion->offset = 5; in akita_ooblayout_ecc()
784 oobregion->length = 1; in akita_ooblayout_ecc()
788 oobregion->offset = 1; in akita_ooblayout_ecc()
789 oobregion->length = 3; in akita_ooblayout_ecc()
793 oobregion->offset = 6; in akita_ooblayout_ecc()
794 oobregion->length = 2; in akita_ooblayout_ecc()
798 oobregion->offset += (section / 3) * 0x10; in akita_ooblayout_ecc()
804 struct mtd_oob_region *oobregion) in akita_ooblayout_free() argument
809 oobregion->offset = 8; in akita_ooblayout_free()
[all …]
/Linux-v5.10/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c1141 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_ecc() argument
1152 oobregion->offset = (section * sas) + 6; in brcmnand_hamming_ooblayout_ecc()
1153 oobregion->length = 3; in brcmnand_hamming_ooblayout_ecc()
1159 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_free() argument
1176 oobregion->offset = ((section - 1) * sas) + 9; in brcmnand_hamming_ooblayout_free()
1180 oobregion->offset = 2; in brcmnand_hamming_ooblayout_free()
1183 oobregion->offset = 0; in brcmnand_hamming_ooblayout_free()
1188 oobregion->length = next - oobregion->offset; in brcmnand_hamming_ooblayout_free()
1199 struct mtd_oob_region *oobregion) in brcmnand_bch_ooblayout_ecc() argument
1210 oobregion->offset = ((section + 1) * sas) - chip->ecc.bytes; in brcmnand_bch_ooblayout_ecc()
[all …]
/Linux-v5.10/drivers/mtd/nand/onenand/
Donenand_base.c67 struct mtd_oob_region *oobregion) in flexonenand_ooblayout_ecc() argument
72 oobregion->offset = (section * 16) + 6; in flexonenand_ooblayout_ecc()
73 oobregion->length = 10; in flexonenand_ooblayout_ecc()
79 struct mtd_oob_region *oobregion) in flexonenand_ooblayout_free() argument
84 oobregion->offset = (section * 16) + 2; in flexonenand_ooblayout_free()
85 oobregion->length = 4; in flexonenand_ooblayout_free()
103 struct mtd_oob_region *oobregion) in onenand_ooblayout_128_ecc() argument
108 oobregion->offset = (section * 16) + 7; in onenand_ooblayout_128_ecc()
109 oobregion->length = 9; in onenand_ooblayout_128_ecc()
115 struct mtd_oob_region *oobregion) in onenand_ooblayout_128_free() argument
[all …]

12