Home
last modified time | relevance | path

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

123

/linux/drivers/pinctrl/ralink/
A Dpinctrl-rt2880.c72 *num_pins = p->groups[group].func[0].pin_count; in rt2880_get_group_pins()
145 for (i = 0; i < p->groups[group].func[0].pin_count; i++) in rt2880_pmx_group_enable()
152 for (i = 0; i < p->func[func]->pin_count; i++) in rt2880_pmx_group_enable()
262 if (!p->func[i]->pin_count) in rt2880_pinmux_pins()
266 p->func[i]->pin_count, in rt2880_pinmux_pins()
269 for (j = 0; j < p->func[i]->pin_count; j++) in rt2880_pinmux_pins()
272 pin = p->func[i]->pin_first + p->func[i]->pin_count; in rt2880_pinmux_pins()
287 if (!p->func[i]->pin_count) in rt2880_pinmux_pins()
290 for (j = 0; j < p->func[i]->pin_count; j++) in rt2880_pinmux_pins()
A Dpinmux.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/
A Dintel_timeline.c78 atomic_set(&timeline->pin_count, 0); in intel_timeline_init()
184 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in __intel_timeline_pin()
185 atomic_inc(&tl->pin_count); in __intel_timeline_pin()
192 if (atomic_add_unless(&tl->pin_count, 1, 0)) in intel_timeline_pin()
212 if (atomic_fetch_inc(&tl->pin_count)) { in intel_timeline_pin()
224 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in intel_timeline_reset_seqno()
298 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in timeline_advance()
380 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in intel_timeline_unpin()
381 if (!atomic_dec_and_test(&tl->pin_count)) in intel_timeline_unpin()
393 GEM_BUG_ON(atomic_read(&timeline->pin_count)); in __intel_timeline_free()
A Dintel_context.h121 return atomic_read(&ce->pin_count); in intel_context_is_pinned()
149 return atomic_inc_not_zero(&ce->pin_count); in intel_context_pin_if_active()
172 atomic_inc(&ce->pin_count); in __intel_context_pin()
193 while (!atomic_add_unless(&ce->pin_count, -1, 1)) { in intel_context_unpin()
194 if (atomic_cmpxchg(&ce->pin_count, 1, 2) == 1) { in intel_context_unpin()
A Dintel_ring.c28 GEM_BUG_ON(!atomic_read(&ring->pin_count)); in __intel_ring_pin()
29 atomic_inc(&ring->pin_count); in __intel_ring_pin()
39 if (atomic_fetch_inc(&ring->pin_count)) in intel_ring_pin()
78 atomic_dec(&ring->pin_count); in intel_ring_pin()
95 if (!atomic_dec_and_test(&ring->pin_count)) in intel_ring_unpin()
A Dgen6_ppgtt.c378 if (atomic_add_unless(&ppgtt->pin_count, 1, 0)) in gen6_ppgtt_pin()
390 if (!atomic_read(&ppgtt->pin_count)) in gen6_ppgtt_pin()
393 atomic_inc(&ppgtt->pin_count); in gen6_ppgtt_pin()
403 GEM_BUG_ON(!atomic_read(&ppgtt->pin_count)); in gen6_ppgtt_unpin()
404 if (atomic_dec_and_test(&ppgtt->pin_count)) in gen6_ppgtt_unpin()
412 if (!atomic_read(&ppgtt->pin_count)) in gen6_ppgtt_unpin_all()
416 atomic_set(&ppgtt->pin_count, 0); in gen6_ppgtt_unpin_all()
A Dintel_ggtt_fencing.c295 GEM_BUG_ON(atomic_read(&fence->pin_count)); in i915_vma_revoke_fence()
341 if (atomic_read(&fence->pin_count)) in fence_find()
367 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence()
377 GEM_BUG_ON(atomic_read(&fence->pin_count)); in __i915_vma_pin_fence()
378 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence()
394 atomic_dec(&fence->pin_count); in __i915_vma_pin_fence()
459 count += !atomic_read(&fence->pin_count); in i915_reserve_fence()
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()
51 atomic_set(&ring->pin_count, 1); in mock_ring()
A Dintel_ring_types.h39 atomic_t pin_count; member
A Dintel_timeline_types.h43 atomic_t pin_count; member
A Dintel_ggtt_fencing.h26 atomic_t pin_count; member
A Dintel_context.c250 if (likely(!atomic_add_unless(&ce->pin_count, 1, 0))) { in __intel_context_do_pin_ww()
267 atomic_inc(&ce->pin_count); in __intel_context_do_pin_ww()
314 if (!atomic_sub_and_test(sub, &ce->pin_count)) in __intel_context_do_unpin()
A Dgen6_ppgtt.h21 atomic_t pin_count; member
/linux/include/drm/ttm/
A Dttm_bo_api.h156 unsigned pin_count; member
554 ++bo->pin_count; in ttm_bo_pin()
567 if (bo->pin_count) in ttm_bo_unpin()
568 --bo->pin_count; in ttm_bo_unpin()
/linux/drivers/gpu/drm/omapdrm/
A Domap_fb.c51 int pin_count; member
231 if (omap_fb->pin_count > 0) { in omap_framebuffer_pin()
232 omap_fb->pin_count++; in omap_framebuffer_pin()
245 omap_fb->pin_count++; in omap_framebuffer_pin()
271 omap_fb->pin_count--; in omap_framebuffer_unpin()
273 if (omap_fb->pin_count > 0) { in omap_framebuffer_unpin()
/linux/drivers/gpu/drm/radeon/
A 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()
A Dradeon_object.c301 if (bo->tbo.pin_count) { in radeon_bo_pin_restricted()
359 if (!bo->tbo.pin_count) { in radeon_bo_unpin()
503 if (!bo->tbo.pin_count) { in radeon_bo_list_validate()
583 if (old_object->tbo.pin_count == 0) in radeon_bo_get_surface_reg()
767 if (rbo->tbo.pin_count > 0) in radeon_bo_fault_reserve_notify()
/linux/drivers/gpu/drm/i915/gem/
A Di915_gem_object.c494 int pin_count = atomic_read(&obj->mm.pages_pin_count); in i915_gem_object_evictable() local
496 if (!pin_count) in i915_gem_object_evictable()
506 pin_count--; in i915_gem_object_evictable()
509 GEM_WARN_ON(pin_count < 0); in i915_gem_object_evictable()
511 return pin_count == 0; in i915_gem_object_evictable()
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_object.c889 if (bo->tbo.pin_count) { in amdgpu_bo_pin_restricted()
992 if (bo->tbo.pin_count) in amdgpu_bo_unpin()
1330 if (abo->tbo.pin_count > 0) in amdgpu_bo_fault_reserve_notify()
1437 !bo->tbo.pin_count && bo->tbo.type != ttm_bo_type_kernel); in amdgpu_bo_gpu_offset()
1508 unsigned int pin_count; in amdgpu_bo_print_info() local
1529 pin_count = READ_ONCE(bo->tbo.pin_count); in amdgpu_bo_print_info()
1530 if (pin_count) in amdgpu_bo_print_info()
1531 seq_printf(m, " pin count %d", pin_count); in amdgpu_bo_print_info()
/linux/drivers/gpu/drm/ttm/
A Dttm_bo.c110 if (bo->pin_count) { in ttm_bo_move_to_lru_tail()
124 if (bulk && !bo->pin_count) { in ttm_bo_move_to_lru_tail()
411 WARN_ON_ONCE(bo->pin_count); in ttm_bo_release()
446 if (bo->pin_count) { in ttm_bo_release()
447 bo->pin_count = 0; in ttm_bo_release()
876 if (bo->resource->mem_type == TTM_PL_SYSTEM && !bo->pin_count) in ttm_bo_mem_space()
978 bo->pin_count = 0; in ttm_bo_init_reserved()
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_resource.c517 if (!res->func->may_evict || res->id == -1 || res->pin_count) in vmw_resource_unreserve()
999 if (res->pin_count == 0) { in vmw_resource_pin()
1008 if (!vbo->base.pin_count) { in vmw_resource_pin()
1028 res->pin_count++; in vmw_resource_pin()
1056 WARN_ON(res->pin_count == 0); in vmw_resource_unpin()
1057 if (--res->pin_count == 0 && res->backup) { in vmw_resource_unpin()
A Dvmwgfx_bo.c104 if (buf->base.pin_count > 0) in vmw_bo_pin_in_placement()
145 if (buf->base.pin_count > 0) { in vmw_bo_pin_in_vram_or_gmr()
230 buf->base.pin_count == 0) { in vmw_bo_pin_in_start_of_vram()
235 if (buf->base.pin_count > 0) in vmw_bo_pin_in_start_of_vram()
321 if (pin == !!bo->pin_count) in vmw_bo_pin_reserved()
/linux/drivers/gpu/drm/msm/
A Dmsm_gem.c195 msm_obj->pin_count++; in msm_gem_get_pages()
208 msm_obj->pin_count--; in msm_gem_put_pages()
209 GEM_WARN_ON(msm_obj->pin_count < 0); in msm_gem_put_pages()
441 msm_obj->pin_count++; in msm_gem_pin_iova()
545 msm_obj->pin_count--; in msm_gem_unpin_iova_locked()
546 GEM_WARN_ON(msm_obj->pin_count < 0); in msm_gem_unpin_iova_locked()
A Dmsm_gem.h105 int pin_count; member
208 return msm_obj->base.import_attach || msm_obj->pin_count; in is_unpurgeable()
/linux/drivers/gpu/drm/i915/
A Di915_vma.h370 GEM_BUG_ON(atomic_read(&vma->fence->pin_count) <= 0); in __i915_vma_unpin_fence()
371 atomic_dec(&vma->fence->pin_count); in __i915_vma_unpin_fence()

Completed in 43 milliseconds

123