Searched refs:cm_id_priv (Results 1 – 2 of 2) sorted by relevance
/linux-4.4.14/drivers/infiniband/core/ |
D | iwcm.c | 107 static struct iwcm_work *get_work(struct iwcm_id_private *cm_id_priv) in get_work() argument 111 if (list_empty(&cm_id_priv->work_free_list)) in get_work() 113 work = list_entry(cm_id_priv->work_free_list.next, struct iwcm_work, in get_work() 124 static void dealloc_work_entries(struct iwcm_id_private *cm_id_priv) in dealloc_work_entries() argument 128 list_for_each_safe(e, tmp, &cm_id_priv->work_free_list) in dealloc_work_entries() 132 static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count) in alloc_work_entries() argument 136 BUG_ON(!list_empty(&cm_id_priv->work_free_list)); in alloc_work_entries() 140 dealloc_work_entries(cm_id_priv); in alloc_work_entries() 143 work->cm_id = cm_id_priv; in alloc_work_entries() 166 static void free_cm_id(struct iwcm_id_private *cm_id_priv) in free_cm_id() argument [all …]
|
D | cm.c | 250 static inline void cm_deref_id(struct cm_id_private *cm_id_priv) in cm_deref_id() argument 252 if (atomic_dec_and_test(&cm_id_priv->refcount)) in cm_deref_id() 253 complete(&cm_id_priv->comp); in cm_deref_id() 256 static int cm_alloc_msg(struct cm_id_private *cm_id_priv, in cm_alloc_msg() argument 263 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg() 264 ah = ib_create_ah(mad_agent->qp->pd, &cm_id_priv->av.ah_attr); in cm_alloc_msg() 268 m = ib_create_send_mad(mad_agent, cm_id_priv->id.remote_cm_qpn, in cm_alloc_msg() 269 cm_id_priv->av.pkey_index, in cm_alloc_msg() 280 m->retries = cm_id_priv->max_cm_retries; in cm_alloc_msg() 282 atomic_inc(&cm_id_priv->refcount); in cm_alloc_msg() [all …]
|