Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/core/
Diwcm.c140 static struct iwcm_work *get_work(struct iwcm_id_private *cm_id_priv) in get_work() argument
144 if (list_empty(&cm_id_priv->work_free_list)) in get_work()
146 work = list_entry(cm_id_priv->work_free_list.next, struct iwcm_work, in get_work()
157 static void dealloc_work_entries(struct iwcm_id_private *cm_id_priv) in dealloc_work_entries() argument
161 list_for_each_safe(e, tmp, &cm_id_priv->work_free_list) in dealloc_work_entries()
165 static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count) in alloc_work_entries() argument
169 BUG_ON(!list_empty(&cm_id_priv->work_free_list)); in alloc_work_entries()
173 dealloc_work_entries(cm_id_priv); in alloc_work_entries()
176 work->cm_id = cm_id_priv; in alloc_work_entries()
199 static void free_cm_id(struct iwcm_id_private *cm_id_priv) in free_cm_id() argument
[all …]
Dcm.c308 static inline void cm_deref_id(struct cm_id_private *cm_id_priv) in cm_deref_id() argument
310 if (atomic_dec_and_test(&cm_id_priv->refcount)) in cm_deref_id()
311 complete(&cm_id_priv->comp); in cm_deref_id()
314 static int cm_alloc_msg(struct cm_id_private *cm_id_priv, in cm_alloc_msg() argument
327 if (!cm_id_priv->prim_send_port_not_ready) in cm_alloc_msg()
328 av = &cm_id_priv->av; in cm_alloc_msg()
329 else if (!cm_id_priv->altr_send_port_not_ready && in cm_alloc_msg()
330 (cm_id_priv->alt_av.port)) in cm_alloc_msg()
331 av = &cm_id_priv->alt_av; in cm_alloc_msg()
340 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg()
[all …]