Lines Matching refs:refcount
410 kref_init(&fb->refcount); in drm_framebuffer_init()
442 container_of(kref, struct drm_framebuffer, refcount); in drm_framebuffer_free()
493 if (!kref_get_unless_zero(&fb->refcount)) in drm_framebuffer_lookup()
510 DRM_DEBUG("%p: FB ID: %d (%d)\n", fb, fb->base.id, atomic_read(&fb->refcount.refcount)); in drm_framebuffer_unreference()
511 kref_put(&fb->refcount, drm_framebuffer_free); in drm_framebuffer_unreference()
523 DRM_DEBUG("%p: FB ID: %d (%d)\n", fb, fb->base.id, atomic_read(&fb->refcount.refcount)); in drm_framebuffer_reference()
524 kref_get(&fb->refcount); in drm_framebuffer_reference()
613 if (atomic_read(&fb->refcount.refcount) > 1) { in drm_framebuffer_remove()
5556 struct drm_tile_group *tg = container_of(kref, struct drm_tile_group, refcount); in drm_tile_group_free()
5574 kref_put(&tg->refcount, drm_tile_group_free); in drm_mode_put_tile_group()
5595 if (!kref_get_unless_zero(&tg->refcount)) in drm_mode_get_tile_group()
5627 kref_init(&tg->refcount); in drm_mode_create_tile_group()