Home
last modified time | relevance | path

Searched refs:pin_count (Results 1 – 25 of 39) sorted by relevance

12

/netbsd/sys/external/bsd/drm2/dist/drm/qxl/
H A Dqxl_object.c128 bo->pin_count = pinned ? 1 : 0; in qxl_bo_create()
248 if (bo->pin_count) { in __qxl_bo_pin()
249 bo->pin_count++; in __qxl_bo_pin()
255 bo->pin_count = 1; in __qxl_bo_pin()
268 if (!bo->pin_count) { in __qxl_bo_unpin()
272 bo->pin_count--; in __qxl_bo_unpin()
273 if (bo->pin_count) in __qxl_bo_unpin()
H A Dqxl_debugfs.c75 bo->pin_count, rel); in qxl_debugfs_buffers_info()
H A Dqxl_drv.h85 unsigned int pin_count; member
/netbsd/sys/external/bsd/drm2/dist/drm/i915/gt/
H A Dintel_timeline.c216 atomic_set(&timeline->pin_count, 0); in intel_timeline_init()
280 GEM_BUG_ON(atomic_read(&timeline->pin_count)); in intel_timeline_fini()
317 if (atomic_add_unless(&tl->pin_count, 1, 0)) in intel_timeline_pin()
329 if (atomic_fetch_inc(&tl->pin_count)) { in intel_timeline_pin()
396 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in timeline_advance()
553 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in intel_timeline_unpin()
554 if (!atomic_dec_and_test(&tl->pin_count)) in intel_timeline_unpin()
H A Dintel_context.h66 return atomic_read(&ce->pin_count); in intel_context_is_pinned()
85 return atomic_inc_not_zero(&ce->pin_count); in intel_context_pin_if_active()
99 atomic_inc(&ce->pin_count); in __intel_context_pin()
H A Dgen6_ppgtt.c456 if (atomic_add_unless(&ppgtt->pin_count, 1, 0)) in gen6_ppgtt_pin()
468 if (!atomic_read(&ppgtt->pin_count)) in gen6_ppgtt_pin()
471 atomic_inc(&ppgtt->pin_count); in gen6_ppgtt_pin()
481 GEM_BUG_ON(!atomic_read(&ppgtt->pin_count)); in gen6_ppgtt_unpin()
482 if (atomic_dec_and_test(&ppgtt->pin_count)) in gen6_ppgtt_unpin()
490 if (!atomic_read(&ppgtt->pin_count)) in gen6_ppgtt_unpin_all()
494 atomic_set(&ppgtt->pin_count, 0); in gen6_ppgtt_unpin_all()
H A Dmock_engine.c43 atomic_inc(&tl->pin_count); in mock_timeline_pin()
48 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in mock_timeline_unpin()
49 atomic_dec(&tl->pin_count); in mock_timeline_unpin()
65 atomic_set(&ring->pin_count, 1); in mock_ring()
H A Dintel_context.c117 if (likely(!atomic_add_unless(&ce->pin_count, 1, 0))) { in __intel_context_do_pin()
130 atomic_inc(&ce->pin_count); in __intel_context_do_pin()
148 if (!atomic_dec_and_test(&ce->pin_count)) in intel_context_unpin()
H A Dintel_ring.c36 if (atomic_fetch_inc(&ring->pin_count)) in intel_ring_pin()
74 atomic_dec(&ring->pin_count); in intel_ring_pin()
91 if (!atomic_dec_and_test(&ring->pin_count)) in intel_ring_unpin()
H A Dintel_ring_types.h42 atomic_t pin_count; member
H A Dintel_timeline_types.h47 atomic_t pin_count; member
H A Dintel_context_types.h75 atomic_t pin_count; member
H A Dgen6_ppgtt.h25 atomic_t pin_count; member
/netbsd/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_object.c344 if (bo->pin_count) { in radeon_bo_pin_restricted()
345 bo->pin_count++; in radeon_bo_pin_restricted()
383 bo->pin_count = 1; in radeon_bo_pin_restricted()
406 if (!bo->pin_count) { in radeon_bo_unpin()
410 bo->pin_count--; in radeon_bo_unpin()
411 if (bo->pin_count) in radeon_bo_unpin()
567 if (!bo->pin_count) { in radeon_bo_list_validate()
647 if (old_object->pin_count == 0) in radeon_bo_get_surface_reg()
834 if (rbo->pin_count > 0) in radeon_bo_fault_reserve_notify()
H A Dradeon_dce6_afmt.c88 int i, pin_count; in dce6_audio_get_pin() local
95 pin_count = 0; in dce6_audio_get_pin()
102 pin_count++; in dce6_audio_get_pin()
106 if (pin_count == 0) in dce6_audio_get_pin()
H A Dradeon_audio.c256 int pin_count = 0; in radeon_audio_enable() local
267 pin_count++; in radeon_audio_enable()
271 if ((pin_count > 1) && (enable_mask == 0)) in radeon_audio_enable()
/netbsd/sys/external/bsd/drm2/dist/drm/i915/
H A Di915_gem_fence_reg.c329 if (atomic_read(&fence->pin_count)) in i915_vma_revoke_fence()
342 if (atomic_read(&fence->pin_count)) in fence_find()
368 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence()
378 GEM_BUG_ON(atomic_read(&fence->pin_count)); in __i915_vma_pin_fence()
379 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence()
395 atomic_dec(&fence->pin_count); in __i915_vma_pin_fence()
460 count += !atomic_read(&fence->pin_count); in i915_reserve_fence()
H A Di915_gem_fence_reg.h45 atomic_t pin_count; member
H A Di915_vma.h357 GEM_BUG_ON(atomic_read(&vma->fence->pin_count) <= 0); in __i915_vma_unpin_fence()
358 atomic_dec(&vma->fence->pin_count); in __i915_vma_unpin_fence()
/netbsd/sys/external/bsd/drm2/dist/drm/vmwgfx/
H A Dvmwgfx_bo.c114 if (buf->pin_count > 0) in vmw_bo_pin_in_placement()
163 if (buf->pin_count > 0) { in vmw_bo_pin_in_vram_or_gmr()
254 buf->pin_count == 0) { in vmw_bo_pin_in_start_of_vram()
259 if (buf->pin_count > 0) in vmw_bo_pin_in_start_of_vram()
352 if (vbo->pin_count++ > 0) in vmw_bo_pin_reserved()
355 WARN_ON(vbo->pin_count <= 0); in vmw_bo_pin_reserved()
356 if (--vbo->pin_count > 0) in vmw_bo_pin_reserved()
H A Dvmwgfx_resource.c529 if (!res->func->may_evict || res->id == -1 || res->pin_count) in vmw_resource_unreserve()
1009 if (res->pin_count == 0) { in vmw_resource_pin()
1016 if (!vbo->pin_count) { in vmw_resource_pin()
1036 res->pin_count++; in vmw_resource_pin()
1066 WARN_ON(res->pin_count == 0); in vmw_resource_unpin()
1067 if (--res->pin_count == 0 && res->backup) { in vmw_resource_unpin()
/netbsd/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_object.c87 if (bo->pin_count > 0) in amdgpu_bo_destroy()
721 if (bo->pin_count) in amdgpu_bo_validate()
918 if (bo->pin_count) { in amdgpu_bo_pin_restricted()
924 bo->pin_count++; in amdgpu_bo_pin_restricted()
960 bo->pin_count = 1; in amdgpu_bo_pin_restricted()
1008 if (WARN_ON_ONCE(!bo->pin_count)) { in amdgpu_bo_unpin()
1012 bo->pin_count--; in amdgpu_bo_unpin()
1013 if (bo->pin_count) in amdgpu_bo_unpin()
1378 if (abo->pin_count > 0) in amdgpu_bo_fault_reserve_notify()
1460 !bo->pin_count && bo->tbo.type != ttm_bo_type_kernel); in amdgpu_bo_gpu_offset()
H A Damdgpu_gem.c846 unsigned pin_count; in amdgpu_debugfs_gem_bo_info() local
864 pin_count = READ_ONCE(bo->pin_count); in amdgpu_debugfs_gem_bo_info()
865 if (pin_count) in amdgpu_debugfs_gem_bo_info()
866 seq_printf(m, " pin count %d", pin_count); in amdgpu_debugfs_gem_bo_info()
H A Damdgpu_object.h94 unsigned pin_count; member
H A Damdgpu_dma_buf.c350 if (!bo->pin_count && (bo->allowed_domains & AMDGPU_GEM_DOMAIN_GTT)) { in amdgpu_dma_buf_begin_cpu_access()

12