Lines Matching refs:oobregion

1209 				int *sectionp, struct mtd_oob_region *oobregion,  in mtd_ooblayout_find_region()  argument
1212 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1216 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1219 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1223 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1226 pos += oobregion->length; in mtd_ooblayout_find_region()
1234 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1235 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1256 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1258 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
1281 struct mtd_oob_region *oobregion)) in mtd_ooblayout_get_bytes() argument
1283 struct mtd_oob_region oobregion; in mtd_ooblayout_get_bytes() local
1287 &oobregion, iter); in mtd_ooblayout_get_bytes()
1292 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1293 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1300 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_get_bytes()
1324 struct mtd_oob_region *oobregion)) in mtd_ooblayout_set_bytes() argument
1326 struct mtd_oob_region oobregion; in mtd_ooblayout_set_bytes() local
1330 &oobregion, iter); in mtd_ooblayout_set_bytes()
1335 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1336 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1343 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_set_bytes()
1361 struct mtd_oob_region *oobregion)) in mtd_ooblayout_count_bytes() argument
1363 struct mtd_oob_region oobregion; in mtd_ooblayout_count_bytes() local
1367 ret = iter(mtd, section++, &oobregion); in mtd_ooblayout_count_bytes()
1374 nbytes += oobregion.length; in mtd_ooblayout_count_bytes()