Lines Matching refs:oobregion
1004 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_ecc() argument
1011 oobregion->offset = (section * 16) + 6; in mxc_v1_ooblayout_ecc()
1012 oobregion->length = MXC_V1_ECCBYTES; in mxc_v1_ooblayout_ecc()
1018 struct mtd_oob_region *oobregion) in mxc_v1_ooblayout_free() argument
1027 oobregion->offset = 0; in mxc_v1_ooblayout_free()
1028 oobregion->length = 5; in mxc_v1_ooblayout_free()
1030 oobregion->offset = 2; in mxc_v1_ooblayout_free()
1031 oobregion->length = 4; in mxc_v1_ooblayout_free()
1034 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; in mxc_v1_ooblayout_free()
1036 oobregion->length = (section * 16) + 6 - in mxc_v1_ooblayout_free()
1037 oobregion->offset; in mxc_v1_ooblayout_free()
1039 oobregion->length = mtd->oobsize - oobregion->offset; in mxc_v1_ooblayout_free()
1051 struct mtd_oob_region *oobregion) in mxc_v2_ooblayout_ecc() argument
1059 oobregion->offset = (section * stepsize) + 7; in mxc_v2_ooblayout_ecc()
1060 oobregion->length = nand_chip->ecc.bytes; in mxc_v2_ooblayout_ecc()
1066 struct mtd_oob_region *oobregion) in mxc_v2_ooblayout_free() argument
1076 oobregion->offset = 0; in mxc_v2_ooblayout_free()
1077 oobregion->length = 5; in mxc_v2_ooblayout_free()
1079 oobregion->offset = 2; in mxc_v2_ooblayout_free()
1080 oobregion->length = 4; in mxc_v2_ooblayout_free()
1083 oobregion->offset = section * stepsize; in mxc_v2_ooblayout_free()
1084 oobregion->length = 7; in mxc_v2_ooblayout_free()