/freebsd/sys/netinet/ |
H A D | tcp_timer.c | 301 tp->t_fb->tfb_tcp_block_name, tp)); in tcp_output_locked() 302 tp = tcp_drop(tp, -rv); in tcp_output_locked() 371 tp = tcp_close(tp); in tcp_timer_2msl() 418 if (ticks - tp->t_rcvtime >= TP_KEEPIDLE(tp) + TP_MAXIDLE(tp)) in tcp_timer_keep() 453 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_keep() 543 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_persist() 564 (*tp->t_fb->tfb_tcp_rexmit_tmr)(tp); in tcp_timer_rexmt() 581 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_rexmt() 603 tp->snd_cwnd_prev = tp->snd_cwnd; in tcp_timer_rexmt() 792 tp->snd_nxt = tp->snd_una; in tcp_timer_rexmt() [all …]
|
H A D | tcp_input.c | 269 hhook_data.tp = tp; in hhook_run_tcp_est_in() 459 tp->snd_nxt = tp->snd_max; in cc_cong_signal() 466 tp->snd_fack = tp->snd_una; in cc_cong_signal() 1929 tp->rcv_up = tp->rcv_nxt; in tcp_do_segment() 1973 tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt)); in tcp_do_segment() 2199 tp = tcp_close(tp); in tcp_do_segment() 2355 tp = tcp_close(tp); in tcp_do_segment() 3068 tp = tcp_close(tp); in tcp_do_segment() 3158 tp->rcv_up = tp->rcv_nxt; in tcp_do_segment() 4078 tp->snd_cwnd = tp->snd_nxt - tp->snd_recover + in tcp_do_prr_ack() [all …]
|
H A D | tcp_output.c | 161 hhook_data.tp = tp; in hhook_run_tcp_est_out() 182 CC_ALGO(tp)->after_idle(&tp->t_ccv); in cc_after_idle() 255 idle = (tp->t_flags & TF_LASTIDLE) || (tp->snd_max == tp->snd_una); in tcp_default_output() 257 (tp->t_sndtime && ((ticks - tp->t_sndtime) >= tp->t_rxtcur)))) in tcp_default_output() 278 off = tp->snd_nxt - tp->snd_una; in tcp_default_output() 502 tp->snd_nxt = tp->snd_una; in tcp_default_output() 785 tp->snd_nxt = tp->iss; in tcp_default_output() 1185 tp->snd_nxt == tp->snd_max) in tcp_default_output() 1556 tp->snd_max = tp->snd_nxt; in tcp_default_output() 1683 tp->snd_cwnd = tp->t_maxseg; in tcp_default_output() [all …]
|
H A D | tcp_sack.c | 161 if (SEQ_LEQ(tp->sackblks[0].end, tp->rcv_nxt)) in tcp_dsack_block_exists() 184 (tp->sackblks[0].end == tp->rcv_nxt))) { in tcp_update_dsack_list() 647 tp->snd_fack = SEQ_MAX(tp->snd_una, th_ack); in tcp_sack_doack() 967 if (tp->snd_cwnd > tp->snd_ssthresh) in tcp_sack_partialack() 968 tp->snd_cwnd = tp->snd_ssthresh; in tcp_sack_partialack() 1082 if (SEQ_GEQ(tp->snd_nxt, tp->snd_fack)) { in tcp_sack_adjust() 1105 tp->snd_nxt = tp->snd_fack; in tcp_sack_adjust() 1120 SEQ_GT(tp->snd_fack, tp->snd_recover) && in tcp_sack_lost_retransmission() 1142 tp->snd_cwnd = tp->snd_ssthresh; in tcp_sack_lost_retransmission() 1155 tp->snd_cwnd = tcp_maxseg(tp); in tcp_sack_lost_retransmission() [all …]
|
H A D | tcp_ecn.c | 159 tp->t_scep = 5; in tcp_ecn_input_syn_sent() 167 tp->t_scep = 5; in tcp_ecn_input_syn_sent() 175 tp->t_scep = 5; in tcp_ecn_input_syn_sent() 183 tp->t_scep = 6; in tcp_ecn_input_syn_sent() 189 tp->snd_cwnd = 2 * tcp_maxseg(tp); in tcp_ecn_input_syn_sent() 340 tp->snd_cwnd = 2 * tcp_maxseg(tp); in tcp_ecn_input_segment() 353 tp->t_scep++; in tcp_ecn_input_segment() 415 newdata = (len > 0 && SEQ_GEQ(tp->snd_nxt, tp->snd_max) && in tcp_ecn_output_established() 476 tp->t_scep = 5; in tcp_ecn_syncache_socket() 477 tp->t_rcep = 5; in tcp_ecn_syncache_socket() [all …]
|
H A D | tcp_usrreq.c | 2688 tp = tcp_close(tp); in tcp_disconnect() 2692 tp = tcp_drop(tp, 0); in tcp_disconnect() 2730 tp = tcp_close(tp); in tcp_usrclosed() 3043 tp->snd_una, tp->snd_max, tp->snd_nxt); in db_print_tcpcb() 3047 tp->snd_up, tp->snd_wl1, tp->snd_wl2); in db_print_tcpcb() 3051 tp->iss, tp->irs, tp->rcv_nxt); in db_print_tcpcb() 3055 tp->rcv_adv, tp->rcv_wnd, tp->rcv_up); in db_print_tcpcb() 3075 tp->t_rxtcur, tp->t_maxseg, tp->t_srtt); in db_print_tcpcb() 3079 tp->t_rttvar, tp->t_rxtshift, tp->t_rttmin); in db_print_tcpcb() 3083 tp->t_rttupdated, tp->max_sndwnd, tp->t_softerror); in db_print_tcpcb() [all …]
|
H A D | tcp_offload.c | 133 struct toedev *tod = tp->tod; in tcp_offload_input() 138 tod->tod_input(tod, tp, m); in tcp_offload_input() 144 struct toedev *tod = tp->tod; in tcp_offload_output() 159 tp->t_flags |= TF_SENTFIN; in tcp_offload_output() 169 struct toedev *tod = tp->tod; in tcp_offload_rcvd() 174 tod->tod_rcvd(tod, tp); in tcp_offload_rcvd() 180 struct toedev *tod = tp->tod; in tcp_offload_ctloutput() 191 struct toedev *tod = tp->tod; in tcp_offload_tcp_info() 203 struct toedev *tod = tp->tod; in tcp_offload_alloc_tls_session() 214 struct toedev *tod = tp->tod; in tcp_offload_detach() [all …]
|
H A D | tcp_subr.c | 619 (*tp->t_fb->tfb_tcp_fb_fini)(tp, 0); in tcp_switch_back_to_default() 1151 tp->snd_nxt - tp->snd_una); in tcp_default_fb_init() 2250 tp->t_ccv.ccvc.tcp = tp; in tcp_newtcpcb() 2346 if ((*tp->t_fb->tfb_tcp_fb_init)(tp, &tp->t_fb_ptr)) { in tcp_newtcpcb() 2590 tp = tcp_drop(tp, error); in tcp_notify() 3287 tp = tcp_drop(tp, errno); in tcp_drop_syn_sent() 3329 tp->snd_nxt = tp->snd_una; in tcp_mtudisc() 3331 tp->snd_recover = tp->snd_max; in tcp_mtudisc() 3341 tp->t_fb->tfb_tcp_mtu_chg(tp); in tcp_mtudisc() 4170 tp->t_tmr_granularity, tp)); in tcp_change_time_units() [all …]
|
/freebsd/sys/kern/ |
H A D | tty.c | 219 if (tty_gone(tp) || !tty_opened(tp)) { in ttydev_enter() 289 error = tty_wait(tp, &tp->t_dcdwait); in ttydev_open() 323 tp->t_termios = tp->t_termios_init_in; in ttydev_open() 324 ttydevsw_param(tp, &tp->t_termios); in ttydev_open() 346 error = tty_wait(tp, &tp->t_dcdwait); in ttydev_open() 495 error = tty_wait(tp, &tp->t_bgwait); in tty_wait_background() 1098 tp->t_mtx = &tp->t_mtxobj; in tty_alloc_mutex() 1135 if (tp->t_mtx == &tp->t_mtxobj) in tty_dealloc() 1884 tp->t_session->s_ttyp = tp; in tty_generic_ioctl() 2406 tp->t_inq.ti_linestart, tp->t_inq.ti_reprint, tp->t_inq.ti_end, in DB_SHOW_COMMAND() [all …]
|
H A D | tty_ttydisc.c | 234 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_canonical() 299 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_raw_no_timer() 400 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_raw_interbyte_timer() 503 tp->t_column = tp->t_writepos = 0; in ttydisc_write_oproc() 518 tp->t_column = tp->t_writepos = 0; in ttydisc_write_oproc() 610 tp->t_writepos = tp->t_column; in ttydisc_write() 621 tp->t_writepos = tp->t_column; in ttydisc_write() 645 error = tty_wait(tp, &tp->t_outwait); in ttydisc_write() 810 struct tty *tp = data->tp; in ttydisc_recalc_charlength() local 849 if (tp->t_writepos >= tp->t_column) { in ttydisc_rubchar() [all …]
|
H A D | tty_pts.c | 122 tty_lock(tp); in ptsdev_read() 202 tty_lock(tp); in ptsdev_write() 273 tty_lock(tp); in ptsdev_ioctl() 307 tty_lock(tp); in ptsdev_ioctl() 334 tty_lock(tp); in ptsdev_ioctl() 343 tty_lock(tp); in ptsdev_ioctl() 359 tty_lock(tp); in ptsdev_ioctl() 375 tty_lock(tp); in ptsdev_ioctl() 392 tty_lock(tp); in ptsdev_poll() 509 tty_lock(tp); in ptsdev_kqfilter() [all …]
|
/freebsd/contrib/nvi/vi/ |
H A D | v_txt.c | 299 tp->ai = tp->insert = tp->offset = tp->owrite = 0; in v_txt() 885 tp->lb + tp->cno + tp->owrite, tp->insert); in v_txt() 964 if (tp->ai == 0 || tp->cno > tp->ai + tp->offset) in v_txt() 1060 if (tp->ai && tp->cno > tp->ai) in v_txt() 1157 if (tp->ai && tp->cno > tp->ai) in v_txt() 1344 if (tp->cno + tp->insert + tp->owrite != tp->len) { in v_txt() 1347 tp->len, tp->cno, tp->ai, tp->insert, tp->owrite); in v_txt() 1350 tp->len = tp->cno + tp->insert + tp->owrite; in v_txt() 2377 MEMMOVE(tp->lb + tp->cno, tp->lb + tp->cno + len, in txt_hex() 2510 tp->lb[tp->cno + 1] = tp->lb[tp->cno]; in txt_insch() [all …]
|
/freebsd/sys/sys/ |
H A D | ttydevsw.h | 90 return (tp->t_devsw->tsw_open(tp)); in ttydevsw_open() 100 tp->t_devsw->tsw_close(tp); in ttydevsw_close() 114 tp->t_devsw->tsw_outwakeup(tp); in ttydevsw_outwakeup() 128 tp->t_devsw->tsw_inwakeup(tp); in ttydevsw_inwakeup() 138 return (tp->t_devsw->tsw_ioctl(tp, cmd, data, td)); in ttydevsw_ioctl() 149 return (tp->t_devsw->tsw_cioctl(tp, unit, cmd, data, td)); in ttydevsw_cioctl() 158 return (tp->t_devsw->tsw_param(tp, t)); in ttydevsw_param() 167 return (tp->t_devsw->tsw_modem(tp, sigon, sigoff)); in ttydevsw_modem() 187 tp->t_devsw->tsw_pktnotify(tp, event); in ttydevsw_pktnotify() 196 tp->t_devsw->tsw_free(tty_softc(tp)); in ttydevsw_free() [all …]
|
H A D | ttyhook.h | 72 #define ttyhook_softc(tp) ((tp)->t_hooksoftc) argument 73 #define ttyhook_hashook(tp,hook) ((tp)->t_hook != NULL && \ argument 80 MPASS(!tty_gone(tp)); in ttyhook_rint() 82 return tp->t_hook->th_rint(tp, c, flags); in ttyhook_rint() 91 return tp->t_hook->th_rint_bypass(tp, buf, len); in ttyhook_rint_bypass() 100 tp->t_hook->th_rint_done(tp); in ttyhook_rint_done() 109 return tp->t_hook->th_rint_poll(tp); in ttyhook_rint_poll() 118 return tp->t_hook->th_getc_inject(tp, buf, len); in ttyhook_getc_inject() 127 tp->t_hook->th_getc_capture(tp, buf, len); in ttyhook_getc_capture() 136 return tp->t_hook->th_getc_poll(tp); in ttyhook_getc_poll() [all …]
|
H A D | tty.h | 171 #define tty_lock(tp) mtx_lock((tp)->t_mtx) argument 172 #define tty_unlock(tp) mtx_unlock((tp)->t_mtx) argument 173 #define tty_lock_owned(tp) mtx_owned((tp)->t_mtx) argument 174 #define tty_assert_locked(tp) mtx_assert((tp)->t_mtx, MA_OWNED) argument 175 #define tty_getlock(tp) ((tp)->t_mtx) argument 178 #define tty_lock_assert(tp, ma) mtx_assert((tp)->t_mtx, (ma)) argument 213 #define tty_opened(tp) ((tp)->t_flags & TF_OPENED) argument 214 #define tty_gone(tp) ((tp)->t_flags & TF_GONE) argument 215 #define tty_softc(tp) ((tp)->t_devswsoftc) argument 216 #define tty_devname(tp) devtoname((tp)->t_dev) argument [all …]
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_txt.c | 144 BINC_GOTOW(sp, tp->lb, tp->lb_len, tp->len + 1); in ex_txt() 167 tp->len != 0 && tp->lb[tp->len - 1] == '\\') in ex_txt() 177 tp->lb[tp->len] = '\0'; in ex_txt() 214 OOBLNO, tp, tp->len, ntp)) in ex_txt() 284 if (tp->len > tp->ai + 1) in ex_txt() 298 if (tp->len > tp->ai + 1) in ex_txt() 303 tp->ai = tp->len = 0; in ex_txt() 306 if (tp->len > tp->ai) in ex_txt() 332 tp->lb[tp->len++] = ev.e_c; in ex_txt() 421 tp->lb[tp->len++] = '\t'; in txt_dent() [all …]
|
/freebsd/sys/net/ |
H A D | if_tuntap.c | 155 #define TUN_LOCK(tp) mtx_lock(&(tp)->tun_mtx) argument 156 #define TUN_UNLOCK(tp) mtx_unlock(&(tp)->tun_mtx) argument 379 TUN_LOCK(tp); in tun_busy() 389 TUN_LOCK(tp); in tun_unbusy() 614 cv_wait_unlock(&tp->tun_cv, &tp->tun_mtx); in tun_destroy() 634 free_unr(tp->tun_drv->unrhdr, TUN2IFP(tp)->if_dunit); in tun_destroy() 783 tp = malloc(sizeof(*tp), M_TUN, M_WAITOK | M_ZERO); in tun_create_device() 808 knlist_init_mtx(&tp->tun_rsel.si_note, &tp->tun_mtx); in tun_create_device() 835 wakeup(tp); in tunstart() 839 if (tp->tun_flags & TUN_ASYNC && tp->tun_sigio) { in tunstart() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-dhcp6.c | 377 dhcp6opt_print(ndo, tp + 24, tp + optlen); in dhcp6opt_print() 449 tp++; in dhcp6opt_print() 460 tp++; in dhcp6opt_print() 470 tp++; in dhcp6opt_print() 513 tp++; in dhcp6opt_print() 610 dhcp6opt_print(ndo, tp + 12, tp + optlen); in dhcp6opt_print() 623 dhcp6opt_print(ndo, tp + 4, tp + optlen); in dhcp6opt_print() 640 dhcp6opt_print(ndo, tp + 25, tp + optlen); in dhcp6opt_print() 688 dhcp6opt_print(ndo, tp + 17, tp + optlen); in dhcp6opt_print() 696 dhcp6opt_print(ndo, tp, tp + optlen); in dhcp6opt_print() [all …]
|
H A D | addrtoname.c | 450 tp = tp->e_nxt; in lookup_emem() 458 return tp; in lookup_emem() 493 tp = tp->bs_nxt; in lookup_bytestring() 511 return tp; in lookup_bytestring() 543 tp = tp->e_nxt; in lookup_nsap() 574 if (tp->p_oui == i && tp->p_proto == j) in lookup_protoid() 577 tp = tp->p_nxt; in lookup_protoid() 742 for (tp = &tporttable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in tcpport_string() 764 for (tp = &uporttable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in udpport_string() 787 for (tp = &ipxsaptable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in ipxsap_string() [all …]
|
/freebsd/contrib/lib9p/ |
H A D | threadpool.c | 44 struct l9p_threadpool *tp; in l9p_responder() local 48 tp = worker->ltw_tp; in l9p_responder() 53 pthread_cond_wait(&tp->ltp_reply_cv, &tp->ltp_mtx); in l9p_responder() 81 struct l9p_threadpool *tp; in l9p_worker() local 85 tp = worker->ltw_tp; in l9p_worker() 89 pthread_cond_wait(&tp->ltp_work_cv, &tp->ltp_mtx); in l9p_worker() 177 STAILQ_INIT(&tp->ltp_workq); in l9p_threadpool_init() 179 LIST_INIT(&tp->ltp_workers); in l9p_threadpool_init() 185 worker->ltw_tp = tp; in l9p_threadpool_init() 264 struct l9p_threadpool *tp; in l9p_threadpool_tflush() local [all …]
|
/freebsd/contrib/mandoc/ |
H A D | tbl_term.c | 189 tp->tbl.arg = tp; in term_tbl() 274 tp->lasttcol = tp->tcol - tp->tcols; in term_tbl() 278 tp->tcol = tp->tcols; in term_tbl() 306 tp->tcol = tp->tcols; in term_tbl() 326 (*tp->advance)(tp, tp->tcols->offset); in term_tbl() 451 (*tp->advance)(tp, tp->tcol->rmargin in term_tbl() 460 if (tp->tcol + 1 == tp->tcols + tp->lasttcol) in term_tbl() 534 (*tp->endline)(tp); in term_tbl() 603 (*tp->advance)(tp, tp->tcols->offset); in tbl_hrule() 709 (*tp->endline)(tp); in tbl_hrule() [all …]
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | rack_bbr_common.c | 505 bytes_out = tp->snd_max - tp->snd_una; in ctf_outstanding() 766 tp = tcp_close(tp); in __ctf_process_rst() 802 tp->rcv_nxt, tp->snd_nxt, TH_ACK); in __ctf_process_rst() 803 tp->last_ack_sent = tp->rcv_nxt; in __ctf_process_rst() 828 tp = tcp_drop(tp, ECONNRESET); in ctf_challenge_ack() 834 tcp_respond(tp, mtod(m, void *), th, m, tp->rcv_nxt, in ctf_challenge_ack() 836 tp->last_ack_sent = tp->rcv_nxt; in ctf_challenge_ack() 921 tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt)); in ctf_calc_rwin() 930 tp = tcp_drop(tp, ETIMEDOUT); in ctf_do_dropwithreset_conn() 931 if (tp) in ctf_do_dropwithreset_conn() [all …]
|
/freebsd/contrib/ncurses/ncurses/trace/ |
H A D | trace_xnames.c | 46 int limit = tp->ext_Booleans + tp->ext_Numbers + tp->ext_Strings; in NCURSES_EXPORT() 51 int begin_str = tp->ext_Booleans + tp->ext_Numbers; in NCURSES_EXPORT() 54 tp->term_names, in NCURSES_EXPORT() 56 tp->ext_Booleans, tp->ext_Numbers, tp->ext_Strings, in NCURSES_EXPORT() 57 tp->num_Booleans, tp->num_Numbers, tp->num_Strings); in NCURSES_EXPORT() 64 tp->ext_Names[n], in NCURSES_EXPORT() 65 _nc_visbuf(tp->Strings[tp->num_Strings + m - tp->ext_Strings])); in NCURSES_EXPORT() 68 tp->ext_Names[n], in NCURSES_EXPORT() 69 tp->Numbers[tp->num_Numbers + m - tp->ext_Numbers]); in NCURSES_EXPORT() 72 tp->ext_Names[n], in NCURSES_EXPORT() [all …]
|
/freebsd/contrib/ncurses/include/ |
H A D | term_entry.h | 57 #define NUM_BOOLEANS(tp) (tp)->num_Booleans argument 58 #define NUM_NUMBERS(tp) (tp)->num_Numbers argument 59 #define NUM_STRINGS(tp) (tp)->num_Strings argument 60 #define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i] argument 68 #define NUM_EXT_NAMES(tp) (unsigned) ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings) argument 70 #define for_each_boolean(n,tp) for(n = 0; n < NUM_BOOLEANS(tp); n++) argument 71 #define for_each_number(n,tp) for(n = 0; n < NUM_NUMBERS(tp); n++) argument 72 #define for_each_string(n,tp) for(n = 0; n < NUM_STRINGS(tp); n++) argument 80 #define ExtBoolname(tp,i,names) EXT_NAMES(tp, i, BOOLCOUNT, (i - (tp->num_Booleans - tp->ext_Boolea… argument 81 #define ExtNumname(tp,i,names) EXT_NAMES(tp, i, NUMCOUNT, (i - (tp->num_Numbers - tp->ext_Numbers)… argument [all …]
|
/freebsd/contrib/unbound/validator/ |
H A D | autotrust.c | 344 tp->node.key = tp; in autr_tp_create() 352 tp->autr->pnode.key = tp; in autr_tp_create() 377 lock_protect(&tp->lock, tp, sizeof(*tp)); in autr_tp_create() 378 lock_protect(&tp->lock, tp->autr, sizeof(*tp->autr)); in autr_tp_create() 398 lock_unprotect(&tp->lock, tp); in autr_point_delete() 399 lock_unprotect(&tp->lock, tp->autr); in autr_point_delete() 1039 if(tp && tp != tp2) { in autr_read_file() 1136 if(!print_id(out, fn, tp->name, tp->namelen, tp->dclass)) { in autr_write_contents() 1452 memmove(rr, tp->name, tp->namelen); in add_key() 2158 log_assert(tp && tp->autr); in autr_process_prime() [all …]
|