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.h43 struct kref { struct
48 kref_init(struct kref *kref)
51 refcount_init((uint32_t *)&kref->refcount, 1); in kref_init()
55 kref_read(const struct kref *kref)
58 return (refcount_load(__DECONST(u_int32_t *, &kref->refcount))); in kref_read()
62 kref_get(struct kref *kref)
65 refcount_acquire((uint32_t *)&kref in kref_get()
49 kref_init(struct kref * kref) kref_init() argument
56 kref_read(const struct kref * kref) kref_read() argument
63 kref_get(struct kref * kref) kref_get() argument
70 kref_put(struct kref * kref,void (* rel)(struct kref * kref)) kref_put() argument
81 kref_put_lock(struct kref * kref,void (* rel)(struct kref * kref),spinlock_t * lock) kref_put_lock() argument
94 kref_sub(struct kref * kref,unsigned int count,void (* rel)(struct kref * kref)) kref_sub() argument
95 kref_sub(struct kref * kref,unsigned int count,void (* rel)(struct kref * kref)) kref_sub() argument
108 kref_get_unless_zero(struct kref * kref) kref_get_unless_zero() argument
114 kref_put_mutex(struct kref * kref,void (* release)(struct kref * kref),struct mutex * lock) kref_put_mutex() argument
115 kref_put_mutex(struct kref * kref,void (* release)(struct kref * kref),struct mutex * lock) kref_put_mutex() 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.c590 static void queue_qp_free(struct kref *kref) in queue_qp_free() argument
594 qhp = container_of(kref, struct c4iw_qp, kref); in queue_qp_free()
602 kref_get(&to_c4iw_qp(qp)->kref); in c4iw_qp_add_ref()
608 kref_put(&to_c4iw_qp(qp)->kref, queue_qp_free); in c4iw_qp_rem_ref()
1544 BUG_ON(kref_read(&qhp->ep->com.kref) < 2); in c4iw_modify_qp()
1806 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()
115 * For RDMA_REMOVE_DESTROY the caller shold be holding a kref (eg via
120 * and consumes the kref on the uobj.
178 * When aborting the stack kref remains owned by the core code, and is in uverbs_destroy_uobject()
192 * LOOKUP_DESTROY uobject kref.
547 /* Matches the kref in alloc_commit_idr_uobject */ in remove_handle_idr_uobject()
586 * NOTE: Storing the uobj transfers our kref on uobj to the XArray. in alloc_commit_idr_uobject()
605 * NOTE: Once we install the file we loose ownership of our kref on in alloc_commit_fd_uobject()
613 * In all cases rdma_alloc_commit_uobject() consumes the kref to uobj and the
622 /* alloc_commit consumes the uobj kref */ in rdma_alloc_commit_uobject()
[all...]
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()
289 refcount_init(&ref->kref, 1); in ttm_ref_object_add()
349 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.h
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.c
/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