Searched refs:cm_id_priv (Results 1 – 2 of 2) sorted by relevance
/drivers/infiniband/core/ |
D | iwcm.c | 92 static struct iwcm_work *get_work(struct iwcm_id_private *cm_id_priv) in get_work() argument 96 if (list_empty(&cm_id_priv->work_free_list)) in get_work() 98 work = list_entry(cm_id_priv->work_free_list.next, struct iwcm_work, in get_work() 109 static void dealloc_work_entries(struct iwcm_id_private *cm_id_priv) in dealloc_work_entries() argument 113 list_for_each_safe(e, tmp, &cm_id_priv->work_free_list) in dealloc_work_entries() 117 static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count) in alloc_work_entries() argument 121 BUG_ON(!list_empty(&cm_id_priv->work_free_list)); in alloc_work_entries() 125 dealloc_work_entries(cm_id_priv); in alloc_work_entries() 128 work->cm_id = cm_id_priv; in alloc_work_entries() 151 static void free_cm_id(struct iwcm_id_private *cm_id_priv) in free_cm_id() argument [all …]
|
D | cm.c | 246 static inline void cm_deref_id(struct cm_id_private *cm_id_priv) in cm_deref_id() argument 248 if (atomic_dec_and_test(&cm_id_priv->refcount)) in cm_deref_id() 249 complete(&cm_id_priv->comp); in cm_deref_id() 252 static int cm_alloc_msg(struct cm_id_private *cm_id_priv, in cm_alloc_msg() argument 259 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg() 260 ah = ib_create_ah(mad_agent->qp->pd, &cm_id_priv->av.ah_attr); in cm_alloc_msg() 264 m = ib_create_send_mad(mad_agent, cm_id_priv->id.remote_cm_qpn, in cm_alloc_msg() 265 cm_id_priv->av.pkey_index, in cm_alloc_msg() 275 m->retries = cm_id_priv->max_cm_retries; in cm_alloc_msg() 277 atomic_inc(&cm_id_priv->refcount); in cm_alloc_msg() [all …]
|