Lines Matching defs:section
66 static int flexonenand_ooblayout_ecc(struct mtd_info *mtd, int section,
69 if (section > 7)
72 oobregion->offset = (section * 16) + 6;
78 static int flexonenand_ooblayout_free(struct mtd_info *mtd, int section,
81 if (section > 7)
84 oobregion->offset = (section * 16) + 2;
102 static int onenand_ooblayout_128_ecc(struct mtd_info *mtd, int section,
105 if (section > 7)
108 oobregion->offset = (section * 16) + 7;
114 static int onenand_ooblayout_128_free(struct mtd_info *mtd, int section,
117 if (section >= 8)
124 oobregion->offset = (section * 16) + 2;
138 static int onenand_ooblayout_32_64_ecc(struct mtd_info *mtd, int section,
141 if (section > 3)
144 oobregion->offset = (section * 16) + 8;
150 static int onenand_ooblayout_32_64_free(struct mtd_info *mtd, int section,
155 if (section >= sections)
158 if (section & 1) {
159 oobregion->offset = ((section - 1) * 16) + 14;
162 oobregion->offset = (section * 16) + 2;