Home
last modified time | relevance | path

Searched refs:gup_flags (Results 1 – 24 of 24) sorted by relevance

/linux/mm/
H A Dgup.c1031 unsigned int gup_flags, struct vm_area_struct **vma, in get_gate_page() argument
1043 if (gup_flags & FOLL_WRITE) in get_gate_page()
1068 if ((gup_flags & FOLL_DUMP) || !is_zero_pfn(pte_pfn(entry))) in get_gate_page()
1072 ret = try_grab_folio(page_folio(*page), 1, gup_flags); in get_gate_page()
1183 unsigned long gup_flags) in writable_file_mapping_allowed() argument
1189 if ((gup_flags & (FOLL_PIN | FOLL_LONGTERM)) != in writable_file_mapping_allowed()
1200 static int check_vma_flags(struct vm_area_struct *vma, unsigned long gup_flags) in check_vma_flags() argument
1203 int write = (gup_flags & FOLL_WRITE); in check_vma_flags()
1204 int foreign = (gup_flags & FOLL_REMOTE); in check_vma_flags()
1210 if ((gup_flags in check_vma_flags()
1356 __get_user_pages(struct mm_struct * mm,unsigned long start,unsigned long nr_pages,unsigned int gup_flags,struct page ** pages,int * locked) __get_user_pages() argument
1819 int gup_flags; populate_vma_page_range() local
1891 int gup_flags; faultin_page_range() local
2470 __gup_longterm_locked(struct mm_struct * mm,unsigned long start,unsigned long nr_pages,struct page ** pages,int * locked,unsigned int gup_flags) __gup_longterm_locked() argument
2503 unsigned int gup_flags = *gup_flags_p; is_valid_gup_args() local
2605 get_user_pages_remote(struct mm_struct * mm,unsigned long start,unsigned long nr_pages,unsigned int gup_flags,struct page ** pages,int * locked) get_user_pages_remote() argument
2623 get_user_pages_remote(struct mm_struct * mm,unsigned long start,unsigned long nr_pages,unsigned int gup_flags,struct page ** pages,int * locked) get_user_pages_remote() argument
2645 get_user_pages(unsigned long start,unsigned long nr_pages,unsigned int gup_flags,struct page ** pages) get_user_pages() argument
2673 get_user_pages_unlocked(unsigned long start,unsigned long nr_pages,struct page ** pages,unsigned int gup_flags) get_user_pages_unlocked() argument
3141 gup_fast(unsigned long start,unsigned long end,unsigned int gup_flags,struct page ** pages) gup_fast() argument
3187 gup_fast_fallback(unsigned long start,unsigned long nr_pages,unsigned int gup_flags,struct page ** pages) gup_fast_fallback() argument
3254 get_user_pages_fast_only(unsigned long start,int nr_pages,unsigned int gup_flags,struct page ** pages) get_user_pages_fast_only() argument
3288 get_user_pages_fast(unsigned long start,int nr_pages,unsigned int gup_flags,struct page ** pages) get_user_pages_fast() argument
3322 pin_user_pages_fast(unsigned long start,int nr_pages,unsigned int gup_flags,struct page ** pages) pin_user_pages_fast() argument
3355 pin_user_pages_remote(struct mm_struct * mm,unsigned long start,unsigned long nr_pages,unsigned int gup_flags,struct page ** pages,int * locked) pin_user_pages_remote() argument
3388 pin_user_pages(unsigned long start,unsigned long nr_pages,unsigned int gup_flags,struct page ** pages) pin_user_pages() argument
3408 pin_user_pages_unlocked(unsigned long start,unsigned long nr_pages,struct page ** pages,unsigned int gup_flags) pin_user_pages_unlocked() argument
[all...]
H A Dgup_test.c140 nr = get_user_pages_fast(addr, nr, gup->gup_flags, in __gup_test_ioctl()
144 nr = get_user_pages(addr, nr, gup->gup_flags, pages + i); in __gup_test_ioctl()
147 nr = pin_user_pages_fast(addr, nr, gup->gup_flags, in __gup_test_ioctl()
151 nr = pin_user_pages(addr, nr, gup->gup_flags, pages + i); in __gup_test_ioctl()
155 gup->gup_flags | FOLL_LONGTERM, in __gup_test_ioctl()
160 nr = pin_user_pages(addr, nr, gup->gup_flags, in __gup_test_ioctl()
163 nr = get_user_pages(addr, nr, gup->gup_flags, in __gup_test_ioctl()
226 int gup_flags = FOLL_LONGTERM; in pin_longterm_test_start()
254 gup_flags |= FOLL_WRITE; in pin_longterm_test_start()
271 gup_flags, page in pin_longterm_test_start()
225 int gup_flags = FOLL_LONGTERM; pin_longterm_test_start() local
[all...]
H A Dgup_test.h27 __u32 gup_flags; member
H A Dnommu.c1642 void *buf, int len, unsigned int gup_flags) in __access_remote_vm() argument
1645 int write = gup_flags & FOLL_WRITE; in __access_remote_vm()
1686 void *buf, int len, unsigned int gup_flags) in access_remote_vm() argument
1688 return __access_remote_vm(mm, addr, buf, len, gup_flags); in access_remote_vm()
1696 unsigned int gup_flags) in access_process_vm() argument
1707 len = __access_remote_vm(mm, addr, buf, len, gup_flags); in access_process_vm()
1770 void *buf, int len, unsigned int gup_flags) in copy_remote_vm_str() argument
H A Dmemory.c6946 void *buf, int len, unsigned int gup_flags) in __access_remote_vm() argument
6949 int write = gup_flags & FOLL_WRITE; in __access_remote_vm()
6968 gup_flags, &vma); in __access_remote_vm()
7036 void *buf, int len, unsigned int gup_flags) in access_remote_vm() argument
7038 return __access_remote_vm(mm, addr, buf, len, gup_flags); in access_remote_vm()
7047 void *buf, int len, unsigned int gup_flags) in access_process_vm() argument
7056 ret = __access_remote_vm(mm, addr, buf, len, gup_flags); in access_process_vm()
7070 void *buf, int len, unsigned int gup_flags) in __copy_remote_vm_str() argument
7095 page = get_user_page_vma_remote(mm, addr, gup_flags, &vma); in __copy_remote_vm_str()
7161 void *buf, int len, unsigned int gup_flags) in copy_remote_vm_str() argument
[all …]
/linux/arch/arm64/kernel/
H A Dmte.c438 struct iovec *kiov, unsigned int gup_flags) in __access_remote_tags() argument
443 int write = gup_flags & FOLL_WRITE; in __access_remote_tags()
456 gup_flags, &vma); in __access_remote_tags()
525 struct iovec *kiov, unsigned int gup_flags) in access_remote_tags() argument
541 ret = __access_remote_tags(mm, addr, kiov, gup_flags); in access_remote_tags()
553 unsigned int gup_flags = FOLL_FORCE; in mte_ptrace_copy_tags() local
563 gup_flags |= FOLL_WRITE; in mte_ptrace_copy_tags()
568 ret = access_remote_tags(child, addr, &kiov, gup_flags); in mte_ptrace_copy_tags()
/linux/drivers/media/common/videobuf2/
H A Dframe_vector.c44 unsigned int gup_flags = FOLL_LONGTERM; in get_vaddr_frames() local
55 gup_flags |= FOLL_WRITE; in get_vaddr_frames()
57 ret = pin_user_pages_fast(start, nr_frames, gup_flags, in get_vaddr_frames()
/linux/drivers/infiniband/hw/hfi1/
H A Duser_pages.c84 unsigned int gup_flags = FOLL_LONGTERM | (writable ? FOLL_WRITE : 0); in hfi1_acquire_user_pages() local
86 ret = pin_user_pages_fast(vaddr, npages, gup_flags, pages); in hfi1_acquire_user_pages()
/linux/drivers/accel/ivpu/
H A Divpu_gem_userptr.c73 unsigned int gup_flags = FOLL_LONGTERM; in ivpu_create_userptr_dmabuf() local
78 gup_flags |= FOLL_WRITE; in ivpu_create_userptr_dmabuf()
84 pinned = pin_user_pages_fast((unsigned long)user_ptr, nr_pages, gup_flags, pages); in ivpu_create_userptr_dmabuf()
/linux/drivers/infiniband/core/
H A Dumem.c176 unsigned int gup_flags = FOLL_LONGTERM; in ib_umem_get() local
231 gup_flags |= FOLL_WRITE; in ib_umem_get()
239 gup_flags, page_list); in ib_umem_get()
/linux/tools/testing/selftests/mm/
H A Dgup_test.c128 gup.gup_flags = strtol(optarg, 0, 0); in main()
210 gup.gup_flags |= FOLL_WRITE; in main()
H A Dhmm-tests.c1915 .gup_flags = FOLL_WRITE | flags, in gup_test_exec()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_userptr.c238 unsigned int gup_flags = 0; in i915_gem_object_userptr_submit_init() local
266 gup_flags |= FOLL_WRITE; in i915_gem_object_userptr_submit_init()
271 num_pages - pinned, gup_flags, in i915_gem_object_userptr_submit_init()
/linux/include/linux/
H A Dmm.h2939 void *buf, int len, unsigned int gup_flags);
2941 void *buf, int len, unsigned int gup_flags);
2945 void *buf, int len, unsigned int gup_flags);
2950 unsigned int gup_flags, struct page **pages,
2954 unsigned int gup_flags, struct page **pages,
2962 int gup_flags, in get_user_page_vma_remote() argument
2969 if (WARN_ON_ONCE(unlikely(gup_flags & FOLL_NOWAIT))) in get_user_page_vma_remote()
2972 got = get_user_pages_remote(mm, addr, 1, gup_flags, &page, NULL); in get_user_page_vma_remote()
2988 unsigned int gup_flags, struct page **pages);
2990 unsigned int gup_flags, struct page **pages);
[all …]
H A Dptrace.h21 void *buf, int len, unsigned int gup_flags);
/linux/net/xdp/
H A Dxdp_umem.c96 unsigned int gup_flags = FOLL_WRITE; in xdp_umem_pin_pages() local
107 gup_flags | FOLL_LONGTERM, &umem->pgs[0]); in xdp_umem_pin_pages()
/linux/lib/
H A Diov_iter.c1067 unsigned int n, gup_flags = 0; in __iov_iter_get_pages_alloc() local
1081 gup_flags |= FOLL_WRITE; in __iov_iter_get_pages_alloc()
1083 gup_flags |= FOLL_NOFAULT; in __iov_iter_get_pages_alloc()
1091 res = get_user_pages_fast(addr, n, gup_flags, *pages); in __iov_iter_get_pages_alloc()
1746 unsigned int gup_flags = 0; in iov_iter_extract_user_pages() local
1751 gup_flags |= FOLL_WRITE; in iov_iter_extract_user_pages()
1753 gup_flags |= FOLL_PCI_P2PDMA; in iov_iter_extract_user_pages()
1755 gup_flags |= FOLL_NOFAULT; in iov_iter_extract_user_pages()
1763 res = pin_user_pages_fast(addr, maxpages, gup_flags, *pages); in iov_iter_extract_user_pages()
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_uiom.c88 unsigned int gup_flags = FOLL_LONGTERM; in usnic_uiom_get_pages() local
135 gup_flags |= FOLL_WRITE; in usnic_uiom_get_pages()
143 gup_flags, page_list); in usnic_uiom_get_pages()
/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem.c671 unsigned int gup_flags = FOLL_LONGTERM; in etnaviv_gem_userptr_get_pages() local
683 gup_flags |= FOLL_WRITE; in etnaviv_gem_userptr_get_pages()
690 ret = pin_user_pages_fast(ptr, num_pages, gup_flags, pages); in etnaviv_gem_userptr_get_pages()
/linux/net/rds/
H A Drdma.c157 unsigned int gup_flags = FOLL_LONGTERM; in rds_pin_pages() local
161 gup_flags |= FOLL_WRITE; in rds_pin_pages()
163 ret = pin_user_pages_fast(user_addr, nr_pages, gup_flags, pages); in rds_pin_pages()
/linux/drivers/iommu/iommufd/
H A Dpages.c773 unsigned int gup_flags; member
796 user->gup_flags = FOLL_LONGTERM; in pfn_reader_user_init()
798 user->gup_flags |= FOLL_WRITE; in pfn_reader_user_init()
932 rc = pin_user_pages_fast(uptr, npages, user->gup_flags, in pfn_reader_user_pin()
941 user->gup_flags, user->upages, in pfn_reader_user_pin()
/linux/kernel/events/
H A Duprobes.c506 unsigned int gup_flags = FOLL_FORCE; in uprobe_write() local
526 gup_flags |= FOLL_WRITE | FOLL_SPLIT_PMD; in uprobe_write()
529 ret = get_user_pages_remote(mm, vaddr, 1, gup_flags, &page, NULL); in uprobe_write()
583 gup_flags |= FOLL_WRITE | FOLL_SPLIT_PMD; in uprobe_write()
/linux/drivers/vhost/
H A Dvdpa.c1102 unsigned int gup_flags = FOLL_LONGTERM; in vhost_vdpa_pa_map() local
1115 gup_flags |= FOLL_WRITE; in vhost_vdpa_pa_map()
1138 gup_flags, page_list); in vhost_vdpa_pa_map()
/linux/arch/x86/kernel/
H A Duprobes.c1035 unsigned int gup_flags = FOLL_FORCE|FOLL_SPLIT_PMD; in copy_from_vaddr() local
1039 page = get_user_page_vma_remote(mm, vaddr, gup_flags, &vma); in copy_from_vaddr()