Lines Matching refs:uffd_copy
2157 struct uffdio_copy uffd_copy; in CopyIoctl() local
2158 uffd_copy.mode = gUffdSupportsMmapTrylock ? UFFDIO_COPY_MODE_MMAP_TRYLOCK : 0; in CopyIoctl()
2159 uffd_copy.src = reinterpret_cast<uintptr_t>(buffer); in CopyIoctl()
2160 uffd_copy.dst = reinterpret_cast<uintptr_t>(dst); in CopyIoctl()
2161 uffd_copy.len = length; in CopyIoctl()
2162 uffd_copy.copy = 0; in CopyIoctl()
2164 int ret = ioctl(uffd_, UFFDIO_COPY, &uffd_copy); in CopyIoctl()
2166 DCHECK_EQ(uffd_copy.copy, static_cast<ssize_t>(length)); in CopyIoctl()
2170 DCHECK_NE(uffd_copy.copy, 0); in CopyIoctl()
2171 if (uffd_copy.copy > 0) { in CopyIoctl()
2173 DCHECK(IsAlignedParam(uffd_copy.copy, gPageSize)); in CopyIoctl()
2174 DCHECK_GE(uffd_copy.copy, static_cast<ssize_t>(gPageSize)); in CopyIoctl()
2178 DCHECK_EQ(uffd_copy.copy, -EAGAIN); in CopyIoctl()
2179 uffd_copy.copy = 0; in CopyIoctl()
2194 uffd_copy.mode = 0; in CopyIoctl()
2197 DCHECK_NE(uffd_copy.copy, 0); in CopyIoctl()
2198 if (uffd_copy.copy < 0) { in CopyIoctl()
2199 uffd_copy.copy = 0; in CopyIoctl()
2203 uffd_copy.copy += gPageSize; in CopyIoctl()
2206 DCHECK_EQ(uffd_copy.copy, -errno); in CopyIoctl()
2211 return uffd_copy.copy; in CopyIoctl()