Home
last modified time | relevance | path

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

12

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkref.h48 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 Dkobject.h60 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 Diw_cxgbe.h492 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 Dqp.c587 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 Dcm.c1314 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 Dlinux_kobject.c176 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 Dib_core_uverbs.c206 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 Duverbs.h141 struct kref ref;
232 void ib_uverbs_release_file(struct kref *ref);
H A Dib_sa_query.c62 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 Dib_rdma_core.c45 static void uverbs_uobject_free(struct kref *ref) in uverbs_uobject_free()
H A Dib_cma.c355 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 Dib_uverbs_main.c182 void ib_uverbs_release_file(struct kref *ref) in ib_uverbs_release_file()
/freebsd/sys/dev/drm2/ttm/
H A Dttm_object.c113 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 Dttm_bo_api.h203 u_int kref; member
310 refcount_acquire(&bo->kref); in ttm_bo_reference()
H A Dttm_bo_vm.c326 refcount_acquire(&bo->kref); in ttm_bo_mmap_single()
H A Dttm_bo.c115 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 Dttm_bo_util.c429 refcount_init(&fbo->kref, 1); in ttm_buffer_object_transfer()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dfs_core.h61 struct kref refcount;
184 void _fs_remove_node(struct kref *kref);
H A Dmlx5_uar.c80 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 Dmlx5_fs_tree.c200 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 Dipoib.h407 struct kref ref;
444 void ipoib_free_ah(struct kref *kref);
H A Dipoib_ib.c81 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 Drdmavt_qp.h217 struct kref ref;
H A Dib_verbs.h1414 struct kref ref;
2086 struct kref ref;
/freebsd/sys/dev/mlx5/
H A Ddriver.h458 struct kref ref_count;

12