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

12

/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dkref.h30 * $FreeBSD: stable/11/sys/compat/linuxkpi/common/include/linux/kref.h 329961 2018-02-25 10:25:47Z hselasky $
44 struct kref { struct
49 kref_init(struct kref *kref) argument
52 refcount_init(&kref->refcount.counter, 1);
56 kref_read(const struct kref *kref) argument
59 return (atomic_read(&kref->refcount));
63 kref_get(struct kref *kref) argument
70 kref_put(struct kref *kref, void (*rel)(struct kref *kref)) argument
81 kref_sub(struct kref *kref, unsigned int count, void (*rel)(struct kref *kref)) argument
95 kref_get_unless_zero(struct kref *kref) argument
101 kref_put_mutex(struct kref *kref, void (*release)(struct kref *kref), struct mutex *lock) argument
[all...]
H A Dkobject.h37 #include <linux/kref.h>
55 struct kref kref; member in struct:kobject
81 kref_init(&kobj->kref);
87 void linux_kobject_release(struct kref *kref);
94 kref_put(&kobj->kref, linux_kobject_release);
102 kref_get(&kobj->kref);
/freebsd-11-stable/sys/compat/linuxkpi/common/include/net/
H A Dtcp.h36 #include <linux/kref.h>
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Diwpm_util.h52 #include <linux/kref.h>
H A Duverbs.h42 #include <linux/kref.h>
110 struct kref ref;
122 struct kref ref;
H A Dib_sa_query.c46 #include <linux/kref.h>
64 struct kref ref;
494 static void free_sm_ah(struct kref *kref) argument
496 struct ib_sa_sm_ah *sm_ah = container_of(kref, struct ib_sa_sm_ah, ref);
H A Dib_uverbs_main.c173 static void ib_uverbs_release_event_file(struct kref *ref)
358 static void ib_uverbs_release_file(struct kref *ref)
/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/
H A Diw_cxgbe.h45 #include <linux/kref.h>
476 struct kref kref; member in struct:c4iw_qp
495 struct kref kref; member in struct:c4iw_ucontext
503 void _c4iw_free_ucontext(struct kref *kref);
507 kref_put(&ucontext->kref, _c4iw_free_ucontext);
511 kref_get(&ucontext->kref);
677 __func__, __LINE__, ep, atomic_read(&(ep)->kref
823 struct kref kref; member in struct:c4iw_ep_common
[all...]
H A Dprovider.c94 void _c4iw_free_ucontext(struct kref *kref) argument
100 ucontext = container_of(kref, struct c4iw_ucontext, kref);
139 kref_init(&context->kref);
H A Dqp.c589 static void queue_qp_free(struct kref *kref) argument
593 qhp = container_of(kref, struct c4iw_qp, kref);
601 kref_get(&to_c4iw_qp(qp)->kref);
607 kref_put(&to_c4iw_qp(qp)->kref, queue_qp_free);
1534 BUG_ON(atomic_read(&qhp->ep->com.kref.refcount) < 2);
1796 kref_init(&qhp->kref);
H A Dcm.c1324 kref_init(&epc->kref);
1331 void _c4iw_free_ep(struct kref *kref) argument
1336 ep = container_of(kref, struct c4iw_ep, com.kref);
H A Dmem.c39 #include <linux/kref.h>
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_doorbell.c28 #include <linux/kref.h>
/freebsd-11-stable/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-stable/sys/dev/mlx5/mlx5_core/
H A Dfs_core.h63 struct kref refcount;
173 void _fs_remove_node(struct kref *kref);
H A Dmlx5_fs_tree.c189 static void _fs_put(struct fs_base *node, void (*kref_cb)(struct kref *kref),
217 static void __fs_remove_node(struct kref *kref) argument
219 struct fs_base *node = container_of(kref, struct fs_base, refcount);
233 void _fs_remove_node(struct kref *kref) argument
235 struct fs_base *node = container_of(kref, struct fs_base, refcount);
237 __fs_remove_node(kref);
247 static void _fs_put(struct fs_base *node, void (*kref_cb)(struct kref *kre argument
[all...]
/freebsd-11-stable/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib.h85 #include <linux/kref.h>
407 struct kref ref;
453 void ipoib_free_ah(struct kref *kref);
H A Dipoib_ib.c81 void ipoib_free_ah(struct kref *kref) argument
83 struct ipoib_ah *ah = container_of(kref, struct ipoib_ah, ref);
/freebsd-11-stable/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)) {
/freebsd-11-stable/sys/ofed/include/rdma/
H A Drdmavt_qp.h219 struct kref ref;
/freebsd-11-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_compat.c224 linux_kobject_release(struct kref *kref) argument
229 kobj = container_of(kref, struct kobject, kref);

Completed in 209 milliseconds

12