Lines Matching refs:section
882 static int mxc_v1_ooblayout_ecc(struct mtd_info *mtd, int section, in mxc_v1_ooblayout_ecc() argument
887 if (section >= nand_chip->ecc.steps) in mxc_v1_ooblayout_ecc()
890 oobregion->offset = (section * 16) + 6; in mxc_v1_ooblayout_ecc()
896 static int mxc_v1_ooblayout_free(struct mtd_info *mtd, int section, in mxc_v1_ooblayout_free() argument
901 if (section > nand_chip->ecc.steps) in mxc_v1_ooblayout_free()
904 if (!section) { in mxc_v1_ooblayout_free()
913 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; in mxc_v1_ooblayout_free()
914 if (section < nand_chip->ecc.steps) in mxc_v1_ooblayout_free()
915 oobregion->length = (section * 16) + 6 - in mxc_v1_ooblayout_free()
929 static int mxc_v2_ooblayout_ecc(struct mtd_info *mtd, int section, in mxc_v2_ooblayout_ecc() argument
935 if (section >= nand_chip->ecc.steps) in mxc_v2_ooblayout_ecc()
938 oobregion->offset = (section * stepsize) + 7; in mxc_v2_ooblayout_ecc()
944 static int mxc_v2_ooblayout_free(struct mtd_info *mtd, int section, in mxc_v2_ooblayout_free() argument
950 if (section >= nand_chip->ecc.steps) in mxc_v2_ooblayout_free()
953 if (!section) { in mxc_v2_ooblayout_free()
962 oobregion->offset = section * stepsize; in mxc_v2_ooblayout_free()