Home
last modified time | relevance | path

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

123456

/linux/drivers/infiniband/core/
A Dumem.c158 int pinned, ret; in ib_umem_get() local
218 pinned = pin_user_pages_fast(cur_base, in ib_umem_get()
223 if (pinned < 0) { in ib_umem_get()
224 ret = pinned; in ib_umem_get()
228 cur_base += pinned * PAGE_SIZE; in ib_umem_get()
229 npages -= pinned; in ib_umem_get()
231 &umem->sgt_append, page_list, pinned, 0, in ib_umem_get()
232 pinned << PAGE_SHIFT, ib_dma_max_seg_size(device), in ib_umem_get()
235 unpin_user_pages_dirty_lock(page_list, pinned, 0); in ib_umem_get()
/linux/tools/testing/selftests/bpf/
A 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
A Dtest_flow_dissector.sh28 if ! unshare --net $bpftool prog attach pinned \
34 $bpftool prog attach pinned /sys/fs/bpf/flow/_dissect \
37 if unshare --net $bpftool prog attach pinned \
43 if ! $bpftool prog detach pinned \
/linux/include/trace/events/
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/drivers/fpga/
A 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/drivers/gpu/drm/i915/gem/
A Di915_gem_userptr.c266 int pinned, ret; in i915_gem_object_userptr_submit_init() local
294 pinned = ret = 0; in i915_gem_object_userptr_submit_init()
295 while (pinned < num_pages) { in i915_gem_object_userptr_submit_init()
296 ret = pin_user_pages_fast(obj->userptr.ptr + pinned * PAGE_SIZE, in i915_gem_object_userptr_submit_init()
297 num_pages - pinned, gup_flags, in i915_gem_object_userptr_submit_init()
298 &pvec[pinned]); in i915_gem_object_userptr_submit_init()
302 pinned += ret; in i915_gem_object_userptr_submit_init()
331 unpin_user_pages(pvec, pinned); in i915_gem_object_userptr_submit_init()
/linux/tools/bpf/bpftool/Documentation/
A Dbpftool-map.rst44 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* | **name** *MAP_NAME* }
46 | *PROG* := { **id** *PROG_ID* | **pinned** *FILE* | **tag** *PROG_TAG* | **name** *PROG_NAME* }
169 Show file names of pinned maps.
219 | **# bpftool map del pinned /sys/fs/bpf/map key 13 00 07 00**
227 processing. Note that the prog array map MUST be pinned into the BPF virtual
241 pinned /sys/fs/bpf/foo/xdp
245 pinned /sys/fs/bpf/foo/process
249 pinned /sys/fs/bpf/foo/debug
261 | **# bpftool map dump pinned /sys/fs/bpf/bar**
268 | **# bpftool map update pinned /sys/fs/bpf/bar key 0 0 0 0 value pinned /sys/fs/bpf/foo/debug**
[all …]
/linux/drivers/infiniband/hw/hfi1/
A Duser_exp_rcv.c155 int pinned; in pin_rcv_pages() local
187 if (pinned <= 0) { in pin_rcv_pages()
189 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
273 pinned = pin_rcv_pages(fd, tidbuf); in hfi1_user_exp_rcv_setup()
274 if (pinned <= 0) { in hfi1_user_exp_rcv_setup()
277 return pinned; in hfi1_user_exp_rcv_setup()
426 if (mapped_pages != pinned) in hfi1_user_exp_rcv_setup()
[all …]
A Duser_pages.c32 unsigned long ulimit = rlimit(RLIMIT_MEMLOCK), pinned, cache_limit, in hfi1_can_pin_pages() local
52 pinned = atomic64_read(&mm->pinned_vm); in hfi1_can_pin_pages()
55 if (pinned + npages >= ulimit && !can_lock) in hfi1_can_pin_pages()
A Duser_sdma.c937 int pinned, cleared; in pin_sdma_pages() local
954 pinned = hfi1_acquire_user_pages(current->mm, in pin_sdma_pages()
958 if (pinned < 0) { in pin_sdma_pages()
960 return pinned; in pin_sdma_pages()
962 if (pinned != npages) { in pin_sdma_pages()
969 atomic_add(pinned, &pq->n_locked); in pin_sdma_pages()
970 return pinned; in pin_sdma_pages()
985 int ret = 0, pinned, npages; in pin_vector_pages() local
1022 if (pinned < 0) { in pin_vector_pages()
1023 ret = pinned; in pin_vector_pages()
[all …]
/linux/drivers/virt/acrn/
A Dmm.c163 int ret, pinned; in acrn_vm_ram_map() local
176 pinned = pin_user_pages_fast(memmap->vma_base, in acrn_vm_ram_map()
179 if (pinned < 0) { in acrn_vm_ram_map()
180 ret = pinned; in acrn_vm_ram_map()
182 } else if (pinned != nr_pages) { in acrn_vm_ram_map()
281 for (i = 0; i < pinned; i++) in acrn_vm_ram_map()
/linux/drivers/gpu/drm/i915/gt/
A Dintel_gt_buffer_pool.c109 if (node->pinned) { in pool_retire()
114 node->pinned = false; in pool_retire()
131 if (node->pinned) in intel_gt_buffer_pool_mark_used()
137 node->pinned = true; in intel_gt_buffer_pool_mark_used()
155 node->pinned = false; in node_create()
/linux/tools/bpf/bpftool/bash-completion/
A Dbpftool282 file|pinned|-B|--base-btf)
347 local MAP_TYPE='id pinned name'
403 pinned)
428 pinned)
499 pinned|pinmaps)
529 pinned)
633 pinned)
650 local MAP_TYPE='id pinned name'
905 local MAP_TYPE='id pinned name'
1111 pinned)
[all …]
/linux/Documentation/core-api/
A 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/drivers/vhost/
A Dvdpa.c512 unsigned long pfn, pinned; in vhost_vdpa_pa_unmap() local
515 pinned = PFN_DOWN(map->size); in vhost_vdpa_pa_unmap()
517 pinned > 0; pfn++, pinned--) { in vhost_vdpa_pa_unmap()
695 long pinned; in vhost_vdpa_pa_map() local
728 if (sz2pin != pinned) { in vhost_vdpa_pa_map()
729 if (pinned < 0) { in vhost_vdpa_pa_map()
730 ret = pinned; in vhost_vdpa_pa_map()
742 for (i = 0; i < pinned; i++) { in vhost_vdpa_pa_map()
762 pinned - i); in vhost_vdpa_pa_map()
774 cur_base += PFN_PHYS(pinned); in vhost_vdpa_pa_map()
[all …]
/linux/Documentation/powerpc/
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/arch/arm64/mm/
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/infiniband/
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/arch/powerpc/mm/book3s64/
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/kernel/events/
A 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/drivers/gpu/drm/etnaviv/
A Detnaviv_gem.c664 int ret, pinned = 0, npages = etnaviv_obj->base.size >> PAGE_SHIFT; in etnaviv_gem_userptr_get_pages() local
676 unsigned num_pages = npages - pinned; in etnaviv_gem_userptr_get_pages()
677 uint64_t ptr = userptr->ptr + pinned * PAGE_SIZE; in etnaviv_gem_userptr_get_pages()
678 struct page **pages = pvec + pinned; in etnaviv_gem_userptr_get_pages()
684 unpin_user_pages(pvec, pinned); in etnaviv_gem_userptr_get_pages()
689 pinned += ret; in etnaviv_gem_userptr_get_pages()
691 } while (pinned < npages); in etnaviv_gem_userptr_get_pages()
/linux/drivers/gpu/drm/ttm/
A Dttm_device.c223 INIT_LIST_HEAD(&bdev->pinned); in ttm_device_init()
269 while (!list_empty(&bdev->pinned)) { in ttm_device_clear_dma_mappings()
270 bo = list_first_entry(&bdev->pinned, struct ttm_buffer_object, lru); in ttm_device_clear_dma_mappings()
/linux/samples/bpf/
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
/linux/drivers/gpu/drm/i915/
A Di915_vma.c290 struct drm_i915_gem_object *pinned; member
309 if (vw->pinned) { in __vma_release()
310 __i915_gem_object_unpin_pages(vw->pinned); in __vma_release()
311 i915_gem_object_put(vw->pinned); in __vma_release()
428 work->pinned = i915_gem_object_get(vma->obj); in i915_vma_bind()
752 bool pinned = true; in try_qad_pin() local
778 pinned = false; in try_qad_pin()
783 pinned = false; in try_qad_pin()
789 return pinned; in try_qad_pin()
/linux/drivers/gpu/drm/radeon/
A Dradeon_ttm.c342 unsigned pinned = 0; in radeon_ttm_tt_pin_userptr() local
363 unsigned num_pages = ttm->num_pages - pinned; in radeon_ttm_tt_pin_userptr()
364 uint64_t userptr = gtt->userptr + pinned * PAGE_SIZE; in radeon_ttm_tt_pin_userptr()
365 struct page **pages = ttm->pages + pinned; in radeon_ttm_tt_pin_userptr()
372 pinned += r; in radeon_ttm_tt_pin_userptr()
374 } while (pinned < ttm->num_pages); in radeon_ttm_tt_pin_userptr()
395 release_pages(ttm->pages, pinned); in radeon_ttm_tt_pin_userptr()

Completed in 46 milliseconds

123456