Lines Matching refs:ufd
395 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument
401 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page()
412 static int __copy_page(int ufd, unsigned long offset, bool retry) in __copy_page() argument
424 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { in __copy_page()
435 retry_copy_page(ufd, &uffdio_copy, offset); in __copy_page()
442 static int copy_page_retry(int ufd, unsigned long offset) in copy_page_retry() argument
444 return __copy_page(ufd, offset, true); in copy_page_retry()
447 static int copy_page(int ufd, unsigned long offset) in copy_page() argument
449 return __copy_page(ufd, offset, false); in copy_page()
452 static int uffd_read_msg(int ufd, struct uffd_msg *msg) in uffd_read_msg() argument
531 uffd = msg.arg.fork.ufd; in uffd_poll_thread()
797 static void retry_uffdio_zeropage(int ufd, in retry_uffdio_zeropage() argument
804 if (ioctl(ufd, UFFDIO_ZEROPAGE, uffdio_zeropage)) { in retry_uffdio_zeropage()
814 static int __uffdio_zeropage(int ufd, unsigned long offset, bool retry) in __uffdio_zeropage() argument
828 ret = ioctl(ufd, UFFDIO_ZEROPAGE, &uffdio_zeropage); in __uffdio_zeropage()
851 retry_uffdio_zeropage(ufd, &uffdio_zeropage, in __uffdio_zeropage()
865 static int uffdio_zeropage(int ufd, unsigned long offset) in uffdio_zeropage() argument
867 return __uffdio_zeropage(ufd, offset, false); in uffdio_zeropage()