| /linux/mm/ |
| H A D | gup.c | 1031 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 & FOLL_ANON) && !vma_anon) in check_vma_flags() [all …]
|
| H A D | gup_test.c | 139 nr = get_user_pages_fast(addr, nr, gup->gup_flags, in __gup_test_ioctl() 143 nr = get_user_pages(addr, nr, gup->gup_flags, pages + i); in __gup_test_ioctl() 146 nr = pin_user_pages_fast(addr, nr, gup->gup_flags, in __gup_test_ioctl() 150 nr = pin_user_pages(addr, nr, gup->gup_flags, pages + i); in __gup_test_ioctl() 154 gup->gup_flags | FOLL_LONGTERM, in __gup_test_ioctl() 159 nr = pin_user_pages(addr, nr, gup->gup_flags, in __gup_test_ioctl() 162 nr = get_user_pages(addr, nr, gup->gup_flags, in __gup_test_ioctl() 225 int gup_flags = FOLL_LONGTERM; in pin_longterm_test_start() local 253 gup_flags |= FOLL_WRITE; in pin_longterm_test_start() 270 gup_flags, pages); in pin_longterm_test_start() [all …]
|
| H A D | gup_test.h | 27 __u32 gup_flags; member
|
| H A D | nommu.c | 1642 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 D | memory.c | 6903 void *buf, int len, unsigned int gup_flags) in __access_remote_vm() argument 6906 int write = gup_flags & FOLL_WRITE; in __access_remote_vm() 6925 gup_flags, &vma); in __access_remote_vm() 6993 void *buf, int len, unsigned int gup_flags) in access_remote_vm() argument 6995 return __access_remote_vm(mm, addr, buf, len, gup_flags); in access_remote_vm() 7004 void *buf, int len, unsigned int gup_flags) in access_process_vm() argument 7013 ret = __access_remote_vm(mm, addr, buf, len, gup_flags); in access_process_vm() 7027 void *buf, int len, unsigned int gup_flags) in __copy_remote_vm_str() argument 7052 page = get_user_page_vma_remote(mm, addr, gup_flags, &vma); in __copy_remote_vm_str() 7118 void *buf, int len, unsigned int gup_flags) in copy_remote_vm_str() argument [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | mte.c | 438 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 D | frame_vector.c | 44 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 D | user_pages.c | 84 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/infiniband/core/ |
| H A D | umem.c | 176 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 D | gup_test.c | 128 gup.gup_flags = strtol(optarg, 0, 0); in main() 210 gup.gup_flags |= FOLL_WRITE; in main()
|
| H A D | hmm-tests.c | 1915 .gup_flags = FOLL_WRITE | flags, in gup_test_exec()
|
| /linux/include/linux/ |
| H A D | mm.h | 2725 void *buf, int len, unsigned int gup_flags); 2727 void *buf, int len, unsigned int gup_flags); 2731 void *buf, int len, unsigned int gup_flags); 2736 unsigned int gup_flags, struct page **pages, 2740 unsigned int gup_flags, struct page **pages, 2748 int gup_flags, in get_user_page_vma_remote() argument 2755 if (WARN_ON_ONCE(unlikely(gup_flags & FOLL_NOWAIT))) in get_user_page_vma_remote() 2758 got = get_user_pages_remote(mm, addr, 1, gup_flags, &page, NULL); in get_user_page_vma_remote() 2774 unsigned int gup_flags, struct page **pages); 2776 unsigned int gup_flags, struct page **pages); [all …]
|
| H A D | ptrace.h | 21 void *buf, int len, unsigned int gup_flags);
|
| /linux/net/xdp/ |
| H A D | xdp_umem.c | 96 unsigned int gup_flags = FOLL_WRITE; in xdp_umem_pin_pages() local 106 gup_flags | FOLL_LONGTERM, &umem->pgs[0]); in xdp_umem_pin_pages()
|
| /linux/drivers/infiniband/hw/usnic/ |
| H A D | usnic_uiom.c | 88 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/net/rds/ |
| H A D | rdma.c | 157 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 D | pages.c | 772 unsigned int gup_flags; member 795 user->gup_flags = FOLL_LONGTERM; in pfn_reader_user_init() 797 user->gup_flags |= FOLL_WRITE; in pfn_reader_user_init() 931 rc = pin_user_pages_fast(uptr, npages, user->gup_flags, in pfn_reader_user_pin() 940 user->gup_flags, user->upages, in pfn_reader_user_pin()
|
| /linux/kernel/events/ |
| H A D | uprobes.c | 506 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()
|