Lines Matching refs:so_pcb
950 so->so_pcb = (caddr_t)unp; in unp_attach()
1288 if (so2->so_pcb == NULL) { in unp_connect()
1592 if ((((struct unpcb *)waitso->so_pcb)->unp_flags & UNP_DONTDISCONNECT) != 0) { in unp_disconnect()
1598 (void)msleep(waitso->so_pcb, &unp->unp_mtx, in unp_disconnect()
2612 if (so->so_pcb) { in unp_lock()
2613 lck_mtx_lock(&((struct unpcb *)so->so_pcb)->unp_mtx); in unp_lock()
2621 so, so->so_pcb, lr_saved, so->so_usecount); in unp_lock()
2653 if (so->so_pcb == NULL) { in unp_unlock()
2656 mutex_held = &((struct unpcb *)so->so_pcb)->unp_mtx; in unp_unlock()
2684 struct unpcb *unp = (struct unpcb *)so->so_pcb; in unp_getlock()
2687 if (so->so_pcb) { in unp_getlock()