Home
last modified time | relevance | path

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

/drivers/gpu/drm/i915/
Di915_gem_userptr.c505 int pinned, ret; in __i915_gem_userptr_get_pages_worker() local
508 pinned = 0; in __i915_gem_userptr_get_pages_worker()
521 while (pinned < npages) { in __i915_gem_userptr_get_pages_worker()
524 obj->userptr.ptr + pinned * PAGE_SIZE, in __i915_gem_userptr_get_pages_worker()
525 npages - pinned, in __i915_gem_userptr_get_pages_worker()
527 pvec + pinned, NULL, NULL); in __i915_gem_userptr_get_pages_worker()
531 pinned += ret; in __i915_gem_userptr_get_pages_worker()
542 if (pinned == npages) { in __i915_gem_userptr_get_pages_worker()
546 pinned = 0; in __i915_gem_userptr_get_pages_worker()
557 release_pages(pvec, pinned, 0); in __i915_gem_userptr_get_pages_worker()
[all …]
Di915_gem.c146 u64 pinned; in i915_gem_get_aperture_ioctl() local
148 pinned = ggtt->base.reserved; in i915_gem_get_aperture_ioctl()
152 pinned += vma->node.size; in i915_gem_get_aperture_ioctl()
155 pinned += vma->node.size; in i915_gem_get_aperture_ioctl()
159 args->aper_available_size = args->aper_size - pinned; in i915_gem_get_aperture_ioctl()
2580 bool pinned; in i915_gem_object_pin_map() local
2590 pinned = !(type & I915_MAP_OVERRIDE); in i915_gem_object_pin_map()
2602 pinned = false; in i915_gem_object_pin_map()
2608 if (pinned) { in i915_gem_object_pin_map()
/drivers/gpu/drm/etnaviv/
Detnaviv_gem.c754 int ret = 0, pinned, npages = etnaviv_obj->base.size >> PAGE_SHIFT; in etnaviv_gem_userptr_do_get_pages() local
766 pinned = 0; in etnaviv_gem_userptr_do_get_pages()
770 while (pinned < npages) { in etnaviv_gem_userptr_do_get_pages()
771 ret = get_user_pages_remote(task, mm, ptr, npages - pinned, in etnaviv_gem_userptr_do_get_pages()
772 flags, pvec + pinned, NULL, NULL); in etnaviv_gem_userptr_do_get_pages()
777 pinned += ret; in etnaviv_gem_userptr_do_get_pages()
782 release_pages(pvec, pinned, 0); in etnaviv_gem_userptr_do_get_pages()
819 int ret, pinned, npages = etnaviv_obj->base.size >> PAGE_SHIFT; in etnaviv_gem_userptr_get_pages() local
832 pinned = 0; in etnaviv_gem_userptr_get_pages()
840 pinned = __get_user_pages_fast(etnaviv_obj->userptr.ptr, npages, in etnaviv_gem_userptr_get_pages()
[all …]
/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c215 int pinned; in pin_rcv_pages() local
253 pinned = hfi1_acquire_user_pages(fd->mm, vaddr, npages, true, pages); in pin_rcv_pages()
254 if (pinned <= 0) { in pin_rcv_pages()
256 return pinned; in pin_rcv_pages()
260 fd->tid_n_pinned += pinned; in pin_rcv_pages()
261 return pinned; in pin_rcv_pages()
316 int ret = 0, need_group = 0, pinned; in hfi1_user_exp_rcv_setup() local
340 pinned = pin_rcv_pages(fd, tidbuf); in hfi1_user_exp_rcv_setup()
341 if (pinned <= 0) { in hfi1_user_exp_rcv_setup()
344 return pinned; in hfi1_user_exp_rcv_setup()
[all …]
Duser_pages.c74 unsigned long ulimit = rlimit(RLIMIT_MEMLOCK), pinned, cache_limit, in hfi1_can_pin_pages() local
95 pinned = mm->pinned_vm; in hfi1_can_pin_pages()
99 if (pinned + npages >= ulimit && !can_lock) in hfi1_can_pin_pages()
Duser_sdma.c954 int pinned, cleared; in pin_sdma_pages() local
973 pinned = hfi1_acquire_user_pages(pq->mm, in pin_sdma_pages()
977 if (pinned < 0) { in pin_sdma_pages()
979 return pinned; in pin_sdma_pages()
981 if (pinned != npages) { in pin_sdma_pages()
982 unpin_vector_pages(pq->mm, pages, node->npages, pinned); in pin_sdma_pages()
988 atomic_add(pinned, &pq->n_locked); in pin_sdma_pages()
989 return pinned; in pin_sdma_pages()
1003 int ret = 0, pinned, npages; in pin_vector_pages() local
1039 pinned = pin_sdma_pages(req, iovec, node, npages); in pin_vector_pages()
[all …]
/drivers/gpu/drm/virtio/
Dvirtgpu_object.c45 bool pinned) in virtio_gpu_init_ttm_placement() argument
48 u32 pflag = pinned ? TTM_PL_FLAG_NO_EVICT : 0; in virtio_gpu_init_ttm_placement()
62 unsigned long size, bool kernel, bool pinned, in virtio_gpu_object_create() argument
89 virtio_gpu_init_ttm_placement(bo, pinned); in virtio_gpu_object_create()
Dvirtgpu_gem.c39 bool pinned) in virtio_gpu_alloc_object() argument
45 ret = virtio_gpu_object_create(vgdev, size, kernel, pinned, &obj); in virtio_gpu_alloc_object()
Dvirtgpu_drv.h235 bool pinned);
353 unsigned long size, bool kernel, bool pinned,
/drivers/gpu/drm/qxl/
Dqxl_object.c53 void qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain, bool pinned) in qxl_ttm_placement_from_domain() argument
56 u32 pflag = pinned ? TTM_PL_FLAG_NO_EVICT : 0; in qxl_ttm_placement_from_domain()
79 unsigned long size, bool kernel, bool pinned, u32 domain, in qxl_bo_create() argument
102 bo->pin_count = pinned ? 1 : 0; in qxl_bo_create()
109 qxl_ttm_placement_from_domain(bo, domain, pinned); in qxl_bo_create()
Dqxl_object.h89 bool kernel, bool pinned, u32 domain,
100 extern void qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain, bool pinned);
/drivers/xen/
Dprivcmd.c592 int pinned; in lock_pages() local
600 pinned = get_user_pages_fast( in lock_pages()
603 if (pinned < 0) in lock_pages()
604 return pinned; in lock_pages()
606 nr_pages -= pinned; in lock_pages()
607 pages += pinned; in lock_pages()
/drivers/gpu/drm/i915/selftests/
Di915_vma.c108 int pinned; in create_vmas() local
111 for (pinned = 0; pinned <= 1; pinned++) { in create_vmas()
127 if (!pinned) { in create_vmas()
/drivers/vfio/
Dvfio_iommu_type1.c400 long ret, pinned = 0, lock_acct = 0; in vfio_pin_pages_remote() local
412 pinned++; in vfio_pin_pages_remote()
433 for (vaddr += PAGE_SIZE, iova += PAGE_SIZE; pinned < npage; in vfio_pin_pages_remote()
434 pinned++, vaddr += PAGE_SIZE, iova += PAGE_SIZE) { in vfio_pin_pages_remote()
439 if (pfn != *pfn_base + pinned || in vfio_pin_pages_remote()
464 for (pfn = *pfn_base ; pinned ; pfn++, pinned--) in vfio_pin_pages_remote()
471 return pinned; in vfio_pin_pages_remote()
/drivers/gpu/drm/radeon/
Dradeon_ttm.c546 unsigned pinned = 0, nents; in radeon_ttm_tt_pin_userptr() local
567 unsigned num_pages = ttm->num_pages - pinned; in radeon_ttm_tt_pin_userptr()
568 uint64_t userptr = gtt->userptr + pinned * PAGE_SIZE; in radeon_ttm_tt_pin_userptr()
569 struct page **pages = ttm->pages + pinned; in radeon_ttm_tt_pin_userptr()
576 pinned += r; in radeon_ttm_tt_pin_userptr()
578 } while (pinned < ttm->num_pages); in radeon_ttm_tt_pin_userptr()
600 release_pages(ttm->pages, pinned, 0); in radeon_ttm_tt_pin_userptr()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_stdu.c1126 WARN_ON(!vps->pinned); in vmw_stdu_primary_plane_cleanup_fb()
1165 WARN_ON(vps->pinned != 0); in vmw_stdu_primary_plane_prepare_fb()
1228 WARN_ON(vps->pinned != 0); in vmw_stdu_primary_plane_prepare_fb()
1260 WARN_ON(vps->pinned != 0); in vmw_stdu_primary_plane_prepare_fb()
1274 vps->pinned++; in vmw_stdu_primary_plane_prepare_fb()
1302 vps->pinned--; in vmw_stdu_primary_plane_prepare_fb()
Dvmwgfx_kms.h175 int pinned; member
Dvmwgfx_kms.c302 if (vps->pinned) { in vmw_du_plane_unpin_surf()
304 vps->pinned--; in vmw_du_plane_unpin_surf()
308 if (vps->pinned) in vmw_du_plane_unpin_surf()
696 vps->pinned = 0; in vmw_du_plane_duplicate_state()
/drivers/oprofile/
Dnmi_timer_int.c25 .pinned = 1,
Doprofile_perf.c71 attr->pinned = 1; in op_perf_setup()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c618 unsigned pinned = 0; in amdgpu_ttm_tt_get_user_pages() local
636 unsigned num_pages = ttm->num_pages - pinned; in amdgpu_ttm_tt_get_user_pages()
637 uint64_t userptr = gtt->userptr + pinned * PAGE_SIZE; in amdgpu_ttm_tt_get_user_pages()
638 struct page **p = pages + pinned; in amdgpu_ttm_tt_get_user_pages()
655 pinned += r; in amdgpu_ttm_tt_get_user_pages()
657 } while (pinned < ttm->num_pages); in amdgpu_ttm_tt_get_user_pages()
662 release_pages(pages, pinned, 0); in amdgpu_ttm_tt_get_user_pages()
/drivers/rapidio/devices/
Drio_mport_cdev.c880 long pinned; in rio_dma_transfer() local
892 pinned = get_user_pages_unlocked( in rio_dma_transfer()
898 if (pinned != nr_pages) { in rio_dma_transfer()
899 if (pinned < 0) { in rio_dma_transfer()
901 pinned); in rio_dma_transfer()
905 pinned, nr_pages); in rio_dma_transfer()
/drivers/pci/
Dpci.c1467 unsigned int pinned:1; member
1491 if (this->enabled && !this->pinned) in pcim_release()
1557 dr->pinned = 1; in pcim_pin_device()
/drivers/staging/lustre/
Dsysfs-fs-lustre303 pinned in client memory even though no longer dirty.