Home
last modified time | relevance | path

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

1234

/include/linux/
Dkref.h19 struct kref { struct
29 static inline void kref_init(struct kref *kref) in kref_init() argument
31 refcount_set(&kref->refcount, 1); in kref_init()
34 static inline unsigned int kref_read(const struct kref *kref) in kref_read() argument
36 return refcount_read(&kref->refcount); in kref_read()
43 static inline void kref_get(struct kref *kref) in kref_get() argument
45 refcount_inc(&kref->refcount); in kref_get()
62 static inline int kref_put(struct kref *kref, void (*release)(struct kref *kref)) in kref_put() argument
64 if (refcount_dec_and_test(&kref->refcount)) { in kref_put()
65 release(kref); in kref_put()
[all …]
Dutsname.h25 struct kref kref; member
36 kref_get(&ns->kref); in get_uts_ns()
41 extern void free_uts_ns(struct kref *kref);
45 kref_put(&ns->kref, free_uts_ns); in put_uts_ns()
Dpid_namespace.h25 struct kref kref; member
58 kref_get(&ns->kref); in get_pid_ns()
Dbsg-lib.h32 struct kref kref; member
Drelay.h45 struct kref kref; /* channel buffer refcount */ member
66 struct kref kref; /* channel refcount */ member
Dfirewire.h86 struct kref kref; member
141 kref_get(&card->kref); in fw_card_get()
146 void fw_card_release(struct kref *kref);
150 kref_put(&card->kref, fw_card_release); in fw_card_put()
Dtty_driver.h304 struct kref kref; /* Reference management */ member
365 kref_get(&d->kref); in tty_driver_kref_get()
Dhw_random.h51 struct kref ref;
Dkobject.h73 struct kref kref; member
140 WARN_ON_ONCE(kref_read(&kobj->kref) == 0); in kobject_has_children()
Dcpu_rmap.h25 struct kref refcount;
Ddma-fence.h94 struct kref refcount;
269 void dma_fence_release(struct kref *kref);
/include/linux/ceph/
Dbuffer.h17 struct kref kref; member
23 extern void ceph_buffer_release(struct kref *kref);
27 kref_get(&b->kref); in ceph_buffer_get()
34 kref_put(&b->kref, ceph_buffer_release); in ceph_buffer_put()
Dstring_table.h11 struct kref kref; member
20 extern void ceph_release_string(struct kref *ref);
27 kref_get(&str->kref); in ceph_get_string()
35 kref_put(&str->kref, ceph_release_string); in ceph_put_string()
56 kref_get_unless_zero(&___str->kref)) \
Dmon_client.h52 struct kref kref; member
/include/drm/
Ddrm_syncobj.h43 struct kref refcount;
66 void drm_syncobj_free(struct kref *kref);
125 void drm_syncobj_free(struct kref *kref);
Ddrm_mode_object.h59 struct kref refcount;
60 void (*free_cb)(struct kref *kref);
Ddrm_gem.h181 struct kref refcount;
329 void drm_gem_object_free(struct kref *kref);
Ddrm_auth.h72 struct kref refcount;
/include/media/
Dmedia-request.h64 struct kref kref; member
179 kref_get(&req->kref); in media_request_get()
274 struct kref kref; member
289 kref_get(&obj->kref); in media_request_object_get()
/include/drm/ttm/
Dttm_bo_api.h189 struct kref kref; member
190 struct kref list_kref;
293 kref_get(&bo->kref); in ttm_bo_get()
309 if (!kref_get_unless_zero(&bo->kref)) in ttm_bo_get_unless_zero()
/include/rdma/
Drestrack.h74 struct kref kref; member
Drdma_counter.h39 struct kref kref; member
/include/linux/iio/
Dbuffer-dma.h67 struct kref kref; member
/include/linux/greybus/
Dconnection.h42 struct kref kref; member
Doperation.h107 struct kref kref; member

1234