Home
last modified time | relevance | path

Searched refs:cm_id_priv (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/infiniband/core/
Diwcm.c141 static struct iwcm_work *get_work(struct iwcm_id_private *cm_id_priv) in get_work() argument
145 if (list_empty(&cm_id_priv->work_free_list)) in get_work()
147 work = list_entry(cm_id_priv->work_free_list.next, struct iwcm_work, in get_work()
158 static void dealloc_work_entries(struct iwcm_id_private *cm_id_priv) in dealloc_work_entries() argument
162 list_for_each_safe(e, tmp, &cm_id_priv->work_free_list) { in dealloc_work_entries()
168 static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count) in alloc_work_entries() argument
172 BUG_ON(!list_empty(&cm_id_priv->work_free_list)); in alloc_work_entries()
176 dealloc_work_entries(cm_id_priv); in alloc_work_entries()
179 work->cm_id = cm_id_priv; in alloc_work_entries()
202 static void free_cm_id(struct iwcm_id_private *cm_id_priv) in free_cm_id() argument
[all …]
Dcm.c91 static void cm_process_work(struct cm_id_private *cm_id_priv,
93 static int cm_send_sidr_rep_locked(struct cm_id_private *cm_id_priv,
95 static int cm_send_dreq_locked(struct cm_id_private *cm_id_priv,
97 static int cm_send_drep_locked(struct cm_id_private *cm_id_priv,
99 static int cm_send_rej_locked(struct cm_id_private *cm_id_priv,
269 static inline void cm_deref_id(struct cm_id_private *cm_id_priv) in cm_deref_id() argument
271 if (refcount_dec_and_test(&cm_id_priv->refcount)) in cm_deref_id()
272 complete(&cm_id_priv->comp); in cm_deref_id()
275 static struct ib_mad_send_buf *cm_alloc_msg(struct cm_id_private *cm_id_priv) in cm_alloc_msg() argument
281 lockdep_assert_held(&cm_id_priv->lock); in cm_alloc_msg()
[all …]