Home
last modified time | relevance | path

Searched refs:FOLL_LONGTERM (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/Documentation/core-api/
H A Dpin_user_pages.rst21 FOLL_PIN and FOLL_LONGTERM are flags that can be passed to the get_user_pages*()
23 interdependencies with FOLL_LONGTERM, so both are covered here.
30 FOLL_LONGTERM, on the other hand, *is* allowed to be set at the gup call sites.
32 all combinations of get*(), pin*(), FOLL_LONGTERM, and more. Also, the
47 FOLL_PIN is a prerequisite to FOLL_LONGTERM. Another way of saying that is,
48 FOLL_LONGTERM is a specific case, more restrictive case of FOLL_PIN.
125 FOLL_PIN, FOLL_GET, FOLL_LONGTERM: when to use which flags
150 FOLL_PIN | FOLL_LONGTERM
214 Another way of thinking about FOLL_GET, FOLL_PIN, and FOLL_LONGTERM
221 a "more severe" form of pinning. And finally, FOLL_LONGTERM is an even more
/openbmc/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()
/openbmc/linux/mm/
H A Dgup.c157 if (unlikely((flags & FOLL_LONGTERM) && in try_grab_folio()
1019 if ((gup_flags & (FOLL_PIN | FOLL_LONGTERM)) != in writable_file_mapping_allowed()
1020 (FOLL_PIN | FOLL_LONGTERM)) in writable_file_mapping_allowed()
1043 if ((gup_flags & FOLL_LONGTERM) && vma_is_fsdax(vma)) in check_vma_flags()
2207 if (!(gup_flags & FOLL_LONGTERM)) in __gup_longterm_locked()
2270 if (WARN_ON_ONCE((gup_flags & FOLL_LONGTERM) && in is_valid_gup_args()
2478 if ((flags & (FOLL_PIN | FOLL_LONGTERM | FOLL_WRITE)) != in folio_fast_pin_allowed()
2479 (FOLL_PIN | FOLL_LONGTERM | FOLL_WRITE)) in folio_fast_pin_allowed()
2594 if (unlikely(flags & FOLL_LONGTERM)) in gup_pte_range()
2873 if (unlikely(flags & FOLL_LONGTERM)) in gup_huge_pmd()
[all …]
H A Dgup_test.c154 gup->gup_flags | FOLL_LONGTERM, in __gup_test_ioctl()
225 int gup_flags = FOLL_LONGTERM; in pin_longterm_test_start()
H A Dinternal.h1012 if (!(flags & FOLL_LONGTERM)) in gup_must_unshare()
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_user_pages.c113 FOLL_LONGTERM | FOLL_WRITE, in qib_get_user_pages()
/openbmc/linux/drivers/media/common/videobuf2/
H A Dframe_vector.c44 unsigned int gup_flags = FOLL_LONGTERM; in get_vaddr_frames()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_msg.c1074 nr_pinned_stat = pin_user_pages_fast(arg->stat, num_pages_stat, FOLL_LONGTERM, pages_stat); in vmw_mksstat_add_ioctl()
1081 nr_pinned_info = pin_user_pages_fast(arg->info, num_pages_info, FOLL_LONGTERM, pages_info); in vmw_mksstat_add_ioctl()
1088 nr_pinned_strs = pin_user_pages_fast(arg->strs, num_pages_strs, FOLL_LONGTERM, pages_strs); in vmw_mksstat_add_ioctl()
/openbmc/linux/net/xdp/
H A Dxdp_umem.c106 gup_flags | FOLL_LONGTERM, &umem->pgs[0]); in xdp_umem_pin_pages()
/openbmc/linux/drivers/infiniband/core/
H A Dumem.c154 unsigned int gup_flags = FOLL_LONGTERM; in ib_umem_get()
/openbmc/linux/arch/s390/kvm/
H A Dpci.c253 npages = pin_user_pages_fast(hva, 1, FOLL_WRITE | FOLL_LONGTERM, pages); in kvm_s390_pci_aif_enable()
268 npages = pin_user_pages_fast(hva, 1, FOLL_WRITE | FOLL_LONGTERM, in kvm_s390_pci_aif_enable()
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Diommu_api.c107 FOLL_WRITE | FOLL_LONGTERM, in mm_iommu_do_alloc()
/openbmc/linux/drivers/virt/acrn/
H A Dmm.c241 nr_pages, FOLL_WRITE | FOLL_LONGTERM, in acrn_vm_ram_map()
H A Dhsm.c347 FOLL_WRITE | FOLL_LONGTERM, &page); in acrn_dev_ioctl()
H A Dioreq.c610 FOLL_WRITE | FOLL_LONGTERM, &page); in acrn_ioreq_init()
/openbmc/linux/drivers/infiniband/sw/siw/
H A Dsiw_mem.c371 unsigned int foll_flags = FOLL_LONGTERM; in siw_umem_get()
/openbmc/linux/drivers/infiniband/hw/usnic/
H A Dusnic_uiom.c88 unsigned int gup_flags = FOLL_LONGTERM; in usnic_uiom_get_pages()
/openbmc/linux/include/linux/
H A Dmm_types.h1355 FOLL_LONGTERM = 1 << 8, enumerator
/openbmc/linux/drivers/media/v4l2-core/
H A Dvideobuf-dma-sg.c154 unsigned int gup_flags = FOLL_LONGTERM; in videobuf_dma_init_user_locked()
/openbmc/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem.c646 unsigned int gup_flags = FOLL_LONGTERM; in etnaviv_gem_userptr_get_pages()
/openbmc/linux/tools/testing/selftests/mm/
H A Dhmm-tests.c65 #ifndef FOLL_LONGTERM
66 #define FOLL_LONGTERM 0x100 /* mapping lifetime is indefinite */ macro
1950 PIN_FAST_BENCHMARK, 1, self->page_size, FOLL_LONGTERM), 0); in TEST_F()
/openbmc/linux/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.c476 FOLL_WRITE | FOLL_LONGTERM, pages); in mthca_map_user_db()
/openbmc/linux/net/rds/
H A Drdma.c157 unsigned int gup_flags = FOLL_LONGTERM; in rds_pin_pages()
/openbmc/linux/io_uring/
H A Drsrc.c892 pret = pin_user_pages(ubuf, nr_pages, FOLL_WRITE | FOLL_LONGTERM, in io_pin_pages()
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_g2d.c480 FOLL_WRITE | FOLL_LONGTERM, in g2d_userptr_get_dma_addr()

12