Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/arch/mips/include/asm/mach-ralink/
Dpinmux.h9 #define FUNC(name, value, pin_first, pin_count) \ argument
10 { name, value, pin_first, pin_count }
29 int pin_count; member
/kernel/linux/linux-5.10/drivers/staging/mt7621-pinctrl/
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()
263 if (!p->func[i]->pin_count) in rt2880_pinmux_pins()
267 p->func[i]->pin_count, in rt2880_pinmux_pins()
272 for (j = 0; j < p->func[i]->pin_count; j++) in rt2880_pinmux_pins()
275 pin = p->func[i]->pin_first + p->func[i]->pin_count; in rt2880_pinmux_pins()
292 if (!p->func[i]->pin_count) in rt2880_pinmux_pins()
295 for (j = 0; j < p->func[i]->pin_count; j++) in rt2880_pinmux_pins()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_timeline.c226 atomic_set(&timeline->pin_count, 0); in intel_timeline_init()
289 GEM_BUG_ON(atomic_read(&timeline->pin_count)); in intel_timeline_fini()
332 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in __intel_timeline_pin()
333 atomic_inc(&tl->pin_count); in __intel_timeline_pin()
340 if (atomic_add_unless(&tl->pin_count, 1, 0)) in intel_timeline_pin()
354 if (atomic_fetch_inc(&tl->pin_count)) { in intel_timeline_pin()
365 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in intel_timeline_reset_seqno()
436 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in timeline_advance()
600 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in intel_timeline_unpin()
601 if (!atomic_dec_and_test(&tl->pin_count)) in intel_timeline_unpin()
Dintel_ring.c26 GEM_BUG_ON(!atomic_read(&ring->pin_count)); in __intel_ring_pin()
27 atomic_inc(&ring->pin_count); in __intel_ring_pin()
37 if (atomic_fetch_inc(&ring->pin_count)) in intel_ring_pin()
73 atomic_dec(&ring->pin_count); in intel_ring_pin()
90 if (!atomic_dec_and_test(&ring->pin_count)) in intel_ring_unpin()
Dgen6_ppgtt.c390 if (atomic_add_unless(&ppgtt->pin_count, 1, 0)) in gen6_ppgtt_pin()
402 if (!atomic_read(&ppgtt->pin_count)) in gen6_ppgtt_pin()
405 atomic_inc(&ppgtt->pin_count); in gen6_ppgtt_pin()
415 GEM_BUG_ON(!atomic_read(&ppgtt->pin_count)); in gen6_ppgtt_unpin()
416 if (atomic_dec_and_test(&ppgtt->pin_count)) in gen6_ppgtt_unpin()
424 if (!atomic_read(&ppgtt->pin_count)) in gen6_ppgtt_unpin_all()
428 atomic_set(&ppgtt->pin_count, 0); in gen6_ppgtt_unpin_all()
Dintel_context.h70 return atomic_read(&ce->pin_count); in intel_context_is_pinned()
91 return atomic_inc_not_zero(&ce->pin_count); in intel_context_pin_if_active()
114 atomic_inc(&ce->pin_count); in __intel_context_pin()
Dintel_ggtt_fencing.c313 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()
Dmock_engine.c37 atomic_inc(&tl->pin_count); in mock_timeline_pin()
42 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in mock_timeline_unpin()
43 atomic_dec(&tl->pin_count); in mock_timeline_unpin()
59 atomic_set(&ring->pin_count, 1); in mock_ring()
Dintel_ring_types.h40 atomic_t pin_count; member
Dintel_timeline_types.h45 atomic_t pin_count; member
Dintel_ggtt_fencing.h45 atomic_t pin_count; member
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()
312 if (!atomic_dec_and_test(&ce->pin_count)) in intel_context_unpin()
Dgen6_ppgtt.h21 atomic_t pin_count; member
Dintel_context_types.h112 atomic_t pin_count; member
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_object.c131 bo->pin_count = pinned ? 1 : 0; in qxl_bo_create()
252 if (bo->pin_count) { in __qxl_bo_pin()
253 bo->pin_count++; in __qxl_bo_pin()
259 bo->pin_count = 1; in __qxl_bo_pin()
272 if (!bo->pin_count) { in __qxl_bo_unpin()
276 bo->pin_count--; in __qxl_bo_unpin()
277 if (bo->pin_count) in __qxl_bo_unpin()
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Ddce6_afmt.c83 int i, pin_count; in dce6_audio_get_pin() local
90 pin_count = 0; in dce6_audio_get_pin()
97 pin_count++; in dce6_audio_get_pin()
101 if (pin_count == 0) in dce6_audio_get_pin()
Dradeon_object.c337 if (bo->pin_count) { in radeon_bo_pin_restricted()
338 bo->pin_count++; in radeon_bo_pin_restricted()
376 bo->pin_count = 1; in radeon_bo_pin_restricted()
399 if (!bo->pin_count) { in radeon_bo_unpin()
403 bo->pin_count--; in radeon_bo_unpin()
404 if (bo->pin_count) in radeon_bo_unpin()
552 if (!bo->pin_count) { in radeon_bo_list_validate()
632 if (old_object->pin_count == 0) in radeon_bo_get_surface_reg()
819 if (rbo->pin_count > 0) in radeon_bo_fault_reserve_notify()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_bo.c109 if (buf->pin_count > 0) in vmw_bo_pin_in_placement()
158 if (buf->pin_count > 0) { in vmw_bo_pin_in_vram_or_gmr()
249 buf->pin_count == 0) { in vmw_bo_pin_in_start_of_vram()
254 if (buf->pin_count > 0) in vmw_bo_pin_in_start_of_vram()
347 if (vbo->pin_count++ > 0) in vmw_bo_pin_reserved()
350 WARN_ON(vbo->pin_count <= 0); in vmw_bo_pin_reserved()
351 if (--vbo->pin_count > 0) in vmw_bo_pin_reserved()
Dvmwgfx_resource.c518 if (!res->func->may_evict || res->id == -1 || res->pin_count) in vmw_resource_unreserve()
998 if (res->pin_count == 0) { in vmw_resource_pin()
1005 if (!vbo->pin_count) { in vmw_resource_pin()
1025 res->pin_count++; in vmw_resource_pin()
1055 WARN_ON(res->pin_count == 0); in vmw_resource_unpin()
1056 if (--res->pin_count == 0 && res->backup) { in vmw_resource_unpin()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.c81 if (bo->pin_count > 0) in amdgpu_bo_destroy()
724 if (bo->pin_count) in amdgpu_bo_validate()
925 if (bo->pin_count) { in amdgpu_bo_pin_restricted()
931 bo->pin_count++; in amdgpu_bo_pin_restricted()
971 bo->pin_count = 1; in amdgpu_bo_pin_restricted()
1019 if (WARN_ON_ONCE(!bo->pin_count)) { in amdgpu_bo_unpin()
1023 bo->pin_count--; in amdgpu_bo_unpin()
1024 if (bo->pin_count) in amdgpu_bo_unpin()
1393 if (abo->pin_count > 0) in amdgpu_bo_fault_reserve_notify()
1497 !bo->pin_count && bo->tbo.type != ttm_bo_type_kernel); in amdgpu_bo_gpu_offset()
Damdgpu_gem.c858 unsigned pin_count; in amdgpu_debugfs_gem_bo_info() local
876 pin_count = READ_ONCE(bo->pin_count); in amdgpu_debugfs_gem_bo_info()
877 if (pin_count) in amdgpu_debugfs_gem_bo_info()
878 seq_printf(m, " pin count %d", pin_count); in amdgpu_debugfs_gem_bo_info()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_gem_vram_helper.c304 if (WARN_ON_ONCE(!gbo->pin_count)) in drm_gem_vram_offset()
316 if (gbo->pin_count) in drm_gem_vram_pin_locked()
330 ++gbo->pin_count; in drm_gem_vram_pin_locked()
377 if (WARN_ON_ONCE(!gbo->pin_count)) in drm_gem_vram_unpin_locked()
380 --gbo->pin_count; in drm_gem_vram_unpin_locked()
381 if (gbo->pin_count) in drm_gem_vram_unpin_locked()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_vma.h345 GEM_BUG_ON(atomic_read(&vma->fence->pin_count) <= 0); in __i915_vma_unpin_fence()
346 atomic_dec(&vma->fence->pin_count); in __i915_vma_unpin_fence()
/kernel/linux/linux-5.10/include/drm/
Ddrm_gem_vram_helper.h68 int pin_count; member

12