/original-bsd/sys/netinet/ |
H A D | tcp_timer.c | 95 if (tp == 0 || tp->t_state == TCPS_LISTEN) in tcp_slowtimo() 163 tp = tcp_close(tp); 175 tp = tcp_drop(tp, tp->t_softerror ? 183 tp->t_timer[TCPT_REXMT] = tp->t_rxtcur; 197 tp->snd_nxt = tp->snd_una; 227 u_int win = min(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_maxseg; 230 tp->snd_cwnd = tp->t_maxseg; 231 tp->snd_ssthresh = win * tp->t_maxseg; 254 tp = tcp_drop(tp, ETIMEDOUT); 297 tp->rcv_nxt, tp->snd_una - 1, 0); [all …]
|
H A D | tcp_output.c | 64 idle = (tp->snd_max == tp->snd_una); 65 if (idle && tp->t_idle >= tp->t_rxtcur) 71 tp->snd_cwnd = tp->t_maxseg; 74 off = tp->snd_nxt - tp->snd_una; 75 win = min(tp->snd_wnd, tp->snd_cwnd); 127 tp->snd_nxt = tp->snd_una; 177 (tp->rcv_adv - tp->rcv_nxt); 248 tp->snd_nxt = tp->iss; 392 tp->snd_nxt == tp->snd_max) 469 tp->snd_max = tp->snd_nxt; [all …]
|
H A D | tcp_input.c | 503 tp->rcv_wnd = max(win, (int)(tp->rcv_adv - tp->rcv_nxt)); 562 tp = tcp_drop(tp, ENOBUFS); 612 tp->snd_nxt = tp->snd_una; 756 tp = tcp_close(tp); 780 tp = tcp_close(tp); 837 tp = tcp_close(tp); 843 tp = tcp_close(tp); 852 tp = tcp_drop(tp, ECONNRESET); 1032 tp->snd_nxt = tp->snd_una; 1081 tp = tcp_close(tp); [all …]
|
H A D | tcp_usrreq.c | 129 tp = tcp_disconnect(tp); 131 tp = tcp_close(tp); 169 tp->t_template = tcp_template(tp); 207 tp = tcp_disconnect(tp); 224 tp = tcp_usrclosed(tp); 249 tp = tcp_drop(tp, ECONNABORTED); 309 tp = tcp_timers(tp, (int)nam); 454 tp = tcp_close(tp); 456 tp = tcp_drop(tp, 0); 460 tp = tcp_usrclosed(tp); [all …]
|
/original-bsd/sys/deprecated/bbnnet/ |
H A D | tcp_procs.c | 147 tp->snd_lst = tp->snd_nxt; 207 if ((len = tp->snd_lst - tp->snd_nxt) >= tp->t_maxseg) 266 if (!tp->rexmt && !tp->ack_due && !tp->snd_fin && 269 ((100*(tp->snd_nxt-tp->snd_una))/tp->snd_wnd) 271 tp->snd_lst = tp->snd_nxt; 370 tp->snd_nxt = tp->snd_lst; 379 tp->snd_hi = SEQ_MAX(tp->snd_lst, tp->snd_hi); 532 if (SEQ_NEQ(tp->seq_fin, tp->iss) && SEQ_GT(tp->snd_una, tp->seq_fin)) \ 558 tp->snd_wl = tp->rcv_urp = tp->irs = n->t_seq; 1025 tp->snd_nxt = tp->iss; [all …]
|
H A D | tcp_states.c | 53 tp->t_timers[TINIT] = tp->t_itimeo; 80 tp->t_maxseg = 85 tp->t_timers[TINIT] = (tp->t_itimeo ? tp->t_itimeo : TCP_tvINIT); 371 tp->t_timers[TNOACT] = tp->t_noact; 379 tp->t_timers[TNOACT] = tp->t_noact; 404 tp->t_timers[TNOACT] = tp->t_noact; 790 tp->t_timers[TINIT] = tp->t_itimeo; 833 tp->t_rxmitime = tp->t_rxmitime << 1; 837 tp->snd_nxt = tp->snd_una; 858 tp->t_timers[TREXMTTL] = tp->t_rttltimeo; [all …]
|
H A D | tcp_usrreq.c | 97 tp->t_rcv_next = (struct th *)tp; 123 tp->t_xmt_val = tp->snd_end = tp->seq_fin = tp->snd_nxt = 124 tp->snd_hi = tp->snd_una = tp->iss = tcp_iss; 845 tp->t_src, tp->t_s.s_addr, 846 tp->t_dst, tp->t_d.s_addr); 860 tp->t_src, tp->t_s.s_addr, 861 tp->t_dst, tp->t_d.s_addr); 887 tp->t_src, tp->t_s.s_addr, 888 tp->t_dst, tp->t_d.s_addr); 916 tp->t_src, tp->t_s.s_addr, [all …]
|
H A D | tcp_prim.c | 41 struct tcpcb *tp; in tcp_template() 103 off = tp->snd_nxt - tp->snd_una; 176 if (SEQ_GT(tp->snd_urp, tp->snd_nxt)) 188 up = MIN(len -1, tp->snd_urp - tp->snd_nxt -1); 196 tp->lastack = tp->rcv_nxt; 261 w.w_tcb = tp; 325 tp->sws_qff ++; in tcp_timeo() 328 if (tp->t_timers[i] != 0 && --tp->t_timers[i] == 0) in tcp_timeo() 345 if (tp->t_timers[TNOACT] != 0 && --tp->t_timers[TNOACT] == 0) in tcp_timeo() 403 tp->t_maxseg -= tp->t_in_pcb->inp_optlen; [all …]
|
/original-bsd/sys/kern/ |
H A D | tty.c | 316 (*tp->t_stop)(tp, 0); 458 catq(&tp->t_rawq, &tp->t_canq); 461 tp->t_rocol = tp->t_column; 735 if (tp->t_param && (error = (*tp->t_param)(tp, t))) { 763 tp->t_rawq = tp->t_canq; 824 (*tp->t_stop)(tp, 0); 929 (*tp->t_oproc)(tp); 975 (*tp->t_stop)(tp, rw); 1052 (*tp->t_oproc)(tp); 1093 (*tp->t_stop)(tp, 0); [all …]
|
H A D | tty_bk.c | 38 bkopen(dev, tp) in bkopen() argument 51 tp->t_rec = 0; 59 bkclose(tp) in bkclose() argument 71 tp->t_cp = 0; 73 tp->t_rec = 0; 86 bkread(tp, uio) in bkread() argument 96 while (tp->t_rec == 0 && tp->t_line == NETLDISC) 101 error = uiomove(tp->t_bufp->b_un.b_addr, tp->t_inbuf, uio); 102 tp->t_cp = (char *)tp->t_bufp->b_un.b_addr; 104 tp->t_rec = 0; [all …]
|
H A D | tty_pty.c | 101 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 115 error = (*linesw[tp->t_line].l_open)(dev, tp); 129 err = (*linesw[tp->t_line].l_close)(tp, flag); 161 if (error = ttysleep(tp, (caddr_t)&tp->t_canq, 177 error = (*linesw[tp->t_line].l_read)(tp, uio, flag); 205 ptsstart(tp) in ptsstart() argument 257 (void)(*linesw[tp->t_line].l_modem)(tp, 1); 272 (void)(*linesw[tp->t_line].l_modem)(tp, 0); 335 if (tp->t_outq.c_cc <= tp->t_lowat) { 480 (*linesw[tp->t_line].l_rint)(*cp++, tp); [all …]
|
/original-bsd/sys/vax/datakit/ |
H A D | dktty.c | 102 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; in dktopen() 110 return (*linesw[tp->t_line].l_open)(dev, tp); in dktopen() 144 (*linesw[tp->t_line].l_close)(tp, flag); 190 err = (*linesw[tp->t_line].l_read)(tp, uio, flag); 233 (*linesw[tp->t_line].l_rint)((*cp++)&0377, tp) ; 239 (*linesw[tp->t_line].l_rint)(TTY_FE, tp) ; 258 x = tp->t_rawq.c_cc + tp->t_canq.c_cc; 325 if (tp->t_outq.c_cc<=tp->t_lowat) { 331 selwakeup(tp->t_wsel, tp->t_state & TS_WCOLL); 420 (void)(*linesw[tp->t_line].l_modem)(tp, 0); [all …]
|
H A D | dk.c | 77 tp = &dkdev[chan]; 91 pp[1] = tp->d_rdone; 92 pp[2] = tp->d_rctl; 234 if (tp->d_error) 325 tp = &dkdev[chan]; in dkopen() 376 tp->d_xctl = 0 ; in dkopen() 377 tp->d_pgrp = 0; in dkopen() 433 tp->dc_state = 0; 434 tp->d_rmode = 0; 436 if(!tp->d_prot){ [all …]
|
/original-bsd/sys/sparc/dev/ |
H A D | cons.c | 64 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; in consinit() 136 (void)(*tp->t_param)(tp, &tp->t_termios); 140 return ((*linesw[tp->t_line].l_open)(dev, tp)); 151 (*linesw[tp->t_line].l_close)(tp, flag); 164 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 178 return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); 202 tp = &cons; 227 cnstart(tp) in cnstart() argument 278 if (tp->t_outq.c_cc <= tp->t_lowat) { 338 (*linesw[tp->t_line].l_start)(tp); [all …]
|
/original-bsd/usr.bin/pascal/pdx/breakpoint/ |
H A D | trinfo.c | 71 tp->trvar = node; 75 trhead = tp; 90 for (tp = trhead; tp != NIL; tp = tp->trnext) { 97 if (tp == NIL) { 106 free(tp->trvalue); 108 free(tp); 125 for (tp = trhead; tp != NIL; tp = tp->trnext) { in prvarnews() 126 if (tp->trcond != NIL && !cond(tp->trcond)) { in prvarnews() 136 p = tp->trvar; in prvarnews() 193 for (tp = trhead; tp != NIL; tp = next) { in trfree() [all …]
|
/original-bsd/sys/vax/vax/ |
H A D | cons.c | 58 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 66 return ((*linesw[tp->t_line].l_open)(dev, tp)); 79 (*linesw[tp->t_line].l_close)(tp, flag); 94 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 112 return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); 139 tp = &cons; 155 (*linesw[tp->t_line].l_rint)(c, tp); 193 (*linesw[tp->t_line].l_start)(tp); 202 cnstart(tp) in cnstart() argument 210 if (tp->t_outq.c_cc <= tp->t_lowat) { [all …]
|
/original-bsd/sys/vax/uba/ |
H A D | dmx.c | 105 ttychars(tp); 120 dmxparam(tp, &tp->t_termios); 142 return ((*linesw[tp->t_line].l_open)(tp->t_dev, tp)); 150 (*linesw[tp->t_line].l_close)(tp, flag); 152 if (tp->t_cflag & HUPCL || (tp->t_state & TS_ISOPEN) == 0) 178 (void)(*linesw[tp->t_line].l_modem)(tp, 1); 180 (*linesw[tp->t_line].l_modem)(tp, 0) == 0) { 206 (*linesw[tp->t_line].l_rint)(cc, tp); 446 (*linesw[tp->t_line].l_start)(tp); 490 if (tp->t_outq.c_cc <= tp->t_lowat) { [all …]
|
H A D | dhu.c | 252 dhuparam(tp, &tp->t_termios); 271 return ((*linesw[tp->t_line].l_open)(dev, tp)); 288 (*linesw[tp->t_line].l_close)(tp, flag); 290 if ((tp->t_state&TS_WOPEN) || (tp->t_cflag&HUPCL) || 360 (void)(*linesw[tp->t_line].l_modem)(tp, 1); 362 (*linesw[tp->t_line].l_modem)(tp, 0) == 0) 382 (*linesw[tp->t_line].l_rint)(c, tp); 591 (*linesw[tp->t_line].l_start)(tp); 626 if (tp->t_outq.c_cc <= tp->t_lowat) { 632 selwakeup(tp->t_wsel, tp->t_state & TS_WCOLL); [all …]
|
H A D | dz.c | 177 tp->t_ispeed = tp->t_ospeed = ISPEED; 183 dzparam(tp, &tp->t_termios); 199 return ((*linesw[tp->t_line].l_open)(dev, tp)); 216 (*linesw[tp->t_line].l_close)(tp, flag); 222 if (tp->t_cflag&HUPCL || tp->t_state&TS_WOPEN || 276 (void)(*linesw[tp->t_line].l_modem)(tp, 1); 301 (*linesw[tp->t_line].l_rint)(cc, tp); 457 (*linesw[tp->t_line].l_start)(tp); 482 if (tp->t_outq.c_cc <= tp->t_lowat) { 626 (void)(*linesw[tp->t_line].l_modem)(tp, 1); in dzscan() [all …]
|
H A D | dh.c | 249 tp->t_ispeed = tp->t_ospeed = ISPEED; 255 dhparam(tp, &tp->t_termios); 263 return ((*linesw[tp->t_line].l_open)(dev, tp)); 280 (*linesw[tp->t_line].l_close)(tp, flag); 282 if (tp->t_cflag&HUPCL || (tp->t_state&TS_ISOPEN)==0) 346 (*linesw[tp->t_line].l_rint)(cc, tp); 491 (*linesw[tp->t_line].l_start)(tp); 527 if (tp->t_outq.c_cc<=tp->t_lowat) { 533 selwakeup(tp->t_wsel, tp->t_state & TS_WCOLL); 803 (void)(*linesw[tp->t_line].l_modem)(tp, 1); [all …]
|
/original-bsd/sys/luna68k/dev/ |
H A D | kbd.c | 97 ttychars(tp); 110 tp->t_ispeed = tp->t_ospeed = kbddefaultrate; 119 error = (*linesw[tp->t_line].l_open)(dev, tp); 139 (*linesw[tp->t_line].l_close)(tp, flag); 140 ttyclose(tp); 166 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 170 kbdparam(tp, t) in kbdparam() argument 245 kbdstart(tp) in kbdstart() argument 258 if (tp->t_outq.c_cc <= tp->t_lowat) { 291 (*linesw[tp->t_line].l_rint)(code, tp); [all …]
|
/original-bsd/sys/tahoe/tahoe/ |
H A D | cons.c | 121 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 123 cnparams(tp, &tp->t_termios); 126 return ((*linesw[tp->t_line].l_open)(dev, tp)); 151 (*linesw[tp->t_line].l_close)(tp, flag); 162 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 211 (*linesw[tp->t_line].l_rint)(c & 0377, tp); 250 (*linesw[tp->t_line].l_start)(tp); 255 cnstart(tp) in cnstart() argument 266 if (tp->t_outq.c_cc <= tp->t_lowat) { 272 selwakeup(tp->t_wsel, tp->t_state & TS_WCOLL); [all …]
|
/original-bsd/sys/pmax/dev/ |
H A D | dc.c | 240 tp->t_ispeed = tp->t_ospeed = ISPEED; 246 (void) dcparam(tp, &tp->t_termios); 265 return ((*linesw[tp->t_line].l_open)(dev, tp)); 288 (*linesw[tp->t_line].l_close)(tp, flag); 554 (*linesw[tp->t_line].l_rint)(cc, tp); 560 dcxint(tp) in dcxint() argument 606 (*linesw[tp->t_line].l_start)(tp); 631 if (tp->t_outq.c_cc <= tp->t_lowat) { 650 if (tp->t_outq.c_cc <= tp->t_lowat) { 813 (void)(*linesw[tp->t_line].l_modem)(tp, 1); [all …]
|
/original-bsd/usr.bin/man/ |
H A D | config.c | 41 TAG *tp; local 74 tp != NULL && strcmp(p, tp->s); tp = tp->q.tqe_next); 77 tp = addlist(p); 111 TAG *tp; local 116 TAILQ_INIT(&tp->list); 118 return (tp); 129 TAG *tp; local 131 for (tp = head.tqh_first; tp != NULL; tp = tp->q.tqe_next) 133 return (tp); 141 TAG *tp; local [all …]
|
/original-bsd/sys/news3400/bm/ |
H A D | bmcons.c | 98 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 100 cnparam(tp, &tp->t_termios); 108 return ((*linesw[tp->t_line].l_open)(dev, tp)); 121 (*linesw[tp->t_line].l_close)(tp); 123 ttyclose(tp); 135 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 146 return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); 331 (*linesw[tp->t_line].l_start)(tp); 340 cnstart(tp) in cnstart() argument 369 if (tp->t_outq.c_cc <= tp->t_lowat) { [all …]
|