Searched refs:cm_id_priv (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/infiniband/core/ |
H A D | iwcm.c | 141 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 …]
|
H A D | cm.c | 92 static void cm_process_work(struct cm_id_private *cm_id_priv, 94 static int cm_send_sidr_rep_locked(struct cm_id_private *cm_id_priv, 96 static int cm_send_dreq_locked(struct cm_id_private *cm_id_priv, 98 static int cm_send_drep_locked(struct cm_id_private *cm_id_priv, 100 static int cm_send_rej_locked(struct cm_id_private *cm_id_priv, 270 static inline void cm_deref_id(struct cm_id_private *cm_id_priv) in cm_deref_id() argument 272 if (refcount_dec_and_test(&cm_id_priv->refcount)) in cm_deref_id() 273 complete(&cm_id_priv->comp); in cm_deref_id() 276 static struct ib_mad_send_buf *cm_alloc_msg(struct cm_id_private *cm_id_priv) in cm_alloc_msg() argument 282 lockdep_assert_held(&cm_id_priv->lock); in cm_alloc_msg() [all …]
|