Lines Matching refs:ufd
397 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument
403 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page()
414 static int __copy_page(int ufd, unsigned long offset, bool retry) in __copy_page() argument
426 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { in __copy_page()
437 retry_copy_page(ufd, &uffdio_copy, offset); in __copy_page()
444 static int copy_page_retry(int ufd, unsigned long offset) in copy_page_retry() argument
446 return __copy_page(ufd, offset, true); in copy_page_retry()
449 static int copy_page(int ufd, unsigned long offset) in copy_page() argument
451 return __copy_page(ufd, offset, false); in copy_page()
454 static int uffd_read_msg(int ufd, struct uffd_msg *msg) in uffd_read_msg() argument
533 uffd = msg.arg.fork.ufd; in uffd_poll_thread()
799 static void retry_uffdio_zeropage(int ufd, in retry_uffdio_zeropage() argument
806 if (ioctl(ufd, UFFDIO_ZEROPAGE, uffdio_zeropage)) { in retry_uffdio_zeropage()
816 static int __uffdio_zeropage(int ufd, unsigned long offset, bool retry) in __uffdio_zeropage() argument
830 ret = ioctl(ufd, UFFDIO_ZEROPAGE, &uffdio_zeropage); in __uffdio_zeropage()
853 retry_uffdio_zeropage(ufd, &uffdio_zeropage, in __uffdio_zeropage()
867 static int uffdio_zeropage(int ufd, unsigned long offset) in uffdio_zeropage() argument
869 return __uffdio_zeropage(ufd, offset, false); in uffdio_zeropage()