Home
last modified time | relevance | path

Searched refs:kref (Results 1 – 25 of 92) sorted by relevance

1234

/netbsd/sys/external/bsd/drm2/include/linux/
H A Dkref.h44 struct kref { struct
49 kref_init(struct kref *kref) in kref_init() argument
55 kref_get(struct kref *kref) in kref_get() argument
64 kref_get_unless_zero(struct kref *kref) in kref_get_unless_zero() argument
79 kref_sub(struct kref *kref, unsigned int count, void (*release)(struct kref *)) in kref_sub() argument
102 kref_put_lock(struct kref *kref, void (*release)(struct kref *), in kref_put_lock() argument
129 kref_put(struct kref *kref, void (*release)(struct kref *)) in kref_put() argument
136 kref_put_mutex(struct kref *kref, void (*release)(struct kref *), in kref_put_mutex() argument
163 kref_read(const struct kref *kref) in kref_read() argument
174 kref_referenced_p(struct kref *kref) in kref_referenced_p() argument
[all …]
/netbsd/sys/external/bsd/drm2/dist/drm/amd/display/dc/core/
H A Damdgpu_dc_surface.c190 static void dc_plane_state_free(struct kref *kref) in dc_plane_state_free() argument
192 struct dc_plane_state *plane_state = container_of(kref, struct dc_plane_state, refcount); in dc_plane_state_free()
207 static void dc_gamma_free(struct kref *kref) in dc_gamma_free() argument
209 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free()
238 static void dc_transfer_func_free(struct kref *kref) in dc_transfer_func_free() argument
240 struct dc_transfer_func *tf = container_of(kref, struct dc_transfer_func, refcount); in dc_transfer_func_free()
264 static void dc_3dlut_func_free(struct kref *kref) in dc_3dlut_func_free() argument
266 struct dc_3dlut *lut = container_of(kref, struct dc_3dlut, refcount); in dc_3dlut_func_free()
H A Damdgpu_dc_sink.c80 static void dc_sink_free(struct kref *kref) in dc_sink_free() argument
82 struct dc_sink *sink = container_of(kref, struct dc_sink, refcount); in dc_sink_free()
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/
H A Dnouveau_nvkm_core_memory.c109 kref_init(&memory->kref); in nvkm_memory_ctor()
113 nvkm_memory_del(struct kref *kref) in nvkm_memory_del() argument
115 struct nvkm_memory *memory = container_of(kref, typeof(*memory), kref); in nvkm_memory_del()
128 kref_put(&memory->kref, nvkm_memory_del); in nvkm_memory_unref()
137 kref_get(&memory->kref); in nvkm_memory_ref()
/netbsd/sys/external/bsd/drm2/dist/drm/vmwgfx/
H A Dttm_object.c81 struct kref refcount;
132 struct kref kref; member
147 static void ttm_object_file_destroy(struct kref *kref) in ttm_object_file_destroy() argument
205 static void ttm_release_base(struct kref *kref) in ttm_release_base() argument
340 if (unlikely(kref_read(&ref->kref) == 0)) in ttm_ref_object_exists()
378 if (kref_get_unless_zero(&ref->kref)) { in ttm_ref_object_add()
402 kref_init(&ref->kref); in ttm_ref_object_add()
427 ttm_ref_object_release(struct kref *kref) in ttm_ref_object_release() argument
430 container_of(kref, struct ttm_ref_object, kref); in ttm_ref_object_release()
465 kref_put(&ref->kref, ttm_ref_object_release); in ttm_ref_object_base_unref()
[all …]
H A Dvmwgfx_resource.c93 kref_get(&res->kref); in vmw_resource_reference()
100 return kref_get_unless_zero(&res->kref) ? res : NULL; in vmw_resource_reference_unless_doomed()
122 static void vmw_resource_release(struct kref *kref) in vmw_resource_release() argument
125 container_of(kref, struct vmw_resource, kref); in vmw_resource_release()
179 kref_put(&res->kref, vmw_resource_release); in vmw_resource_unreference()
227 kref_init(&res->kref); in vmw_resource_init()
283 kref_get(&res->kref); in vmw_user_resource_lookup_handle()
/netbsd/sys/external/bsd/drm2/dist/include/drm/
H A Ddrm_syncobj.h45 struct kref refcount;
68 void drm_syncobj_free(struct kref *kref);
127 void drm_syncobj_free(struct kref *kref);
H A Ddrm_mode_object.h61 struct kref refcount;
62 void (*free_cb)(struct kref *kref);
H A Ddrm_gem.h210 struct kref refcount;
366 void drm_gem_object_free(struct kref *kref);
H A Ddrm_atomic.h88 struct kref ref;
329 struct kref ref;
383 void __drm_crtc_commit_free(struct kref *kref);
429 void __drm_atomic_state_free(struct kref *ref);
/netbsd/sys/external/bsd/drm2/dist/drm/i915/gt/
H A Dselftest_engine_heartbeat.c43 struct kref kref; member
48 kref_get(&container_of(active, struct pulse, active)->kref); in pulse_active()
52 static void pulse_free(struct kref *kref) in pulse_free() argument
54 kfree(container_of(kref, struct pulse, kref)); in pulse_free()
59 kref_put(&p->kref, pulse_free); in pulse_put()
75 kref_init(&p->kref); in pulse_create()
H A Dintel_timeline.h47 kref_get(&timeline->kref); in intel_timeline_get()
51 void __intel_timeline_free(struct kref *kref);
54 kref_put(&timeline->kref, __intel_timeline_free); in intel_timeline_put()
H A Dintel_context_types.h39 void (*destroy)(struct kref *kref);
43 struct kref ref;
H A Dintel_gt_requests.c129 null_release(struct kref *kref) in null_release() argument
183 if (kref_put(&tl->kref, null_release)) { in intel_gt_retire_requests_timeout()
191 __intel_timeline_free(&tl->kref); in intel_gt_retire_requests_timeout()
H A Dintel_timeline_types.h89 struct kref kref; member
H A Dintel_timeline.c215 kref_init(&timeline->kref); in intel_timeline_init()
562 void __intel_timeline_free(struct kref *kref) in __intel_timeline_free() argument
565 container_of(kref, typeof(*timeline), kref); in __intel_timeline_free()
/netbsd/sys/external/bsd/drm2/dist/drm/i915/
H A Dintel_memory_region.c204 kref_init(&mem->kref); in intel_memory_region_create()
224 static void __intel_memory_region_destroy(struct kref *kref) in __intel_memory_region_destroy() argument
227 container_of(kref, typeof(*mem), kref); in __intel_memory_region_destroy()
240 kref_get(&mem->kref); in intel_memory_region_get()
246 kref_put(&mem->kref, __intel_memory_region_destroy); in intel_memory_region_put()
H A Di915_gpu_error.h155 struct kref ref;
256 void __i915_gpu_coredump_free(struct kref *kref);
H A Dintel_memory_region.h87 struct kref kref; member
/netbsd/sys/external/bsd/drm2/dist/drm/i915/gvt/
H A Ddmabuf.c146 static void dmabuf_gem_object_free(struct kref *kref) in dmabuf_gem_object_free() argument
149 container_of(kref, struct intel_vgpu_dmabuf_obj, kref); in dmabuf_gem_object_free()
178 kref_get(&obj->kref); in dmabuf_obj_get()
183 kref_put(&obj->kref, dmabuf_gem_object_free); in dmabuf_obj_put()
460 vgpu->id, kref_read(&dmabuf_obj->kref), in intel_vgpu_query_plane()
499 kref_init(&dmabuf_obj->kref); in intel_vgpu_query_plane()
517 __func__, kref_read(&dmabuf_obj->kref), ret); in intel_vgpu_query_plane()
584 kref_read(&dmabuf_obj->kref), in intel_vgpu_get_dmabuf()
H A Ddmabuf.h60 struct kref kref; member
/netbsd/sys/external/bsd/drm2/dist/include/drm/ttm/
H A Dttm_bo_api.h205 struct kref kref; member
206 struct kref list_kref;
316 kref_get(&bo->kref); in ttm_bo_get()
332 if (!kref_get_unless_zero(&bo->kref)) in ttm_bo_get_unless_zero()
/netbsd/sys/external/bsd/drm2/dist/drm/i915/gem/
H A Di915_gem_userptr.c36 struct kref kref; member
376 kref_init(&mm->kref); in i915_gem_userptr_init__mm_struct()
392 kref_get(&mm->kref); in i915_gem_userptr_init__mm_struct()
410 __i915_mm_struct_free(struct kref *kref) in __i915_mm_struct_free() argument
412 struct i915_mm_struct *mm = container_of(kref, typeof(*mm), kref); in __i915_mm_struct_free()
428 kref_put_mutex(&obj->userptr.mm->kref, in i915_gem_userptr_release__mm_struct()
/netbsd/sys/external/bsd/drm2/dist/drm/
H A Ddrm_crtc_internal.h60 struct kref;
143 void (*obj_free_cb)(struct kref *kref));
198 void drm_framebuffer_free(struct kref *kref);
/netbsd/sys/external/bsd/drm2/dist/drm/i915/selftests/
H A Dlib_sw_fence.c92 struct kref ref;
127 static void heap_fence_release(struct kref *ref) in heap_fence_release()

1234