Home
last modified time | relevance | path

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

/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_iwcm.c120 static struct iwcm_work *get_work(struct iwcm_id_private *cm_id_priv) in get_work() argument
124 if (list_empty(&cm_id_priv->work_free_list)) in get_work()
126 work = list_entry(cm_id_priv->work_free_list.next, struct iwcm_work, in get_work()
137 static void dealloc_work_entries(struct iwcm_id_private *cm_id_priv) in dealloc_work_entries() argument
141 list_for_each_safe(e, tmp, &cm_id_priv->work_free_list) in dealloc_work_entries()
145 static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count) in alloc_work_entries() argument
149 BUG_ON(!list_empty(&cm_id_priv->work_free_list)); in alloc_work_entries()
153 dealloc_work_entries(cm_id_priv); in alloc_work_entries()
156 work->cm_id = cm_id_priv; in alloc_work_entries()
179 static void free_cm_id(struct iwcm_id_private *cm_id_priv) in free_cm_id() argument
[all …]
H A Dib_cm.c314 static inline void cm_deref_id(struct cm_id_private *cm_id_priv) in cm_deref_id() argument
316 if (atomic_dec_and_test(&cm_id_priv->refcount)) in cm_deref_id()
317 complete(&cm_id_priv->comp); in cm_deref_id()
320 static int cm_alloc_msg(struct cm_id_private *cm_id_priv, in cm_alloc_msg() argument
333 if (!cm_id_priv->prim_send_port_not_ready) in cm_alloc_msg()
334 av = &cm_id_priv->av; in cm_alloc_msg()
335 else if (!cm_id_priv->altr_send_port_not_ready && in cm_alloc_msg()
336 (cm_id_priv->alt_av.port)) in cm_alloc_msg()
337 av = &cm_id_priv->alt_av; in cm_alloc_msg()
346 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg()
[all …]
/freebsd/contrib/ofed/libibcm/
H A Dcm.c216 static void ib_cm_free_id(struct cm_id_private *cm_id_priv) in ib_cm_free_id() argument
218 pthread_cond_destroy(&cm_id_priv->cond); in ib_cm_free_id()
219 pthread_mutex_destroy(&cm_id_priv->mut); in ib_cm_free_id()
220 free(cm_id_priv); in ib_cm_free_id()
226 struct cm_id_private *cm_id_priv; in ib_cm_alloc_id() local
228 cm_id_priv = malloc(sizeof *cm_id_priv); in ib_cm_alloc_id()
229 if (!cm_id_priv) in ib_cm_alloc_id()
232 memset(cm_id_priv, 0, sizeof *cm_id_priv); in ib_cm_alloc_id()
233 cm_id_priv->id.device = device; in ib_cm_alloc_id()
234 cm_id_priv->id.context = context; in ib_cm_alloc_id()
[all …]