Lines Matching refs:oobregion

158 				 struct mtd_oob_region *oobregion)  in nand_ooblayout_ecc_sp()  argument
167 oobregion->offset = 0; in nand_ooblayout_ecc_sp()
169 oobregion->length = 4; in nand_ooblayout_ecc_sp()
171 oobregion->length = 3; in nand_ooblayout_ecc_sp()
176 oobregion->offset = 6; in nand_ooblayout_ecc_sp()
177 oobregion->length = total_ecc_bytes - 4; in nand_ooblayout_ecc_sp()
184 struct mtd_oob_region *oobregion) in nand_ooblayout_free_sp() argument
193 oobregion->length = 8; in nand_ooblayout_free_sp()
194 oobregion->offset = 8; in nand_ooblayout_free_sp()
196 oobregion->length = 2; in nand_ooblayout_free_sp()
198 oobregion->offset = 3; in nand_ooblayout_free_sp()
200 oobregion->offset = 6; in nand_ooblayout_free_sp()
218 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_lp() argument
226 oobregion->length = total_ecc_bytes; in nand_ooblayout_ecc_lp()
227 oobregion->offset = mtd->oobsize - oobregion->length; in nand_ooblayout_ecc_lp()
233 struct mtd_oob_region *oobregion) in nand_ooblayout_free_lp() argument
241 oobregion->length = mtd->oobsize - total_ecc_bytes - 2; in nand_ooblayout_free_lp()
242 oobregion->offset = 2; in nand_ooblayout_free_lp()
263 struct mtd_oob_region *oobregion) in nand_ooblayout_ecc_lp_hamming() argument
273 oobregion->offset = 40; in nand_ooblayout_ecc_lp_hamming()
276 oobregion->offset = 80; in nand_ooblayout_ecc_lp_hamming()
282 oobregion->length = total_ecc_bytes; in nand_ooblayout_ecc_lp_hamming()
283 if (oobregion->offset + oobregion->length > mtd->oobsize) in nand_ooblayout_ecc_lp_hamming()
290 struct mtd_oob_region *oobregion) in nand_ooblayout_free_lp_hamming() argument
311 oobregion->offset = 2; in nand_ooblayout_free_lp_hamming()
312 oobregion->length = ecc_offset - 2; in nand_ooblayout_free_lp_hamming()
314 oobregion->offset = ecc_offset + total_ecc_bytes; in nand_ooblayout_free_lp_hamming()
315 oobregion->length = mtd->oobsize - oobregion->offset; in nand_ooblayout_free_lp_hamming()