Lines Matching refs:section
158 static int fsmc_ecc1_ooblayout_ecc(struct mtd_info *mtd, int section, in fsmc_ecc1_ooblayout_ecc() argument
163 if (section >= chip->ecc.steps) in fsmc_ecc1_ooblayout_ecc()
166 oobregion->offset = (section * 16) + 2; in fsmc_ecc1_ooblayout_ecc()
172 static int fsmc_ecc1_ooblayout_free(struct mtd_info *mtd, int section, in fsmc_ecc1_ooblayout_free() argument
177 if (section >= chip->ecc.steps) in fsmc_ecc1_ooblayout_free()
180 oobregion->offset = (section * 16) + 8; in fsmc_ecc1_ooblayout_free()
182 if (section < chip->ecc.steps - 1) in fsmc_ecc1_ooblayout_free()
201 static int fsmc_ecc4_ooblayout_ecc(struct mtd_info *mtd, int section, in fsmc_ecc4_ooblayout_ecc() argument
206 if (section >= chip->ecc.steps) in fsmc_ecc4_ooblayout_ecc()
211 if (!section && mtd->writesize <= 512) in fsmc_ecc4_ooblayout_ecc()
214 oobregion->offset = (section * 16) + 2; in fsmc_ecc4_ooblayout_ecc()
219 static int fsmc_ecc4_ooblayout_free(struct mtd_info *mtd, int section, in fsmc_ecc4_ooblayout_free() argument
224 if (section >= chip->ecc.steps) in fsmc_ecc4_ooblayout_free()
227 oobregion->offset = (section * 16) + 15; in fsmc_ecc4_ooblayout_free()
229 if (section < chip->ecc.steps - 1) in fsmc_ecc4_ooblayout_free()