Home
last modified time | relevance | path

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

1234567

/linux-6.6.21/rust/kernel/init/
Dmacros.rs569 @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 …]
/linux-6.6.21/drivers/infiniband/core/
Dumem.c153 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()
/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_xdp_veth.sh106 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
Dtest_flow_dissector.sh30 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 \
/linux-6.6.21/drivers/infiniband/hw/hfi1/
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()
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-6.6.21/include/trace/events/
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-6.6.21/drivers/fpga/
Ddfl-afu-dma-region.c39 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()
/linux-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_userptr.c269 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()
/linux-6.6.21/tools/bpf/bpftool/Documentation/
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* }
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 …]
/linux-6.6.21/drivers/gpu/drm/i915/gt/
Dintel_gt_buffer_pool.c107 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()
/linux-6.6.21/drivers/virt/acrn/
Dmm.c163 int ret, pinned; in acrn_vm_ram_map() local
200 pinned = pin_user_pages_fast(memmap->vma_base, in acrn_vm_ram_map()
203 if (pinned < 0) { in acrn_vm_ram_map()
204 ret = pinned; in acrn_vm_ram_map()
206 } else if (pinned != nr_pages) { in acrn_vm_ram_map()
304 for (i = 0; i < pinned; i++) in acrn_vm_ram_map()
/linux-6.6.21/tools/bpf/bpftool/bash-completion/
Dbpftool285 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 …]
/linux-6.6.21/Documentation/core-api/
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
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 …]
/linux-6.6.21/arch/powerpc/mm/book3s64/
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-6.6.21/arch/arm64/mm/
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-6.6.21/drivers/s390/cio/
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-6.6.21/Documentation/powerpc/
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-6.6.21/Documentation/infiniband/
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-6.6.21/drivers/gpu/drm/etnaviv/
Detnaviv_gem.c645 int ret, pinned = 0, npages = etnaviv_obj->base.size >> PAGE_SHIFT; in etnaviv_gem_userptr_get_pages() local
661 unsigned num_pages = npages - pinned; in etnaviv_gem_userptr_get_pages()
662 uint64_t ptr = userptr->ptr + pinned * PAGE_SIZE; in etnaviv_gem_userptr_get_pages()
663 struct page **pages = pvec + pinned; in etnaviv_gem_userptr_get_pages()
667 unpin_user_pages(pvec, pinned); in etnaviv_gem_userptr_get_pages()
672 pinned += ret; in etnaviv_gem_userptr_get_pages()
674 } while (pinned < npages); in etnaviv_gem_userptr_get_pages()
/linux-6.6.21/Documentation/devicetree/bindings/iio/light/
Dti,opt4001.yaml15 Picostar is a 4 pinned SMT and sot-5x3 is a 8 pinned SOT.
/linux-6.6.21/samples/bpf/
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
/linux-6.6.21/drivers/vhost/
Dvdpa.c814 unsigned long pfn, pinned; in vhost_vdpa_pa_unmap() local
817 pinned = PFN_DOWN(map->size); in vhost_vdpa_pa_unmap()
819 pinned > 0; pfn++, pinned--) { in vhost_vdpa_pa_unmap()
993 long pinned; in vhost_vdpa_pa_map() local
1024 pinned = pin_user_pages(cur_base, sz2pin, in vhost_vdpa_pa_map()
1026 if (sz2pin != pinned) { in vhost_vdpa_pa_map()
1027 if (pinned < 0) { in vhost_vdpa_pa_map()
1028 ret = pinned; in vhost_vdpa_pa_map()
1030 unpin_user_pages(page_list, pinned); in vhost_vdpa_pa_map()
1040 for (i = 0; i < pinned; i++) { in vhost_vdpa_pa_map()
[all …]
/linux-6.6.21/security/loadpin/
DKconfig8 can be pinned to the first filesystem used for loading. When
35 parameter. The file must be located on the pinned root and
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_ttm.c335 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()

1234567