Home
last modified time | relevance | path

Searched refs:pinned (Results 1 – 25 of 109) sorted by relevance

12345

/linux/drivers/gpu/drm/xe/
H A Dxe_bo_evict.c24 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 Dmacros.rs581 @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 Dumem.c175 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 Dumem_dmabuf.c220 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 Dpin_system.c119 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 Duser_exp_rcv.c161 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 Dxen.h287 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 Dbpftool-map.rst47 | *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 Dbpftool-link.rst31 | *LINK* := { **id** *LINK_ID* | **pinned** *FILE* }
68 When showing BPF links, show file names of pinned links.
H A Dbpftool-btf.rst32 | *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 Dbpftool-prog.rst43 | *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 DREADME.md11 > 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 Dmm.c164 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 Dpin_user_pages.rst35 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 Diommu_api.c61 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 Dcontext.c179 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 Dpmu-ebb.rst53 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 Duser_verbs.rst54 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 Dvfio_ccw_cp.c133 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 Dinode.c117 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 Dtcp_bpf.readme15 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 Drun_cookie_uid_helper_example.sh8 iptables -D OUTPUT -m bpf --object-pinned ${mnt_dir}/bpf_prog -j ACCEPT
/linux/kernel/
H A Dwatchdog_perf.c92 .pinned = 1,
100 .pinned = 1,
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_gt_buffer_pool_types.h33 u32 pinned; member
H A Dintel_gt_buffer_pool.h28 GEM_WARN_ON(!node->pinned); in intel_gt_buffer_pool_mark_active()

12345