Lines Matching refs:oobregion
1551 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region() argument
1554 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1558 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1561 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1565 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1568 pos += oobregion->length; in mtd_ooblayout_find_region()
1576 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1577 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1598 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1600 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
1623 struct mtd_oob_region *oobregion)) in mtd_ooblayout_get_bytes() argument
1625 struct mtd_oob_region oobregion; in mtd_ooblayout_get_bytes() local
1629 &oobregion, iter); in mtd_ooblayout_get_bytes()
1634 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1635 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1642 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_get_bytes()
1666 struct mtd_oob_region *oobregion)) in mtd_ooblayout_set_bytes() argument
1668 struct mtd_oob_region oobregion; in mtd_ooblayout_set_bytes() local
1672 &oobregion, iter); in mtd_ooblayout_set_bytes()
1677 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1678 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1685 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_set_bytes()
1703 struct mtd_oob_region *oobregion)) in mtd_ooblayout_count_bytes() argument
1705 struct mtd_oob_region oobregion; in mtd_ooblayout_count_bytes() local
1709 ret = iter(mtd, section++, &oobregion); in mtd_ooblayout_count_bytes()
1716 nbytes += oobregion.length; in mtd_ooblayout_count_bytes()