/drivers/staging/mt7621-pinctrl/ |
D | pinctrl-rt2880.c | 72 *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() 270 for (j = 0; j < p->func[i]->pin_count; j++) in rt2880_pinmux_pins() 273 pin = p->func[i]->pin_first + p->func[i]->pin_count; in rt2880_pinmux_pins() 290 if (!p->func[i]->pin_count) in rt2880_pinmux_pins() 293 for (j = 0; j < p->func[i]->pin_count; j++) in rt2880_pinmux_pins()
|
/drivers/gpu/drm/qxl/ |
D | qxl_object.c | 104 bo->pin_count = pinned ? 1 : 0; in qxl_bo_create() 233 if (bo->pin_count) { in __qxl_bo_pin() 234 bo->pin_count++; in __qxl_bo_pin() 240 bo->pin_count = 1; in __qxl_bo_pin() 253 if (!bo->pin_count) { in __qxl_bo_unpin() 257 bo->pin_count--; in __qxl_bo_unpin() 258 if (bo->pin_count) in __qxl_bo_unpin()
|
D | qxl_debugfs.c | 70 bo->pin_count, rel); in qxl_debugfs_buffers_info()
|
/drivers/gpu/drm/ |
D | drm_gem_vram_helper.c | 189 if (WARN_ON_ONCE(!gbo->pin_count)) in drm_gem_vram_offset() 219 if (gbo->pin_count) in drm_gem_vram_pin() 233 ++gbo->pin_count; in drm_gem_vram_pin() 261 if (WARN_ON_ONCE(!gbo->pin_count)) in drm_gem_vram_unpin() 264 --gbo->pin_count; in drm_gem_vram_unpin() 265 if (gbo->pin_count) in drm_gem_vram_unpin()
|
/drivers/gpu/drm/i915/gt/ |
D | intel_timeline.c | 214 atomic_set(&timeline->pin_count, 0); in intel_timeline_init() 283 GEM_BUG_ON(atomic_read(&timeline->pin_count)); in intel_timeline_fini() 317 if (atomic_add_unless(&tl->pin_count, 1, 0)) in intel_timeline_pin() 329 if (atomic_fetch_inc(&tl->pin_count)) { in intel_timeline_pin() 344 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in intel_timeline_enter() 379 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in timeline_advance() 529 GEM_BUG_ON(!atomic_read(&tl->pin_count)); in intel_timeline_unpin() 530 if (!atomic_dec_and_test(&tl->pin_count)) in intel_timeline_unpin()
|
D | intel_context.h | 54 return atomic_read(&ce->pin_count); in intel_context_is_pinned() 73 if (likely(atomic_inc_not_zero(&ce->pin_count))) in intel_context_pin() 82 atomic_inc(&ce->pin_count); in __intel_context_pin()
|
D | mock_engine.c | 37 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()
|
D | intel_context.c | 53 if (likely(!atomic_read(&ce->pin_count))) { in __intel_context_do_pin() 79 atomic_inc(&ce->pin_count); in __intel_context_do_pin() 92 if (likely(atomic_add_unless(&ce->pin_count, -1, 1))) in intel_context_unpin() 99 if (likely(atomic_dec_and_test(&ce->pin_count))) { in intel_context_unpin()
|
D | intel_timeline_types.h | 44 atomic_t pin_count; member
|
D | intel_context_types.h | 64 atomic_t pin_count; member
|
D | intel_engine_types.h | 102 atomic_t pin_count; member
|
/drivers/gpu/drm/omapdrm/ |
D | omap_fb.c | 51 int pin_count; member 234 if (omap_fb->pin_count > 0) { in omap_framebuffer_pin() 235 omap_fb->pin_count++; in omap_framebuffer_pin() 248 omap_fb->pin_count++; in omap_framebuffer_pin() 274 omap_fb->pin_count--; in omap_framebuffer_unpin() 276 if (omap_fb->pin_count > 0) { in omap_framebuffer_unpin()
|
/drivers/gpu/drm/i915/ |
D | i915_gem_fence_reg.c | 308 if (atomic_read(&fence->pin_count)) in i915_vma_revoke_fence() 321 if (atomic_read(&fence->pin_count)) in fence_find() 345 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence() 355 GEM_BUG_ON(atomic_read(&fence->pin_count)); in __i915_vma_pin_fence() 356 atomic_inc(&fence->pin_count); in __i915_vma_pin_fence() 372 atomic_dec(&fence->pin_count); in __i915_vma_pin_fence() 435 count += !atomic_read(&fence->pin_count); in i915_reserve_fence()
|
D | i915_gem_fence_reg.h | 44 atomic_t pin_count; member
|
D | i915_vma.h | 429 GEM_BUG_ON(atomic_read(&vma->fence->pin_count) <= 0); in __i915_vma_unpin_fence() 430 atomic_dec(&vma->fence->pin_count); in __i915_vma_unpin_fence()
|
/drivers/gpu/drm/radeon/ |
D | radeon_object.c | 337 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()
|
D | dce6_afmt.c | 83 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()
|
D | radeon_audio.c | 251 int pin_count = 0; in radeon_audio_enable() local 262 pin_count++; in radeon_audio_enable() 266 if ((pin_count > 1) && (enable_mask == 0)) in radeon_audio_enable()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_bo.c | 109 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()
|
D | vmwgfx_resource.c | 452 if (!res->func->may_evict || res->id == -1 || res->pin_count) in vmw_resource_unreserve() 930 if (res->pin_count == 0) { in vmw_resource_pin() 937 if (!vbo->pin_count) { in vmw_resource_pin() 957 res->pin_count++; in vmw_resource_pin() 987 WARN_ON(res->pin_count == 0); in vmw_resource_unpin() 988 if (--res->pin_count == 0 && res->backup) { in vmw_resource_unpin()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_object.c | 80 if (bo->pin_count > 0) in amdgpu_bo_destroy() 711 if (bo->pin_count) in amdgpu_bo_validate() 908 if (bo->pin_count) { in amdgpu_bo_pin_restricted() 914 bo->pin_count++; in amdgpu_bo_pin_restricted() 950 bo->pin_count = 1; in amdgpu_bo_pin_restricted() 998 if (WARN_ON_ONCE(!bo->pin_count)) { in amdgpu_bo_unpin() 1002 bo->pin_count--; in amdgpu_bo_unpin() 1003 if (bo->pin_count) in amdgpu_bo_unpin() 1355 if (abo->pin_count > 0) in amdgpu_bo_fault_reserve_notify() 1437 !bo->pin_count && bo->tbo.type != ttm_bo_type_kernel); in amdgpu_bo_gpu_offset()
|
D | amdgpu_gem.c | 803 unsigned pin_count; in amdgpu_debugfs_gem_bo_info() local 821 pin_count = READ_ONCE(bo->pin_count); in amdgpu_debugfs_gem_bo_info() 822 if (pin_count) in amdgpu_debugfs_gem_bo_info() 823 seq_printf(m, " pin count %d", pin_count); in amdgpu_debugfs_gem_bo_info()
|
D | amdgpu_object.h | 88 unsigned pin_count; member
|
/drivers/pinctrl/ |
D | pinctrl-xway.c | 1604 int pin_count; member 1616 .pin_count = XR9_MAX_PIN, 1628 .pin_count = ASE_MAX_PIN, 1640 .pin_count = DANUBE_MAX_PIN, 1652 .pin_count = XRX100_MAX_PIN, 1664 .pin_count = XRX200_MAX_PIN, 1676 .pin_count = XRX300_MAX_PIN, 1724 xway_chip.ngpio = xway_soc->pin_count; in pinmux_xway_probe()
|
/drivers/gpu/drm/cirrus/ |
D | cirrus_drv.h | 156 int pin_count; member
|