Lines Matching refs:oobregion

1842 				int *sectionp, struct mtd_oob_region *oobregion,  in mtd_ooblayout_find_region()  argument
1845 struct mtd_oob_region *oobregion)) in mtd_ooblayout_find_region()
1849 memset(oobregion, 0, sizeof(*oobregion)); in mtd_ooblayout_find_region()
1852 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1856 if (pos + oobregion->length > byte) in mtd_ooblayout_find_region()
1859 pos += oobregion->length; in mtd_ooblayout_find_region()
1867 oobregion->offset += byte - pos; in mtd_ooblayout_find_region()
1868 oobregion->length -= byte - pos; in mtd_ooblayout_find_region()
1889 struct mtd_oob_region *oobregion) in mtd_ooblayout_find_eccregion() argument
1891 return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion, in mtd_ooblayout_find_eccregion()
1914 struct mtd_oob_region *oobregion)) in mtd_ooblayout_get_bytes() argument
1916 struct mtd_oob_region oobregion; in mtd_ooblayout_get_bytes() local
1920 &oobregion, iter); in mtd_ooblayout_get_bytes()
1925 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1926 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1933 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_get_bytes()
1957 struct mtd_oob_region *oobregion)) in mtd_ooblayout_set_bytes() argument
1959 struct mtd_oob_region oobregion; in mtd_ooblayout_set_bytes() local
1963 &oobregion, iter); in mtd_ooblayout_set_bytes()
1968 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1969 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1976 ret = iter(mtd, ++section, &oobregion); in mtd_ooblayout_set_bytes()
1994 struct mtd_oob_region *oobregion)) in mtd_ooblayout_count_bytes() argument
1996 struct mtd_oob_region oobregion; in mtd_ooblayout_count_bytes() local
2000 ret = iter(mtd, section++, &oobregion); in mtd_ooblayout_count_bytes()
2007 nbytes += oobregion.length; in mtd_ooblayout_count_bytes()