/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | kref.h | 48 kref_init(struct kref *kref) in kref_init() argument 55 kref_read(const struct kref *kref) in kref_read() argument 62 kref_get(struct kref *kref) in kref_get() argument 69 kref_put(struct kref *kref, void (*rel)(struct kref *kref)) in kref_put() argument 73 rel(kref); in kref_put() 80 kref_put_lock(struct kref *kref, void (*rel)(struct kref *kref), in kref_put_lock() argument 86 rel(kref); in kref_put_lock() 93 kref_sub(struct kref *kref, unsigned int count, in kref_sub() argument 94 void (*rel)(struct kref *kref)) in kref_sub() argument 107 kref_get_unless_zero(struct kref *kref) in kref_get_unless_zero() argument [all …]
|
H A D | kobject.h | 60 struct kref kref; member 100 kref_init(&kobj->kref); in kobject_init() 106 void linux_kobject_release(struct kref *kref); 113 kref_put(&kobj->kref, linux_kobject_release); in kobject_put() 121 kref_get(&kobj->kref); in kobject_get()
|
/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | iw_cxgbe.h | 492 struct kref kref; member 681 __func__, __LINE__, ep, kref_read(&(ep)->kref)); \ 682 WARN_ON(kref_read(&(ep)->kref) < 1); \ 683 kref_put(&((ep)->kref), _c4iw_free_ep); \ 688 __func__, __LINE__, ep, kref_read(&(ep)->kref)); \ 689 kref_get(&((ep)->kref)); \ 692 void _c4iw_free_ep(struct kref *kref); 827 struct kref kref; member
|
H A D | qp.c | 587 static void queue_qp_free(struct kref *kref) in queue_qp_free() argument 591 qhp = container_of(kref, struct c4iw_qp, kref); in queue_qp_free() 599 kref_get(&to_c4iw_qp(qp)->kref); in c4iw_qp_add_ref() 605 kref_put(&to_c4iw_qp(qp)->kref, queue_qp_free); in c4iw_qp_rem_ref() 1537 BUG_ON(kref_read(&qhp->ep->com.kref) < 2); in c4iw_modify_qp() 1799 kref_init(&qhp->kref); in c4iw_create_qp()
|
H A D | cm.c | 1314 kref_init(&epc->kref); in alloc_ep() 1321 void _c4iw_free_ep(struct kref *kref) in _c4iw_free_ep() argument 1328 ep = container_of(kref, struct c4iw_ep, com.kref); in _c4iw_free_ep()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_kobject.c | 176 linux_kobject_release(struct kref *kref) in linux_kobject_release() argument 181 kobj = container_of(kref, struct kobject, kref); in linux_kobject_release()
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_core_uverbs.c | 206 static void rdma_user_mmap_entry_free(struct kref *kref) in rdma_user_mmap_entry_free() argument 209 container_of(kref, struct rdma_user_mmap_entry, ref); in rdma_user_mmap_entry_free()
|
H A D | uverbs.h | 141 struct kref ref; 232 void ib_uverbs_release_file(struct kref *ref);
|
H A D | ib_sa_query.c | 62 struct kref ref; 492 static void free_sm_ah(struct kref *kref) in free_sm_ah() argument 494 struct ib_sa_sm_ah *sm_ah = container_of(kref, struct ib_sa_sm_ah, ref); in free_sm_ah()
|
H A D | ib_rdma_core.c | 45 static void uverbs_uobject_free(struct kref *ref) in uverbs_uobject_free()
|
H A D | ib_cma.c | 355 struct kref mcref; 510 static inline void release_mc(struct kref *kref) in release_mc() argument 512 struct cma_multicast *mc = container_of(kref, struct cma_multicast, mcref); in release_mc()
|
H A D | ib_uverbs_main.c | 182 void ib_uverbs_release_file(struct kref *ref) in ib_uverbs_release_file()
|
/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_object.c | 113 u_int kref; member 274 refcount_acquire(&ref->kref); in ttm_ref_object_add() 294 refcount_init(&ref->kref, 1); in ttm_ref_object_add() 354 if (refcount_release(&ref->kref)) in ttm_ref_object_base_unref()
|
H A D | ttm_bo_api.h | 203 u_int kref; member 310 refcount_acquire(&bo->kref); in ttm_bo_reference()
|
H A D | ttm_bo_vm.c | 326 refcount_acquire(&bo->kref); in ttm_bo_mmap_single()
|
H A D | ttm_bo.c | 115 MPASS(atomic_read(&bo->kref) == 0); in ttm_bo_release_list() 782 if (refcount_release(&bo->kref)) in ttm_bo_unref() 1253 refcount_init(&bo->kref, 1); in ttm_bo_init()
|
H A D | ttm_bo_util.c | 429 refcount_init(&fbo->kref, 1); in ttm_buffer_object_transfer()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | fs_core.h | 61 struct kref refcount; 184 void _fs_remove_node(struct kref *kref);
|
H A D | mlx5_uar.c | 80 static void up_rel_func(struct kref *kref) in up_rel_func() argument 82 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 | 200 static void _fs_put(struct fs_base *node, void (*kref_cb)(struct kref *kref), 228 static void __fs_remove_node(struct kref *kref) in __fs_remove_node() argument 230 struct fs_base *node = container_of(kref, struct fs_base, refcount); in __fs_remove_node() 249 void _fs_remove_node(struct kref *kref) in _fs_remove_node() argument 251 struct fs_base *node = container_of(kref, struct fs_base, refcount); in _fs_remove_node() 253 __fs_remove_node(kref); in _fs_remove_node() 263 static void _fs_put(struct fs_base *node, void (*kref_cb)(struct kref *kref), in _fs_put() argument
|
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib.h | 407 struct kref ref; 444 void ipoib_free_ah(struct kref *kref);
|
H A D | ipoib_ib.c | 81 void ipoib_free_ah(struct kref *kref) in ipoib_free_ah() argument 83 struct ipoib_ah *ah = container_of(kref, struct ipoib_ah, ref); in ipoib_free_ah()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | rdmavt_qp.h | 217 struct kref ref;
|
H A D | ib_verbs.h | 1414 struct kref ref; 2086 struct kref ref;
|
/freebsd/sys/dev/mlx5/ |
H A D | driver.h | 458 struct kref ref_count;
|