Home
last modified time | relevance | path

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

/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_cma.c348 struct rdma_id_private *id_priv; member
400 static int cma_comp(struct rdma_id_private *id_priv, enum rdma_cm_state comp) in cma_comp() argument
405 spin_lock_irqsave(&id_priv->lock, flags); in cma_comp()
406 ret = (id_priv->state == comp); in cma_comp()
407 spin_unlock_irqrestore(&id_priv->lock, flags); in cma_comp()
411 static int cma_comp_exch(struct rdma_id_private *id_priv, in cma_comp_exch() argument
417 spin_lock_irqsave(&id_priv->lock, flags); in cma_comp_exch()
418 if ((ret = (id_priv->state == comp))) in cma_comp_exch()
419 id_priv->state = exch; in cma_comp_exch()
420 spin_unlock_irqrestore(&id_priv->lock, flags); in cma_comp_exch()
[all …]
/freebsd/contrib/ofed/librdmacm/
H A Dcma.c110 struct cma_id_private *id_priv; member
123 struct cma_id_private *id_priv; member
385 static int ucma_get_device(struct cma_id_private *id_priv, __be64 guid) in ucma_get_device() argument
410 id_priv->cma_dev = cma_dev; in ucma_get_device()
411 id_priv->id.verbs = cma_dev->verbs; in ucma_get_device()
412 id_priv->id.pd = cma_dev->pd; in ucma_get_device()
445 static void ucma_insert_id(struct cma_id_private *id_priv) in ucma_insert_id() argument
448 idm_set(&ucma_idm, id_priv->handle, id_priv); in ucma_insert_id()
452 static void ucma_remove_id(struct cma_id_private *id_priv) in ucma_remove_id() argument
454 if (id_priv->handle <= IDX_MAX_INDEX) in ucma_remove_id()
[all …]