Home
last modified time | relevance | path

Searched refs:t_state (Results 1 – 25 of 30) sorted by relevance

12

/xnu-12377.41.6/bsd/kern/
H A Dtty.c352 if (!ISSET(tp->t_state, TS_ISOPEN)) { in ttyopen()
353 SET(tp->t_state, TS_ISOPEN); in ttyopen()
355 SET(tp->t_state, TS_CONNECTED); in ttyopen()
448 tp->t_state = 0; in ttyclose()
524 !ISSET(tp->t_state, TS_TBLOCK)) { in ttyinput()
566 if (!ISSET(tp->t_state, TS_TYPEN) && ISSET(iflag, ISTRIP)) { in ttyinput()
573 if (ISSET(tp->t_state, TS_LNCH)) { in ttyinput()
575 CLR(tp->t_state, TS_LNCH); in ttyinput()
599 SET(tp->t_state, TS_LNCH); in ttyinput()
653 if (!ISSET(tp->t_state, TS_TTSTOP)) { in ttyinput()
[all …]
H A Dtty_dev.c280 if ((tp->t_state & TS_ISOPEN) == 0) { in ptsopen()
288 } else if ((tp->t_state & TS_XCLUDE) && kauth_cred_issuser(kauth_cred_get())) { in ptsopen()
295 while ((tp->t_state & TS_CARR_ON) == 0) { in ptsopen()
308 CLR(tp->t_state, TS_IOCTL_NOT_OK); in ptsopen()
443 if (tp->t_state & TS_TTSTOP) { in ptsstart()
503 if (tp->t_oproc || (tp->t_state & TS_ISOPEN)) { in ptcopen()
515 CLR(tp->t_state, TS_ZOMBIE); in ptcopen()
516 SET(tp->t_state, TS_IOCTL_NOT_OK); in ptcopen()
589 if (tp->t_state & TS_ISOPEN) { in ptcclose()
590 tp->t_state &= ~(TS_CARR_ON | TS_CONNECTED); in ptcclose()
[all …]
H A Dtty_ptmx.c552 assert(tp->t_state & TS_ISOPEN); in ptsd_kqops_detach()
593 (tp->t_state & TS_CONNECTED)) { in ptsd_kqops_common()
605 if (tp->t_state & TS_ZOMBIE) { in ptsd_kqops_common()
689 assert(tp->t_state & TS_ISOPEN); in ptsd_kqfilter()
864 if (tp->t_outq.c_cc && !(tp->t_state & TS_TTSTOP)) { in ptmx_kqops_common()
890 if (!(tp->t_state & TS_CONNECTED) || (tp->t_state & TS_ZOMBIE)) { in ptmx_kqops_common()
H A Dsocket_info.c157 tcpsi->tcpsi_state = tp->t_state; in fill_socketinfo()
/xnu-12377.41.6/bsd/dev/dtrace/scripts/
H A Dtcp.d174 T->t_state == TCPS_CLOSED ? "state-closed" :
175 T->t_state == TCPS_LISTEN ? "state-listen" :
176 T->t_state == TCPS_SYN_SENT ? "state-syn-sent" :
177 T->t_state == TCPS_SYN_RECEIVED ? "state-syn-received" :
178 T->t_state == TCPS_ESTABLISHED ? "state-established" :
179 T->t_state == TCPS_CLOSE_WAIT ? "state-close-wait" :
180 T->t_state == TCPS_FIN_WAIT_1 ? "state-fin-wait1" :
181 T->t_state == TCPS_CLOSING ? "state-closing" :
182 T->t_state == TCPS_LAST_ACK ? "state-last-ack" :
183 T->t_state == TCPS_FIN_WAIT_2 ? "state-fin-wait2" :
[all …]
/xnu-12377.41.6/bsd/dev/i386/
H A Dkm.c106 if (!(tp->t_state & TS_ISOPEN)) { in kmopen()
114 } else if ((tp->t_state & TS_XCLUDE) && proc_suser(pp)) { in kmopen()
119 tp->t_state |= TS_CARR_ON; /* lie and say carrier exists and is on. */ in kmopen()
296 if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) { in kmstart()
302 tp->t_state |= TS_BUSY; in kmstart()
379 tp->t_state &= ~TS_BUSY; in kmoutput()
/xnu-12377.41.6/bsd/dev/arm/
H A Dkm.c83 if (!(tp->t_state & TS_ISOPEN)) { in kmopen()
91 } else if ((tp->t_state & TS_XCLUDE) && proc_suser(pp)) { in kmopen()
96 tp->t_state |= TS_CARR_ON; /* lie and say carrier exists and is in kmopen()
278 if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) { in kmstart()
284 tp->t_state |= TS_BUSY; in kmstart()
374 tp->t_state &= ~TS_BUSY; in kmoutput()
/xnu-12377.41.6/bsd/netinet/
H A Dtcp_timer.c679 tp->t_state != TCPS_CLOSED) { in tcp_garbage_collect()
696 ((tp != NULL) && (tp->t_state == TCPS_CLOSED) && in tcp_garbage_collect()
840 if (tw_tp->t_state == TCPS_CLOSED || in tcp_gc()
1044 if (tp->t_state != TCPS_TIME_WAIT && in tcp_timers()
1045 tp->t_state != TCPS_FIN_WAIT_2 && in tcp_timers()
1050 if (tp->t_state == TCPS_FIN_WAIT_2) { in tcp_timers()
1091 if (tp->t_state == TCPS_ESTABLISHED && in tcp_timers()
1129 tp->t_state == TCPS_ESTABLISHED) { in tcp_timers()
1143 (tp->t_state == TCPS_ESTABLISHED) && in tcp_timers()
1148 if (TCPS_HAVEESTABLISHED(tp->t_state) && in tcp_timers()
[all …]
H A Dtcp_usrreq.c398 tp->t_state = TCPS_LISTEN; in tcp_usr_listen()
428 tp->t_state = TCPS_LISTEN; in tcp6_usr_listen()
1060 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_usr_rcvd()
1243 if (nam && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send()
1291 if (nam && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send()
1529 otp->t_state == TCPS_TIME_WAIT && in tcp_connect()
1595 tp->t_state = TCPS_SYN_SENT; in tcp_connect()
1665 otp->t_state == TCPS_TIME_WAIT && in tcp6_connect()
1729 tp->t_state = TCPS_SYN_SENT; in tcp6_connect()
1760 ti->tcpi_state = (uint8_t)tp->t_state; in tcp_fill_info()
[all …]
H A Dtcp_input.c759 if (!TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_reass()
897 tp->t_state == TCPS_ESTABLISHED) { in tcp_adaptive_rwtimo_check()
922 ASSERT(tp->t_state == TCPS_FIN_WAIT_2); in tcp_set_finwait_timeout()
2500 tp->t_state = TCPS_LISTEN; in tcp_create_server_socket()
2696 tp->t_state = TCPS_SYN_RECEIVED; in tcp_setup_server_socket()
3195 if (tp->t_state == TCPS_CLOSED) { in tcp_input()
3254 prev_t_state = tp->t_state; in tcp_input()
3274 if (tp->t_state == TCPS_LISTEN && in tcp_input()
3345 ASSERT(tp->t_state == TCPS_SYN_RECEIVED); in tcp_input()
3508 if (tp->t_state == TCPS_ESTABLISHED && BYTES_ACKED(th, tp) > 0) { in tcp_input()
[all …]
H A Dtcp_output.c448 if (tp->t_state >= TCPS_ESTABLISHED) { in tcp_set_l4s()
1120 if (tp->t_state >= TCPS_CLOSE_WAIT) { in tcp_output()
1240 flags = tcp_outflags[tp->t_state]; in tcp_output()
1459 if (tp->t_state == TCPS_SYN_RECEIVED && TFO_ENABLED(tp) && tp->snd_nxt == tp->snd_una + 1) { in tcp_output()
1464 if (tp->t_state != TCPS_SYN_RECEIVED || TFO_ENABLED(tp)) { in tcp_output()
1470 if (len > 0 && tp->t_state == TCPS_SYN_SENT) { in tcp_output()
1524 if ((flags & TH_SYN) && tp->t_state <= TCPS_SYN_SENT && TFO_ENABLED(tp)) { in tcp_output()
1653 if (tp->t_state >= TCPS_ESTABLISHED && in tcp_output()
1740 if (TCP_RLEDBAT_ENABLED(tp) || (tcp_rledbat && tp->t_state < in tcp_output()
1823 if (tp->t_state == TCPS_SYN_RECEIVED && in tcp_output()
[all …]
H A Dtcp_timer.h277 #define TCP_ADD_REXMTSLOP(tp) (tp->t_state >= TCPS_ESTABLISHED)
H A Dtcp_newreno.c288 if (tp->t_state >= TCPS_ESTABLISHED) { in tcp_newreno_after_timeout()
H A Dtcp_subr.c1434 if (TCPS_HAVERCVDSYN(tp->t_state)) { in tcp_drop()
1438 tp->t_state = TCPS_CLOSED; in tcp_drop()
1489 } else if (tp->t_state < TCPS_ESTABLISHED && tp->t_srtt == 0 && in tcp_getrt_rtt()
1835 tp->t_state = TCPS_CLOSED; in tcp_close()
1959 tp->t_state = TCPS_CLOSED; in tcp_close()
2076 if (tp->t_state == TCPS_ESTABLISHED && in tcp_notify()
2083 } else if (tp->t_state < TCPS_ESTABLISHED && tp->t_rxtshift > 3 && in tcp_notify()
2154 otp->t_state = tp->t_state; in tcpcb_to_otcpcb()
2338 otp->t_state = tp->t_state; in tcpcb_to_xtcpcb64()
3058 if (tp && tp->t_state == TCPS_SYN_SENT) { in tcp_drop_syn_sent()
[all …]
H A Din_pcblist.c243 xt->t_state = tp->t_state; in tcpcb_to_xtcpcb_n()
645 switch (tp->t_state) { in inpcb_get_if_ports_used()
H A Dmptcp_subr.c213 sototcpcb(mpts->mpts_socket)->t_state, mpts->mpts_flags); in mptcpstats_get_index()
626 if (sototcpcb(mpts->mpts_socket)->t_state == TCPS_CLOSED) { in mptcp_subflow_disconnecting()
803 mpts->mpts_flags, sototcpcb(mpts->mpts_socket)->t_state); in mptcp_check_subflows_and_add()
973 tp->t_state != TCPS_ESTABLISHED || in mptcp_pure_handover_subflows_remove()
1030 tp->t_state != TCPS_ESTABLISHED) { in mptcp_handover_subflows_remove()
2815 if (tp->t_state != TCPS_CLOSED) { in mptcp_subflow_abort()
4354 if (tp->t_state != TCPS_CLOSED) { in mptcp_subflow_mustrst_ev()
4418 if (!TCPS_HAVEESTABLISHED(tp->t_state) || in mptcp_subflow_adaptive_rtimo_ev()
4419 TCPS_HAVERCVDFIN2(tp->t_state)) { in mptcp_subflow_adaptive_rtimo_ev()
4448 if (!TCPS_HAVEESTABLISHED(tp->t_state) || in mptcp_subflow_adaptive_wtimo_ev()
[all …]
H A Dtcp_log.c141 tcpstates[tp->t_state], \
822 tcpstates[tp->t_state], \ in tcp_log_drop_pcb()
1127 if (new_state == tp->t_state) { in tcp_log_state_change()
H A Dtcp_log.h160 if (tp->t_state == TCPS_LISTEN && (inp->inp_log_flags & TLEF_MASK_DST) == 0) { in tcp_is_log_enabled()
H A Dtcp_var.h425 int t_state; /* state of this connection */ member
1125 int t_state; /* state of this connection */ member
1541 int t_state; /* state of this connection */ member
1624 int t_state; /* state of this connection */ member
H A Dtcp_cubic.c485 if (tp->t_state < TCPS_ESTABLISHED && in tcp_cubic_after_timeout()
H A Dtcp_ledbat.c524 if (tp->t_state >= TCPS_ESTABLISHED) { in tcp_ledbat_after_timeout()
H A Dtcp_prague.c637 if (tp->t_state < TCPS_ESTABLISHED && in tcp_prague_after_timeout()
H A Dmptcp.c912 !TCPS_HAVEESTABLISHED(tp->t_state) || in mptcp_get_subflow()
913 tp->t_state > TCPS_CLOSE_WAIT) { in mptcp_get_subflow()
/xnu-12377.41.6/tools/lldbmacros/
H A Dnet.py436 if tp.t_state == 0:
438 if tp.t_state == 1:
440 if tp.t_state == 2:
442 if tp.t_state == 3:
444 if tp.t_state == 4:
446 if tp.t_state == 5:
448 if tp.t_state == 6:
450 if tp.t_state == 7:
452 if tp.t_state == 8:
454 if tp.t_state == 9:
[all …]
/xnu-12377.41.6/bsd/sys/
H A Dtty.h126 int t_state; /* Device and driver (TS*) state. */ member

12