/openbmc/linux/rust/kernel/init/ |
H A D | macros.rs | 569 @pinned(), 591 @pinned($($pinned:tt)*), 612 @pinned($($pinned)* $($accum)* $field: ::core::marker::PhantomPinned,), 629 @pinned($($pinned:tt)*), 645 @pinned($($pinned)* $($accum)* $field: $type,), 662 @pinned($($pinned:tt)*), 678 @pinned($($pinned)*), 695 @pinned($($pinned:tt)*), 712 @pinned($($pinned)*), 731 @pinned($($pinned:tt)*), [all …]
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | umem.c | 153 int pinned, ret; in ib_umem_get() local 213 pinned = pin_user_pages_fast(cur_base, in ib_umem_get() 218 if (pinned < 0) { in ib_umem_get() 219 ret = pinned; in ib_umem_get() 223 cur_base += pinned * PAGE_SIZE; in ib_umem_get() 224 npages -= pinned; in ib_umem_get() 226 &umem->sgt_append, page_list, pinned, 0, in ib_umem_get() 227 pinned << PAGE_SHIFT, ib_dma_max_seg_size(device), in ib_umem_get() 230 unpin_user_pages_dirty_lock(page_list, pinned, 0); in ib_umem_get()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_xdp_veth.sh | 106 bpftool map update pinned $BPF_DIR/maps/tx_port key 0 0 0 0 value 122 0 0 0 107 bpftool map update pinned $BPF_DIR/maps/tx_port key 1 0 0 0 value 133 0 0 0 108 bpftool map update pinned $BPF_DIR/maps/tx_port key 2 0 0 0 value 111 0 0 0 109 ip link set dev veth1 xdp pinned $BPF_DIR/progs/xdp_redirect_map_0 110 ip link set dev veth2 xdp pinned $BPF_DIR/progs/xdp_redirect_map_1 111 ip link set dev veth3 xdp pinned $BPF_DIR/progs/xdp_redirect_map_2
|
H A D | test_flow_dissector.sh | 30 if ! unshare --net $bpftool prog attach pinned \ 36 $bpftool prog attach pinned /sys/fs/bpf/flow/_dissect \ 39 if unshare --net $bpftool prog attach pinned \ 45 if ! $bpftool prog detach pinned \
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | pin_system.c | 119 int pinned, cleared; in pin_system_pages() local 138 pinned = hfi1_acquire_user_pages(current->mm, start_address, npages, 0, in pin_system_pages() 141 if (pinned < 0) { in pin_system_pages() 143 SDMA_DBG(req, "pinned %d", pinned); in pin_system_pages() 144 return pinned; in pin_system_pages() 146 if (pinned != npages) { in pin_system_pages() 147 unpin_vector_pages(current->mm, pages, node->npages, pinned); in pin_system_pages() 148 SDMA_DBG(req, "npages %u pinned %d", npages, pinned); in pin_system_pages() 155 atomic_add(pinned, &pq->n_locked); in pin_system_pages() 156 SDMA_DBG(req, "done. pinned %d", pinned); in pin_system_pages()
|
H A D | user_exp_rcv.c | 161 int pinned; in pin_rcv_pages() local 187 pinned = hfi1_acquire_user_pages(current->mm, vaddr, npages, true, pages); in pin_rcv_pages() 188 if (pinned <= 0) { in pin_rcv_pages() 190 return pinned; in pin_rcv_pages() 193 fd->tid_n_pinned += pinned; in pin_rcv_pages() 194 return pinned; in pin_rcv_pages() 249 int ret = 0, need_group = 0, pinned; in hfi1_user_exp_rcv_setup() local 288 pinned = pin_rcv_pages(fd, tidbuf); in hfi1_user_exp_rcv_setup() 289 if (pinned <= 0) { in hfi1_user_exp_rcv_setup() 290 ret = (pinned < 0) ? pinned : -ENOSPC; in hfi1_user_exp_rcv_setup() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | xen.h | 287 TP_PROTO(struct mm_struct *mm, unsigned long pfn, unsigned level, bool pinned), 288 TP_ARGS(mm, pfn, level, pinned), 293 __field(bool, pinned) 298 __entry->pinned = pinned), 301 __entry->pinned ? "" : "un") 305 TP_PROTO(unsigned long pfn, unsigned level, bool pinned), 306 TP_ARGS(pfn, level, pinned), 310 __field(bool, pinned) 314 __entry->pinned = pinned), 317 __entry->pinned ? "" : "un")
|
/openbmc/linux/drivers/fpga/ |
H A D | dfl-afu-dma-region.c | 39 int ret, pinned; in afu_dma_pin_pages() local 51 pinned = pin_user_pages_fast(region->user_addr, npages, FOLL_WRITE, in afu_dma_pin_pages() 53 if (pinned < 0) { in afu_dma_pin_pages() 54 ret = pinned; in afu_dma_pin_pages() 56 } else if (pinned != npages) { in afu_dma_pin_pages() 61 dev_dbg(dev, "%d pages pinned\n", pinned); in afu_dma_pin_pages() 66 unpin_user_pages(region->pages, pinned); in afu_dma_pin_pages()
|
/openbmc/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_userptr.c | 269 int pinned, ret; in i915_gem_object_userptr_submit_init() local 297 pinned = 0; in i915_gem_object_userptr_submit_init() 298 while (pinned < num_pages) { in i915_gem_object_userptr_submit_init() 299 ret = pin_user_pages_fast(obj->userptr.ptr + pinned * PAGE_SIZE, in i915_gem_object_userptr_submit_init() 300 num_pages - pinned, gup_flags, in i915_gem_object_userptr_submit_init() 301 &pvec[pinned]); in i915_gem_object_userptr_submit_init() 305 pinned += ret; in i915_gem_object_userptr_submit_init() 333 unpin_user_pages(pvec, pinned); in i915_gem_object_userptr_submit_init()
|
/openbmc/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-map.rst | 47 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* | **name** *MAP_NAME* } 49 | *PROG* := { **id** *PROG_ID* | **pinned** *FILE* | **tag** *PROG_TAG* | **name** *PROG_NAME* } 172 Show file names of pinned maps. 222 | **# bpftool map del pinned /sys/fs/bpf/map key 13 00 07 00** 230 processing. Note that the prog array map MUST be pinned into the BPF virtual 244 pinned /sys/fs/bpf/foo/xdp 248 pinned /sys/fs/bpf/foo/process 252 pinned /sys/fs/bpf/foo/debug 264 | **# bpftool map dump pinned /sys/fs/bpf/bar** 271 | **# bpftool map update pinned /sys/fs/bpf/bar key 0 0 0 0 value pinned /sys/fs/bpf/foo/debug** [all …]
|
/openbmc/linux/drivers/virt/acrn/ |
H A D | mm.c | 163 int ret, pinned; in acrn_vm_ram_map() local 240 pinned = pin_user_pages_fast(memmap->vma_base, in acrn_vm_ram_map() 243 if (pinned < 0) { in acrn_vm_ram_map() 244 ret = pinned; in acrn_vm_ram_map() 246 } else if (pinned != nr_pages) { in acrn_vm_ram_map() 341 for (i = 0; i < pinned; i++) in acrn_vm_ram_map()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs/ |
H A D | 0001-liftoff-Correct-function-signatures.patch | 49 pinned.set(dst_op.rm()); 56 pinned.set(tmp); 62 pinned.set(dst_op.rm()); 63 LiftoffRegister tmp = GetUnusedRegister(src.reg_class(), pinned); 69 pinned.set(tmp);
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_buffer_pool.c | 107 if (node->pinned) { in pool_retire() 112 node->pinned = false; in pool_retire() 129 if (node->pinned) in intel_gt_buffer_pool_mark_used() 135 node->pinned = true; in intel_gt_buffer_pool_mark_used() 153 node->pinned = false; in node_create()
|
/openbmc/linux/tools/bpf/bpftool/bash-completion/ |
H A D | bpftool | 285 file|pinned|-B|--base-btf) 349 local PROG_TYPE='id pinned tag name' 350 local MAP_TYPE='id pinned name' 409 pinned) 434 pinned) 460 COMPREPLY=( $( compgen -W "id pinned" -- "$cur" ) ) 505 pinned|pinmaps) 534 pinned) 638 pinned) 655 local MAP_TYPE='id pinned name' [all …]
|
/openbmc/linux/Documentation/core-api/ |
H A D | pin_user_pages.rst | 35 In other words, use pin_user_pages*() for DMA-pinned pages, and 89 Tracking dma-pinned pages 92 Some of the key design constraints, and solutions, for tracking dma-pinned 98 * False positives (reporting that a page is dma-pinned, when in fact it is not) 105 the upper bits in that field for a dma-pinned count. "Sort of", means that, 109 on it 1024 times, then it will appear to have a single dma-pinned count. 121 * Callers must specifically request "dma-pinned tracking of pages". In other 152 NOTE: Some pages, such as DAX pages, cannot be pinned with longterm pins. That's 200 The whole point of marking pages as "DMA-pinned" or "gup-pinned" is to be able 201 to query, "is this page DMA-pinned?" That allows code such as page_mkclean() [all …]
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A D | iommu_api.c | 61 long i, ret, locked_entries = 0, pinned = 0; in mm_iommu_do_alloc() local 110 pinned += n; in mm_iommu_do_alloc() 114 pinned += ret; in mm_iommu_do_alloc() 118 if (pinned != entries) { in mm_iommu_do_alloc() 175 unpin_user_pages(mem->hpages, pinned); in mm_iommu_do_alloc()
|
/openbmc/linux/drivers/s390/cio/ |
H A D | vfio_ccw_cp.c | 133 int pinned = 0, npage = 1; in page_array_pin() local 136 while (pinned < pa->pa_nr) { in page_array_pin() 137 dma_addr_t *first = &pa->pa_iova[pinned]; in page_array_pin() 140 if (pinned + npage < pa->pa_nr && in page_array_pin() 149 &pa->pa_page[pinned]); in page_array_pin() 153 pinned += ret; in page_array_pin() 157 pinned += npage; in page_array_pin() 164 page_array_unpin(pa, vdev, pinned, unaligned); in page_array_pin()
|
/openbmc/linux/arch/arm64/mm/ |
H A D | context.c | 179 if (refcount_read(&mm->context.pinned)) in new_context() 285 if (refcount_inc_not_zero(&mm->context.pinned)) in arm64_mm_context_get() 304 refcount_set(&mm->context.pinned, 1); in arm64_mm_context_get() 329 if (refcount_dec_and_test(&mm->context.pinned)) { in arm64_mm_context_put()
|
/openbmc/linux/Documentation/powerpc/ |
H A D | pmu-ebb.rst | 53 existing "pinned" and "exclusive" attributes of perf_events. This means EBB 54 events will be given priority over other events, unless they are also pinned. 55 If an EBB event and a regular event are both pinned, then whichever is enabled 70 An EBB event must be created with the "pinned" and "exclusive" attributes set. 100 This behaviour occurs because the EBB event is pinned and exclusive. When the 101 EBB event is enabled it will force all other non-pinned events off the PMU. In 103 pinned on the PMU then the enable will not be successful.
|
/openbmc/linux/Documentation/infiniband/ |
H A D | user_verbs.rst | 54 amount of memory pinned in the process's pinned_vm, and checks that 57 Pages that are pinned multiple times are counted each time they are 58 pinned, so the value of pinned_vm may be an overestimate of the 59 number of pages pinned by a process.
|
/openbmc/linux/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gem.c | 659 int ret, pinned = 0, npages = etnaviv_obj->base.size >> PAGE_SHIFT; in etnaviv_gem_userptr_get_pages() local 675 unsigned num_pages = npages - pinned; in etnaviv_gem_userptr_get_pages() 676 uint64_t ptr = userptr->ptr + pinned * PAGE_SIZE; in etnaviv_gem_userptr_get_pages() 677 struct page **pages = pvec + pinned; in etnaviv_gem_userptr_get_pages() 681 unpin_user_pages(pvec, pinned); in etnaviv_gem_userptr_get_pages() 686 pinned += ret; in etnaviv_gem_userptr_get_pages() 688 } while (pinned < npages); in etnaviv_gem_userptr_get_pages()
|
/openbmc/linux/samples/bpf/ |
H A D | tcp_bpf.readme | 15 bpftool cgroup attach /tmp/cgroupv2/foo sock_ops pinned /sys/fs/bpf/tcp_prog 28 bpftool cgroup detach /tmp/cgroupv2/foo sock_ops pinned /sys/fs/bpf/tcp_prog
|
/openbmc/linux/drivers/vhost/ |
H A D | vdpa.c | 823 unsigned long pfn, pinned; in vhost_vdpa_pa_unmap() local 826 pinned = PFN_DOWN(map->size); in vhost_vdpa_pa_unmap() 828 pinned > 0; pfn++, pinned--) { in vhost_vdpa_pa_unmap() 1002 long pinned; in vhost_vdpa_pa_map() local 1033 pinned = pin_user_pages(cur_base, sz2pin, in vhost_vdpa_pa_map() 1035 if (sz2pin != pinned) { in vhost_vdpa_pa_map() 1036 if (pinned < 0) { in vhost_vdpa_pa_map() 1037 ret = pinned; in vhost_vdpa_pa_map() 1039 unpin_user_pages(page_list, pinned); in vhost_vdpa_pa_map() 1049 for (i = 0; i < pinned; i++) { in vhost_vdpa_pa_map() [all …]
|
/openbmc/linux/security/loadpin/ |
H A D | Kconfig | 8 can be pinned to the first filesystem used for loading. When 35 parameter. The file must be located on the pinned root and
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_ttm.c | 335 unsigned pinned = 0; in radeon_ttm_tt_pin_userptr() local 356 unsigned num_pages = ttm->num_pages - pinned; in radeon_ttm_tt_pin_userptr() 357 uint64_t userptr = gtt->userptr + pinned * PAGE_SIZE; in radeon_ttm_tt_pin_userptr() 358 struct page **pages = ttm->pages + pinned; in radeon_ttm_tt_pin_userptr() 365 pinned += r; in radeon_ttm_tt_pin_userptr() 367 } while (pinned < ttm->num_pages); in radeon_ttm_tt_pin_userptr() 388 release_pages(ttm->pages, pinned); in radeon_ttm_tt_pin_userptr()
|