oobregion 758 arch/arm/mach-pxa/spitz.c struct mtd_oob_region *oobregion) oobregion 765 arch/arm/mach-pxa/spitz.c oobregion->offset = 5; oobregion 766 arch/arm/mach-pxa/spitz.c oobregion->length = 1; oobregion 770 arch/arm/mach-pxa/spitz.c oobregion->offset = 1; oobregion 771 arch/arm/mach-pxa/spitz.c oobregion->length = 3; oobregion 775 arch/arm/mach-pxa/spitz.c oobregion->offset = 6; oobregion 776 arch/arm/mach-pxa/spitz.c oobregion->length = 2; oobregion 780 arch/arm/mach-pxa/spitz.c oobregion->offset += (section / 3) * 0x10; oobregion 786 arch/arm/mach-pxa/spitz.c struct mtd_oob_region *oobregion) oobregion 791 arch/arm/mach-pxa/spitz.c oobregion->offset = 8; oobregion 792 arch/arm/mach-pxa/spitz.c oobregion->length = 9; oobregion 57 drivers/mtd/devices/docg3.c struct mtd_oob_region *oobregion) oobregion 63 drivers/mtd/devices/docg3.c oobregion->offset = 7; oobregion 64 drivers/mtd/devices/docg3.c oobregion->length = 8; oobregion 70 drivers/mtd/devices/docg3.c struct mtd_oob_region *oobregion) oobregion 77 drivers/mtd/devices/docg3.c oobregion->offset = 0; oobregion 78 drivers/mtd/devices/docg3.c oobregion->length = 7; oobregion 80 drivers/mtd/devices/docg3.c oobregion->offset = 15; oobregion 81 drivers/mtd/devices/docg3.c oobregion->length = 1; oobregion 456 drivers/mtd/mtdchar.c struct mtd_oob_region oobregion; oobregion 468 drivers/mtd/mtdchar.c ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); oobregion 476 drivers/mtd/mtdchar.c eccpos = oobregion.offset; oobregion 478 drivers/mtd/mtdchar.c eccpos < oobregion.offset + oobregion.length; i++) { oobregion 485 drivers/mtd/mtdchar.c ret = mtd_ooblayout_free(mtd, i, &oobregion); oobregion 493 drivers/mtd/mtdchar.c to->oobfree[i].offset = oobregion.offset; oobregion 494 drivers/mtd/mtdchar.c to->oobfree[i].length = oobregion.length; oobregion 503 drivers/mtd/mtdchar.c struct mtd_oob_region oobregion; oobregion 515 drivers/mtd/mtdchar.c ret = mtd_ooblayout_ecc(mtd, section++, &oobregion); oobregion 523 drivers/mtd/mtdchar.c if (oobregion.length + i > ARRAY_SIZE(to->eccpos)) oobregion 526 drivers/mtd/mtdchar.c eccpos = oobregion.offset; oobregion 527 drivers/mtd/mtdchar.c for (; eccpos < oobregion.offset + oobregion.length; i++) { oobregion 534 drivers/mtd/mtdchar.c ret = mtd_ooblayout_free(mtd, i, &oobregion); oobregion 542 drivers/mtd/mtdchar.c to->oobfree[i][0] = oobregion.offset; oobregion 543 drivers/mtd/mtdchar.c to->oobfree[i][1] = oobregion.length; oobregion 1379 drivers/mtd/mtdcore.c int *sectionp, struct mtd_oob_region *oobregion, oobregion 1382 drivers/mtd/mtdcore.c struct mtd_oob_region *oobregion)) oobregion 1386 drivers/mtd/mtdcore.c memset(oobregion, 0, sizeof(*oobregion)); oobregion 1389 drivers/mtd/mtdcore.c ret = iter(mtd, section, oobregion); oobregion 1393 drivers/mtd/mtdcore.c if (pos + oobregion->length > byte) oobregion 1396 drivers/mtd/mtdcore.c pos += oobregion->length; oobregion 1404 drivers/mtd/mtdcore.c oobregion->offset += byte - pos; oobregion 1405 drivers/mtd/mtdcore.c oobregion->length -= byte - pos; oobregion 1426 drivers/mtd/mtdcore.c struct mtd_oob_region *oobregion) oobregion 1428 drivers/mtd/mtdcore.c return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, oobregion 1451 drivers/mtd/mtdcore.c struct mtd_oob_region *oobregion)) oobregion 1453 drivers/mtd/mtdcore.c struct mtd_oob_region oobregion; oobregion 1457 drivers/mtd/mtdcore.c &oobregion, iter); oobregion 1462 drivers/mtd/mtdcore.c cnt = min_t(int, nbytes, oobregion.length); oobregion 1463 drivers/mtd/mtdcore.c memcpy(buf, oobbuf + oobregion.offset, cnt); oobregion 1470 drivers/mtd/mtdcore.c ret = iter(mtd, ++section, &oobregion); oobregion 1494 drivers/mtd/mtdcore.c struct mtd_oob_region *oobregion)) oobregion 1496 drivers/mtd/mtdcore.c struct mtd_oob_region oobregion; oobregion 1500 drivers/mtd/mtdcore.c &oobregion, iter); oobregion 1505 drivers/mtd/mtdcore.c cnt = min_t(int, nbytes, oobregion.length); oobregion 1506 drivers/mtd/mtdcore.c memcpy(oobbuf + oobregion.offset, buf, cnt); oobregion 1513 drivers/mtd/mtdcore.c ret = iter(mtd, ++section, &oobregion); oobregion 1531 drivers/mtd/mtdcore.c struct mtd_oob_region *oobregion)) oobregion 1533 drivers/mtd/mtdcore.c struct mtd_oob_region oobregion; oobregion 1537 drivers/mtd/mtdcore.c ret = iter(mtd, section++, &oobregion); oobregion 1544 drivers/mtd/mtdcore.c nbytes += oobregion.length; oobregion 286 drivers/mtd/mtdpart.c struct mtd_oob_region *oobregion) oobregion 290 drivers/mtd/mtdpart.c return mtd_ooblayout_ecc(part->parent, section, oobregion); oobregion 294 drivers/mtd/mtdpart.c struct mtd_oob_region *oobregion) oobregion 298 drivers/mtd/mtdpart.c return mtd_ooblayout_free(part->parent, section, oobregion); oobregion 67 drivers/mtd/nand/onenand/onenand_base.c struct mtd_oob_region *oobregion) oobregion 72 drivers/mtd/nand/onenand/onenand_base.c oobregion->offset = (section * 16) + 6; oobregion 73 drivers/mtd/nand/onenand/onenand_base.c oobregion->length = 10; oobregion 79 drivers/mtd/nand/onenand/onenand_base.c struct mtd_oob_region *oobregion) oobregion 84 drivers/mtd/nand/onenand/onenand_base.c oobregion->offset = (section * 16) + 2; oobregion 85 drivers/mtd/nand/onenand/onenand_base.c oobregion->length = 4; oobregion 103 drivers/mtd/nand/onenand/onenand_base.c struct mtd_oob_region *oobregion) oobregion 108 drivers/mtd/nand/onenand/onenand_base.c oobregion->offset = (section * 16) + 7; oobregion 109 drivers/mtd/nand/onenand/onenand_base.c oobregion->length = 9; oobregion 115 drivers/mtd/nand/onenand/onenand_base.c struct mtd_oob_region *oobregion) oobregion 124 drivers/mtd/nand/onenand/onenand_base.c oobregion->offset = (section * 16) + 2; oobregion 125 drivers/mtd/nand/onenand/onenand_base.c oobregion->length = 3; oobregion 139 drivers/mtd/nand/onenand/onenand_base.c struct mtd_oob_region *oobregion) oobregion 144 drivers/mtd/nand/onenand/onenand_base.c oobregion->offset = (section * 16) + 8; oobregion 145 drivers/mtd/nand/onenand/onenand_base.c oobregion->length = 5; oobregion 151 drivers/mtd/nand/onenand/onenand_base.c struct mtd_oob_region *oobregion) oobregion 159 drivers/mtd/nand/onenand/onenand_base.c oobregion->offset = ((section - 1) * 16) + 14; oobregion 160 drivers/mtd/nand/onenand/onenand_base.c oobregion->length = 2; oobregion 162 drivers/mtd/nand/onenand/onenand_base.c oobregion->offset = (section * 16) + 2; oobregion 163 drivers/mtd/nand/onenand/onenand_base.c oobregion->length = 3; oobregion 749 drivers/mtd/nand/raw/atmel/nand-controller.c struct mtd_oob_region oobregion; oobregion 766 drivers/mtd/nand/raw/atmel/nand-controller.c mtd_ooblayout_ecc(mtd, 0, &oobregion); oobregion 767 drivers/mtd/nand/raw/atmel/nand-controller.c eccbuf = chip->oob_poi + oobregion.offset; oobregion 784 drivers/mtd/nand/raw/atmel/nand-controller.c struct mtd_oob_region oobregion; oobregion 801 drivers/mtd/nand/raw/atmel/nand-controller.c mtd_ooblayout_ecc(mtd, 0, &oobregion); oobregion 802 drivers/mtd/nand/raw/atmel/nand-controller.c eccbuf = chip->oob_poi + oobregion.offset; oobregion 981 drivers/mtd/nand/raw/brcmnand/brcmnand.c struct mtd_oob_region *oobregion) oobregion 992 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->offset = (section * sas) + 6; oobregion 993 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->length = 3; oobregion 999 drivers/mtd/nand/raw/brcmnand/brcmnand.c struct mtd_oob_region *oobregion) oobregion 1010 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->offset = (section / 2) * sas; oobregion 1013 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->offset += 9; oobregion 1014 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->length = 7; oobregion 1016 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->length = 6; oobregion 1025 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->offset++; oobregion 1026 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->length--; oobregion 1039 drivers/mtd/nand/raw/brcmnand/brcmnand.c struct mtd_oob_region *oobregion) oobregion 1050 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->offset = ((section + 1) * sas) - chip->ecc.bytes; oobregion 1051 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->length = chip->ecc.bytes; oobregion 1057 drivers/mtd/nand/raw/brcmnand/brcmnand.c struct mtd_oob_region *oobregion) oobregion 1071 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->offset = section * sas; oobregion 1072 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->length = sas - chip->ecc.bytes; oobregion 1075 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->offset++; oobregion 1076 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->length--; oobregion 1083 drivers/mtd/nand/raw/brcmnand/brcmnand.c struct mtd_oob_region *oobregion) oobregion 1095 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->offset = 0; oobregion 1096 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->length = 5; oobregion 1098 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->offset = 6; oobregion 1099 drivers/mtd/nand/raw/brcmnand/brcmnand.c oobregion->length = sas - chip->ecc.bytes - 6; oobregion 451 drivers/mtd/nand/raw/cafe_nand.c struct mtd_oob_region *oobregion) oobregion 458 drivers/mtd/nand/raw/cafe_nand.c oobregion->offset = 0; oobregion 459 drivers/mtd/nand/raw/cafe_nand.c oobregion->length = chip->ecc.total; oobregion 465 drivers/mtd/nand/raw/cafe_nand.c struct mtd_oob_region *oobregion) oobregion 472 drivers/mtd/nand/raw/cafe_nand.c oobregion->offset = chip->ecc.total; oobregion 473 drivers/mtd/nand/raw/cafe_nand.c oobregion->length = mtd->oobsize - chip->ecc.total; oobregion 464 drivers/mtd/nand/raw/davinci_nand.c struct mtd_oob_region *oobregion) oobregion 470 drivers/mtd/nand/raw/davinci_nand.c oobregion->offset = 0; oobregion 471 drivers/mtd/nand/raw/davinci_nand.c oobregion->length = 5; oobregion 473 drivers/mtd/nand/raw/davinci_nand.c oobregion->offset = 6; oobregion 474 drivers/mtd/nand/raw/davinci_nand.c oobregion->length = 2; oobregion 476 drivers/mtd/nand/raw/davinci_nand.c oobregion->offset = 13; oobregion 477 drivers/mtd/nand/raw/davinci_nand.c oobregion->length = 3; oobregion 484 drivers/mtd/nand/raw/davinci_nand.c struct mtd_oob_region *oobregion) oobregion 490 drivers/mtd/nand/raw/davinci_nand.c oobregion->offset = 8; oobregion 491 drivers/mtd/nand/raw/davinci_nand.c oobregion->length = 5; oobregion 493 drivers/mtd/nand/raw/davinci_nand.c oobregion->offset = 16; oobregion 494 drivers/mtd/nand/raw/davinci_nand.c oobregion->length = mtd->oobsize - 16; oobregion 901 drivers/mtd/nand/raw/denali.c struct mtd_oob_region *oobregion) oobregion 909 drivers/mtd/nand/raw/denali.c oobregion->offset = denali->oob_skip_bytes; oobregion 910 drivers/mtd/nand/raw/denali.c oobregion->length = chip->ecc.total; oobregion 916 drivers/mtd/nand/raw/denali.c struct mtd_oob_region *oobregion) oobregion 924 drivers/mtd/nand/raw/denali.c oobregion->offset = chip->ecc.total + denali->oob_skip_bytes; oobregion 925 drivers/mtd/nand/raw/denali.c oobregion->length = mtd->oobsize - oobregion->offset; oobregion 934 drivers/mtd/nand/raw/diskonchip.c struct mtd_oob_region *oobregion) oobregion 939 drivers/mtd/nand/raw/diskonchip.c oobregion->offset = 0; oobregion 940 drivers/mtd/nand/raw/diskonchip.c oobregion->length = 6; oobregion 946 drivers/mtd/nand/raw/diskonchip.c struct mtd_oob_region *oobregion) oobregion 964 drivers/mtd/nand/raw/diskonchip.c oobregion->offset = 8; oobregion 965 drivers/mtd/nand/raw/diskonchip.c oobregion->length = 8; oobregion 967 drivers/mtd/nand/raw/diskonchip.c oobregion->offset = 6; oobregion 968 drivers/mtd/nand/raw/diskonchip.c oobregion->length = 2; oobregion 70 drivers/mtd/nand/raw/fsl_elbc_nand.c struct mtd_oob_region *oobregion) oobregion 78 drivers/mtd/nand/raw/fsl_elbc_nand.c oobregion->offset = (16 * section) + 6; oobregion 80 drivers/mtd/nand/raw/fsl_elbc_nand.c oobregion->offset += 2; oobregion 82 drivers/mtd/nand/raw/fsl_elbc_nand.c oobregion->length = chip->ecc.bytes; oobregion 88 drivers/mtd/nand/raw/fsl_elbc_nand.c struct mtd_oob_region *oobregion) oobregion 97 drivers/mtd/nand/raw/fsl_elbc_nand.c oobregion->offset = 0; oobregion 99 drivers/mtd/nand/raw/fsl_elbc_nand.c oobregion->offset++; oobregion 100 drivers/mtd/nand/raw/fsl_elbc_nand.c oobregion->length = (priv->fmr & FMR_ECCM) ? 7 : 5; oobregion 102 drivers/mtd/nand/raw/fsl_elbc_nand.c oobregion->offset = (16 * section) - oobregion 105 drivers/mtd/nand/raw/fsl_elbc_nand.c oobregion->length = 13; oobregion 107 drivers/mtd/nand/raw/fsl_elbc_nand.c oobregion->length = mtd->oobsize - oobregion->offset; oobregion 85 drivers/mtd/nand/raw/fsl_ifc_nand.c struct mtd_oob_region *oobregion) oobregion 92 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->offset = 8; oobregion 93 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->length = chip->ecc.total; oobregion 99 drivers/mtd/nand/raw/fsl_ifc_nand.c struct mtd_oob_region *oobregion) oobregion 109 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->offset = 0; oobregion 110 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->length = 5; oobregion 112 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->offset = 6; oobregion 113 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->length = 2; oobregion 120 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->offset = 2; oobregion 121 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->length = 6; oobregion 123 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->offset = chip->ecc.total + 8; oobregion 124 drivers/mtd/nand/raw/fsl_ifc_nand.c oobregion->length = mtd->oobsize - oobregion->offset; oobregion 645 drivers/mtd/nand/raw/fsl_ifc_nand.c struct mtd_oob_region oobregion = { }; oobregion 647 drivers/mtd/nand/raw/fsl_ifc_nand.c mtd_ooblayout_ecc(mtd, 0, &oobregion); oobregion 648 drivers/mtd/nand/raw/fsl_ifc_nand.c ecc += oobregion.offset; oobregion 159 drivers/mtd/nand/raw/fsmc_nand.c struct mtd_oob_region *oobregion) oobregion 166 drivers/mtd/nand/raw/fsmc_nand.c oobregion->offset = (section * 16) + 2; oobregion 167 drivers/mtd/nand/raw/fsmc_nand.c oobregion->length = 3; oobregion 173 drivers/mtd/nand/raw/fsmc_nand.c struct mtd_oob_region *oobregion) oobregion 180 drivers/mtd/nand/raw/fsmc_nand.c oobregion->offset = (section * 16) + 8; oobregion 183 drivers/mtd/nand/raw/fsmc_nand.c oobregion->length = 8; oobregion 185 drivers/mtd/nand/raw/fsmc_nand.c oobregion->length = mtd->oobsize - oobregion->offset; oobregion 202 drivers/mtd/nand/raw/fsmc_nand.c struct mtd_oob_region *oobregion) oobregion 209 drivers/mtd/nand/raw/fsmc_nand.c oobregion->length = chip->ecc.bytes; oobregion 212 drivers/mtd/nand/raw/fsmc_nand.c oobregion->offset = 0; oobregion 214 drivers/mtd/nand/raw/fsmc_nand.c oobregion->offset = (section * 16) + 2; oobregion 220 drivers/mtd/nand/raw/fsmc_nand.c struct mtd_oob_region *oobregion) oobregion 227 drivers/mtd/nand/raw/fsmc_nand.c oobregion->offset = (section * 16) + 15; oobregion 230 drivers/mtd/nand/raw/fsmc_nand.c oobregion->length = 3; oobregion 232 drivers/mtd/nand/raw/fsmc_nand.c oobregion->length = mtd->oobsize - oobregion->offset; oobregion 699 drivers/mtd/nand/raw/fsmc_nand.c struct mtd_oob_region oobregion; oobregion 701 drivers/mtd/nand/raw/fsmc_nand.c ret = mtd_ooblayout_ecc(mtd, group++, &oobregion); oobregion 705 drivers/mtd/nand/raw/fsmc_nand.c off = oobregion.offset; oobregion 706 drivers/mtd/nand/raw/fsmc_nand.c len = oobregion.length; oobregion 1003 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct mtd_oob_region *oobregion) oobregion 1012 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c oobregion->offset = 0; oobregion 1013 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c oobregion->length = geo->page_size - mtd->writesize; oobregion 1019 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct mtd_oob_region *oobregion) oobregion 1030 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c oobregion->offset = geo->page_size - mtd->writesize; oobregion 1031 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c oobregion->length = mtd->oobsize - oobregion->offset; oobregion 613 drivers/mtd/nand/raw/hisi504_nand.c struct mtd_oob_region *oobregion) oobregion 620 drivers/mtd/nand/raw/hisi504_nand.c struct mtd_oob_region *oobregion) oobregion 625 drivers/mtd/nand/raw/hisi504_nand.c oobregion->offset = 2; oobregion 626 drivers/mtd/nand/raw/hisi504_nand.c oobregion->length = 6; oobregion 76 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c struct mtd_oob_region *oobregion) oobregion 84 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c oobregion->length = ecc->total; oobregion 85 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c oobregion->offset = 12; oobregion 91 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c struct mtd_oob_region *oobregion) oobregion 99 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c oobregion->length = mtd->oobsize - ecc->total - 12; oobregion 100 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c oobregion->offset = 12 + ecc->total; oobregion 111 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c struct mtd_oob_region *oobregion) oobregion 119 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c oobregion->length = ecc->total; oobregion 120 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c oobregion->offset = 3; oobregion 126 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c struct mtd_oob_region *oobregion) oobregion 134 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c oobregion->length = mtd->oobsize - ecc->total - 3; oobregion 135 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c oobregion->offset = 3 + ecc->total; oobregion 132 drivers/mtd/nand/raw/lpc32xx_mlc.c struct mtd_oob_region *oobregion) oobregion 139 drivers/mtd/nand/raw/lpc32xx_mlc.c oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; oobregion 140 drivers/mtd/nand/raw/lpc32xx_mlc.c oobregion->length = nand_chip->ecc.bytes; oobregion 146 drivers/mtd/nand/raw/lpc32xx_mlc.c struct mtd_oob_region *oobregion) oobregion 153 drivers/mtd/nand/raw/lpc32xx_mlc.c oobregion->offset = 16 * section; oobregion 154 drivers/mtd/nand/raw/lpc32xx_mlc.c oobregion->length = 16 - nand_chip->ecc.bytes; oobregion 140 drivers/mtd/nand/raw/lpc32xx_slc.c struct mtd_oob_region *oobregion) oobregion 145 drivers/mtd/nand/raw/lpc32xx_slc.c oobregion->length = 6; oobregion 146 drivers/mtd/nand/raw/lpc32xx_slc.c oobregion->offset = 10; oobregion 152 drivers/mtd/nand/raw/lpc32xx_slc.c struct mtd_oob_region *oobregion) oobregion 158 drivers/mtd/nand/raw/lpc32xx_slc.c oobregion->offset = 0; oobregion 159 drivers/mtd/nand/raw/lpc32xx_slc.c oobregion->length = 4; oobregion 161 drivers/mtd/nand/raw/lpc32xx_slc.c oobregion->offset = 6; oobregion 162 drivers/mtd/nand/raw/lpc32xx_slc.c oobregion->length = 4; oobregion 607 drivers/mtd/nand/raw/lpc32xx_slc.c struct mtd_oob_region oobregion = { }; oobregion 624 drivers/mtd/nand/raw/lpc32xx_slc.c error = mtd_ooblayout_ecc(mtd, 0, &oobregion); oobregion 628 drivers/mtd/nand/raw/lpc32xx_slc.c oobecc = chip->oob_poi + oobregion.offset; oobregion 675 drivers/mtd/nand/raw/lpc32xx_slc.c struct mtd_oob_region oobregion = { }; oobregion 690 drivers/mtd/nand/raw/lpc32xx_slc.c error = mtd_ooblayout_ecc(mtd, 0, &oobregion); oobregion 694 drivers/mtd/nand/raw/lpc32xx_slc.c pb = chip->oob_poi + oobregion.offset; oobregion 2125 drivers/mtd/nand/raw/marvell_nand.c struct mtd_oob_region *oobregion) oobregion 2133 drivers/mtd/nand/raw/marvell_nand.c oobregion->length = (lt->full_chunk_cnt * lt->ecc_bytes) + oobregion 2135 drivers/mtd/nand/raw/marvell_nand.c oobregion->offset = mtd->oobsize - oobregion->length; oobregion 2141 drivers/mtd/nand/raw/marvell_nand.c struct mtd_oob_region *oobregion) oobregion 2154 drivers/mtd/nand/raw/marvell_nand.c oobregion->offset = 6; oobregion 2156 drivers/mtd/nand/raw/marvell_nand.c oobregion->offset = 2; oobregion 2158 drivers/mtd/nand/raw/marvell_nand.c oobregion->length = (lt->full_chunk_cnt * lt->spare_bytes) + oobregion 2159 drivers/mtd/nand/raw/marvell_nand.c lt->last_spare_bytes - oobregion->offset; oobregion 953 drivers/mtd/nand/raw/meson_nand.c struct mtd_oob_region *oobregion) oobregion 960 drivers/mtd/nand/raw/meson_nand.c oobregion->offset = 2 + (section * (2 + nand->ecc.bytes)); oobregion 961 drivers/mtd/nand/raw/meson_nand.c oobregion->length = nand->ecc.bytes; oobregion 967 drivers/mtd/nand/raw/meson_nand.c struct mtd_oob_region *oobregion) oobregion 974 drivers/mtd/nand/raw/meson_nand.c oobregion->offset = section * (2 + nand->ecc.bytes); oobregion 975 drivers/mtd/nand/raw/meson_nand.c oobregion->length = 2; oobregion 1006 drivers/mtd/nand/raw/mxc_nand.c struct mtd_oob_region *oobregion) oobregion 1013 drivers/mtd/nand/raw/mxc_nand.c oobregion->offset = (section * 16) + 6; oobregion 1014 drivers/mtd/nand/raw/mxc_nand.c oobregion->length = MXC_V1_ECCBYTES; oobregion 1020 drivers/mtd/nand/raw/mxc_nand.c struct mtd_oob_region *oobregion) oobregion 1029 drivers/mtd/nand/raw/mxc_nand.c oobregion->offset = 0; oobregion 1030 drivers/mtd/nand/raw/mxc_nand.c oobregion->length = 5; oobregion 1032 drivers/mtd/nand/raw/mxc_nand.c oobregion->offset = 2; oobregion 1033 drivers/mtd/nand/raw/mxc_nand.c oobregion->length = 4; oobregion 1036 drivers/mtd/nand/raw/mxc_nand.c oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; oobregion 1038 drivers/mtd/nand/raw/mxc_nand.c oobregion->length = (section * 16) + 6 - oobregion 1039 drivers/mtd/nand/raw/mxc_nand.c oobregion->offset; oobregion 1041 drivers/mtd/nand/raw/mxc_nand.c oobregion->length = mtd->oobsize - oobregion->offset; oobregion 1053 drivers/mtd/nand/raw/mxc_nand.c struct mtd_oob_region *oobregion) oobregion 1061 drivers/mtd/nand/raw/mxc_nand.c oobregion->offset = (section * stepsize) + 7; oobregion 1062 drivers/mtd/nand/raw/mxc_nand.c oobregion->length = nand_chip->ecc.bytes; oobregion 1068 drivers/mtd/nand/raw/mxc_nand.c struct mtd_oob_region *oobregion) oobregion 1078 drivers/mtd/nand/raw/mxc_nand.c oobregion->offset = 0; oobregion 1079 drivers/mtd/nand/raw/mxc_nand.c oobregion->length = 5; oobregion 1081 drivers/mtd/nand/raw/mxc_nand.c oobregion->offset = 2; oobregion 1082 drivers/mtd/nand/raw/mxc_nand.c oobregion->length = 4; oobregion 1085 drivers/mtd/nand/raw/mxc_nand.c oobregion->offset = section * stepsize; oobregion 1086 drivers/mtd/nand/raw/mxc_nand.c oobregion->length = 7; oobregion 50 drivers/mtd/nand/raw/nand_base.c struct mtd_oob_region *oobregion) oobregion 59 drivers/mtd/nand/raw/nand_base.c oobregion->offset = 0; oobregion 61 drivers/mtd/nand/raw/nand_base.c oobregion->length = 4; oobregion 63 drivers/mtd/nand/raw/nand_base.c oobregion->length = 3; oobregion 68 drivers/mtd/nand/raw/nand_base.c oobregion->offset = 6; oobregion 69 drivers/mtd/nand/raw/nand_base.c oobregion->length = ecc->total - 4; oobregion 76 drivers/mtd/nand/raw/nand_base.c struct mtd_oob_region *oobregion) oobregion 85 drivers/mtd/nand/raw/nand_base.c oobregion->length = 8; oobregion 86 drivers/mtd/nand/raw/nand_base.c oobregion->offset = 8; oobregion 88 drivers/mtd/nand/raw/nand_base.c oobregion->length = 2; oobregion 90 drivers/mtd/nand/raw/nand_base.c oobregion->offset = 3; oobregion 92 drivers/mtd/nand/raw/nand_base.c oobregion->offset = 6; oobregion 105 drivers/mtd/nand/raw/nand_base.c struct mtd_oob_region *oobregion) oobregion 113 drivers/mtd/nand/raw/nand_base.c oobregion->length = ecc->total; oobregion 114 drivers/mtd/nand/raw/nand_base.c oobregion->offset = mtd->oobsize - oobregion->length; oobregion 120 drivers/mtd/nand/raw/nand_base.c struct mtd_oob_region *oobregion) oobregion 128 drivers/mtd/nand/raw/nand_base.c oobregion->length = mtd->oobsize - ecc->total - 2; oobregion 129 drivers/mtd/nand/raw/nand_base.c oobregion->offset = 2; oobregion 145 drivers/mtd/nand/raw/nand_base.c struct mtd_oob_region *oobregion) oobregion 155 drivers/mtd/nand/raw/nand_base.c oobregion->offset = 40; oobregion 158 drivers/mtd/nand/raw/nand_base.c oobregion->offset = 80; oobregion 164 drivers/mtd/nand/raw/nand_base.c oobregion->length = ecc->total; oobregion 165 drivers/mtd/nand/raw/nand_base.c if (oobregion->offset + oobregion->length > mtd->oobsize) oobregion 172 drivers/mtd/nand/raw/nand_base.c struct mtd_oob_region *oobregion) oobregion 193 drivers/mtd/nand/raw/nand_base.c oobregion->offset = 2; oobregion 194 drivers/mtd/nand/raw/nand_base.c oobregion->length = ecc_offset - 2; oobregion 196 drivers/mtd/nand/raw/nand_base.c oobregion->offset = ecc_offset + ecc->total; oobregion 197 drivers/mtd/nand/raw/nand_base.c oobregion->length = mtd->oobsize - oobregion->offset; oobregion 2756 drivers/mtd/nand/raw/nand_base.c struct mtd_oob_region oobregion = { }; oobregion 2783 drivers/mtd/nand/raw/nand_base.c ret = mtd_ooblayout_find_eccregion(mtd, index, §ion, &oobregion); oobregion 2787 drivers/mtd/nand/raw/nand_base.c if (oobregion.length < eccfrag_len) oobregion 2801 drivers/mtd/nand/raw/nand_base.c aligned_pos = oobregion.offset & ~(busw - 1); oobregion 2803 drivers/mtd/nand/raw/nand_base.c if (oobregion.offset & (busw - 1)) oobregion 2805 drivers/mtd/nand/raw/nand_base.c if ((oobregion.offset + (num_steps * chip->ecc.bytes)) & oobregion 102 drivers/mtd/nand/raw/nand_micron.c struct mtd_oob_region *oobregion) oobregion 107 drivers/mtd/nand/raw/nand_micron.c oobregion->offset = (section * 16) + 8; oobregion 108 drivers/mtd/nand/raw/nand_micron.c oobregion->length = 8; oobregion 115 drivers/mtd/nand/raw/nand_micron.c struct mtd_oob_region *oobregion) oobregion 120 drivers/mtd/nand/raw/nand_micron.c oobregion->offset = (section * 16) + 2; oobregion 121 drivers/mtd/nand/raw/nand_micron.c oobregion->length = 6; oobregion 133 drivers/mtd/nand/raw/nand_micron.c struct mtd_oob_region *oobregion) oobregion 140 drivers/mtd/nand/raw/nand_micron.c oobregion->offset = mtd->oobsize - chip->ecc.total; oobregion 141 drivers/mtd/nand/raw/nand_micron.c oobregion->length = chip->ecc.total; oobregion 148 drivers/mtd/nand/raw/nand_micron.c struct mtd_oob_region *oobregion) oobregion 155 drivers/mtd/nand/raw/nand_micron.c oobregion->offset = 2; oobregion 156 drivers/mtd/nand/raw/nand_micron.c oobregion->length = mtd->oobsize - chip->ecc.total - 2; oobregion 1817 drivers/mtd/nand/raw/omap2.c struct mtd_oob_region *oobregion) oobregion 1830 drivers/mtd/nand/raw/omap2.c oobregion->offset = off; oobregion 1831 drivers/mtd/nand/raw/omap2.c oobregion->length = chip->ecc.total; oobregion 1837 drivers/mtd/nand/raw/omap2.c struct mtd_oob_region *oobregion) oobregion 1854 drivers/mtd/nand/raw/omap2.c oobregion->offset = off; oobregion 1855 drivers/mtd/nand/raw/omap2.c oobregion->length = mtd->oobsize - off; oobregion 1866 drivers/mtd/nand/raw/omap2.c struct mtd_oob_region *oobregion) oobregion 1878 drivers/mtd/nand/raw/omap2.c oobregion->offset = off + (section * (chip->ecc.bytes + 1)); oobregion 1879 drivers/mtd/nand/raw/omap2.c oobregion->length = chip->ecc.bytes; oobregion 1885 drivers/mtd/nand/raw/omap2.c struct mtd_oob_region *oobregion) oobregion 1901 drivers/mtd/nand/raw/omap2.c oobregion->offset = off; oobregion 1902 drivers/mtd/nand/raw/omap2.c oobregion->length = mtd->oobsize - off; oobregion 2412 drivers/mtd/nand/raw/qcom_nandc.c struct mtd_oob_region *oobregion) oobregion 2422 drivers/mtd/nand/raw/qcom_nandc.c oobregion->length = (ecc->bytes * (ecc->steps - 1)) + oobregion 2424 drivers/mtd/nand/raw/qcom_nandc.c oobregion->offset = 0; oobregion 2426 drivers/mtd/nand/raw/qcom_nandc.c oobregion->length = host->ecc_bytes_hw + host->spare_bytes; oobregion 2427 drivers/mtd/nand/raw/qcom_nandc.c oobregion->offset = mtd->oobsize - oobregion->length; oobregion 2434 drivers/mtd/nand/raw/qcom_nandc.c struct mtd_oob_region *oobregion) oobregion 2443 drivers/mtd/nand/raw/qcom_nandc.c oobregion->length = ecc->steps * 4; oobregion 2444 drivers/mtd/nand/raw/qcom_nandc.c oobregion->offset = ((ecc->steps - 1) * ecc->bytes) + host->bbm_size; oobregion 76 drivers/mtd/nand/raw/s3c2410.c struct mtd_oob_region *oobregion) oobregion 81 drivers/mtd/nand/raw/s3c2410.c oobregion->offset = 0; oobregion 82 drivers/mtd/nand/raw/s3c2410.c oobregion->length = 3; oobregion 88 drivers/mtd/nand/raw/s3c2410.c struct mtd_oob_region *oobregion) oobregion 93 drivers/mtd/nand/raw/s3c2410.c oobregion->offset = 8; oobregion 94 drivers/mtd/nand/raw/s3c2410.c oobregion->length = 8; oobregion 33 drivers/mtd/nand/raw/sh_flctl.c struct mtd_oob_region *oobregion) oobregion 40 drivers/mtd/nand/raw/sh_flctl.c oobregion->offset = 0; oobregion 41 drivers/mtd/nand/raw/sh_flctl.c oobregion->length = chip->ecc.bytes; oobregion 47 drivers/mtd/nand/raw/sh_flctl.c struct mtd_oob_region *oobregion) oobregion 52 drivers/mtd/nand/raw/sh_flctl.c oobregion->offset = 12; oobregion 53 drivers/mtd/nand/raw/sh_flctl.c oobregion->length = 4; oobregion 64 drivers/mtd/nand/raw/sh_flctl.c struct mtd_oob_region *oobregion) oobregion 71 drivers/mtd/nand/raw/sh_flctl.c oobregion->offset = (section * 16) + 6; oobregion 72 drivers/mtd/nand/raw/sh_flctl.c oobregion->length = chip->ecc.bytes; oobregion 78 drivers/mtd/nand/raw/sh_flctl.c struct mtd_oob_region *oobregion) oobregion 85 drivers/mtd/nand/raw/sh_flctl.c oobregion->offset = section * 16; oobregion 86 drivers/mtd/nand/raw/sh_flctl.c oobregion->length = 6; oobregion 89 drivers/mtd/nand/raw/sh_flctl.c oobregion->offset += 2; oobregion 90 drivers/mtd/nand/raw/sh_flctl.c oobregion->length -= 2; oobregion 13 drivers/mtd/nand/raw/sm_common.c struct mtd_oob_region *oobregion) oobregion 18 drivers/mtd/nand/raw/sm_common.c oobregion->length = 3; oobregion 19 drivers/mtd/nand/raw/sm_common.c oobregion->offset = ((section + 1) * 8) - 3; oobregion 25 drivers/mtd/nand/raw/sm_common.c struct mtd_oob_region *oobregion) oobregion 30 drivers/mtd/nand/raw/sm_common.c oobregion->offset = 0; oobregion 31 drivers/mtd/nand/raw/sm_common.c oobregion->length = 4; oobregion 35 drivers/mtd/nand/raw/sm_common.c oobregion->offset = 6; oobregion 36 drivers/mtd/nand/raw/sm_common.c oobregion->length = 2; oobregion 40 drivers/mtd/nand/raw/sm_common.c oobregion->offset = 11; oobregion 41 drivers/mtd/nand/raw/sm_common.c oobregion->length = 2; oobregion 62 drivers/mtd/nand/raw/sm_common.c struct mtd_oob_region *oobregion) oobregion 67 drivers/mtd/nand/raw/sm_common.c oobregion->length = 3; oobregion 68 drivers/mtd/nand/raw/sm_common.c oobregion->offset = 0; oobregion 74 drivers/mtd/nand/raw/sm_common.c struct mtd_oob_region *oobregion) oobregion 79 drivers/mtd/nand/raw/sm_common.c oobregion->offset = 3; oobregion 80 drivers/mtd/nand/raw/sm_common.c oobregion->length = 2; oobregion 84 drivers/mtd/nand/raw/sm_common.c oobregion->offset = 6; oobregion 85 drivers/mtd/nand/raw/sm_common.c oobregion->length = 2; oobregion 1683 drivers/mtd/nand/raw/stm32_fmc2_nand.c struct mtd_oob_region *oobregion) oobregion 1691 drivers/mtd/nand/raw/stm32_fmc2_nand.c oobregion->length = ecc->total; oobregion 1692 drivers/mtd/nand/raw/stm32_fmc2_nand.c oobregion->offset = FMC2_BBM_LEN; oobregion 1698 drivers/mtd/nand/raw/stm32_fmc2_nand.c struct mtd_oob_region *oobregion) oobregion 1706 drivers/mtd/nand/raw/stm32_fmc2_nand.c oobregion->length = mtd->oobsize - ecc->total - FMC2_BBM_LEN; oobregion 1707 drivers/mtd/nand/raw/stm32_fmc2_nand.c oobregion->offset = ecc->total + FMC2_BBM_LEN; oobregion 1550 drivers/mtd/nand/raw/sunxi_nand.c struct mtd_oob_region *oobregion) oobregion 1558 drivers/mtd/nand/raw/sunxi_nand.c oobregion->offset = section * (ecc->bytes + 4) + 4; oobregion 1559 drivers/mtd/nand/raw/sunxi_nand.c oobregion->length = ecc->bytes; oobregion 1565 drivers/mtd/nand/raw/sunxi_nand.c struct mtd_oob_region *oobregion) oobregion 1579 drivers/mtd/nand/raw/sunxi_nand.c oobregion->offset = 2; oobregion 1580 drivers/mtd/nand/raw/sunxi_nand.c oobregion->length = 2; oobregion 1585 drivers/mtd/nand/raw/sunxi_nand.c oobregion->offset = section * (ecc->bytes + 4); oobregion 1588 drivers/mtd/nand/raw/sunxi_nand.c oobregion->length = 4; oobregion 1590 drivers/mtd/nand/raw/sunxi_nand.c oobregion->offset = mtd->oobsize - oobregion->offset; oobregion 201 drivers/mtd/nand/raw/tegra_nand.c struct mtd_oob_region *oobregion) oobregion 210 drivers/mtd/nand/raw/tegra_nand.c oobregion->offset = SKIP_SPARE_BYTES; oobregion 211 drivers/mtd/nand/raw/tegra_nand.c oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4); oobregion 217 drivers/mtd/nand/raw/tegra_nand.c struct mtd_oob_region *oobregion) oobregion 228 drivers/mtd/nand/raw/tegra_nand.c struct mtd_oob_region *oobregion) oobregion 237 drivers/mtd/nand/raw/tegra_nand.c oobregion->offset = SKIP_SPARE_BYTES; oobregion 238 drivers/mtd/nand/raw/tegra_nand.c oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4); oobregion 348 include/linux/mtd/mtd.h struct mtd_oob_region *oobregion);