Lines Matching defs:so
320 struct socket *so;
323 so = inp->inp_socket;
333 if (so->so_usecount > 1 || !lck_mtx_try_lock_spin(&inp->inpcb_mtx))
337 if (so->so_usecount > 1) {
351 if (so->so_usecount == 1 &&
352 ((istimewait && (so->so_flags & SOF_OVERFLOW)) ||
353 ((tp != NULL) && (tp->t_state == TCPS_CLOSED) && (so->so_head != NULL)
354 && ((so->so_state & (SS_INCOMP|SS_CANTSENDMORE|SS_CANTRCVMORE)) ==
361 if (INP_CHECK_SOCKAF(so, AF_INET6))
367 so->so_usecount--;
385 if (so->so_usecount == 0) {
400 if (INP_CHECK_SOCKAF(so, AF_INET6))
540 struct socket *so;
553 so = tp->t_inpcb->inp_socket;
605 postevent(so, 0, EV_TIMEOUT);
606 soevent(so,
616 * first retransmit; record ssthresh and cwnd so they can
725 * so we'll take the next rtt measurement as our srtt;
797 postevent(so, 0, EV_TIMEOUT);
798 soevent(so,
892 postevent(so, 0, EV_TIMEOUT);
893 soevent(so,
995 struct socket *so;
1007 so = tp->t_inpcb->inp_socket;
1097 tcp_unlock(so, 1, 0);
1135 /* Acquire an inp wantcnt on the inpcb so that the socket won't get