| /freebsd-13.1/sys/compat/linuxkpi/common/include/linux/ |
| H A D | kref.h | 50 kref_init(struct kref *kref) in kref_init() argument 57 kref_read(const struct kref *kref) in kref_read() argument 64 kref_get(struct kref *kref) in kref_get() argument 71 kref_put(struct kref *kref, void (*rel)(struct kref *kref)) in kref_put() argument 75 rel(kref); in kref_put() 82 kref_put_lock(struct kref *kref, void (*rel)(struct kref *kref), in kref_put_lock() argument 88 rel(kref); in kref_put_lock() 95 kref_sub(struct kref *kref, unsigned int count, in kref_sub() argument 96 void (*rel)(struct kref *kref)) in kref_sub() argument 109 kref_get_unless_zero(struct kref *kref) in kref_get_unless_zero() argument [all …]
|
| H A D | kobject.h | 57 struct kref kref; member 85 kref_init(&kobj->kref); in kobject_init() 91 void linux_kobject_release(struct kref *kref); 98 kref_put(&kobj->kref, linux_kobject_release); in kobject_put() 106 kref_get(&kobj->kref); in kobject_get()
|
| /freebsd-13.1/sys/dev/cxgbe/iw_cxgbe/ |
| H A D | iw_cxgbe.h | 485 struct kref kref; member 504 struct kref kref; member 512 void _c4iw_free_ucontext(struct kref *kref); 516 kref_put(&ucontext->kref, _c4iw_free_ucontext); in c4iw_put_ucontext() 520 kref_get(&ucontext->kref); in c4iw_get_ucontext() 686 __func__, __LINE__, ep, atomic_read(&(ep)->kref.refcount)); \ 687 WARN_ON(atomic_read(&(ep)->kref.refcount) < 1); \ 688 kref_put(&((ep)->kref), _c4iw_free_ep); \ 694 kref_get(&((ep)->kref)); \ 697 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 | 591 static void queue_qp_free(struct kref *kref) in queue_qp_free() argument 595 qhp = container_of(kref, struct c4iw_qp, kref); in queue_qp_free() 603 kref_get(&to_c4iw_qp(qp)->kref); in c4iw_qp_add_ref() 609 kref_put(&to_c4iw_qp(qp)->kref, queue_qp_free); in c4iw_qp_rem_ref() 1541 BUG_ON(atomic_read(&qhp->ep->com.kref.refcount) < 2); in c4iw_modify_qp() 1803 kref_init(&qhp->kref); in c4iw_create_qp()
|
| H A D | cm.c | 1315 kref_init(&epc->kref); in alloc_ep() 1322 void _c4iw_free_ep(struct kref *kref) in _c4iw_free_ep() argument 1329 ep = container_of(kref, struct c4iw_ep, com.kref); in _c4iw_free_ep()
|
| /freebsd-13.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 | 328 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-13.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_uar.c | 82 static void up_rel_func(struct kref *kref) in up_rel_func() argument 84 struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); in up_rel_func()
|
| H A D | mlx5_fs_tree.c | 202 static void _fs_put(struct fs_base *node, void (*kref_cb)(struct kref *kref), 230 static void __fs_remove_node(struct kref *kref) in __fs_remove_node() argument 232 struct fs_base *node = container_of(kref, struct fs_base, refcount); in __fs_remove_node() 246 void _fs_remove_node(struct kref *kref) in _fs_remove_node() argument 248 struct fs_base *node = container_of(kref, struct fs_base, refcount); in _fs_remove_node() 250 __fs_remove_node(kref); in _fs_remove_node() 260 static void _fs_put(struct fs_base *node, void (*kref_cb)(struct kref *kref), in _fs_put() argument
|
| /freebsd-13.1/sys/ofed/drivers/infiniband/core/ |
| H A D | uverbs.h | 119 struct kref ref; 131 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 | 197 static void ib_uverbs_release_event_file(struct kref *ref) in ib_uverbs_release_event_file() 382 static void ib_uverbs_release_file(struct kref *ref) in ib_uverbs_release_file()
|
| H A D | ib_cma.c | 354 struct kref mcref; 509 static inline void release_mc(struct kref *kref) in release_mc() argument 511 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-13.1/sys/ofed/drivers/infiniband/ulp/ipoib/ |
| H A D | ipoib.h | 409 struct kref ref; 446 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-13.1/sys/ofed/include/rdma/ |
| H A D | rdmavt_qp.h | 219 struct kref ref;
|
| H A D | ib_verbs.h | 1424 struct kref ref;
|
| /freebsd-13.1/sys/compat/linuxkpi/common/src/ |
| H A D | linux_compat.c | 268 linux_kobject_release(struct kref *kref) in linux_kobject_release() argument 273 kobj = container_of(kref, struct kobject, kref); in linux_kobject_release()
|
| /freebsd-13.1/sys/dev/mlx5/ |
| H A D | driver.h | 445 struct kref ref_count;
|