Home
last modified time | relevance | path

Searched refs:pages_pin_count (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/i915/gem/
Di915_gem_object.h247 if (atomic_inc_not_zero(&obj->mm.pages_pin_count)) in i915_gem_object_pin_pages()
264 atomic_inc(&obj->mm.pages_pin_count); in __i915_gem_object_pin_pages()
270 return atomic_read(&obj->mm.pages_pin_count); in i915_gem_object_has_pinned_pages()
279 atomic_dec(&obj->mm.pages_pin_count); in __i915_gem_object_unpin_pages()
Di915_gem_pages.c117 atomic_inc(&obj->mm.pages_pin_count); in __i915_gem_object_get_pages()
195 if (unlikely(atomic_read(&obj->mm.pages_pin_count))) { in __i915_gem_object_put_pages()
295 if (!atomic_inc_not_zero(&obj->mm.pages_pin_count)) { in i915_gem_object_pin_map()
305 atomic_inc(&obj->mm.pages_pin_count); in i915_gem_object_pin_map()
340 atomic_dec(&obj->mm.pages_pin_count); in i915_gem_object_pin_map()
Di915_gem_object_types.h161 atomic_t pages_pin_count; member
Di915_gem_object.c178 atomic_set(&obj->mm.pages_pin_count, 0); in __i915_gem_free_objects()
Di915_gem_shrinker.c72 if (atomic_read(&obj->mm.pages_pin_count) > atomic_read(&obj->bind_count)) in can_release_pages()
/Linux-v5.4/drivers/gpu/drm/vgem/
Dvgem_drv.c290 if (bo->pages_pin_count++ == 0) { in vgem_pin_pages()
295 bo->pages_pin_count--; in vgem_pin_pages()
310 if (--bo->pages_pin_count == 0) { in vgem_unpin_pages()
376 obj->pages_pin_count++; /* perma-pinned */ in vgem_prime_import_sg_table()
Dvgem_drv.h47 unsigned int pages_pin_count; member
/Linux-v5.4/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_phys.c42 if (!atomic_read(&obj->mm.pages_pin_count)) { in mock_phys_object()
/Linux-v5.4/drivers/gpu/drm/i915/
Di915_vma.c524 GEM_BUG_ON(atomic_read(&obj->mm.pages_pin_count) < atomic_read(&obj->bind_count)); in assert_bind_count()