Searched refs:kref (Results 1 – 25 of 77) sorted by relevance
1234
19 struct kref { struct29 static inline void kref_init(struct kref *kref) in kref_init() argument31 refcount_set(&kref->refcount, 1); in kref_init()34 static inline unsigned int kref_read(const struct kref *kref) in kref_read() argument36 return refcount_read(&kref->refcount); in kref_read()43 static inline void kref_get(struct kref *kref) in kref_get() argument45 refcount_inc(&kref->refcount); in kref_get()62 static inline int kref_put(struct kref *kref, void (*release)(struct kref *kref)) in kref_put() argument64 if (refcount_dec_and_test(&kref->refcount)) { in kref_put()65 release(kref); in kref_put()[all …]
25 struct kref kref; member36 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()
25 struct kref kref; member58 kref_get(&ns->kref); in get_pid_ns()
32 struct kref kref; member
45 struct kref kref; /* channel buffer refcount */ member66 struct kref kref; /* channel refcount */ member
86 struct kref kref; member141 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()
304 struct kref kref; /* Reference management */ member365 kref_get(&d->kref); in tty_driver_kref_get()
51 struct kref ref;
73 struct kref kref; member140 WARN_ON_ONCE(kref_read(&kobj->kref) == 0); in kobject_has_children()
25 struct kref refcount;
94 struct kref refcount;269 void dma_fence_release(struct kref *kref);
17 struct kref kref; member23 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()
11 struct kref kref; member20 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)) \
52 struct kref kref; member
43 struct kref refcount;66 void drm_syncobj_free(struct kref *kref);125 void drm_syncobj_free(struct kref *kref);
59 struct kref refcount;60 void (*free_cb)(struct kref *kref);
181 struct kref refcount;329 void drm_gem_object_free(struct kref *kref);
72 struct kref refcount;
64 struct kref kref; member179 kref_get(&req->kref); in media_request_get()274 struct kref kref; member289 kref_get(&obj->kref); in media_request_object_get()
189 struct kref kref; member190 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()
74 struct kref kref; member
39 struct kref kref; member
67 struct kref kref; member
42 struct kref kref; member
107 struct kref kref; member