Lines Matching defs:mtx
159 static struct mtx ngsocketlist_mtx;
183 struct mtx mtx; /* mtx to wait on */
340 mtx_lock(&priv->mtx);
342 msleep(priv, &priv->mtx, 0, "ngsock", 0);
343 mtx_unlock(&priv->mtx);
502 mtx_lock(&pcbp->sockdata->mtx);
509 mtx_unlock(&pcbp->sockdata->mtx);
515 mtx_unlock(&pcbp->sockdata->mtx);
558 mtx_init(&priv->mtx, "ng_socket", NULL, MTX_DEF);
623 mtx_lock(&priv->mtx);
654 mtx_assert(&priv->mtx, MA_OWNED);
659 mtx_destroy(&priv->mtx);
669 mtx_unlock(&priv->mtx);
673 mtx_unlock(&priv->mtx);
725 mtx_lock(&priv->mtx);
730 mtx_unlock(&priv->mtx);
894 * Grab priv->mtx here to prevent destroying of control socket
897 mtx_lock(&priv->mtx);
905 mtx_unlock(&priv->mtx);
913 /* As long as the race is handled, priv->mtx may be unlocked now. */
914 mtx_unlock(&priv->mtx);
1070 mtx_lock(&priv->mtx);
1093 mtx_lock(&priv->mtx);
1096 mtx_unlock(&priv->mtx);