Lines Matching refs:oobregion
1794 int *sectionp, struct mtd_oob_region *oobregion, in mtd_ooblayout_find_region() argument
1797 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1801 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1804 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1808 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1811 pos += oobregion->length; in mtd_ooblayout_find_region()
1819 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1820 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1841 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1843 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
1866 struct mtd_oob_region *oobregion)) in mtd_ooblayout_get_bytes() argument
1868 struct mtd_oob_region oobregion; in mtd_ooblayout_get_bytes() local
1872 &oobregion, iter); in mtd_ooblayout_get_bytes()
1877 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1878 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1885 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_get_bytes()
1909 struct mtd_oob_region *oobregion)) in mtd_ooblayout_set_bytes() argument
1911 struct mtd_oob_region oobregion; in mtd_ooblayout_set_bytes() local
1915 &oobregion, iter); in mtd_ooblayout_set_bytes()
1920 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1921 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1928 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_set_bytes()
1946 struct mtd_oob_region *oobregion)) in mtd_ooblayout_count_bytes() argument
1948 struct mtd_oob_region oobregion; in mtd_ooblayout_count_bytes() local
1952 ret = iter(mtd, section++, &oobregion); in mtd_ooblayout_count_bytes()
1959 nbytes += oobregion.length; in mtd_ooblayout_count_bytes()