| /freebsd-13.1/sys/netinet/ |
| H A D | tcp_timer.c | 289 (void) tp->t_fb->tfb_tcp_output(tp); in tcp_timer_delack() 359 tp = tcp_close(tp); in tcp_timer_2msl() 373 tp = tcp_close(tp); in tcp_timer_2msl() 453 if (ticks - tp->t_rcvtime >= TP_KEEPIDLE(tp) + TP_MAXIDLE(tp)) in tcp_timer_keep() 500 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_keep() 564 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_persist() 581 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_persist() 653 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_rexmt() 674 tp->snd_cwnd_prev = tp->snd_cwnd; in tcp_timer_rexmt() 860 tp->snd_nxt = tp->snd_una; in tcp_timer_rexmt() [all …]
|
| H A D | tcp_input.c | 314 hhook_data.tp = tp; in hhook_run_tcp_est_in() 502 tp->snd_nxt = tp->snd_max; in cc_cong_signal() 1949 tp->rcv_up = tp->rcv_nxt; in tcp_do_segment() 2229 tp = tcp_close(tp); in tcp_do_segment() 2378 tp = tcp_close(tp); in tcp_do_segment() 3047 tp = tcp_close(tp); in tcp_do_segment() 3645 if (tp->t_rttbest > tp->t_srtt + tp->t_rttvar) in tcp_xmit_timer() 3646 tp->t_rttbest = tp->t_srtt + tp->t_rttvar; in tcp_xmit_timer() 3655 tp->t_rttbest = tp->t_srtt + tp->t_rttvar; in tcp_xmit_timer() 4028 tp->snd_cwnd = tp->snd_nxt - tp->snd_recover + in tcp_do_prr_ack() [all …]
|
| H A D | tcp_output.c | 169 hhook_data.tp = tp; in hhook_run_tcp_est_out() 190 CC_ALGO(tp)->after_idle(tp->ccv); in cc_after_idle() 265 idle = (tp->t_flags & TF_LASTIDLE) || (tp->snd_max == tp->snd_una); in tcp_output() 267 (tp->t_sndtime && ((ticks - tp->t_sndtime) >= tp->t_rxtcur)))) in tcp_output() 288 off = tp->snd_nxt - tp->snd_una; in tcp_output() 505 tp->snd_nxt = tp->snd_una; in tcp_output() 793 tp->snd_nxt = tp->iss; in tcp_output() 1192 tp->snd_nxt == tp->snd_max) in tcp_output() 1579 tp->snd_max = tp->snd_nxt; in tcp_output() 1703 tp->snd_cwnd = tp->t_maxseg; in tcp_output() [all …]
|
| H A D | tcp_sack.c | 159 if (SEQ_LEQ(tp->sackblks[0].end, tp->rcv_nxt)) in tcp_dsack_block_exists() 182 (tp->sackblks[0].end == tp->rcv_nxt))) { in tcp_update_dsack_list() 451 tp->sackblks[i].start = tp->sackblks[i].end=0; in tcp_clean_sackreport() 632 tp->snd_fack = SEQ_MAX(tp->snd_una, th_ack); in tcp_sack_doack() 845 tp->snd_cwnd = (tp->sackhint.sack_bytes_rexmit + in tcp_sack_partialack() 847 if (tp->snd_cwnd > tp->snd_ssthresh) in tcp_sack_partialack() 848 tp->snd_cwnd = tp->snd_ssthresh; in tcp_sack_partialack() 868 (tp->snd_recover == tp->snd_max) && in tcp_sack_partialack() 886 (void) tp->t_fb->tfb_tcp_output(tp); in tcp_sack_partialack() 965 if (SEQ_GEQ(tp->snd_nxt, tp->snd_fack)) in tcp_sack_adjust() [all …]
|
| H A D | tcp_usrreq.c | 2579 tp = tcp_close(tp); in tcp_disconnect() 2583 tp = tcp_drop(tp, 0); in tcp_disconnect() 2620 tp = tcp_close(tp); in tcp_usrclosed() 2890 tp->snd_una, tp->snd_max, tp->snd_nxt); in db_print_tcpcb() 2894 tp->snd_up, tp->snd_wl1, tp->snd_wl2); in db_print_tcpcb() 2898 tp->iss, tp->irs, tp->rcv_nxt); in db_print_tcpcb() 2902 tp->rcv_adv, tp->rcv_wnd, tp->rcv_up); in db_print_tcpcb() 2922 tp->t_rxtcur, tp->t_maxseg, tp->t_srtt); in db_print_tcpcb() 2931 tp->t_rttupdated, tp->max_sndwnd, tp->t_softerror); in db_print_tcpcb() 2940 tp->snd_scale, tp->rcv_scale, tp->request_r_scale); in db_print_tcpcb() [all …]
|
| H A D | tcp_offload.c | 134 struct toedev *tod = tp->tod; in tcp_offload_input() 139 tod->tod_input(tod, tp, m); in tcp_offload_input() 145 struct toedev *tod = tp->tod; in tcp_offload_output() 160 tp->t_flags |= TF_SENTFIN; in tcp_offload_output() 170 struct toedev *tod = tp->tod; in tcp_offload_rcvd() 175 tod->tod_rcvd(tod, tp); in tcp_offload_rcvd() 181 struct toedev *tod = tp->tod; in tcp_offload_ctloutput() 192 struct toedev *tod = tp->tod; in tcp_offload_tcp_info() 204 struct toedev *tod = tp->tod; in tcp_offload_alloc_tls_session() 215 struct toedev *tod = tp->tod; in tcp_offload_detach() [all …]
|
| /freebsd-13.1/sys/kern/ |
| H A D | tty.c | 220 if (tty_gone(tp) || !tty_opened(tp)) { in ttydev_enter() 293 error = tty_wait(tp, &tp->t_dcdwait); in ttydev_open() 327 tp->t_termios = tp->t_termios_init_in; in ttydev_open() 328 ttydevsw_param(tp, &tp->t_termios); in ttydev_open() 350 error = tty_wait(tp, &tp->t_dcdwait); in ttydev_open() 496 error = tty_wait(tp, &tp->t_bgwait); in tty_wait_background() 1099 tp->t_mtx = &tp->t_mtxobj; in tty_alloc_mutex() 1134 if (tp->t_mtx == &tp->t_mtxobj) in tty_dealloc() 1848 tp->t_session->s_ttyp = tp; in tty_generic_ioctl() 2361 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 | 161 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_canonical() 216 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_raw_no_timer() 317 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_raw_interbyte_timer() 420 tp->t_column = tp->t_writepos = 0; in ttydisc_write_oproc() 435 tp->t_column = tp->t_writepos = 0; in ttydisc_write_oproc() 527 tp->t_writepos = tp->t_column; in ttydisc_write() 538 tp->t_writepos = tp->t_column; in ttydisc_write() 562 error = tty_wait(tp, &tp->t_outwait); in ttydisc_write() 727 struct tty *tp = data->tp; in ttydisc_recalc_charlength() local 766 if (tp->t_writepos >= tp->t_column) { in ttydisc_rubchar() [all …]
|
| H A D | tty_pts.c | 125 tty_lock(tp); in ptsdev_read() 205 tty_lock(tp); in ptsdev_write() 276 tty_lock(tp); in ptsdev_ioctl() 315 tty_lock(tp); in ptsdev_ioctl() 342 tty_lock(tp); in ptsdev_ioctl() 351 tty_lock(tp); in ptsdev_ioctl() 367 tty_lock(tp); in ptsdev_ioctl() 383 tty_lock(tp); in ptsdev_ioctl() 400 tty_lock(tp); in ptsdev_poll() 517 tty_lock(tp); in ptsdev_kqfilter() [all …]
|
| /freebsd-13.1/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-13.1/sys/sys/ |
| H A D | ttydevsw.h | 92 return (tp->t_devsw->tsw_open(tp)); in ttydevsw_open() 102 tp->t_devsw->tsw_close(tp); in ttydevsw_close() 116 tp->t_devsw->tsw_outwakeup(tp); in ttydevsw_outwakeup() 130 tp->t_devsw->tsw_inwakeup(tp); in ttydevsw_inwakeup() 140 return (tp->t_devsw->tsw_ioctl(tp, cmd, data, td)); in ttydevsw_ioctl() 151 return (tp->t_devsw->tsw_cioctl(tp, unit, cmd, data, td)); in ttydevsw_cioctl() 160 return (tp->t_devsw->tsw_param(tp, t)); in ttydevsw_param() 169 return (tp->t_devsw->tsw_modem(tp, sigon, sigoff)); in ttydevsw_modem() 189 tp->t_devsw->tsw_pktnotify(tp, event); in ttydevsw_pktnotify() 198 tp->t_devsw->tsw_free(tty_softc(tp)); in ttydevsw_free() [all …]
|
| H A D | ttyhook.h | 74 #define ttyhook_softc(tp) ((tp)->t_hooksoftc) argument 75 #define ttyhook_hashook(tp,hook) ((tp)->t_hook != NULL && \ argument 82 MPASS(!tty_gone(tp)); in ttyhook_rint() 84 return tp->t_hook->th_rint(tp, c, flags); in ttyhook_rint() 93 return tp->t_hook->th_rint_bypass(tp, buf, len); in ttyhook_rint_bypass() 102 tp->t_hook->th_rint_done(tp); in ttyhook_rint_done() 111 return tp->t_hook->th_rint_poll(tp); in ttyhook_rint_poll() 120 return tp->t_hook->th_getc_inject(tp, buf, len); in ttyhook_getc_inject() 129 tp->t_hook->th_getc_capture(tp, buf, len); in ttyhook_getc_capture() 138 return tp->t_hook->th_getc_poll(tp); in ttyhook_getc_poll() [all …]
|
| H A D | tty.h | 173 #define tty_lock(tp) mtx_lock((tp)->t_mtx) argument 174 #define tty_unlock(tp) mtx_unlock((tp)->t_mtx) argument 175 #define tty_lock_owned(tp) mtx_owned((tp)->t_mtx) argument 176 #define tty_assert_locked(tp) mtx_assert((tp)->t_mtx, MA_OWNED) argument 177 #define tty_getlock(tp) ((tp)->t_mtx) argument 180 #define tty_lock_assert(tp, ma) mtx_assert((tp)->t_mtx, (ma)) argument 215 #define tty_opened(tp) ((tp)->t_flags & TF_OPENED) argument 216 #define tty_gone(tp) ((tp)->t_flags & TF_GONE) argument 217 #define tty_softc(tp) ((tp)->t_devswsoftc) argument 218 #define tty_devname(tp) devtoname((tp)->t_dev) argument [all …]
|
| /freebsd-13.1/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-13.1/contrib/tcpdump/ |
| H A D | addrtoname.c | 377 tp = tp->e_nxt; in lookup_emem() 385 return tp; in lookup_emem() 420 tp = tp->bs_nxt; in lookup_bytestring() 468 tp = tp->e_nxt; in lookup_nsap() 499 if (tp->p_oui == i && tp->p_proto == j) in lookup_protoid() 502 tp = tp->p_nxt; in lookup_protoid() 631 for (tp = &eprototable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in etherproto_string() 719 for (tp = &tporttable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in tcpport_string() 740 for (tp = &uporttable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in udpport_string() 762 for (tp = &ipxsaptable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in ipxsap_string() [all …]
|
| H A D | print-dhcp6.c | 375 dhcp6opt_print(ndo, tp + 24, tp + optlen); in dhcp6opt_print() 432 tp++; in dhcp6opt_print() 442 tp++; in dhcp6opt_print() 451 tp++; in dhcp6opt_print() 473 tp += 4; in dhcp6opt_print() 589 dhcp6opt_print(ndo, tp + 12, tp + optlen); in dhcp6opt_print() 602 dhcp6opt_print(ndo, tp + 4, tp + optlen); in dhcp6opt_print() 618 dhcp6opt_print(ndo, tp + 25, tp + optlen); in dhcp6opt_print() 665 dhcp6opt_print(ndo, tp + 17, tp + optlen); in dhcp6opt_print() 673 dhcp6opt_print(ndo, tp, tp + optlen); in dhcp6opt_print() [all …]
|
| /freebsd-13.1/sys/net/ |
| H A D | if_tuntap.c | 153 #define TUN_LOCK(tp) mtx_lock(&(tp)->tun_mtx) argument 154 #define TUN_UNLOCK(tp) mtx_unlock(&(tp)->tun_mtx) argument 383 TUN_LOCK(tp); in tun_busy() 393 TUN_LOCK(tp); in tun_unbusy() 623 cv_wait_unlock(&tp->tun_cv, &tp->tun_mtx); in tun_destroy() 643 free_unr(tp->tun_drv->unrhdr, TUN2IFP(tp)->if_dunit); in tun_destroy() 803 tp = malloc(sizeof(*tp), M_TUN, M_WAITOK | M_ZERO); in tun_create_device() 828 knlist_init_mtx(&tp->tun_rsel.si_note, &tp->tun_mtx); in tun_create_device() 855 wakeup(tp); in tunstart() 859 if (tp->tun_flags & TUN_ASYNC && tp->tun_sigio) { in tunstart() [all …]
|
| /freebsd-13.1/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-13.1/contrib/mandoc/ |
| H A D | tbl_term.c | 189 tp->tbl.arg = tp; in term_tbl() 285 tp->lasttcol = tp->tcol - tp->tcols; in term_tbl() 289 tp->tcol = tp->tcols; in term_tbl() 317 tp->tcol = tp->tcols; in term_tbl() 337 (*tp->advance)(tp, tp->tcols->offset); in term_tbl() 463 (*tp->advance)(tp, tp->tcol->rmargin in term_tbl() 472 if (tp->tcol + 1 == tp->tcols + tp->lasttcol) in term_tbl() 546 (*tp->endline)(tp); in term_tbl() 615 (*tp->advance)(tp, tp->tcols->offset); in tbl_hrule() 721 (*tp->endline)(tp); in tbl_hrule() [all …]
|
| /freebsd-13.1/sys/netinet/tcp_stacks/ |
| H A D | rack_bbr_common.c | 551 bytes_out = tp->snd_max - tp->snd_una; in ctf_outstanding() 701 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) { in _ctf_drop_checks() 811 tp = tcp_close(tp); in ctf_process_rst() 819 tp->rcv_nxt, tp->snd_nxt, TH_ACK); in ctf_process_rst() 820 tp->last_ack_sent = tp->rcv_nxt; in ctf_process_rst() 844 tp = tcp_drop(tp, ECONNRESET); in ctf_challenge_ack() 849 tcp_respond(tp, mtod(m, void *), th, m, tp->rcv_nxt, in ctf_challenge_ack() 851 tp->last_ack_sent = tp->rcv_nxt; in ctf_challenge_ack() 936 tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt)); in ctf_calc_rwin() 1020 if (tp->t_maxunacktime && tp->t_acktime && TSTMP_GT(ticks, tp->t_acktime)) { in ctf_progress_timeout_check() [all …]
|
| H A D | rack.c | 7740 if (tp->t_rttbest > tp->t_srtt + tp->t_rttvar) in tcp_rack_xmit_timer_commit() 7741 tp->t_rttbest = tp->t_srtt + tp->t_rttvar; in tcp_rack_xmit_timer_commit() 7750 tp->t_rttbest = tp->t_srtt + tp->t_rttvar; in tcp_rack_xmit_timer_commit() 8767 tp->snd_una, tp->snd_max, tp->snd_nxt); in rack_process_to_cumack() 9699 (tp->snd_wnd - (tp->snd_max - tp->snd_una))); in rack_gain_for_fastoutput() 10001 tp = tcp_close(tp); in rack_process_ack() 11473 tp = tcp_close(tp); in rack_check_data_after_close() 11825 tp = tcp_close(tp); in rack_do_lastack() 13370 tp = tcp_close(tp); in rack_do_compressed_ack_processing() 13474 tp = tcp_close(tp); in rack_do_compressed_ack_processing() [all …]
|
| /freebsd-13.1/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-13.1/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-13.1/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() 373 lock_protect(&tp->lock, tp, sizeof(*tp)); in autr_tp_create() 374 lock_protect(&tp->lock, tp->autr, sizeof(*tp->autr)); in autr_tp_create() 394 lock_unprotect(&tp->lock, tp); in autr_point_delete() 395 lock_unprotect(&tp->lock, tp->autr); in autr_point_delete() 1035 if(tp && tp != tp2) { in autr_read_file() 1132 if(!print_id(out, fn, tp->name, tp->namelen, tp->dclass)) { in autr_write_contents() 1453 memmove(rr, tp->name, tp->namelen); in add_key() 2159 log_assert(tp && tp->autr); in autr_process_prime() [all …]
|
| /freebsd-13.1/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/ |
| H A D | fasttrap_isa.c | 71 if (uwrite(p, &tp->ftt_instr, 4, tp->ftt_pc) != 0) in fasttrap_tracepoint_remove() 274 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_return_common() 275 if (pid == tp->ftt_pid && pc == tp->ftt_pc && in fasttrap_return_common() 285 if (tp == NULL) { in fasttrap_return_common() 376 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_pid_probe() 377 if (pid == tp->ftt_pid && pc == tp->ftt_pc && in fasttrap_pid_probe() 387 if (tp == NULL) { in fasttrap_pid_probe() 441 tp_local = *tp; in fasttrap_pid_probe() 443 tp = &tp_local; in fasttrap_pid_probe() 468 if (!fasttrap_branch_taken(tp->ftt_bo, tp->ftt_bi, rp)) in fasttrap_pid_probe() [all …]
|