Searched refs:kref (Results 1 - 24 of 24) sorted by relevance

/freebsd-11.0-release/sys/compat/linuxkpi/common/include/linux/
H A Dkref.h30 * $FreeBSD: releng/11.0/sys/compat/linuxkpi/common/include/linux/kref.h 300497 2016-05-23 12:06:34Z hselasky $
44 struct kref { struct
49 kref_init(struct kref *kref) argument
52 refcount_init(&kref->refcount.counter, 1);
56 kref_get(struct kref *kref) argument
59 refcount_acquire(&kref->refcount.counter);
63 kref_put(struct kref *kref, voi argument
74 kref_sub(struct kref *kref, unsigned int count, void (*rel)(struct kref *kref)) argument
88 kref_get_unless_zero(struct kref *kref) argument
94 kref_put_mutex(struct kref *kref, void (*release)(struct kref *kref), struct mutex *lock) argument
[all...]
H A Dkobject.h37 #include <linux/kref.h>
54 struct kref kref; member in struct:kobject
80 kref_init(&kobj->kref);
86 void linux_kobject_release(struct kref *kref);
93 kref_put(&kobj->kref, linux_kobject_release);
101 kref_get(&kobj->kref);
/freebsd-11.0-release/sys/compat/linuxkpi/common/include/net/
H A Dtcp.h36 #include <linux/kref.h>
/freebsd-11.0-release/sys/ofed/drivers/infiniband/core/
H A Duverbs.h40 #include <linux/kref.h>
75 struct kref ref;
87 struct kref ref;
99 struct kref ref;
H A Dsa_query.c41 #include <linux/kref.h>
55 struct kref ref;
383 static void free_sm_ah(struct kref *kref) argument
385 struct ib_sa_sm_ah *sm_ah = container_of(kref, struct ib_sa_sm_ah, ref);
H A Duser_mad.c44 #include <linux/kref.h>
101 struct kref ref;
143 static void remove_ports(struct kref *ref)
161 static void put_umad_dev(struct kref *ref)
H A Duverbs_main.c170 static void ib_uverbs_release_dev(struct kref *ref)
178 static void ib_uverbs_release_event_file(struct kref *ref)
368 static void ib_uverbs_release_file(struct kref *ref)
H A Dcma.c211 struct kref mcref;
348 static inline void release_mc(struct kref *kref) argument
350 struct cma_multicast *mc = container_of(kref, struct cma_multicast, mcref);
H A Duverbs_cmd.c107 * looked up, a reference must be taken on the object's kref before
138 static void release_uobj(struct kref *kref) argument
140 kfree(container_of(kref, struct ib_uobject, ref));
/freebsd-11.0-release/sys/dev/drm2/ttm/
H A Dttm_bo_api.h143 * @kref: Reference count of this buffer object. When this refcount reaches
147 * Lru lists may keep one refcount, the delayed delete list, and kref != 0
204 u_int kref; member in struct:ttm_buffer_object
311 refcount_acquire(&bo->kref);
481 * On successful return, the object kref and list_kref are set to 1.
H A Dttm_object.c98 * @kref: Ref count.
115 u_int kref; member in struct:ttm_ref_object
276 refcount_acquire(&ref->kref);
296 refcount_init(&ref->kref, 1);
356 if (refcount_release(&ref->kref))
H A Dttm_bo_vm.c334 refcount_acquire(&bo->kref);
H A Dttm_bo.c117 MPASS(atomic_read(&bo->kref) == 0);
784 if (refcount_release(&bo->kref))
1255 refcount_init(&bo->kref, 1);
H A Dttm_bo_util.c431 refcount_init(&fbo->kref, 1);
/freebsd-11.0-release/sys/dev/cxgbe/iw_cxgbe/
H A Diw_cxgbe.h45 #include <linux/kref.h>
613 __func__, __LINE__, ep, atomic_read(&(ep)->kref.refcount)); \
614 WARN_ON(atomic_read(&(ep)->kref.refcount) < 1); \
615 kref_put(&((ep)->kref), _c4iw_free_ep); \
620 __func__, __LINE__, ep, atomic_read(&(ep)->kref.refcount)); \
621 kref_get(&((ep)->kref)); \
624 void _c4iw_free_ep(struct kref *kref);
758 struct kref kref; member in struct:c4iw_ep_common
[all...]
H A Dcm.c911 kref_init(&epc->kref);
928 void _c4iw_free_ep(struct kref *kref) argument
933 ep = container_of(kref, struct c4iw_ep, com.kref);
H A Dmem.c39 #include <linux/kref.h>
H A Dqp.c1264 BUG_ON(atomic_read(&qhp->ep->com.kref.refcount) < 2);
/freebsd-11.0-release/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib.h83 #include <linux/kref.h>
406 struct kref ref;
452 void ipoib_free_ah(struct kref *kref);
H A Dipoib_ib.c78 void ipoib_free_ah(struct kref *kref) argument
80 struct ipoib_ah *ah = container_of(kref, struct ipoib_ah, ref);
/freebsd-11.0-release/sys/dev/drm2/radeon/
H A Dradeon_fence.c113 refcount_init(&((*fence)->kref), 1);
196 * @kref: fence kref
689 refcount_acquire(&fence->kref);
706 if (refcount_release(&tmp->kref)) {
H A Dradeon.h235 unsigned int kref; member in struct:radeon_fence
/freebsd-11.0-release/sys/compat/linuxkpi/common/src/
H A Dlinux_compat.c207 linux_kobject_release(struct kref *kref) argument
212 kobj = container_of(kref, struct kobject, kref);
/freebsd-11.0-release/sys/ofed/include/rdma/
H A Dib_verbs.h46 #include <linux/kref.h>
1279 struct kref ref;

Completed in 303 milliseconds