Lines Matching refs:tcp

104 #define	TCP_IS_SOCKET(tcp)	((tcp)->tcp_issocket)  argument
109 #define TCP_IS_DETACHED(tcp) ((tcp)->tcp_detached) argument
124 #define TCP_TIMER(tcp, f, tim) \ argument
125 tcp_timeout(tcp->tcp_connp, f, tim)
126 #define TCP_TIMER_CANCEL(tcp, id) \ argument
127 tcp_timeout_cancel(tcp->tcp_connp, id)
132 #define TCP_TIMER_RESTART(tcp, intvl) { \ argument
133 if ((tcp)->tcp_timer_tid != 0) \
134 (void) TCP_TIMER_CANCEL((tcp), (tcp)->tcp_timer_tid); \
135 (tcp)->tcp_timer_tid = TCP_TIMER((tcp), tcp_timer, (intvl)); \
272 #define TCP_SET_INIT_CWND(tcp, mss, def_max_init_cwnd) \ argument
274 if ((tcp)->tcp_init_cwnd == 0) { \
276 (tcp)->tcp_cwnd = MIN(4 * (mss), \
279 (tcp)->tcp_cwnd = MIN(TCP_MAX_INIT_CWND * (mss),\
283 (tcp)->tcp_cwnd = (tcp)->tcp_init_cwnd * (mss); \
285 tcp->tcp_cwnd_cnt = 0; \
295 #define TCP_SET_ECT(tcp, iph) \ argument
296 if ((tcp)->tcp_connp->conn_ipversion == IPV4_VERSION) { \
314 tcp_t *tcp; member
352 #define TCP_UNSENT_BYTES(tcp) \ argument
353 ((tcp)->tcp_squeue_bytes + (tcp)->tcp_unsent)
405 #define TCP_DECR_LISTEN_CNT(tcp) \ argument
407 ASSERT((tcp)->tcp_listen_cnt->tlc_cnt > 0); \
408 if (atomic_dec_32_nv(&(tcp)->tcp_listen_cnt->tlc_cnt) == 0) \
409 kmem_free((tcp)->tcp_listen_cnt, sizeof (tcp_listen_cnt_t)); \
410 (tcp)->tcp_listen_cnt = NULL; \
612 tcp_calculate_rto(tcp_t *tcp, tcp_stack_t *tcps, uint32_t extra) in tcp_calculate_rto() argument
616 rto = NSEC2MSEC((tcp->tcp_rtt_sa >> 3) + (tcp->tcp_rtt_sa >> 5) + in tcp_calculate_rto()
617 tcp->tcp_rtt_sd) + tcps->tcps_rexmit_interval_extra + extra; in tcp_calculate_rto()
619 if (rto < tcp->tcp_rto_min) { in tcp_calculate_rto()
620 rto = tcp->tcp_rto_min; in tcp_calculate_rto()
621 } else if (rto > tcp->tcp_rto_max) { in tcp_calculate_rto()
622 rto = tcp->tcp_rto_max; in tcp_calculate_rto()