/linux-6.6.21/drivers/pinctrl/mediatek/ |
D | pinctrl-mtmips.c | 72 *num_pins = p->groups[group].func[0].pin_count; in mtmips_get_group_pins() 145 for (i = 0; i < p->groups[group].func[0].pin_count; i++) in mtmips_pmx_group_enable() 152 for (i = 0; i < p->func[func]->pin_count; i++) in mtmips_pmx_group_enable() 262 if (!p->func[i]->pin_count) in mtmips_pinctrl_pins() 266 p->func[i]->pin_count, in mtmips_pinctrl_pins() 271 for (j = 0; j < p->func[i]->pin_count; j++) in mtmips_pinctrl_pins() 274 pin = p->func[i]->pin_first + p->func[i]->pin_count; in mtmips_pinctrl_pins() 289 if (!p->func[i]->pin_count) in mtmips_pinctrl_pins() 292 for (j = 0; j < p->func[i]->pin_count; j++) in mtmips_pinctrl_pins()
|
D | pinctrl-mtmips.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.6.21/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 | 124 return atomic_read(&ce->pin_count); in intel_context_is_pinned() 152 return atomic_inc_not_zero(&ce->pin_count); in intel_context_pin_if_active() 175 atomic_inc(&ce->pin_count); in __intel_context_pin() 196 while (!atomic_add_unless(&ce->pin_count, -1, 1)) { in intel_context_unpin() 197 if (atomic_cmpxchg(&ce->pin_count, 1, 2) == 1) { in intel_context_unpin()
|
D | intel_ring.c | 31 GEM_BUG_ON(!atomic_read(&ring->pin_count)); in __intel_ring_pin() 32 atomic_inc(&ring->pin_count); in __intel_ring_pin() 42 if (atomic_fetch_inc(&ring->pin_count)) in intel_ring_pin() 81 atomic_dec(&ring->pin_count); in intel_ring_pin() 98 if (!atomic_dec_and_test(&ring->pin_count)) in intel_ring_unpin()
|
D | intel_ggtt_fencing.c | 302 GEM_BUG_ON(atomic_read(&fence->pin_count)); in i915_vma_revoke_fence() 348 if (atomic_read(&fence->pin_count)) in fence_find() 374 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence() 384 GEM_BUG_ON(atomic_read(&fence->pin_count)); in __i915_vma_pin_fence() 385 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence() 401 atomic_dec(&fence->pin_count); in __i915_vma_pin_fence() 465 count += !atomic_read(&fence->pin_count); in i915_reserve_fence()
|
D | gen6_ppgtt.c | 337 if (atomic_add_unless(&ppgtt->pin_count, 1, 0)) in gen6_ppgtt_pin() 350 if (!atomic_read(&ppgtt->pin_count)) { in gen6_ppgtt_pin() 357 atomic_inc(&ppgtt->pin_count); in gen6_ppgtt_pin() 423 GEM_BUG_ON(!atomic_read(&ppgtt->pin_count)); in gen6_ppgtt_unpin() 424 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
|
D | intel_context.c | 251 if (likely(!atomic_add_unless(&ce->pin_count, 1, 0))) { in __intel_context_do_pin_ww() 268 atomic_inc(&ce->pin_count); in __intel_context_do_pin_ww() 315 if (!atomic_sub_and_test(sub, &ce->pin_count)) in __intel_context_do_unpin()
|
/linux-6.6.21/drivers/gpu/drm/loongson/ |
D | lsdc_drv.c | 341 unsigned int pin_count = tbo->pin_count; in lsdc_drm_freeze() local 345 lsdc_mem_type_to_str(resource->mem_type), pin_count); in lsdc_drm_freeze() 347 if (!pin_count) in lsdc_drm_freeze() 359 --pin_count; in lsdc_drm_freeze() 360 } while (pin_count); in lsdc_drm_freeze()
|
D | lsdc_ttm.c | 171 if (unlikely(tbo->pin_count > 0)) { in lsdc_bo_move() 260 if (unlikely(!tbo->pin_count)) { in lsdc_bo_gpu_offset() 295 if (tbo->pin_count) in lsdc_bo_pin() 329 if (unlikely(!tbo->pin_count)) { in lsdc_bo_unpin() 336 if (!tbo->pin_count) { in lsdc_bo_unpin()
|
/linux-6.6.21/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.6.21/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.6.21/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 326 WARN_ON_ONCE(bo->pin_count); in ttm_bo_release() 364 if (bo->pin_count) { in ttm_bo_release() 365 bo->pin_count = 0; in ttm_bo_release() 521 if (bo->pin_count) { in ttm_bo_evict_swapout_allowable() 664 ++bo->pin_count; in ttm_bo_pin() 679 if (WARN_ON_ONCE(!bo->pin_count)) in ttm_bo_unpin() 683 --bo->pin_count; in ttm_bo_unpin() 909 if (bo->pin_count) in ttm_bo_validate() 974 bo->pin_count = 0; in ttm_bo_init_reserved()
|
D | ttm_resource.c | 133 if (bo->bulk_move && !bo->pin_count) in ttm_resource_add_bulk_move() 141 if (bo->bulk_move && !bo->pin_count) in ttm_resource_del_bulk_move() 153 if (bo->pin_count) { in ttm_resource_move_to_lru_tail() 195 if (bo->pin_count) in ttm_resource_init()
|
/linux-6.6.21/drivers/gpu/drm/i915/gem/ |
D | i915_gem_object.c | 584 int pin_count = atomic_read(&obj->mm.pages_pin_count); in i915_gem_object_evictable() local 586 if (!pin_count) in i915_gem_object_evictable() 596 pin_count--; in i915_gem_object_evictable() 599 GEM_WARN_ON(pin_count < 0); in i915_gem_object_evictable() 601 return pin_count == 0; in i915_gem_object_evictable()
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_object.c | 924 if (bo->tbo.pin_count) { in amdgpu_bo_pin_restricted() 1027 if (bo->tbo.pin_count) in amdgpu_bo_unpin() 1394 if (abo->tbo.pin_count > 0) in amdgpu_bo_fault_reserve_notify() 1506 !bo->tbo.pin_count && bo->tbo.type != ttm_bo_type_kernel); in amdgpu_bo_gpu_offset() 1577 unsigned int pin_count; in amdgpu_bo_print_info() local 1607 pin_count = READ_ONCE(bo->tbo.pin_count); in amdgpu_bo_print_info() 1608 if (pin_count) in amdgpu_bo_print_info() 1609 seq_printf(m, " pin count %d", pin_count); in amdgpu_bo_print_info()
|
/linux-6.6.21/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_resource.c | 486 if (!res->func->may_evict || res->id == -1 || res->pin_count) in vmw_resource_unreserve() 968 if (res->pin_count == 0) { in vmw_resource_pin() 977 if (!vbo->tbo.pin_count) { in vmw_resource_pin() 1000 res->pin_count++; in vmw_resource_pin() 1028 WARN_ON(res->pin_count == 0); in vmw_resource_unpin() 1029 if (--res->pin_count == 0 && res->guest_memory_bo) { in vmw_resource_unpin()
|
/linux-6.6.21/drivers/gpu/drm/msm/ |
D | msm_gem.c | 71 if (msm_obj->pin_count) { in update_lru_active() 90 GEM_WARN_ON(msm_obj->pin_count); in update_lru_locked() 247 to_msm_bo(obj)->pin_count++; in msm_gem_pin_obj_locked() 507 msm_obj->pin_count--; in msm_gem_unpin_locked() 508 GEM_WARN_ON(msm_obj->pin_count < 0); in msm_gem_unpin_locked() 523 msm_obj->pin_count--; in msm_gem_unpin_active() 524 GEM_WARN_ON(msm_obj->pin_count < 0); in msm_gem_unpin_active() 885 if (to_msm_bo(obj)->pin_count) in msm_gem_active()
|
D | msm_gem.h | 116 int pin_count; member 222 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
|