Searched refs:cm_id_priv (Results 1 – 3 of 3) sorted by relevance
| /NextBSD/sys/ofed/drivers/infiniband/core/ |
| HD | iwcm.c | 93 static struct iwcm_work *get_work(struct iwcm_id_private *cm_id_priv) in get_work() argument 97 if (list_empty(&cm_id_priv->work_free_list)) in get_work() 99 work = list_entry(cm_id_priv->work_free_list.next, struct iwcm_work, in get_work() 110 static void dealloc_work_entries(struct iwcm_id_private *cm_id_priv) in dealloc_work_entries() argument 114 list_for_each_safe(e, tmp, &cm_id_priv->work_free_list) in dealloc_work_entries() 118 static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count) in alloc_work_entries() argument 122 BUG_ON(!list_empty(&cm_id_priv->work_free_list)); in alloc_work_entries() 126 dealloc_work_entries(cm_id_priv); in alloc_work_entries() 129 work->cm_id = cm_id_priv; in alloc_work_entries() 152 static void free_cm_id(struct iwcm_id_private *cm_id_priv) in free_cm_id() argument [all …]
|
| HD | cm.c | 257 static inline void cm_deref_id(struct cm_id_private *cm_id_priv) in cm_deref_id() argument 259 if (atomic_dec_and_test(&cm_id_priv->refcount)) in cm_deref_id() 260 complete(&cm_id_priv->comp); in cm_deref_id() 263 static int cm_alloc_msg(struct cm_id_private *cm_id_priv, in cm_alloc_msg() argument 270 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg() 271 ah = ib_create_ah(mad_agent->qp->pd, &cm_id_priv->av.ah_attr); in cm_alloc_msg() 275 m = ib_create_send_mad(mad_agent, cm_id_priv->id.remote_cm_qpn, in cm_alloc_msg() 276 cm_id_priv->av.pkey_index, in cm_alloc_msg() 286 m->retries = cm_id_priv->max_cm_retries; in cm_alloc_msg() 288 atomic_inc(&cm_id_priv->refcount); in cm_alloc_msg() [all …]
|
| /NextBSD/contrib/ofed/libibcm/src/ |
| HD | cm.c | 229 static void ib_cm_free_id(struct cm_id_private *cm_id_priv) in ib_cm_free_id() argument 231 pthread_cond_destroy(&cm_id_priv->cond); in ib_cm_free_id() 232 pthread_mutex_destroy(&cm_id_priv->mut); in ib_cm_free_id() 233 free(cm_id_priv); in ib_cm_free_id() 239 struct cm_id_private *cm_id_priv; in ib_cm_alloc_id() local 241 cm_id_priv = malloc(sizeof *cm_id_priv); in ib_cm_alloc_id() 242 if (!cm_id_priv) in ib_cm_alloc_id() 245 memset(cm_id_priv, 0, sizeof *cm_id_priv); in ib_cm_alloc_id() 246 cm_id_priv->id.device = device; in ib_cm_alloc_id() 247 cm_id_priv->id.context = context; in ib_cm_alloc_id() [all …]
|