Home
last modified time | relevance | path

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

/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/tools/testing/selftests/mm/
H A Dgup_test.c130 gup.gup_flags = strtol(optarg, 0, 0); in main()
225 gup.gup_flags |= FOLL_WRITE; in main()
H A Dhmm-tests.c1768 .gup_flags = FOLL_WRITE | flags, in TEST_F()
/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/mm/
H A Dgup_test.h27 __u32 gup_flags; member
H A Dmemory.c7149 void *buf, int len, unsigned int gup_flags) in __copy_remote_vm_str()
7152 int write = gup_flags & FOLL_WRITE; in __copy_remote_vm_str()
7171 gup_flags, &vma); in __copy_remote_vm_str()
7232 * @gup_flags: flags modifying lookup behaviour
7239 void *buf, int len, unsigned int gup_flags) in copy_remote_vm_str()
7241 return __access_remote_vm(mm, addr, buf, len, gup_flags); in copy_remote_vm_str()
7250 void *buf, int len, unsigned int gup_flags) in copy_remote_vm_str()
7259 ret = __access_remote_vm(mm, addr, buf, len, gup_flags);
7273 void *buf, int len, unsigned int gup_flags) in print_vma_addr()
7298 page = get_user_page_vma_remote(mm, addr, gup_flags,
7021 __access_remote_vm(struct mm_struct * mm,unsigned long addr,void * buf,int len,unsigned int gup_flags) __access_remote_vm() argument
7111 access_remote_vm(struct mm_struct * mm,unsigned long addr,void * buf,int len,unsigned int gup_flags) access_remote_vm() argument
7122 access_process_vm(struct task_struct * tsk,unsigned long addr,void * buf,int len,unsigned int gup_flags) access_process_vm() argument
7145 __copy_remote_vm_str(struct mm_struct * mm,unsigned long addr,void * buf,int len,unsigned int gup_flags) __copy_remote_vm_str() argument
7236 copy_remote_vm_str(struct task_struct * tsk,unsigned long addr,void * buf,int len,unsigned int gup_flags) copy_remote_vm_str() argument
[all...]
/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()
1758 unsigned int gup_flags = 0; in iov_iter_extract_user_pages() local
1764 gup_flags |= FOLL_WRITE; in iov_iter_extract_user_pages()
1766 gup_flags |= FOLL_PCI_P2PDMA; in iov_iter_extract_user_pages()
1768 gup_flags |= FOLL_NOFAULT; in iov_iter_extract_user_pages()
1776 res = pin_user_pages_fast(addr, maxpages, gup_flags, *pages); in iov_iter_extract_user_pages()
/linux/net/rds/
H A Drdma.c158 unsigned int gup_flags = FOLL_LONGTERM; in rds_pin_pages() local
162 gup_flags |= FOLL_WRITE; in rds_pin_pages()
164 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/drivers/vhost/
H A Dvdpa.c1109 unsigned int gup_flags = FOLL_LONGTERM; in vhost_vdpa_pa_map() local
1123 gup_flags |= FOLL_WRITE; in vhost_vdpa_pa_map()
1152 gup_flags, page_list); in vhost_vdpa_pa_map()
/linux/kernel/events/
H A Duprobes.c508 unsigned int gup_flags = FOLL_FORCE; in uprobe_write()
528 gup_flags |= FOLL_WRITE | FOLL_SPLIT_PMD; in uprobe_write()
531 ret = get_user_pages_remote(mm, vaddr, 1, gup_flags, &page, NULL); in uprobe_write()
585 gup_flags |= FOLL_WRITE | FOLL_SPLIT_PMD; in uprobe_write()
506 unsigned int gup_flags = FOLL_FORCE; uprobe_write() local
/linux/arch/x86/kernel/
H A Duprobes.c1093 unsigned int gup_flags = FOLL_FORCE|FOLL_SPLIT_PMD; in copy_from_vaddr() local
1097 page = get_user_page_vma_remote(mm, vaddr, gup_flags, &vma); in copy_from_vaddr()