/linux-6.1.9/drivers/pinctrl/ralink/ |
D | pinctrl-ralink.c | 72 *num_pins = p->groups[group].func[0].pin_count; in ralink_get_group_pins() 145 for (i = 0; i < p->groups[group].func[0].pin_count; i++) in ralink_pmx_group_enable() 152 for (i = 0; i < p->func[func]->pin_count; i++) in ralink_pmx_group_enable() 262 if (!p->func[i]->pin_count) in ralink_pinctrl_pins() 266 p->func[i]->pin_count, in ralink_pinctrl_pins() 271 for (j = 0; j < p->func[i]->pin_count; j++) in ralink_pinctrl_pins() 274 pin = p->func[i]->pin_first + p->func[i]->pin_count; in ralink_pinctrl_pins() 289 if (!p->func[i]->pin_count) in ralink_pinctrl_pins() 292 for (j = 0; j < p->func[i]->pin_count; j++) in ralink_pinctrl_pins()
|
D | pinctrl-ralink.h | 9 #define FUNC(name, value, pin_first, pin_count) \ argument 10 { name, value, pin_first, pin_count } 29 int pin_count; member
|
/linux-6.1.9/drivers/gpu/drm/i915/gt/ |
D | intel_timeline.c | 81 atomic_set(&timeline->pin_count, 0); in intel_timeline_init() 187 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in __intel_timeline_pin() 188 atomic_inc(&tl->pin_count); in __intel_timeline_pin() 195 if (atomic_add_unless(&tl->pin_count, 1, 0)) in intel_timeline_pin() 215 if (atomic_fetch_inc(&tl->pin_count)) { in intel_timeline_pin() 227 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in intel_timeline_reset_seqno() 301 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in timeline_advance() 383 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in intel_timeline_unpin() 384 if (!atomic_dec_and_test(&tl->pin_count)) in intel_timeline_unpin() 396 GEM_BUG_ON(atomic_read(&timeline->pin_count)); in __intel_timeline_free()
|
D | intel_context.h | 123 return atomic_read(&ce->pin_count); in intel_context_is_pinned() 151 return atomic_inc_not_zero(&ce->pin_count); in intel_context_pin_if_active() 174 atomic_inc(&ce->pin_count); in __intel_context_pin() 195 while (!atomic_add_unless(&ce->pin_count, -1, 1)) { in intel_context_unpin() 196 if (atomic_cmpxchg(&ce->pin_count, 1, 2) == 1) { in intel_context_unpin()
|
D | intel_ring.c | 30 GEM_BUG_ON(!atomic_read(&ring->pin_count)); in __intel_ring_pin() 31 atomic_inc(&ring->pin_count); in __intel_ring_pin() 41 if (atomic_fetch_inc(&ring->pin_count)) in intel_ring_pin() 80 atomic_dec(&ring->pin_count); in intel_ring_pin() 97 if (!atomic_dec_and_test(&ring->pin_count)) in intel_ring_unpin()
|
D | intel_ggtt_fencing.c | 300 GEM_BUG_ON(atomic_read(&fence->pin_count)); in i915_vma_revoke_fence() 346 if (atomic_read(&fence->pin_count)) in fence_find() 372 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence() 382 GEM_BUG_ON(atomic_read(&fence->pin_count)); in __i915_vma_pin_fence() 383 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence() 399 atomic_dec(&fence->pin_count); in __i915_vma_pin_fence() 463 count += !atomic_read(&fence->pin_count); in i915_reserve_fence()
|
D | gen6_ppgtt.c | 335 if (atomic_add_unless(&ppgtt->pin_count, 1, 0)) in gen6_ppgtt_pin() 348 if (!atomic_read(&ppgtt->pin_count)) { in gen6_ppgtt_pin() 355 atomic_inc(&ppgtt->pin_count); in gen6_ppgtt_pin() 421 GEM_BUG_ON(!atomic_read(&ppgtt->pin_count)); in gen6_ppgtt_unpin() 422 if (atomic_dec_and_test(&ppgtt->pin_count)) in gen6_ppgtt_unpin()
|
D | mock_engine.c | 28 atomic_inc(&tl->pin_count); in mock_timeline_pin() 34 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in mock_timeline_unpin() 35 atomic_dec(&tl->pin_count); in mock_timeline_unpin() 73 atomic_set(&ring->pin_count, 1); in mock_ring()
|
D | intel_ring_types.h | 39 atomic_t pin_count; member
|
D | intel_timeline_types.h | 43 atomic_t pin_count; member
|
D | intel_ggtt_fencing.h | 26 atomic_t pin_count; member
|
D | gen6_ppgtt.h | 21 atomic_t pin_count; member
|
/linux-6.1.9/drivers/gpu/drm/omapdrm/ |
D | omap_fb.c | 53 int pin_count; member 264 if (omap_fb->pin_count > 0) { in omap_framebuffer_pin() 265 omap_fb->pin_count++; in omap_framebuffer_pin() 278 omap_fb->pin_count++; in omap_framebuffer_pin() 304 omap_fb->pin_count--; in omap_framebuffer_unpin() 306 if (omap_fb->pin_count > 0) { in omap_framebuffer_unpin()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | dce6_afmt.c | 84 int i, pin_count; in dce6_audio_get_pin() local 91 pin_count = 0; in dce6_audio_get_pin() 98 pin_count++; in dce6_audio_get_pin() 102 if (pin_count == 0) in dce6_audio_get_pin()
|
D | radeon_object.c | 285 if (bo->tbo.pin_count) { in radeon_bo_pin_restricted() 343 if (!bo->tbo.pin_count) { in radeon_bo_unpin() 489 if (!bo->tbo.pin_count) { in radeon_bo_list_validate() 568 if (old_object->tbo.pin_count == 0) in radeon_bo_get_surface_reg() 746 if (rbo->tbo.pin_count > 0) in radeon_bo_fault_reserve_notify()
|
/linux-6.1.9/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_bo.c | 90 if (buf->base.pin_count > 0) in vmw_bo_pin_in_placement() 131 if (buf->base.pin_count > 0) { in vmw_bo_pin_in_vram_or_gmr() 216 buf->base.pin_count == 0) { in vmw_bo_pin_in_start_of_vram() 221 if (buf->base.pin_count > 0) in vmw_bo_pin_in_start_of_vram() 307 if (pin == !!bo->pin_count) in vmw_bo_pin_reserved()
|
D | vmwgfx_resource.c | 481 if (!res->func->may_evict || res->id == -1 || res->pin_count) in vmw_resource_unreserve() 961 if (res->pin_count == 0) { in vmw_resource_pin() 970 if (!vbo->base.pin_count) { in vmw_resource_pin() 990 res->pin_count++; in vmw_resource_pin() 1018 WARN_ON(res->pin_count == 0); in vmw_resource_unpin() 1019 if (--res->pin_count == 0 && res->backup) { in vmw_resource_unpin()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_object.c | 898 if (bo->tbo.pin_count) { in amdgpu_bo_pin_restricted() 1001 if (bo->tbo.pin_count) in amdgpu_bo_unpin() 1360 if (abo->tbo.pin_count > 0) in amdgpu_bo_fault_reserve_notify() 1473 !bo->tbo.pin_count && bo->tbo.type != ttm_bo_type_kernel); in amdgpu_bo_gpu_offset() 1545 unsigned int pin_count; in amdgpu_bo_print_info() local 1566 pin_count = READ_ONCE(bo->tbo.pin_count); in amdgpu_bo_print_info() 1567 if (pin_count) in amdgpu_bo_print_info() 1568 seq_printf(m, " pin count %d", pin_count); in amdgpu_bo_print_info()
|
D | amdgpu_dma_buf.c | 148 if (!bo->tbo.pin_count) { in amdgpu_dma_buf_map() 253 if (!bo->tbo.pin_count && in amdgpu_dma_buf_begin_cpu_access()
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_object.c | 493 int pin_count = atomic_read(&obj->mm.pages_pin_count); in i915_gem_object_evictable() local 495 if (!pin_count) in i915_gem_object_evictable() 505 pin_count--; in i915_gem_object_evictable() 508 GEM_WARN_ON(pin_count < 0); in i915_gem_object_evictable() 510 return pin_count == 0; in i915_gem_object_evictable()
|
/linux-6.1.9/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 356 WARN_ON_ONCE(bo->pin_count); in ttm_bo_release() 393 if (bo->pin_count) { in ttm_bo_release() 394 bo->pin_count = 0; in ttm_bo_release() 688 ++bo->pin_count; in ttm_bo_pin() 703 if (WARN_ON_ONCE(!bo->pin_count)) in ttm_bo_unpin() 707 --bo->pin_count; in ttm_bo_unpin() 971 bo->pin_count = 0; in ttm_bo_init_reserved()
|
D | ttm_resource.c | 129 if (bo->bulk_move && !bo->pin_count) in ttm_resource_add_bulk_move() 137 if (bo->bulk_move && !bo->pin_count) in ttm_resource_del_bulk_move() 149 if (bo->pin_count) { in ttm_resource_move_to_lru_tail() 191 if (bo->pin_count) in ttm_resource_init()
|
/linux-6.1.9/drivers/gpu/drm/msm/ |
D | msm_gem.h | 120 int pin_count; member 224 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
|
D | msm_gem.c | 194 to_msm_bo(obj)->pin_count++; in msm_gem_pin_pages_locked() 453 msm_obj->pin_count--; in msm_gem_unpin_locked() 454 GEM_WARN_ON(msm_obj->pin_count < 0); in msm_gem_unpin_locked() 817 GEM_WARN_ON(msm_obj->pin_count); in update_lru() 821 } else if (msm_obj->pin_count || msm_obj->vmap_count) { in update_lru() 836 if (to_msm_bo(obj)->pin_count) in msm_gem_active()
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_vma.h | 355 GEM_BUG_ON(atomic_read(&vma->fence->pin_count) <= 0); in __i915_vma_unpin_fence() 356 atomic_dec(&vma->fence->pin_count); in __i915_vma_unpin_fence()
|