Home
last modified time | relevance | path

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

/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()
166 static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count) in alloc_work_entries() argument
170 BUG_ON(!list_empty(&cm_id_priv->work_free_list)); in alloc_work_entries()
174 dealloc_work_entries(cm_id_priv); in alloc_work_entries()
177 work->cm_id = cm_id_priv; in alloc_work_entries()
200 static void free_cm_id(struct iwcm_id_private *cm_id_priv) in free_cm_id() argument
[all …]
Dcm.c309 static inline void cm_deref_id(struct cm_id_private *cm_id_priv) in cm_deref_id() argument
311 if (atomic_dec_and_test(&cm_id_priv->refcount)) in cm_deref_id()
312 complete(&cm_id_priv->comp); in cm_deref_id()
315 static int cm_alloc_msg(struct cm_id_private *cm_id_priv, in cm_alloc_msg() argument
328 if (!cm_id_priv->prim_send_port_not_ready) in cm_alloc_msg()
329 av = &cm_id_priv->av; in cm_alloc_msg()
330 else if (!cm_id_priv->altr_send_port_not_ready && in cm_alloc_msg()
331 (cm_id_priv->alt_av.port)) in cm_alloc_msg()
332 av = &cm_id_priv->alt_av; in cm_alloc_msg()
341 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg()
[all …]