| /freebsd-12.1/sys/compat/linuxkpi/common/include/linux/ |
| H A D | kref.h | 44 struct kref { struct 49 kref_init(struct kref *kref) in kref_init() argument 56 kref_read(const struct kref *kref) in kref_read() argument 63 kref_get(struct kref *kref) in kref_get() argument 70 kref_put(struct kref *kref, void (*rel)(struct kref *kref)) in kref_put() argument 74 rel(kref); in kref_put() 81 kref_sub(struct kref *kref, unsigned int count, in kref_sub() argument 82 void (*rel)(struct kref *kref)) in kref_sub() argument 87 rel(kref); in kref_sub() 95 kref_get_unless_zero(struct kref *kref) in kref_get_unless_zero() argument [all …]
|
| H A D | kobject.h | 55 struct kref kref; member 81 kref_init(&kobj->kref); in kobject_init() 87 void linux_kobject_release(struct kref *kref); 94 kref_put(&kobj->kref, linux_kobject_release); in kobject_put() 102 kref_get(&kobj->kref); in kobject_get()
|
| /freebsd-12.1/sys/dev/cxgbe/iw_cxgbe/ |
| H A D | iw_cxgbe.h | 478 struct kref kref; member 497 struct kref kref; member 505 void _c4iw_free_ucontext(struct kref *kref); 509 kref_put(&ucontext->kref, _c4iw_free_ucontext); in c4iw_put_ucontext() 513 kref_get(&ucontext->kref); in c4iw_get_ucontext() 679 __func__, __LINE__, ep, atomic_read(&(ep)->kref.refcount)); \ 680 WARN_ON(atomic_read(&(ep)->kref.refcount) < 1); \ 681 kref_put(&((ep)->kref), _c4iw_free_ep); \ 687 kref_get(&((ep)->kref)); \ 690 void _c4iw_free_ep(struct kref *kref); [all …]
|
| H A D | provider.c | 96 void _c4iw_free_ucontext(struct kref *kref) in _c4iw_free_ucontext() argument 102 ucontext = container_of(kref, struct c4iw_ucontext, kref); in _c4iw_free_ucontext() 141 kref_init(&context->kref); in c4iw_alloc_ucontext()
|
| H A D | qp.c | 589 static void queue_qp_free(struct kref *kref) in queue_qp_free() argument 593 qhp = container_of(kref, struct c4iw_qp, kref); in queue_qp_free() 601 kref_get(&to_c4iw_qp(qp)->kref); in c4iw_qp_add_ref() 607 kref_put(&to_c4iw_qp(qp)->kref, queue_qp_free); in c4iw_qp_rem_ref() 1534 BUG_ON(atomic_read(&qhp->ep->com.kref.refcount) < 2); in c4iw_modify_qp() 1796 kref_init(&qhp->kref); in c4iw_create_qp()
|
| H A D | cm.c | 1318 kref_init(&epc->kref); in alloc_ep() 1325 void _c4iw_free_ep(struct kref *kref) in _c4iw_free_ep() argument 1330 ep = container_of(kref, struct c4iw_ep, com.kref); in _c4iw_free_ep()
|
| /freebsd-12.1/sys/dev/drm2/ttm/ |
| H A D | ttm_object.c | 115 u_int kref; member 276 refcount_acquire(&ref->kref); in ttm_ref_object_add() 296 refcount_init(&ref->kref, 1); in ttm_ref_object_add() 356 if (refcount_release(&ref->kref)) in ttm_ref_object_base_unref()
|
| H A D | ttm_bo_api.h | 204 u_int kref; member 311 refcount_acquire(&bo->kref); in ttm_bo_reference()
|
| H A D | ttm_bo_vm.c | 334 refcount_acquire(&bo->kref); in ttm_bo_mmap_single()
|
| H A D | ttm_bo.c | 117 MPASS(atomic_read(&bo->kref) == 0); in ttm_bo_release_list() 784 if (refcount_release(&bo->kref)) in ttm_bo_unref() 1255 refcount_init(&bo->kref, 1); in ttm_bo_init()
|
| H A D | ttm_bo_util.c | 431 refcount_init(&fbo->kref, 1); in ttm_buffer_object_transfer()
|
| /freebsd-12.1/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) in __fs_remove_node() argument 219 struct fs_base *node = container_of(kref, struct fs_base, refcount); in __fs_remove_node() 233 void _fs_remove_node(struct kref *kref) in _fs_remove_node() argument 235 struct fs_base *node = container_of(kref, struct fs_base, refcount); in _fs_remove_node() 237 __fs_remove_node(kref); in _fs_remove_node() 247 static void _fs_put(struct fs_base *node, void (*kref_cb)(struct kref *kref), in _fs_put() argument
|
| /freebsd-12.1/sys/ofed/drivers/infiniband/core/ |
| H A D | uverbs.h | 112 struct kref ref; 124 struct kref ref;
|
| H A D | ib_sa_query.c | 64 struct kref ref; 494 static void free_sm_ah(struct kref *kref) in free_sm_ah() argument 496 struct ib_sa_sm_ah *sm_ah = container_of(kref, struct ib_sa_sm_ah, ref); in free_sm_ah()
|
| H A D | ib_uverbs_main.c | 173 static void ib_uverbs_release_event_file(struct kref *ref) in ib_uverbs_release_event_file() 358 static void ib_uverbs_release_file(struct kref *ref) in ib_uverbs_release_file()
|
| H A D | ib_cma.c | 332 struct kref mcref; 482 static inline void release_mc(struct kref *kref) in release_mc() argument 484 struct cma_multicast *mc = container_of(kref, struct cma_multicast, mcref); in release_mc()
|
| H A D | ib_uverbs_cmd.c | 109 static void release_uobj(struct kref *kref) in release_uobj() argument 111 kfree_rcu(container_of(kref, struct ib_uobject, ref), rcu); in release_uobj()
|
| /freebsd-12.1/sys/ofed/drivers/infiniband/ulp/ipoib/ |
| H A D | ipoib.h | 410 struct kref ref; 456 void ipoib_free_ah(struct kref *kref);
|
| H A D | ipoib_ib.c | 83 void ipoib_free_ah(struct kref *kref) in ipoib_free_ah() argument 85 struct ipoib_ah *ah = container_of(kref, struct ipoib_ah, ref); in ipoib_free_ah()
|
| /freebsd-12.1/sys/dev/drm2/radeon/ |
| H A D | radeon_fence.c | 113 refcount_init(&((*fence)->kref), 1); in radeon_fence_emit() 689 refcount_acquire(&fence->kref); in radeon_fence_ref() 706 if (refcount_release(&tmp->kref)) { in radeon_fence_unref()
|
| H A D | radeon.h | 235 unsigned int kref; member
|
| /freebsd-12.1/sys/ofed/include/rdma/ |
| H A D | rdmavt_qp.h | 219 struct kref ref;
|
| H A D | ib_verbs.h | 1390 struct kref ref;
|
| /freebsd-12.1/sys/compat/linuxkpi/common/src/ |
| H A D | linux_compat.c | 224 linux_kobject_release(struct kref *kref) in linux_kobject_release() argument 229 kobj = container_of(kref, struct kobject, kref); in linux_kobject_release()
|