Home
last modified time | relevance | path

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

12

/xnu-8020.101.4/bsd/kern/
H A Dtty.c314 if (!ISSET(tp->t_state, TS_ISOPEN)) { in ttyopen()
315 SET(tp->t_state, TS_ISOPEN); in ttyopen()
317 SET(tp->t_state, TS_CONNECTED); in ttyopen()
388 tp->t_state = 0; in ttyclose()
463 !ISSET(tp->t_state, TS_TBLOCK)) { in ttyinput()
505 if (!ISSET(tp->t_state, TS_TYPEN) && ISSET(iflag, ISTRIP)) { in ttyinput()
512 if (ISSET(tp->t_state, TS_LNCH)) { in ttyinput()
514 CLR(tp->t_state, TS_LNCH); in ttyinput()
538 SET(tp->t_state, TS_LNCH); in ttyinput()
592 if (!ISSET(tp->t_state, TS_TTSTOP)) { in ttyinput()
[all …]
H A Dtty_dev.c272 if ((tp->t_state & TS_ISOPEN) == 0) { in ptsopen()
280 } else if ((tp->t_state & TS_XCLUDE) && kauth_cred_issuser(kauth_cred_get())) { in ptsopen()
287 while ((tp->t_state & TS_CARR_ON) == 0) { in ptsopen()
300 CLR(tp->t_state, TS_IOCTL_NOT_OK); in ptsopen()
429 if (tp->t_state & TS_TTSTOP) { in ptsstart()
489 if (tp->t_oproc || (tp->t_state & TS_ISOPEN)) { in ptcopen()
501 CLR(tp->t_state, TS_ZOMBIE); in ptcopen()
502 SET(tp->t_state, TS_IOCTL_NOT_OK); in ptcopen()
542 if (tp->t_state & TS_ISOPEN) { in ptcclose()
543 tp->t_state &= ~(TS_CARR_ON | TS_CONNECTED); in ptcclose()
[all …]
H A Dtty_ptmx.c544 if (tp->t_state & TS_ISOPEN) { in ptsd_kqops_detach()
582 (tp->t_state & TS_CONNECTED)) { in ptsd_kqops_common()
594 if (tp->t_state & TS_ZOMBIE) { in ptsd_kqops_common()
678 assert(tp->t_state & TS_ISOPEN); in ptsd_kqfilter()
849 if (tp->t_outq.c_cc && !(tp->t_state & TS_TTSTOP)) { in ptmx_kqops_common()
875 if (!(tp->t_state & TS_CONNECTED) || (tp->t_state & TS_ZOMBIE)) { in ptmx_kqops_common()
H A Dsocket_info.c155 tcpsi->tcpsi_state = tp->t_state; in fill_socketinfo()
/xnu-8020.101.4/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-8020.101.4/bsd/dev/i386/
H A Dkm.c112 if (!(tp->t_state & TS_ISOPEN)) { in kmopen()
120 } else if ((tp->t_state & TS_XCLUDE) && proc_suser(pp)) { in kmopen()
125 tp->t_state |= TS_CARR_ON; /* lie and say carrier exists and is on. */ in kmopen()
302 if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) { in kmstart()
308 tp->t_state |= TS_BUSY; in kmstart()
385 tp->t_state &= ~TS_BUSY; in kmoutput()
/xnu-8020.101.4/bsd/dev/arm/
H A Dkm.c89 if (!(tp->t_state & TS_ISOPEN)) { in kmopen()
97 } else if ((tp->t_state & TS_XCLUDE) && proc_suser(pp)) { in kmopen()
102 tp->t_state |= TS_CARR_ON; /* lie and say carrier exists and is in kmopen()
284 if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) { in kmstart()
290 tp->t_state |= TS_BUSY; in kmstart()
380 tp->t_state &= ~TS_BUSY; in kmoutput()
/xnu-8020.101.4/bsd/netinet/
H A Dtcp_timer.c667 tp->t_state != TCPS_CLOSED) { in tcp_garbage_collect()
684 ((tp != NULL) && (tp->t_state == TCPS_CLOSED) && in tcp_garbage_collect()
831 if (tw_tp->t_state == TCPS_CLOSED || in tcp_gc()
1040 if (tp->t_state != TCPS_TIME_WAIT && in tcp_timers()
1041 tp->t_state != TCPS_FIN_WAIT_2 && in tcp_timers()
1046 if (tp->t_state == TCPS_FIN_WAIT_2) { in tcp_timers()
1087 if (tp->t_state == TCPS_ESTABLISHED && in tcp_timers()
1122 tp->t_state == TCPS_ESTABLISHED) { in tcp_timers()
1138 tp->t_state == TCPS_ESTABLISHED) { in tcp_timers()
1152 (tp->t_state == TCPS_ESTABLISHED) && in tcp_timers()
[all …]
H A Dtcp_input.c769 if (!TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_reass()
883 tp->t_state == TCPS_ESTABLISHED) { in tcp_adaptive_rwtimo_check()
908 ASSERT(tp->t_state == TCPS_FIN_WAIT_2); in tcp_set_finwait_timeout()
2282 if (tp->t_state == TCPS_CLOSED) { in tcp_input()
2330 prev_t_state = tp->t_state; in tcp_input()
2346 if (tp->t_state == TCPS_LISTEN && in tcp_input()
2355 ostate = tp->t_state; in tcp_input()
2677 tp->t_state = TCPS_LISTEN; in tcp_input()
2720 if (tp->t_state == TCPS_ESTABLISHED && tlen > 0) { in tcp_input()
2766 if (ip_ecn == IPTOS_ECN_CE && tp->t_state == TCPS_ESTABLISHED && in tcp_input()
[all …]
H A Dtcp_usrreq.c144 #define TCPDEBUG1() ostate = tp ? tp->t_state : 0
389 tp->t_state = TCPS_LISTEN; in tcp_usr_listen()
411 tp->t_state = TCPS_LISTEN; in tcp6_usr_listen()
968 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_usr_rcvd()
1156 if (nam && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send()
1202 if (nam && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send()
1438 otp->t_state == TCPS_TIME_WAIT && in tcp_connect()
1504 tp->t_state = TCPS_SYN_SENT; in tcp_connect()
1573 otp->t_state == TCPS_TIME_WAIT && in tcp6_connect()
1635 tp->t_state = TCPS_SYN_SENT; in tcp6_connect()
[all …]
H A Dtcp_output.c730 if (tp->t_state >= TCPS_CLOSE_WAIT) { in tcp_output()
827 flags = tcp_outflags[tp->t_state]; in tcp_output()
1030 if (tp->t_state == TCPS_SYN_RECEIVED && tfo_enabled(tp) && tp->snd_nxt == tp->snd_una + 1) { in tcp_output()
1035 if (tp->t_state != TCPS_SYN_RECEIVED || tfo_enabled(tp)) { in tcp_output()
1041 if (len > 0 && tp->t_state == TCPS_SYN_SENT) { in tcp_output()
1095 if ((flags & TH_SYN) && tp->t_state <= TCPS_SYN_SENT && tfo_enabled(tp)) { in tcp_output()
1218 if (tp->t_state >= TCPS_ESTABLISHED && in tcp_output()
1299 if (TCP_RLEDBAT_ENABLED(tp) || (tcp_rledbat && tp->t_state < in tcp_output()
1366 if (tp->t_state == TCPS_SYN_RECEIVED && in tcp_output()
1378 tp->t_state != TCPS_ESTABLISHED) { in tcp_output()
[all …]
H A Dtcp_timer.h291 #define TCP_ADD_REXMTSLOP(tp) (tp->t_state >= TCPS_ESTABLISHED)
H A Dtcp_subr.c1205 if (TCPS_HAVERCVDSYN(tp->t_state)) { in tcp_drop()
1208 tp->t_state = TCPS_CLOSED; in tcp_drop()
1512 tp->t_state = TCPS_CLOSED; in tcp_close()
1637 tp->t_state = TCPS_CLOSED; in tcp_close()
1775 if (tp->t_state == TCPS_ESTABLISHED && in tcp_notify()
1782 } else if (tp->t_state < TCPS_ESTABLISHED && tp->t_rxtshift > 3 && in tcp_notify()
1853 otp->t_state = tp->t_state; in tcpcb_to_otcpcb()
2037 otp->t_state = tp->t_state; in tcpcb_to_xtcpcb64()
2739 if (((tp->t_state == TCPS_LISTEN) || (tp->t_state == TCPS_TIME_WAIT)) && in tcp_new_isn()
2796 if (tp && tp->t_state == TCPS_SYN_SENT) { in tcp_drop_syn_sent()
[all …]
H A Dtcp_newreno.c287 if (tp->t_state >= TCPS_ESTABLISHED) { in tcp_newreno_after_timeout()
H A Din_pcblist.c224 xt->t_state = tp->t_state; in tcpcb_to_xtcpcb_n()
596 switch (tp->t_state) { in inpcb_get_if_ports_used()
H A Dtcp_debug.c235 printf(" -> %s", tcpstates[tp->t_state]);
H A Dtcp_var.h280 int t_state; /* state of this connection */ member
875 int t_state; /* state of this connection */ member
1294 int t_state; /* state of this connection */ member
1377 int t_state; /* state of this connection */ member
H A Dmptcp_subr.c400 sototcpcb(mpts->mpts_socket)->t_state, mpts->mpts_flags); in mptcpstats_get_index()
809 if (sototcpcb(mpts->mpts_socket)->t_state == TCPS_CLOSED) { in mptcp_subflow_disconnecting()
986 mpts->mpts_flags, sototcpcb(mpts->mpts_socket)->t_state); in mptcp_check_subflows_and_add()
1156 tp->t_state != TCPS_ESTABLISHED || in mptcp_pure_handover_subflows_remove()
1213 tp->t_state != TCPS_ESTABLISHED) { in mptcp_handover_subflows_remove()
2837 mptcplog((LOG_DEBUG, "%s aborting connection state %u\n", __func__, tp->t_state), in mptcp_subflow_abort()
2840 if (tp->t_state != TCPS_CLOSED) { in mptcp_subflow_abort()
4514 if (tp->t_state != TCPS_CLOSED) { in mptcp_subflow_mustrst_ev()
4577 if (!TCPS_HAVEESTABLISHED(tp->t_state) || in mptcp_subflow_adaptive_rtimo_ev()
4578 TCPS_HAVERCVDFIN2(tp->t_state)) { in mptcp_subflow_adaptive_rtimo_ev()
[all …]
H A Dmptcp.c858 INP_WAIT_FOR_IF_FEEDBACK(inp), so->so_state, tp->t_state, in mptcp_get_subflow()
899 !TCPS_HAVEESTABLISHED(tp->t_state) || in mptcp_get_subflow()
900 tp->t_state > TCPS_CLOSE_WAIT) { in mptcp_get_subflow()
H A Dtcp_log.c161 tcpstates[tp->t_state], \
725 tcpstates[tp->t_state], \ in tcp_log_drop_pcb()
H A Dtcp_cubic.c591 if (tp->t_state < TCPS_ESTABLISHED && in tcp_cubic_after_timeout()
H A Dtcp_ledbat.c587 if (tp->t_state >= TCPS_ESTABLISHED) { in tcp_ledbat_after_timeout()
H A Dmptcp_opt.c354 if (mptcp_enable == 0 || mp_tp == NULL || tp->t_state == TCPS_CLOSED) { in mptcp_setup_opts()
1939 if (tp->t_state != TCPS_ESTABLISHED) { in mptcp_snd_mpprio()
/xnu-8020.101.4/tools/lldbmacros/
H A Dnet.py448 if tp.t_state == 0:
450 if tp.t_state == 1:
452 if tp.t_state == 2:
454 if tp.t_state == 3:
456 if tp.t_state == 4:
458 if tp.t_state == 5:
460 if tp.t_state == 6:
462 if tp.t_state == 7:
464 if tp.t_state == 8:
466 if tp.t_state == 9:
[all …]
/xnu-8020.101.4/bsd/sys/
H A Dtty.h126 int t_state; /* Device and driver (TS*) state. */ member

12