Lines Matching refs:section
156 static int nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_sp() argument
162 if (section > 1) in nand_ooblayout_ecc_sp()
165 if (!section) { in nand_ooblayout_ecc_sp()
182 static int nand_ooblayout_free_sp(struct mtd_info *mtd, int section, in nand_ooblayout_free_sp() argument
185 if (section > 1) in nand_ooblayout_free_sp()
189 if (section) in nand_ooblayout_free_sp()
196 if (!section) in nand_ooblayout_free_sp()
216 static int nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp() argument
222 if (section || !total_ecc_bytes) in nand_ooblayout_ecc_lp()
231 static int nand_ooblayout_free_lp(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp() argument
237 if (section) in nand_ooblayout_free_lp()
261 static int nand_ooblayout_ecc_lp_hamming(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp_hamming() argument
267 if (section) in nand_ooblayout_ecc_lp_hamming()
288 static int nand_ooblayout_free_lp_hamming(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp_hamming() argument
295 if (section < 0 || section > 1) in nand_ooblayout_free_lp_hamming()
309 if (section == 0) { in nand_ooblayout_free_lp_hamming()