Home
last modified time | relevance | path

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

/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 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 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()
H A Dpl35x-nand-controller.c158 struct mtd_oob_region *oobregion) in pl35x_ecc_ooblayout16_ecc() argument
165 oobregion->offset = (section * chip->ecc.bytes); in pl35x_ecc_ooblayout16_ecc()
166 oobregion->length = chip->ecc.bytes; in pl35x_ecc_ooblayout16_ecc()
172 struct mtd_oob_region *oobregion) in pl35x_ecc_ooblayout16_free() argument
179 oobregion->offset = (section * chip->ecc.bytes) + 8; in pl35x_ecc_ooblayout16_free()
180 oobregion->length = 8; in pl35x_ecc_ooblayout16_free()
H A 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()
H A 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()
H A Dmeson_nand.c1097 struct mtd_oob_region *oobregion) in meson_ooblayout_ecc() argument
1104 oobregion->offset = 2 + (section * (2 + nand->ecc.bytes)); in meson_ooblayout_ecc()
1105 oobregion->length = nand->ecc.bytes; in meson_ooblayout_ecc()
1111 struct mtd_oob_region *oobregion) in meson_ooblayout_free() argument
1118 oobregion->offset = section * (2 + nand->ecc.bytes); in meson_ooblayout_free()
1119 oobregion->length = 2; in meson_ooblayout_free()
H A Dstm32_fmc2_nand.c1679 struct mtd_oob_region *oobregion) in stm32_fmc2_nfc_ooblayout_ecc() argument
1687 oobregion->length = ecc->total; in stm32_fmc2_nfc_ooblayout_ecc()
1688 oobregion->offset = FMC2_BBM_LEN; in stm32_fmc2_nfc_ooblayout_ecc()
1694 struct mtd_oob_region *oobregion) in stm32_fmc2_nfc_ooblayout_free() argument
1702 oobregion->length = mtd->oobsize - ecc->total - FMC2_BBM_LEN; in stm32_fmc2_nfc_ooblayout_free()
1703 oobregion->offset = ecc->total + FMC2_BBM_LEN; in stm32_fmc2_nfc_ooblayout_free()
H A Dcadence-nand-controller.c2332 struct mtd_oob_region *oobregion) in cadence_nand_ooblayout_free() argument
2340 oobregion->offset = cdns_chip->bbm_len; in cadence_nand_ooblayout_free()
2341 oobregion->length = cdns_chip->avail_oob_size in cadence_nand_ooblayout_free()
2348 struct mtd_oob_region *oobregion) in cadence_nand_ooblayout_ecc() argument
2356 oobregion->offset = cdns_chip->avail_oob_size; in cadence_nand_ooblayout_ecc()
2357 oobregion->length = chip->ecc.total; in cadence_nand_ooblayout_ecc()
H A Dnand_base.c3002 struct mtd_oob_region oobregion = { }; in nand_read_subpage() local
3029 ret = mtd_ooblayout_find_eccregion(mtd, index, &section, &oobregion); in nand_read_subpage()
3033 if (oobregion.length < eccfrag_len) in nand_read_subpage()
3047 aligned_pos = oobregion.offset & ~(busw - 1); in nand_read_subpage()
3049 if (oobregion.offset & (busw - 1)) in nand_read_subpage()
3051 if ((oobregion.offset + (num_steps * chip->ecc.bytes)) & in nand_read_subpage()
/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/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 …]
/linux/drivers/spi/
H A Dspi-amlogic-spifc-a4.c855 struct mtd_oob_region *oobregion) in aml_sfc_layout_ecc() argument
862 oobregion->offset = ECC_BCH8_USER_BYTES + (section * ECC_BCH8_INFO_BYTES); in aml_sfc_layout_ecc()
863 oobregion->length = ECC_BCH8_PARITY_BYTES; in aml_sfc_layout_ecc()
869 struct mtd_oob_region *oobregion) in aml_sfc_ooblayout_free() argument
876 oobregion->offset = section * ECC_BCH8_INFO_BYTES; in aml_sfc_ooblayout_free()
877 oobregion->length = ECC_BCH8_USER_BYTES; in aml_sfc_ooblayout_free()
H A Dspi-qpic-snand.c204 struct mtd_oob_region *oobregion) in qcom_spi_ooblayout_ecc() argument
212 oobregion->offset = 0; in qcom_spi_ooblayout_ecc()
213 oobregion->length = qecc->bytes * (qecc->steps - 1) + in qcom_spi_ooblayout_ecc()
217 oobregion->offset = qecc->bytes * (qecc->steps - 1) + in qcom_spi_ooblayout_ecc()
220 oobregion->length = mtd->oobsize - oobregion->offset; in qcom_spi_ooblayout_ecc()
228 struct mtd_oob_region *oobregion) in qcom_spi_ooblayout_free() argument
237 oobregion->length = qecc->steps * 4; in qcom_spi_ooblayout_free()
238 oobregion->offset = ((qecc->steps - 1) * qecc->bytes) + qecc->bbm_size; in qcom_spi_ooblayout_free()
/linux/include/linux/mtd/
H A Dmtd.h435 struct mtd_oob_region *oobregion);