Home
last modified time | relevance | path

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

123

/linux/drivers/pinctrl/mediatek/
H A 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()
H A 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/drivers/gpu/drm/i915/gt/
H A 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()
H A 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()
H A 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()
H A Dintel_ggtt_fencing.c303 GEM_BUG_ON(atomic_read(&fence->pin_count)); in i915_vma_revoke_fence()
349 if (atomic_read(&fence->pin_count)) in fence_find()
375 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence()
385 GEM_BUG_ON(atomic_read(&fence->pin_count)); in __i915_vma_pin_fence()
386 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence()
402 atomic_dec(&fence->pin_count); in __i915_vma_pin_fence()
465 count += !atomic_read(&fence->pin_count); in i915_reserve_fence()
H A 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()
H A 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()
H A Dintel_ring_types.h39 atomic_t pin_count; member
H A Dintel_timeline_types.h43 atomic_t pin_count; member
H A Dintel_ggtt_fencing.h26 atomic_t pin_count; member
H A Dgen6_ppgtt.h21 atomic_t pin_count; member
H A Dintel_context.c267 if (likely(!atomic_add_unless(&ce->pin_count, 1, 0))) { in __intel_context_do_pin_ww()
284 atomic_inc(&ce->pin_count); in __intel_context_do_pin_ww()
331 if (!atomic_sub_and_test(sub, &ce->pin_count)) in __intel_context_do_unpin()
/linux/drivers/gpu/drm/omapdrm/
H A Domap_fb.c54 int pin_count; member
265 if (omap_fb->pin_count > 0) { in omap_framebuffer_pin()
266 omap_fb->pin_count++; in omap_framebuffer_pin()
279 omap_fb->pin_count++; in omap_framebuffer_pin()
305 omap_fb->pin_count--; in omap_framebuffer_unpin()
307 if (omap_fb->pin_count > 0) { in omap_framebuffer_unpin()
/linux/drivers/gpu/drm/ttm/
H A Dttm_bo.c252 WARN_ON_ONCE(bo->pin_count); in ttm_bo_release()
291 if (bo->pin_count) { in ttm_bo_release()
292 bo->pin_count = 0; in ttm_bo_release()
510 if (bo->pin_count || !bo->bdev->funcs->eviction_valuable(bo, evict_walk->place)) in ttm_bo_evict_cb()
597 if (!bo->pin_count++ && bo->resource) in ttm_bo_pin()
613 if (WARN_ON_ONCE(!bo->pin_count)) in ttm_bo_unpin()
617 if (!--bo->pin_count && bo->resource) { in ttm_bo_unpin()
803 if (bo->pin_count) in ttm_bo_validate()
900 bo->pin_count = 0; in ttm_bo_init_reserved()
1076 if (bo->pin_count || !bo->bdev->funcs->eviction_valuable(bo, &place)) { in ttm_bo_swapout_cb()
[all …]
H A Dttm_resource.c258 if (bo->bulk_move && !bo->pin_count && !ttm_resource_is_swapped(res, bo)) in ttm_resource_add_bulk_move()
266 if (bo->bulk_move && !bo->pin_count && !ttm_resource_is_swapped(res, bo)) in ttm_resource_del_bulk_move()
278 if (bo->pin_count || ttm_resource_is_swapped(res, bo)) { in ttm_resource_move_to_lru_tail()
320 if (bo->pin_count || ttm_resource_is_swapped(res, bo)) in ttm_resource_init()
/linux/drivers/gpu/drm/radeon/
H A Ddce6_afmt.c85 int i, pin_count; in dce6_audio_get_pin() local
92 pin_count = 0; in dce6_audio_get_pin()
99 pin_count++; in dce6_audio_get_pin()
103 if (pin_count == 0) in dce6_audio_get_pin()
H A Dradeon_object.c281 if (bo->tbo.pin_count) { in radeon_bo_pin_restricted()
339 if (!bo->tbo.pin_count) { in radeon_bo_unpin()
485 if (!bo->tbo.pin_count) { in radeon_bo_list_validate()
564 if (old_object->tbo.pin_count == 0) in radeon_bo_get_surface_reg()
742 if (rbo->tbo.pin_count > 0) in radeon_bo_fault_reserve_notify()
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c169 if (unlikely(tbo->pin_count > 0)) { in lsdc_bo_move()
258 if (unlikely(!tbo->pin_count)) { in lsdc_bo_gpu_offset()
293 if (tbo->pin_count) in lsdc_bo_pin()
327 if (unlikely(!tbo->pin_count)) { in lsdc_bo_unpin()
334 if (!tbo->pin_count) { in lsdc_bo_unpin()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_object.c848 if (bo->tbo.pin_count) { in amdgpu_bo_pin()
917 if (bo->tbo.pin_count) in amdgpu_bo_unpin()
1316 if (abo->tbo.pin_count > 0) in amdgpu_bo_fault_reserve_notify()
1427 !bo->tbo.pin_count && bo->tbo.type != ttm_bo_type_kernel); in amdgpu_bo_gpu_offset()
1503 unsigned int pin_count; in amdgpu_bo_print_info() local
1550 pin_count = READ_ONCE(bo->tbo.pin_count); in amdgpu_bo_print_info()
1551 if (pin_count) in amdgpu_bo_print_info()
1552 seq_printf(m, " pin count %d", pin_count); in amdgpu_bo_print_info()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_object.c590 int pin_count = atomic_read(&obj->mm.pages_pin_count); in i915_gem_object_evictable() local
592 if (!pin_count) in i915_gem_object_evictable()
602 pin_count--; in i915_gem_object_evictable()
605 GEM_WARN_ON(pin_count < 0); in i915_gem_object_evictable()
607 return pin_count == 0; in i915_gem_object_evictable()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_resource.c495 if (!res->func->may_evict || res->id == -1 || res->pin_count) in vmw_resource_unreserve()
977 if (res->pin_count == 0) { in vmw_resource_pin()
986 if (!vbo->tbo.pin_count) { in vmw_resource_pin()
1009 res->pin_count++; in vmw_resource_pin()
1037 WARN_ON(res->pin_count == 0); in vmw_resource_unpin()
1038 if (--res->pin_count == 0 && res->guest_memory_bo) { in vmw_resource_unpin()
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_bo_test.c492 KUNIT_ASSERT_EQ(test, bo->pin_count, no_pins); in ttm_bo_pin_basic()
532 KUNIT_ASSERT_EQ(test, bo->pin_count, 1); in ttm_bo_pin_unpin_resource()
541 KUNIT_ASSERT_EQ(test, bo->pin_count, 0); in ttm_bo_pin_unpin_resource()
587 KUNIT_ASSERT_EQ(test, bo->pin_count, 2); in ttm_bo_multiple_pin_one_unpin()
595 KUNIT_ASSERT_EQ(test, bo->pin_count, 1); in ttm_bo_multiple_pin_one_unpin()
/linux/drivers/gpu/drm/msm/
H A Dmsm_gem.c102 if (msm_obj->pin_count) { in update_lru_active()
121 GEM_WARN_ON(msm_obj->pin_count); in update_lru_locked()
282 to_msm_bo(obj)->pin_count++; in msm_gem_pin_obj_locked()
542 msm_obj->pin_count--; in msm_gem_unpin_locked()
543 GEM_WARN_ON(msm_obj->pin_count < 0); in msm_gem_unpin_locked()
558 msm_obj->pin_count--; in msm_gem_unpin_active()
559 GEM_WARN_ON(msm_obj->pin_count < 0); in msm_gem_unpin_active()
920 if (to_msm_bo(obj)->pin_count) in msm_gem_active()
H A Dmsm_gem.h121 int pin_count; member
227 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()

123