Lines Matching refs:section
1005 static int mxc_v1_ooblayout_ecc(struct mtd_info *mtd, int section, in mxc_v1_ooblayout_ecc() argument
1010 if (section >= nand_chip->ecc.steps) in mxc_v1_ooblayout_ecc()
1013 oobregion->offset = (section * 16) + 6; in mxc_v1_ooblayout_ecc()
1019 static int mxc_v1_ooblayout_free(struct mtd_info *mtd, int section, in mxc_v1_ooblayout_free() argument
1024 if (section > nand_chip->ecc.steps) in mxc_v1_ooblayout_free()
1027 if (!section) { in mxc_v1_ooblayout_free()
1036 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; in mxc_v1_ooblayout_free()
1037 if (section < nand_chip->ecc.steps) in mxc_v1_ooblayout_free()
1038 oobregion->length = (section * 16) + 6 - in mxc_v1_ooblayout_free()
1052 static int mxc_v2_ooblayout_ecc(struct mtd_info *mtd, int section, in mxc_v2_ooblayout_ecc() argument
1058 if (section >= nand_chip->ecc.steps) in mxc_v2_ooblayout_ecc()
1061 oobregion->offset = (section * stepsize) + 7; in mxc_v2_ooblayout_ecc()
1067 static int mxc_v2_ooblayout_free(struct mtd_info *mtd, int section, in mxc_v2_ooblayout_free() argument
1073 if (section >= nand_chip->ecc.steps) in mxc_v2_ooblayout_free()
1076 if (!section) { in mxc_v2_ooblayout_free()
1085 oobregion->offset = section * stepsize; in mxc_v2_ooblayout_free()