| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_bo_evict.c | 24 spin_lock(&xe->pinned.lock); in xe_bo_apply_to_pinned() 32 spin_unlock(&xe->pinned.lock); in xe_bo_apply_to_pinned() 36 spin_lock(&xe->pinned.lock); in xe_bo_apply_to_pinned() 44 spin_unlock(&xe->pinned.lock); in xe_bo_apply_to_pinned() 47 spin_lock(&xe->pinned.lock); in xe_bo_apply_to_pinned() 50 spin_unlock(&xe->pinned.lock); in xe_bo_apply_to_pinned() 68 ret = xe_bo_apply_to_pinned(xe, &xe->pinned.early.kernel_bo_present, in xe_bo_notifier_prepare_all_pinned() 69 &xe->pinned.early.kernel_bo_present, in xe_bo_notifier_prepare_all_pinned() 72 ret = xe_bo_apply_to_pinned(xe, &xe->pinned.late.kernel_bo_present, in xe_bo_notifier_prepare_all_pinned() 73 &xe->pinned.late.kernel_bo_present, in xe_bo_notifier_prepare_all_pinned() [all …]
|
| /linux/rust/pin-init/src/ |
| H A D | macros.rs | 581 @pinned(), 604 @pinned($($pinned:tt)*), 626 @pinned($($pinned)* $($accum)* $field: ::core::marker::PhantomPinned,), 644 @pinned($($pinned:tt)*), 661 @pinned($($pinned)* $($accum)* $field: $type,), 679 @pinned($($pinned:tt)*), 696 @pinned($($pinned)*), 714 @pinned($($pinned:tt)*), 732 @pinned($($pinned)*), 752 @pinned($($pinned:tt)*), [all …]
|
| /linux/drivers/infiniband/core/ |
| H A D | umem.c | 175 int pinned, ret; in ib_umem_get() local 235 pinned = pin_user_pages_fast(cur_base, in ib_umem_get() 240 if (pinned < 0) { in ib_umem_get() 241 ret = pinned; in ib_umem_get() 245 cur_base += pinned * PAGE_SIZE; in ib_umem_get() 246 npages -= pinned; in ib_umem_get() 248 &umem->sgt_append, page_list, pinned, 0, in ib_umem_get() 249 pinned << PAGE_SHIFT, ib_dma_max_seg_size(device), in ib_umem_get() 252 unpin_user_pages_dirty_lock(page_list, pinned, 0); in ib_umem_get()
|
| H A D | umem_dmabuf.c | 220 umem_dmabuf->pinned = 1; in ib_umem_dmabuf_get_pinned_with_dma_device() 256 if (umem_dmabuf->pinned) { in ib_umem_dmabuf_revoke() 258 umem_dmabuf->pinned = 0; in ib_umem_dmabuf_revoke()
|
| /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 …]
|
| /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")
|
| /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* } 167 Show file names of pinned maps. 217 | **# bpftool map del pinned /sys/fs/bpf/map key 13 00 07 00** 225 processing. Note that the prog array map MUST be pinned into the BPF virtual 239 pinned /sys/fs/bpf/foo/xdp 243 pinned /sys/fs/bpf/foo/process 247 pinned /sys/fs/bpf/foo/debug 259 | **# bpftool map dump pinned /sys/fs/bpf/bar** 266 | **# bpftool map update pinned /sy [all...] |
| H A D | bpftool-link.rst | 31 | *LINK* := { **id** *LINK_ID* | **pinned** *FILE* } 68 When showing BPF links, show file names of pinned links.
|
| H A D | bpftool-btf.rst | 32 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* } 33 | *PROG* := { **id** *PROG_ID* | **pinned** *FILE* | **tag** *PROG_TAG* | **name** *PROG_NAME* } 232 **# bpftool btf dump map pinned /sys/fs/bpf/map_name** 238 **# bpftool btf dump prog pinned /sys/fs/bpf/prog_name**
|
| H A D | bpftool-prog.rst | 43 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* | **name** *MAP_NAME* } 44 | *PROG* := { **id** *PROG_ID* | **pinned** *FILE* | **tag** *PROG_TAG* | **name** *PROG_NAME* } 141 map to use, referring to it by **id** or through a **pinned** file. If 150 pinned, not the program as such, so the path won't show in **bpftool prog 230 When showing BPF programs, show file names of pinned programs. 330 **# bpftool prog dump jited pinned /sys/fs/bpf/prog opcodes** 347 | **# bpftool prog show pinned /sys/fs/bpf/xdp1**
|
| /linux/rust/pin-init/ |
| H A D | README.md | 11 > This crate was originally named [`pinned-init`], but the migration to 13 > version of the `pinned-init` crate & the `main` branch already incorporates 19 [`pinned-init`]: https://crates.io/crates/pinned-init 23 Library to safely and fallibly initialize pinned `struct`s using in-place constructors. 38 <https://rust-for-linux.com/the-safe-pinned-initialization-problem>. 55 ### Nightly needed for `unsafe-pinned` feature 73 Aside from pinned initialization, this library also supports in-place construction without 74 pinning, the macros/types/functions are generally named like the pinned variants without the 82 requires it to be pinned to be locked and thus is a prime candidate for using this library. 88 [structurally pinned fields]. After doing this, you can then create an in-place constructor via [all …]
|
| /linux/drivers/virt/acrn/ |
| H A D | mm.c | 164 int ret, pinned; in acrn_vm_ram_map() local 242 pinned = pin_user_pages_fast(memmap->vma_base, in acrn_vm_ram_map() 245 if (pinned < 0) { in acrn_vm_ram_map() 246 ret = pinned; in acrn_vm_ram_map() 248 } else if (pinned != nr_pages) { in acrn_vm_ram_map() 343 for (i = 0; i < pinned; i++) in acrn_vm_ram_map()
|
| /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 202 The whole point of marking folios as "DMA-pinned" or "gup-pinned" is to be able 203 to query, "is this folio DMA-pinned?" That allows code such as folio_mkclean() [all …]
|
| /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()
|
| /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()
|
| /linux/Documentation/arch/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.
|
| /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.
|
| /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()
|
| /linux/security/ |
| H A D | inode.c | 117 bool pinned = false; in securityfs_create_dentry() local 128 pinned = true; in securityfs_create_dentry() 165 if (pinned) in securityfs_create_dentry()
|
| /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
|
| H A D | run_cookie_uid_helper_example.sh | 8 iptables -D OUTPUT -m bpf --object-pinned ${mnt_dir}/bpf_prog -j ACCEPT
|
| /linux/kernel/ |
| H A D | watchdog_perf.c | 92 .pinned = 1, 100 .pinned = 1,
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_gt_buffer_pool_types.h | 33 u32 pinned; member
|
| H A D | intel_gt_buffer_pool.h | 28 GEM_WARN_ON(!node->pinned); in intel_gt_buffer_pool_mark_active()
|