Lines Matching defs:section
167 static int fsmc_ecc1_ooblayout_ecc(struct mtd_info *mtd, int section,
172 if (section >= chip->ecc.steps)
175 oobregion->offset = (section * 16) + 2;
181 static int fsmc_ecc1_ooblayout_free(struct mtd_info *mtd, int section,
186 if (section >= chip->ecc.steps)
189 oobregion->offset = (section * 16) + 8;
191 if (section < chip->ecc.steps - 1)
210 static int fsmc_ecc4_ooblayout_ecc(struct mtd_info *mtd, int section,
215 if (section >= chip->ecc.steps)
220 if (!section && mtd->writesize <= 512)
223 oobregion->offset = (section * 16) + 2;
228 static int fsmc_ecc4_ooblayout_free(struct mtd_info *mtd, int section,
233 if (section >= chip->ecc.steps)
236 oobregion->offset = (section * 16) + 15;
238 if (section < chip->ecc.steps - 1)