Lines Matching refs:oobregion
1298 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region() argument
1301 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1305 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1308 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1312 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1315 pos += oobregion->length; in mtd_ooblayout_find_region()
1323 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1324 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1345 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1347 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
1370 struct mtd_oob_region *oobregion)) in mtd_ooblayout_get_bytes() argument
1372 struct mtd_oob_region oobregion; in mtd_ooblayout_get_bytes() local
1376 &oobregion, iter); in mtd_ooblayout_get_bytes()
1381 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1382 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1389 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_get_bytes()
1413 struct mtd_oob_region *oobregion)) in mtd_ooblayout_set_bytes() argument
1415 struct mtd_oob_region oobregion; in mtd_ooblayout_set_bytes() local
1419 &oobregion, iter); in mtd_ooblayout_set_bytes()
1424 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1425 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1432 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_set_bytes()
1450 struct mtd_oob_region *oobregion)) in mtd_ooblayout_count_bytes() argument
1452 struct mtd_oob_region oobregion; in mtd_ooblayout_count_bytes() local
1456 ret = iter(mtd, section++, &oobregion); in mtd_ooblayout_count_bytes()
1463 nbytes += oobregion.length; in mtd_ooblayout_count_bytes()