Home
last modified time | relevance | path

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

12

/linux/drivers/mtd/nand/raw/
H A 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 …]
H A 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 …]
H A Ddavinci_nand.c450 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_ecc() argument
456 oobregion->offset = 0; in hwecc4_ooblayout_small_ecc()
457 oobregion->length = 5; in hwecc4_ooblayout_small_ecc()
459 oobregion->offset = 6; in hwecc4_ooblayout_small_ecc()
460 oobregion->length = 2; in hwecc4_ooblayout_small_ecc()
462 oobregion->offset = 13; in hwecc4_ooblayout_small_ecc()
463 oobregion->length = 3; in hwecc4_ooblayout_small_ecc()
470 struct mtd_oob_region *oobregion) in hwecc4_ooblayout_small_free() argument
476 oobregion->offset = 8; in hwecc4_ooblayout_small_free()
477 oobregion->length = 5; in hwecc4_ooblayout_small_free()
[all …]
H A Dfsmc_nand.c168 struct mtd_oob_region *oobregion) in fsmc_ecc1_ooblayout_ecc() argument
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() argument
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() argument
218 oobregion->length = chip->ecc.bytes; in fsmc_ecc4_ooblayout_ecc()
221 oobregion->offset = 0; in fsmc_ecc4_ooblayout_ecc()
[all …]
H A Dmxc_nand.c889 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_ecc() argument
896 oobregion->offset = (section * 16) + 6; in mxc_v1_ooblayout_ecc()
897 oobregion->length = MXC_V1_ECCBYTES; in mxc_v1_ooblayout_ecc()
903 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_free() argument
912 oobregion->offset = 0; in mxc_v1_ooblayout_free()
913 oobregion->length = 5; in mxc_v1_ooblayout_free()
915 oobregion->offset = 2; in mxc_v1_ooblayout_free()
916 oobregion->length = 4; in mxc_v1_ooblayout_free()
919 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; in mxc_v1_ooblayout_free()
921 oobregion->length = (section * 16) + 6 - in mxc_v1_ooblayout_free()
[all …]
H A 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 …]
H A Dlpc32xx_slc.c138 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument
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() argument
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()
[all …]
H A Dfsl_elbc_nand.c69 struct mtd_oob_region *oobregion) in fsl_elbc_ooblayout_ecc() argument
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() argument
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->length = 13; in fsl_elbc_ooblayout_free()
[all …]
H A Dsh_flctl.c32 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_ecc() argument
39 oobregion->offset = 0; in flctl_4secc_ooblayout_sp_ecc()
40 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_sp_ecc()
46 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_sp_free() argument
51 oobregion->offset = 12; in flctl_4secc_ooblayout_sp_free()
52 oobregion->length = 4; in flctl_4secc_ooblayout_sp_free()
63 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_ecc() argument
70 oobregion->offset = (section * 16) + 6; in flctl_4secc_ooblayout_lp_ecc()
71 oobregion->length = chip->ecc.bytes; in flctl_4secc_ooblayout_lp_ecc()
77 struct mtd_oob_region *oobregion) in flctl_4secc_ooblayout_lp_free() argument
[all …]
H A Dintel-nand-controller.c237 struct mtd_oob_region *oobregion) in ebu_nand_ooblayout_ecc() argument
244 oobregion->offset = HSNAND_ECC_OFFSET; in ebu_nand_ooblayout_ecc()
245 oobregion->length = chip->ecc.total; in ebu_nand_ooblayout_ecc()
251 struct mtd_oob_region *oobregion) in ebu_nand_ooblayout_free() argument
258 oobregion->offset = chip->ecc.total + HSNAND_ECC_OFFSET; in ebu_nand_ooblayout_free()
259 oobregion->length = mtd->oobsize - oobregion->offset; in ebu_nand_ooblayout_free()
H A Dlpc32xx_mlc.c130 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_ecc() argument
137 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
138 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
144 struct mtd_oob_region *oobregion) in lpc32xx_ooblayout_free() argument
151 oobregion->offset = 16 * section; in lpc32xx_ooblayout_free()
152 oobregion->length = 16 - nand_chip->ecc.bytes; in lpc32xx_ooblayout_free()
H A Domap2.c1741 struct mtd_oob_region *oobregion) in omap_ooblayout_ecc() argument
1754 oobregion->offset = off; in omap_ooblayout_ecc()
1755 oobregion->length = chip->ecc.total; in omap_ooblayout_ecc()
1761 struct mtd_oob_region *oobregion) in omap_ooblayout_free() argument
1778 oobregion->offset = off; in omap_ooblayout_free()
1779 oobregion->length = mtd->oobsize - off; in omap_ooblayout_free()
1790 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_ecc() argument
1804 oobregion->offset = off + (section * (ecc_bytes + 1)); in omap_sw_ooblayout_ecc()
1805 oobregion->length = ecc_bytes; in omap_sw_ooblayout_ecc()
1811 struct mtd_oob_region *oobregion) in omap_sw_ooblayout_free() argument
[all …]
H A 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()
H A Dtegra_nand.c204 struct mtd_oob_region *oobregion) in tegra_nand_ooblayout_rs_ecc() argument
213 oobregion->offset = SKIP_SPARE_BYTES; in tegra_nand_ooblayout_rs_ecc()
214 oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4); in tegra_nand_ooblayout_rs_ecc()
220 struct mtd_oob_region *oobregion) in tegra_nand_ooblayout_no_free() argument
231 struct mtd_oob_region *oobregion) in tegra_nand_ooblayout_bch_ecc() argument
240 oobregion->offset = SKIP_SPARE_BYTES; in tegra_nand_ooblayout_bch_ecc()
241 oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4); in tegra_nand_ooblayout_bch_ecc()
H A 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()
/linux/drivers/mtd/nand/
H A Decc.c164 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_sp() argument
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() argument
199 oobregion->length = 8; in nand_ooblayout_free_sp()
200 oobregion->offset = 8; in nand_ooblayout_free_sp()
202 oobregion->length = 2; in nand_ooblayout_free_sp()
[all …]
H A Decc-realtek.c112 struct mtd_oob_region *oobregion) in rtl_ecc_ooblayout_ecc() argument
120 oobregion->offset = ctx->steps * RTL_ECC_FREE_SIZE + section * ctx->parity_size; in rtl_ecc_ooblayout_ecc()
121 oobregion->length = ctx->parity_size; in rtl_ecc_ooblayout_ecc()
127 struct mtd_oob_region *oobregion) in rtl_ecc_ooblayout_free() argument
138 oobregion->offset = section * RTL_ECC_FREE_SIZE + bbm; in rtl_ecc_ooblayout_free()
139 oobregion->length = RTL_ECC_FREE_SIZE - bbm; in rtl_ecc_ooblayout_free()
H A Decc-mxic.c135 struct mtd_oob_region *oobregion) in mxic_ecc_ooblayout_ecc() argument
143 oobregion->offset = (section * ctx->oob_step_sz) + ctx->meta_sz; in mxic_ecc_ooblayout_ecc()
144 oobregion->length = ctx->parity_sz; in mxic_ecc_ooblayout_ecc()
150 struct mtd_oob_region *oobregion) in mxic_ecc_ooblayout_free() argument
159 oobregion->offset = 2; in mxic_ecc_ooblayout_free()
160 oobregion->length = ctx->meta_sz - 2; in mxic_ecc_ooblayout_free()
162 oobregion->offset = section * ctx->oob_step_sz; in mxic_ecc_ooblayout_free()
163 oobregion->length = ctx->meta_sz; in mxic_ecc_ooblayout_free()
/linux/drivers/mtd/nand/raw/ingenic/
H A 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/arch/arm/mach-pxa/
H A Dspitz.c844 struct mtd_oob_region *oobregion) in akita_ooblayout_ecc() argument
851 oobregion->offset = 5; in akita_ooblayout_ecc()
852 oobregion->length = 1; in akita_ooblayout_ecc()
856 oobregion->offset = 1; in akita_ooblayout_ecc()
857 oobregion->length = 3; in akita_ooblayout_ecc()
861 oobregion->offset = 6; in akita_ooblayout_ecc()
862 oobregion->length = 2; in akita_ooblayout_ecc()
866 oobregion->offset += (section / 3) * 0x10; in akita_ooblayout_ecc()
872 struct mtd_oob_region *oobregion) in akita_ooblayout_free() argument
877 oobregion->offset = 8; in akita_ooblayout_free()
[all …]
/linux/drivers/mtd/
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()
513 if (oobregion.length + i > ARRAY_SIZE(to->eccpos)) in get_oobinfo()
[all …]
H A Dmtdcore.c1911 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region() argument
1914 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1918 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1921 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1925 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1928 pos += oobregion->length; in mtd_ooblayout_find_region()
1936 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1937 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1958 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1960 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
[all …]
/linux/drivers/mtd/nand/spi/
H A Dgigadevice.c237 struct mtd_oob_region *oobregion) in gd5fxgq4xc_ooblayout_256_ecc() argument
242 oobregion->offset = 128; in gd5fxgq4xc_ooblayout_256_ecc()
243 oobregion->length = 128; in gd5fxgq4xc_ooblayout_256_ecc()
249 struct mtd_oob_region *oobregion) in gd5fxgq4xc_ooblayout_256_free() argument
254 oobregion->offset = 1; in gd5fxgq4xc_ooblayout_256_free()
255 oobregion->length = 127; in gd5fxgq4xc_ooblayout_256_free()
/linux/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c1288 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_ecc() argument
1299 oobregion->offset = (section * sas) + 6; in brcmnand_hamming_ooblayout_ecc()
1300 oobregion->length = 3; in brcmnand_hamming_ooblayout_ecc()
1306 struct mtd_oob_region *oobregion) in brcmnand_hamming_ooblayout_free() argument
1323 oobregion->offset = ((section - 1) * sas) + 9; in brcmnand_hamming_ooblayout_free()
1327 oobregion->offset = 2; in brcmnand_hamming_ooblayout_free()
1330 oobregion->offset = 0; in brcmnand_hamming_ooblayout_free()
1335 oobregion->length = next - oobregion->offset; in brcmnand_hamming_ooblayout_free()
1346 struct mtd_oob_region *oobregion) in brcmnand_bch_ooblayout_ecc() argument
1357 oobregion->offset = ((section + 1) * sas) - chip->ecc.bytes; in brcmnand_bch_ooblayout_ecc()
[all …]
/linux/drivers/mtd/nand/onenand/
H A 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