Lines Matching refs:oobregion

1707 				int *sectionp, struct mtd_oob_region *oobregion,  in mtd_ooblayout_find_region()  argument
1710 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1714 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1717 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1721 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1724 pos += oobregion->length; in mtd_ooblayout_find_region()
1732 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1733 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1754 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1756 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
1779 struct mtd_oob_region *oobregion)) in mtd_ooblayout_get_bytes() argument
1781 struct mtd_oob_region oobregion; in mtd_ooblayout_get_bytes() local
1785 &oobregion, iter); in mtd_ooblayout_get_bytes()
1790 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1791 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1798 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_get_bytes()
1822 struct mtd_oob_region *oobregion)) in mtd_ooblayout_set_bytes() argument
1824 struct mtd_oob_region oobregion; in mtd_ooblayout_set_bytes() local
1828 &oobregion, iter); in mtd_ooblayout_set_bytes()
1833 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1834 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1841 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_set_bytes()
1859 struct mtd_oob_region *oobregion)) in mtd_ooblayout_count_bytes() argument
1861 struct mtd_oob_region oobregion; in mtd_ooblayout_count_bytes() local
1865 ret = iter(mtd, section++, &oobregion); in mtd_ooblayout_count_bytes()
1872 nbytes += oobregion.length; in mtd_ooblayout_count_bytes()