Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 25 of 43) sorted by relevance

12

/include/linux/
Dkref.h24 atomic_t refcount; member
33 atomic_set(&kref->refcount, 1); in kref_init()
46 WARN_ON_ONCE(atomic_inc_return(&kref->refcount) < 2); in kref_get()
72 if (atomic_sub_and_test((int) count, &kref->refcount)) { in kref_sub()
106 if (unlikely(!atomic_add_unless(&kref->refcount, -1, 1))) { in kref_put_mutex()
108 if (unlikely(!atomic_dec_and_test(&kref->refcount))) { in kref_put_mutex()
136 return atomic_add_unless(&kref->refcount, 1, 0); in kref_get_unless_zero()
Diocontext.h98 atomic_long_t refcount; member
130 WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0); in get_io_context_active()
132 atomic_long_inc(&ioc->refcount); in get_io_context_active()
Dfence.h73 struct kref refcount; member
194 kref_put(&fence->refcount, fence_release); in fence_put()
206 kref_get(&fence->refcount); in fence_get()
218 if (kref_get_unless_zero(&fence->refcount)) in fence_get_rcu()
Drmap.h37 atomic_t refcount; member
104 atomic_inc(&anon_vma->refcount); in get_anon_vma()
111 if (atomic_dec_and_test(&anon_vma->refcount)) in put_anon_vma()
Dcpu_rmap.h28 struct kref refcount; member
Dslab_def.h43 int refcount; member
Dzpool.h83 atomic_t refcount; member
Dslub_def.h77 int refcount; /* Refcount for slab cache destroy */ member
Drpmsg.h110 struct kref refcount; member
Dtty_ldisc.h205 int refcount; member
/include/rdma/
Drdmavt_mr.h86 atomic_t refcount; member
122 if (unlikely(atomic_dec_and_test(&mr->refcount))) in rvt_put_mr()
128 atomic_inc(&mr->refcount); in rvt_get_mr()
Drdmavt_qp.h306 atomic_t refcount ____cacheline_aligned_in_smp;
439 atomic_t refcount; member
474 atomic_inc(&qp->refcount); in rvt_get_qp()
483 if (qp && atomic_dec_and_test(&qp->refcount)) in rvt_put_qp()
/include/net/
Dnetrom.h96 atomic_t refcount; member
112 atomic_t refcount; member
121 atomic_inc(&((__nr_node)->refcount))
125 if (atomic_dec_and_test(&nr_node->refcount)) { in nr_node_put()
131 atomic_inc(&((__nr_neigh)->refcount))
135 if (atomic_dec_and_test(&nr_neigh->refcount)) { in nr_neigh_put()
Dax25.h161 atomic_t refcount; member
170 atomic_inc(&((ax25)->refcount))
174 if (atomic_dec_and_test(&assoc->refcount)) { in ax25_uid_put()
188 atomic_t refcount; member
197 atomic_inc(&ax25_rt->refcount); in ax25_hold_route()
204 if (atomic_dec_and_test(&ax25_rt->refcount)) in ax25_put_route()
247 atomic_t refcount; member
269 atomic_inc(&((__ax25)->refcount))
273 if (atomic_dec_and_test(&ax25->refcount)) { in ax25_cb_put()
Dcalipso.h60 atomic_t refcount; member
Dnetlabel.h139 atomic_t refcount; member
298 atomic_set(&cache->refcount, 1); in netlbl_secattr_cache_alloc()
312 if (!atomic_dec_and_test(&cache->refcount)) in netlbl_secattr_cache_free()
/include/drm/
Ddrm_gem.h55 struct kref refcount; member
199 kref_get(&obj->refcount); in drm_gem_object_reference()
221 kref_put(&obj->refcount, drm_gem_object_free); in __drm_gem_object_unreference()
Ddrm_auth.h46 struct kref refcount; member
Ddrm_framebuffer.h250 return atomic_read(&fb->base.refcount.refcount); in drm_framebuffer_read_refcount()
Ddrm_mode_object.h57 struct kref refcount; member
Ddrm_irq.h93 atomic_t refcount; /* number of users of vblank interruptsper crtc */ member
/include/media/
Dvideobuf2-memops.h28 atomic_t *refcount; member
/include/drm/ttm/
Dttm_object.h131 struct kref refcount; member
Dttm_bo_driver.h867 WARN_ON(!atomic_read(&bo->kref.refcount)); in ttm_bo_reserve()
892 WARN_ON(!atomic_read(&bo->kref.refcount)); in ttm_bo_reserve_slowpath()
/include/linux/mlx5/
Dcq.h45 atomic_t refcount; member

12