Lines Matching refs:section
1002 static int mxc_v1_ooblayout_ecc(struct mtd_info *mtd, int section,
1007 if (section >= nand_chip->ecc.steps)
1010 oobregion->offset = (section * 16) + 6;
1016 static int mxc_v1_ooblayout_free(struct mtd_info *mtd, int section,
1021 if (section > nand_chip->ecc.steps)
1024 if (!section) {
1033 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6;
1034 if (section < nand_chip->ecc.steps)
1035 oobregion->length = (section * 16) + 6 -
1049 static int mxc_v2_ooblayout_ecc(struct mtd_info *mtd, int section,
1055 if (section >= nand_chip->ecc.steps)
1058 oobregion->offset = (section * stepsize) + 7;
1064 static int mxc_v2_ooblayout_free(struct mtd_info *mtd, int section,
1070 if (section >= nand_chip->ecc.steps)
1073 if (!section) {
1082 oobregion->offset = section * stepsize;