Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/pinctrl/mediatek/
Dpinctrl-mtmips.c72 *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()
Dpinctrl-mtmips.h9 #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/
Dintel_timeline.c81 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()
Dintel_context.h124 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()
Dintel_ring.c31 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()
Dintel_ggtt_fencing.c302 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()
Dgen6_ppgtt.c337 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()
Dmock_engine.c28 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()
Dintel_ring_types.h39 atomic_t pin_count; member
Dintel_timeline_types.h43 atomic_t pin_count; member
Dintel_ggtt_fencing.h26 atomic_t pin_count; member
Dgen6_ppgtt.h21 atomic_t pin_count; member
Dintel_context.c251 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/
Dlsdc_drv.c341 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()
Dlsdc_ttm.c171 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/
Domap_fb.c53 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/
Ddce6_afmt.c84 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()
Dradeon_object.c285 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/
Dttm_bo.c326 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()
Dttm_resource.c133 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/
Di915_gem_object.c584 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/
Damdgpu_object.c924 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/
Dvmwgfx_resource.c486 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/
Dmsm_gem.c71 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()
Dmsm_gem.h116 int pin_count; member
222 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()

123