Home
last modified time | relevance | path

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

12345

/Linux-v5.10/drivers/gpu/drm/i915/gem/
Di915_gem_userptr.c448 unsigned long pinned; in __i915_gem_userptr_get_pages_worker() local
453 pinned = 0; in __i915_gem_userptr_get_pages_worker()
466 while (pinned < npages) { in __i915_gem_userptr_get_pages_worker()
473 obj->userptr.ptr + pinned * PAGE_SIZE, in __i915_gem_userptr_get_pages_worker()
474 npages - pinned, in __i915_gem_userptr_get_pages_worker()
476 pvec + pinned, NULL, &locked); in __i915_gem_userptr_get_pages_worker()
480 pinned += ret; in __i915_gem_userptr_get_pages_worker()
492 if (pinned == npages) { in __i915_gem_userptr_get_pages_worker()
496 pinned = 0; in __i915_gem_userptr_get_pages_worker()
507 unpin_user_pages(pvec, pinned); in __i915_gem_userptr_get_pages_worker()
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/
Dtest_xdp_veth.sh103 bpftool map update pinned $BPF_DIR/maps/tx_port key 0 0 0 0 value 122 0 0 0
104 bpftool map update pinned $BPF_DIR/maps/tx_port key 1 0 0 0 value 133 0 0 0
105 bpftool map update pinned $BPF_DIR/maps/tx_port key 2 0 0 0 value 111 0 0 0
106 ip link set dev veth1 xdp pinned $BPF_DIR/progs/redirect_map_0
107 ip link set dev veth2 xdp pinned $BPF_DIR/progs/redirect_map_1
108 ip link set dev veth3 xdp pinned $BPF_DIR/progs/redirect_map_2
Dtest_flow_dissector.sh28 if ! unshare --net $bpftool prog attach pinned \
34 $bpftool prog attach pinned /sys/fs/bpf/flow/flow_dissector \
37 if unshare --net $bpftool prog attach pinned \
43 if ! $bpftool prog detach pinned \
/Linux-v5.10/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-v5.10/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-v5.10/drivers/infiniband/hw/hfi1/
Duser_pages.c74 unsigned long ulimit = rlimit(RLIMIT_MEMLOCK), pinned, cache_limit, in hfi1_can_pin_pages() local
94 pinned = atomic64_read(&mm->pinned_vm); in hfi1_can_pin_pages()
97 if (pinned + npages >= ulimit && !can_lock) in hfi1_can_pin_pages()
Duser_exp_rcv.c197 int pinned; in pin_rcv_pages() local
228 pinned = hfi1_acquire_user_pages(current->mm, vaddr, npages, true, pages); in pin_rcv_pages()
229 if (pinned <= 0) { in pin_rcv_pages()
231 return pinned; in pin_rcv_pages()
235 fd->tid_n_pinned += pinned; in pin_rcv_pages()
236 return pinned; in pin_rcv_pages()
291 int ret = 0, need_group = 0, pinned; in hfi1_user_exp_rcv_setup() local
315 pinned = pin_rcv_pages(fd, tidbuf); in hfi1_user_exp_rcv_setup()
316 if (pinned <= 0) { in hfi1_user_exp_rcv_setup()
319 return pinned; in hfi1_user_exp_rcv_setup()
[all …]
Duser_sdma.c972 int pinned, cleared; in pin_sdma_pages() local
989 pinned = hfi1_acquire_user_pages(current->mm, in pin_sdma_pages()
993 if (pinned < 0) { in pin_sdma_pages()
995 return pinned; in pin_sdma_pages()
997 if (pinned != npages) { in pin_sdma_pages()
998 unpin_vector_pages(current->mm, pages, node->npages, pinned); in pin_sdma_pages()
1004 atomic_add(pinned, &pq->n_locked); in pin_sdma_pages()
1005 return pinned; in pin_sdma_pages()
1020 int ret = 0, pinned, npages; in pin_vector_pages() local
1056 pinned = pin_sdma_pages(req, iovec, node, npages); in pin_vector_pages()
[all …]
/Linux-v5.10/fs/btrfs/
Dinode-map.c219 struct btrfs_free_space_ctl *pinned = root->free_ino_pinned; in btrfs_return_ino() local
225 __btrfs_add_free_space(fs_info, pinned, objectid, 1, 0); in btrfs_return_ino()
238 __btrfs_add_free_space(fs_info, pinned, objectid, 1, 0); in btrfs_return_ino()
372 struct btrfs_free_space_ctl *pinned = root->free_ino_pinned; in btrfs_init_free_ino_ctl() local
389 spin_lock_init(&pinned->tree_lock); in btrfs_init_free_ino_ctl()
390 pinned->unit = 1; in btrfs_init_free_ino_ctl()
391 pinned->start = 0; in btrfs_init_free_ino_ctl()
392 pinned->private = NULL; in btrfs_init_free_ino_ctl()
393 pinned->extents_thresh = 0; in btrfs_init_free_ino_ctl()
394 pinned->op = &pinned_free_ino_op; in btrfs_init_free_ino_ctl()
/Linux-v5.10/tools/bpf/bpftool/Documentation/
Dbpftool-map.rst43 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* | **name** *MAP_NAME* }
45 | *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 /sys/fs/bpf/bar key 0 0 0 0 value pinned /sys/fs/bpf/foo/debug**
[all …]
Dbpftool-btf.rst28 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* }
29 | *PROG* := { **id** *PROG_ID* | **pinned** *FILE* | **tag** *PROG_TAG* }
213 **# bpftool btf dump map pinned /sys/fs/bpf/map_name**
219 **# bpftool btf dump prog pinned /sys/fs/bpf/prog_name**
Dbpftool-link.rst27 | *LINK* := { **id** *LINK_ID* | **pinned** *FILE* }
68 When showing BPF links, show file names of pinned
/Linux-v5.10/tools/bpf/bpftool/bash-completion/
Dbpftool281 file|pinned)
344 local PROG_TYPE='id pinned tag name'
345 local MAP_TYPE='id pinned name'
400 pinned)
423 pinned)
449 COMPREPLY=( $( compgen -W "id pinned" -- "$cur" ) )
494 pinned|pinmaps)
524 pinned)
628 pinned)
645 local MAP_TYPE='id pinned name'
[all …]
/Linux-v5.10/Documentation/core-api/
Dpin_user_pages.rst35 In other words, use pin_user_pages*() for DMA-pinned pages, and
90 Tracking dma-pinned pages
93 Some of the key design constraints, and solutions, for tracking dma-pinned
99 * False positives (reporting that a page is dma-pinned, when in fact it is not)
106 the upper bits in that field for a dma-pinned count. "Sort of", means that,
110 on it 1024 times, then it will appear to have a single dma-pinned count.
116 * Callers must specifically request "dma-pinned tracking of pages". In other
147 NOTE: Some pages, such as DAX pages, cannot be pinned with longterm pins. That's
195 The whole point of marking pages as "DMA-pinned" or "gup-pinned" is to be able
196 to query, "is this page DMA-pinned?" That allows code such as page_mkclean()
[all …]
/Linux-v5.10/drivers/vhost/
Dvdpa.c510 unsigned long pfn, pinned; in vhost_vdpa_iotlb_unmap() local
513 pinned = map->size >> PAGE_SHIFT; in vhost_vdpa_iotlb_unmap()
515 pinned > 0; pfn++, pinned--) { in vhost_vdpa_iotlb_unmap()
617 long pinned; in vhost_vdpa_process_iotlb_update() local
656 pinned = pin_user_pages(cur_base, sz2pin, in vhost_vdpa_process_iotlb_update()
658 if (sz2pin != pinned) { in vhost_vdpa_process_iotlb_update()
659 if (pinned < 0) { in vhost_vdpa_process_iotlb_update()
660 ret = pinned; in vhost_vdpa_process_iotlb_update()
662 unpin_user_pages(page_list, pinned); in vhost_vdpa_process_iotlb_update()
672 for (i = 0; i < pinned; i++) { in vhost_vdpa_process_iotlb_update()
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/drivers/gpu/drm/qxl/
Dqxl_object.c54 void qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain, bool pinned) in qxl_ttm_placement_from_domain() argument
60 if (pinned) in qxl_ttm_placement_from_domain()
107 unsigned long size, bool kernel, bool pinned, u32 domain, in qxl_bo_create() argument
131 bo->pin_count = pinned ? 1 : 0; in qxl_bo_create()
138 qxl_ttm_placement_from_domain(bo, domain, pinned); in qxl_bo_create()
Dqxl_object.h86 bool kernel, bool pinned, u32 domain,
97 extern void qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain, bool pinned);
/Linux-v5.10/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()
174 unpin_user_pages(mem->hpages, pinned); in mm_iommu_do_alloc()
/Linux-v5.10/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-v5.10/kernel/events/
Dhw_breakpoint.c64 unsigned int pinned; member
149 if (nr > slots->pinned) in fetch_bp_busy_slots()
150 slots->pinned = nr; in fetch_bp_busy_slots()
166 slots->pinned += weight; in fetch_this_slot()
304 if (slots.pinned + (!!slots.flexible) > nr_slots[type]) in __reserve_bp_slot()
/Linux-v5.10/drivers/gpu/drm/etnaviv/
Detnaviv_gem.c661 int ret, pinned = 0, npages = etnaviv_obj->base.size >> PAGE_SHIFT; in etnaviv_gem_userptr_get_pages() local
673 unsigned num_pages = npages - pinned; in etnaviv_gem_userptr_get_pages()
674 uint64_t ptr = userptr->ptr + pinned * PAGE_SIZE; in etnaviv_gem_userptr_get_pages()
675 struct page **pages = pvec + pinned; in etnaviv_gem_userptr_get_pages()
680 unpin_user_pages(pvec, pinned); in etnaviv_gem_userptr_get_pages()
685 pinned += ret; in etnaviv_gem_userptr_get_pages()
687 } while (pinned < npages); in etnaviv_gem_userptr_get_pages()
/Linux-v5.10/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
Drun_cookie_uid_helper_example.sh8 iptables -D OUTPUT -m bpf --object-pinned ${mnt_dir}/bpf_prog -j ACCEPT

12345