/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | kref.h | 30 * $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 D | kobject.h | 37 #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 D | tcp.h | 36 #include <linux/kref.h>
|
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | iwpm_util.h | 52 #include <linux/kref.h>
|
H A D | uverbs.h | 42 #include <linux/kref.h> 110 struct kref ref; 122 struct kref ref;
|
H A D | ib_sa_query.c | 46 #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 D | ib_uverbs_main.c | 173 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 D | iw_cxgbe.h | 45 #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 D | provider.c | 94 void _c4iw_free_ucontext(struct kref *kref) argument 100 ucontext = container_of(kref, struct c4iw_ucontext, kref); 139 kref_init(&context->kref);
|
H A D | qp.c | 589 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 D | cm.c | 1324 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 D | mem.c | 39 #include <linux/kref.h>
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_doorbell.c | 28 #include <linux/kref.h>
|
/freebsd-11-stable/sys/dev/drm2/ttm/ |
H A D | ttm_bo_api.h | 143 * @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 D | ttm_object.c | 98 * @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 D | ttm_bo_vm.c | 334 refcount_acquire(&bo->kref);
|
H A D | ttm_bo.c | 117 MPASS(atomic_read(&bo->kref) == 0); 784 if (refcount_release(&bo->kref)) 1255 refcount_init(&bo->kref, 1);
|
H A D | ttm_bo_util.c | 431 refcount_init(&fbo->kref, 1);
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/ |
H A D | fs_core.h | 63 struct kref refcount; 173 void _fs_remove_node(struct kref *kref);
|
H A D | mlx5_fs_tree.c | 189 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 D | ipoib.h | 85 #include <linux/kref.h> 407 struct kref ref; 453 void ipoib_free_ah(struct kref *kref);
|
H A D | ipoib_ib.c | 81 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 D | radeon_fence.c | 113 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 D | rdmavt_qp.h | 219 struct kref ref;
|
/freebsd-11-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_compat.c | 224 linux_kobject_release(struct kref *kref) argument 229 kobj = container_of(kref, struct kobject, kref);
|