Lines Matching refs:oobregion
164 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_sp() argument
173 oobregion->offset = 0; in nand_ooblayout_ecc_sp()
175 oobregion->length = 4; in nand_ooblayout_ecc_sp()
177 oobregion->length = 3; in nand_ooblayout_ecc_sp()
182 oobregion->offset = 6; in nand_ooblayout_ecc_sp()
183 oobregion->length = total_ecc_bytes - 4; in nand_ooblayout_ecc_sp()
190 struct mtd_oob_region *oobregion) in nand_ooblayout_free_sp() argument
199 oobregion->length = 8; in nand_ooblayout_free_sp()
200 oobregion->offset = 8; in nand_ooblayout_free_sp()
202 oobregion->length = 2; in nand_ooblayout_free_sp()
204 oobregion->offset = 3; in nand_ooblayout_free_sp()
206 oobregion->offset = 6; in nand_ooblayout_free_sp()
224 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_lp() argument
232 oobregion->length = total_ecc_bytes; in nand_ooblayout_ecc_lp()
233 oobregion->offset = mtd->oobsize - oobregion->length; in nand_ooblayout_ecc_lp()
239 struct mtd_oob_region *oobregion) in nand_ooblayout_free_lp() argument
247 oobregion->length = mtd->oobsize - total_ecc_bytes - 2; in nand_ooblayout_free_lp()
248 oobregion->offset = 2; in nand_ooblayout_free_lp()
269 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_lp_hamming() argument
279 oobregion->offset = 40; in nand_ooblayout_ecc_lp_hamming()
282 oobregion->offset = 80; in nand_ooblayout_ecc_lp_hamming()
288 oobregion->length = total_ecc_bytes; in nand_ooblayout_ecc_lp_hamming()
289 if (oobregion->offset + oobregion->length > mtd->oobsize) in nand_ooblayout_ecc_lp_hamming()
296 struct mtd_oob_region *oobregion) in nand_ooblayout_free_lp_hamming() argument
317 oobregion->offset = 2; in nand_ooblayout_free_lp_hamming()
318 oobregion->length = ecc_offset - 2; in nand_ooblayout_free_lp_hamming()
320 oobregion->offset = ecc_offset + total_ecc_bytes; in nand_ooblayout_free_lp_hamming()
321 oobregion->length = mtd->oobsize - oobregion->offset; in nand_ooblayout_free_lp_hamming()