/netbsd/sys/external/bsd/drm2/dist/drm/qxl/ |
H A D | qxl_object.c | 128 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 D | qxl_debugfs.c | 75 bo->pin_count, rel); in qxl_debugfs_buffers_info()
|
H A D | qxl_drv.h | 85 unsigned int pin_count; member
|
/netbsd/sys/external/bsd/drm2/dist/drm/i915/gt/ |
H A D | intel_timeline.c | 216 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 D | intel_context.h | 66 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 D | gen6_ppgtt.c | 456 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 D | mock_engine.c | 43 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 D | intel_context.c | 117 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 D | intel_ring.c | 36 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 D | intel_ring_types.h | 42 atomic_t pin_count; member
|
H A D | intel_timeline_types.h | 47 atomic_t pin_count; member
|
H A D | intel_context_types.h | 75 atomic_t pin_count; member
|
H A D | gen6_ppgtt.h | 25 atomic_t pin_count; member
|
/netbsd/sys/external/bsd/drm2/dist/drm/radeon/ |
H A D | radeon_object.c | 344 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 D | radeon_dce6_afmt.c | 88 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 D | radeon_audio.c | 256 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 D | i915_gem_fence_reg.c | 329 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 D | i915_gem_fence_reg.h | 45 atomic_t pin_count; member
|
H A D | i915_vma.h | 357 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 D | vmwgfx_bo.c | 114 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 D | vmwgfx_resource.c | 529 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 D | amdgpu_object.c | 87 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 D | amdgpu_gem.c | 846 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 D | amdgpu_object.h | 94 unsigned pin_count; member
|
H A D | amdgpu_dma_buf.c | 350 if (!bo->pin_count && (bo->allowed_domains & AMDGPU_GEM_DOMAIN_GTT)) { in amdgpu_dma_buf_begin_cpu_access()
|