Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 1338) sorted by relevance

12345678910>>...54

/freebsd-14.2/sys/kern/
H A Dtty.c219 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 Dtty_ttydisc.c235 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_canonical()
300 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_raw_no_timer()
401 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_raw_interbyte_timer()
504 tp->t_column = tp->t_writepos = 0; in ttydisc_write_oproc()
519 tp->t_column = tp->t_writepos = 0; in ttydisc_write_oproc()
611 tp->t_writepos = tp->t_column; in ttydisc_write()
622 tp->t_writepos = tp->t_column; in ttydisc_write()
646 error = tty_wait(tp, &tp->t_outwait); in ttydisc_write()
811 struct tty *tp = data->tp; in ttydisc_recalc_charlength() local
850 if (tp->t_writepos >= tp->t_column) { in ttydisc_rubchar()
[all …]
H A Dtty_pts.c122 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-14.2/sys/netinet/
H A Dtcp_timer.c303 tp->t_fb->tfb_tcp_block_name, tp)); in tcp_output_locked()
304 tp = tcp_drop(tp, rv); in tcp_output_locked()
373 tp = tcp_close(tp); in tcp_timer_2msl()
420 if (ticks - tp->t_rcvtime >= TP_KEEPIDLE(tp) + TP_MAXIDLE(tp)) in tcp_timer_keep()
455 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_keep()
545 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_persist()
567 (*tp->t_fb->tfb_tcp_rexmit_tmr)(tp); in tcp_timer_rexmt()
584 tp = tcp_drop(tp, ETIMEDOUT); in tcp_timer_rexmt()
606 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 Dtcp_input.c281 hhook_data.tp = tp; in hhook_run_tcp_est_in()
468 tp->snd_nxt = tp->snd_max; in cc_cong_signal()
1916 tp->rcv_up = tp->rcv_nxt; in tcp_do_segment()
1960 tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt)); in tcp_do_segment()
2186 tp = tcp_close(tp); in tcp_do_segment()
2336 tp = tcp_close(tp); in tcp_do_segment()
2432 if (SEQ_GT(tp->iss + 1, tp->snd_una - tp->max_sndwnd)) { in tcp_do_segment()
3082 tp = tcp_close(tp); in tcp_do_segment()
3172 tp->rcv_up = tp->rcv_nxt; in tcp_do_segment()
4085 tp->snd_cwnd = tp->snd_nxt - tp->snd_recover + in tcp_do_prr_ack()
[all …]
H A Dtcp_output.c163 hhook_data.tp = tp; in hhook_run_tcp_est_out()
184 CC_ALGO(tp)->after_idle(&tp->t_ccv); in cc_after_idle()
257 idle = (tp->t_flags & TF_LASTIDLE) || (tp->snd_max == tp->snd_una); in tcp_default_output()
259 (tp->t_sndtime && ((ticks - tp->t_sndtime) >= tp->t_rxtcur)))) in tcp_default_output()
281 off = tp->snd_nxt - tp->snd_una; in tcp_default_output()
509 tp->snd_nxt = tp->snd_una; in tcp_default_output()
797 tp->snd_nxt = tp->iss; in tcp_default_output()
1193 tp->snd_nxt == tp->snd_max) in tcp_default_output()
1560 tp->snd_max = tp->snd_nxt; in tcp_default_output()
1692 tp->snd_cwnd = tp->t_maxseg; in tcp_default_output()
[all …]
H A Dtcp_ecn.c154 tp->t_scep = 5; in tcp_ecn_input_syn_sent()
162 tp->t_scep = 5; in tcp_ecn_input_syn_sent()
170 tp->t_scep = 5; in tcp_ecn_input_syn_sent()
178 tp->t_scep = 6; in tcp_ecn_input_syn_sent()
184 tp->snd_cwnd = 2 * tcp_maxseg(tp); in tcp_ecn_input_syn_sent()
330 tp->snd_cwnd = 2 * tcp_maxseg(tp); in tcp_ecn_input_segment()
343 tp->t_scep++; in tcp_ecn_input_segment()
406 newdata = (len > 0 && SEQ_GEQ(tp->snd_nxt, tp->snd_max) && in tcp_ecn_output_established()
473 tp->t_scep = 5; in tcp_ecn_syncache_socket()
474 tp->t_rcep = 5; in tcp_ecn_syncache_socket()
[all …]
H A Dtcp_sack.c159 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()
640 tp->snd_fack = SEQ_MAX(tp->snd_una, th_ack); in tcp_sack_doack()
867 if (tp->snd_cwnd > tp->snd_ssthresh) in tcp_sack_partialack()
868 tp->snd_cwnd = tp->snd_ssthresh; in tcp_sack_partialack()
1009 if (SEQ_GEQ(tp->snd_nxt, tp->snd_fack)) { in tcp_sack_adjust()
1033 tp->snd_nxt = tp->snd_fack; in tcp_sack_adjust()
1049 SEQ_GT(tp->snd_fack, tp->snd_recover) && in tcp_sack_lost_retransmission()
1071 tp->snd_cwnd = tp->snd_ssthresh; in tcp_sack_lost_retransmission()
1084 tp->snd_cwnd = tcp_maxseg(tp); in tcp_sack_lost_retransmission()
[all …]
H A Dtcp_offload.c133 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 Dtcp_usrreq.c2694 tp = tcp_close(tp); in tcp_disconnect()
2698 tp = tcp_drop(tp, 0); in tcp_disconnect()
2736 tp = tcp_close(tp); in tcp_usrclosed()
3116 tp->snd_una, tp->snd_max, tp->snd_nxt); in db_print_tcpcb()
3120 tp->snd_up, tp->snd_wl1, tp->snd_wl2); in db_print_tcpcb()
3124 tp->iss, tp->irs, tp->rcv_nxt); in db_print_tcpcb()
3128 tp->rcv_adv, tp->rcv_wnd, tp->rcv_up); in db_print_tcpcb()
3148 tp->t_rxtcur, tp->t_maxseg, tp->t_srtt); in db_print_tcpcb()
3152 tp->t_rttvar, tp->t_rxtshift, tp->t_rttmin); in db_print_tcpcb()
3156 tp->t_rttupdated, tp->max_sndwnd, tp->t_softerror); in db_print_tcpcb()
[all …]
H A Dtcp_subr.c1144 tp->snd_nxt - tp->snd_una); in tcp_default_fb_init()
2258 tp->last_ack_sent = tp->rcv_nxt; in tcp_send_challenge_ack()
2286 tp->t_ccv.ccvc.tcp = tp; in tcp_newtcpcb()
2399 if ((*tp->t_fb->tfb_tcp_fb_init)(tp, &tp->t_fb_ptr)) { in tcp_newtcpcb()
2651 tp = tcp_drop(tp, error); in tcp_notify()
3348 tp = tcp_drop(tp, errno); in tcp_drop_syn_sent()
3390 tp->snd_nxt = tp->snd_una; in tcp_mtudisc()
3392 tp->snd_recover = tp->snd_max; in tcp_mtudisc()
3402 tp->t_fb->tfb_tcp_mtu_chg(tp); in tcp_mtudisc()
4201 tp->t_tmr_granularity, tp)); in tcp_change_time_units()
[all …]
/freebsd-14.2/contrib/nvi/vi/
H A Dv_txt.c299 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-14.2/sys/sys/
H A Dttydevsw.h90 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 Dttyhook.h72 #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 Dtty.h171 #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-14.2/contrib/nvi/ex/
H A Dex_txt.c144 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-14.2/sys/net/
H A Dif_tuntap.c155 #define TUN_LOCK(tp) mtx_lock(&(tp)->tun_mtx) argument
156 #define TUN_UNLOCK(tp) mtx_unlock(&(tp)->tun_mtx) argument
386 TUN_LOCK(tp); in tun_busy()
396 TUN_LOCK(tp); in tun_unbusy()
633 cv_wait_unlock(&tp->tun_cv, &tp->tun_mtx); in tun_destroy()
653 free_unr(tp->tun_drv->unrhdr, TUN2IFP(tp)->if_dunit); in tun_destroy()
815 tp = malloc(sizeof(*tp), M_TUN, M_WAITOK | M_ZERO); in tun_create_device()
840 knlist_init_mtx(&tp->tun_rsel.si_note, &tp->tun_mtx); in tun_create_device()
867 wakeup(tp); in tunstart()
871 if (tp->tun_flags & TUN_ASYNC && tp->tun_sigio) { in tunstart()
[all …]
/freebsd-14.2/contrib/tcpdump/
H A Dprint-dhcp6.c398 dhcp6opt_print(ndo, tp + 24, tp + optlen); in dhcp6opt_print()
470 tp++; in dhcp6opt_print()
481 tp++; in dhcp6opt_print()
491 tp++; in dhcp6opt_print()
534 tp++; in dhcp6opt_print()
631 dhcp6opt_print(ndo, tp + 12, tp + optlen); in dhcp6opt_print()
644 dhcp6opt_print(ndo, tp + 4, tp + optlen); in dhcp6opt_print()
661 dhcp6opt_print(ndo, tp + 25, tp + optlen); in dhcp6opt_print()
709 dhcp6opt_print(ndo, tp + 17, tp + optlen); in dhcp6opt_print()
717 dhcp6opt_print(ndo, tp, tp + optlen); in dhcp6opt_print()
[all …]
H A Daddrtoname.c448 tp = tp->e_nxt; in lookup_emem()
456 return tp; in lookup_emem()
491 tp = tp->bs_nxt; in lookup_bytestring()
509 return tp; in lookup_bytestring()
540 tp = tp->e_nxt; in lookup_nsap()
571 if (tp->p_oui == i && tp->p_proto == j) in lookup_protoid()
574 tp = tp->p_nxt; in lookup_protoid()
739 for (tp = &tporttable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in tcpport_string()
761 for (tp = &uporttable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in udpport_string()
784 for (tp = &ipxsaptable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in ipxsap_string()
[all …]
/freebsd-14.2/contrib/lib9p/
H A Dthreadpool.c44 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-14.2/contrib/mandoc/
H A Dtbl_term.c189 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-14.2/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c505 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-14.2/contrib/ncurses/ncurses/trace/
H A Dtrace_xnames.c46 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-14.2/contrib/ncurses/include/
H A Dterm_entry.h57 #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-14.2/contrib/unbound/validator/
H A Dautotrust.c344 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()
1453 memmove(rr, tp->name, tp->namelen); in add_key()
2159 log_assert(tp && tp->autr); in autr_process_prime()
[all …]

12345678910>>...54