/linux-master/arch/arm/mach-pxa/ |
H A D | spitz.c | 748 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/devices/ |
H A D | docg3.c | 57 struct mtd_oob_region *oobregion) 63 oobregion->offset = 7; 64 oobregion->length = 8; 70 struct mtd_oob_region *oobregion) 77 oobregion->offset = 0; 78 oobregion->length = 7; 80 oobregion->offset = 15; 81 oobregion->length = 1; 56 docg3_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 69 docg3_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
|
/linux-master/drivers/mtd/ |
H A D | mtdchar.c | 446 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 D | mtdcore.c | 1837 * @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, §ion, &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/ |
H A D | ecc-mxic.c | 135 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
|
H A D | ecc.c | 164 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...] |
/linux-master/drivers/mtd/nand/onenand/ |
H A D | onenand_base.c | 67 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...] |
/linux-master/drivers/mtd/nand/raw/atmel/ |
H A D | nand-controller.c | 820 struct mtd_oob_region oobregion; local 837 mtd_ooblayout_ecc(mtd, 0, &oobregion); 838 eccbuf = chip->oob_poi + oobregion.offset; 855 struct mtd_oob_region oobregion; local 872 mtd_ooblayout_ecc(mtd, 0, &oobregion); 873 eccbuf = chip->oob_poi + oobregion.offset;
|
/linux-master/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 1252 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/raw/ |
H A D | cadence-nand-controller.c | 2284 struct mtd_oob_region *oobregion) 2292 oobregion->offset = cdns_chip->bbm_len; 2293 oobregion->length = cdns_chip->avail_oob_size 2300 struct mtd_oob_region *oobregion) 2308 oobregion->offset = cdns_chip->avail_oob_size; 2309 oobregion->length = chip->ecc.total; 2283 cadence_nand_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 2299 cadence_nand_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
|
H A D | cafe_nand.c | 451 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 D | davinci_nand.c | 380 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 D | denali.c | 923 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 D | diskonchip.c | 811 struct mtd_oob_region *oobregion) 816 oobregion->offset = 0; 817 oobregion->length = 6; 823 struct mtd_oob_region *oobregion) 841 oobregion->offset = 8; 842 oobregion->length = 8; 844 oobregion->offset = 6; 845 oobregion->length = 2; 810 doc200x_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 822 doc200x_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
|
H A D | fsl_elbc_nand.c | 69 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 D | fsl_ifc_nand.c | 85 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 D | fsmc_nand.c | 168 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 D | hisi504_nand.c | 613 struct mtd_oob_region *oobregion) 620 struct mtd_oob_region *oobregion) 625 oobregion->offset = 2; 626 oobregion->length = 6; 612 hisi_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 619 hisi_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
|
H A D | intel-nand-controller.c | 237 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 D | lpc32xx_mlc.c | 130 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 D | lpc32xx_slc.c | 138 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 D | marvell_nand.c | 2200 struct mtd_oob_region *oobregion) 2208 oobregion->length = (lt->full_chunk_cnt * lt->ecc_bytes) + 2210 oobregion->offset = mtd->oobsize - oobregion->length; 2216 struct mtd_oob_region *oobregion) 2229 oobregion->offset = 6; 2231 oobregion->offset = 2; 2233 oobregion->length = (lt->full_chunk_cnt * lt->spare_bytes) + 2234 lt->last_spare_bytes - oobregion->offset; 2199 marvell_nand_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 2215 marvell_nand_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
|
H A D | meson_nand.c | 1085 struct mtd_oob_region *oobregion) 1092 oobregion->offset = 2 + (section * (2 + nand->ecc.bytes)); 1093 oobregion->length = nand->ecc.bytes; 1099 struct mtd_oob_region *oobregion) 1106 oobregion->offset = section * (2 + nand->ecc.bytes); 1107 oobregion->length = 2; 1084 meson_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 1098 meson_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
|
/linux-master/drivers/mtd/nand/raw/gpmi-nand/ |
H A D | gpmi-nand.c | 1090 struct mtd_oob_region *oobregion) 1099 oobregion->offset = 0; 1100 oobregion->length = geo->page_size - mtd->writesize; 1106 struct mtd_oob_region *oobregion) 1117 oobregion->offset = geo->page_size - mtd->writesize; 1118 oobregion->length = mtd->oobsize - oobregion->offset; 1089 gpmi_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument 1105 gpmi_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *oobregion) argument
|
/linux-master/drivers/mtd/nand/raw/ingenic/ |
H A D | ingenic_nand_drv.c | 72 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...] |