/original-bsd/sys/i386/isa/ |
H A D | com.c | 180 tp->t_ispeed = tp->t_ospeed = comdefaultrate; 182 comparam(tp, &tp->t_termios); 199 error = (*linesw[tp->t_line].l_open)(dev, tp); 216 (*linesw[tp->t_line].l_close)(tp, flag); 223 if (tp->t_cflag&HUPCL || tp->t_state&TS_WOPEN || 284 (*linesw[tp->t_line].l_rint)(code, tp) 289 (*linesw[tp->t_line].l_rint)(code, tp) 306 (*linesw[tp->t_line].l_start)(tp); 350 (*linesw[tp->t_line].l_rint)(c, tp); 364 (void)(*linesw[tp->t_line].l_modem)(tp, 1); [all …]
|
/original-bsd/sys/deprecated/bbnnet/ |
H A D | tcp_input.c | 62 send_rst(tp, n); \ 138 tp->t_timers[TNOACT] = tp->t_noact; \ 213 tp->t_x1 = 0; 219 tp->t_sum = 0; 235 inp = in_pcblookup(&tcp, tp->t_s.s_addr, tp->t_src, 236 tp->t_d.s_addr, tp->t_dst, TRUE); 253 tp->t_seq = ntohl(tp->t_seq); 254 tp->t_ackno = ntohl(tp->t_ackno); 255 tp->t_win = ntohs((u_short)tp->t_win); 256 tp->t_urp = ntohs((u_short)tp->t_urp); [all …]
|
H A D | macros.h | 41 tp, (tp)->t_state, wtype); \ 51 (tp)->t_state = newstate; \ 77 #define TCP_DEQ(old, tp) \ 88 if ((p = (tp)->t_rcv_next) == (struct th *)(tp) || \ 90 retval = (tp)->rcv_nxt; \ 106 #define PRESENT_DATA(tp) \ 110 if ((tp)->syn_acked){ \ 115 if ((t = (tp)->t_rcv_next) != (struct th *)(tp)) { \ 139 TCP_DEQ(t, tp); \ 156 if (SEQ_GEQ((tp)->rcv_urpend, (tp)->rcv_urp)) \ [all …]
|
/original-bsd/sys/netiso/ |
H A D | tp_trace.c | 96 tp->tpt_arg = arg; 114 tp->tpt_m2 = src; 115 tp->tpt_m3 = len; 116 tp->tpt_m4 = arg4; 117 tp->tpt_m1 = arg5; 128 tp->tpt_m2 = arg; 129 tp->tpt_m3 = src; 130 tp->tpt_m4 = len; 131 tp->tpt_m5 = arg4; 132 tp->tpt_m1 = arg5; [all …]
|
H A D | trtp.c | 32 tpprint(tp) in tpprint() argument 43 tp->tpt_event = event; 45 tp->tpt_arg = arg; 50 switch(tp->tpt_event) { 60 printf(tp->tpt_str, 74 tp->tpt_m2 = arg; 75 tp->tpt_m3 = src; 76 tp->tpt_m4 = len; 77 tp->tpt_m5 = arg4; 78 tp->tpt_m1 = arg5; [all …]
|
H A D | tuba_usrreq.c | 84 tp = intotcpcb(inp); 85 if (tp == 0) 115 if (tp == 0) 130 tp = tcp_disconnect(tp); 132 tp = tcp_close(tp); 133 if (tp == 0) 195 if ((tp->t_template = tcp_template(tp)) == 0) 219 if ((tp = tcp_disconnect(tp)) == 0) 238 tp = tcp_usrclosed(tp); 239 if (tp) [all …]
|
/original-bsd/sys/vax/datakit/ |
H A D | dksub.c | 52 tp = &dkdev[chan]; 108 tp->d_rctl = rctl ; 126 tp = &dkdev[chan] ; 167 tp->d_bufct++; 170 xc = tp->d_xctl; 171 tp->d_xctl = 0; 175 tp->d_bufct-- ; 188 tp = &dkdev[chan] ; in dkwdone() 191 tp->d_bufct); in dkwdone() 192 if (tp->d_bufct) in dkwdone() [all …]
|
H A D | kmc.c | 302 tp = &kmc[dev]; 379 tp = &kmc[dev]; in kmcrint() 383 q_to_b(&tp->k_inq, (char *)tp->k_arg, sizeof(tp->k_arg)) == sizeof(tp->k_arg)) { in kmcrint() 398 if ((tp->k_stat&SLOAD) || tp->k_inq.c_cc) in kmcrint() 410 tp = &kmc[dev]; in kmcxint() 433 tp = &kmc[unit]; in kmcload() 439 b_to_q((char *)tp->k_arg, sizeof(tp->k_arg), &tp->k_inq); in kmcload() 447 b_to_q((char *)tp->k_arg, sizeof(tp->k_arg), &tp->k_inq); in kmcload() 483 tp = &kmc[dev]; 497 tp = &kmc[dev]; in kmcreset() [all …]
|
/original-bsd/sys/netinet/ |
H A D | tcp_subr.c | 65 tcp_template(tp) in tcp_template() argument 66 struct tcpcb *tp; in tcp_template() 123 if (tp) { 163 if (tp) 186 tp = malloc(sizeof(*tp), M_PCB, M_NOWAIT); 190 tp->seg_next = tp->seg_prev = (struct tcpiphdr *)tp; 210 return (tp); 244 tcp_close(tp) in tcp_close() argument 309 i = (i + tp->t_maxseg / 2) / tp->t_maxseg; 417 if (tp) [all …]
|
H A D | tcp_debug.c | 49 tcp_trace(act, ostate, tp, ti, req) in tcp_trace() argument 51 struct tcpcb *tp; 64 td->td_tcb = (caddr_t)tp; 65 if (tp) 66 td->td_cb = *tp; 77 if (tp) 121 if (tp) 125 if (tp == 0) 128 tp->rcv_nxt, tp->rcv_wnd, tp->rcv_up, tp->snd_una, tp->snd_nxt, 129 tp->snd_max); [all …]
|
/original-bsd/sys/vax/if/ACC/driver/ |
H A D | if_x29.c | 377 i = ((*linesw[tp->t_line].l_open) (dev, tp)); 423 (*linesw[tp->t_line].l_close) (tp, flag); 477 error = (*linesw[tp->t_line].l_read)(tp, uio); 521 return (*linesw[tp->t_line].l_write)(tp, uio); 633 xxstart(tp) in xxstart() argument 688 if (tp->t_outq.c_cc <= TTLOWAT(tp)) { 694 selwakeup(tp->t_wsel, tp->t_state & TS_WCOLL); 1101 (*linesw[tp->t_line].l_rint) (c, tp); 1430 (*linesw[tp->t_line].l_rint) (c, tp); 1745 pp->p_flow, tp->t_state, tp->t_flags); in xxshow() [all …]
|
/original-bsd/sys/luna68k/dev/ |
H A D | bmc.c | 344 ttychars(tp); 351 tp->t_ispeed = tp->t_ospeed = bmcdefaultrate; 353 bmcparam(tp, &tp->t_termios); 368 error = (*linesw[tp->t_line].l_open)(dev, tp); 384 (*linesw[tp->t_line].l_close)(tp, flag); 385 ttyclose(tp); 395 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 407 tp = constty; 409 return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); 459 bmcstart(tp) in bmcstart() argument [all …]
|
H A D | sio.c | 213 tp->t_ispeed = tp->t_ospeed = siodefaultrate; 215 sioparam(tp, &tp->t_termios); 232 error = (*linesw[tp->t_line].l_open)(dev, tp); 247 (*linesw[tp->t_line].l_close)(tp, flag); 249 if (tp->t_cflag&HUPCL || tp->t_state&TS_WOPEN || 262 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 373 if (tp->t_outq.c_cc <= tp->t_lowat) { 474 (*linesw[tp->t_line].l_rint)(code, tp); 485 (*linesw[tp->t_line].l_rint)(code, tp); 500 (*linesw[tp->t_line].l_start)(tp); [all …]
|
/original-bsd/sys/hp/dev/ |
H A D | dca.c | 209 tp->t_ispeed = tp->t_ospeed = dcadefaultrate; 211 dcaparam(tp, &tp->t_termios); 228 error = (*linesw[tp->t_line].l_open)(dev, tp); 258 (*linesw[tp->t_line].l_close)(tp, flag); 265 if (tp->t_cflag&HUPCL || tp->t_state&TS_WOPEN || 348 (*linesw[tp->t_line].l_rint)(code, tp) 353 (*linesw[tp->t_line].l_rint)(code, tp) 385 (*linesw[tp->t_line].l_start)(tp); 429 (*linesw[tp->t_line].l_rint)(c, tp); 447 (void)(*linesw[tp->t_line].l_modem)(tp, 1); [all …]
|
/original-bsd/sys/news3400/iop/ |
H A D | rs.c | 199 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 201 rsparam(tp, &tp->t_termios); 228 return ((*linesw[tp->t_line].l_open)(dev, tp)); 244 (*linesw[tp->t_line].l_close)(tp); 262 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 543 (*linesw[tp->t_line].l_start)(tp); 583 if (tp->t_outq.c_cc <= tp->t_lowat) { 707 rsparam(tp, &tp->t_termios); in rsreset() 730 (void)(*linesw[tp->t_line].l_modem)(tp, 1); 732 (*linesw[tp->t_line].l_modem)(tp, 0) == 0) { [all …]
|
/original-bsd/sys/pmax/dev/ |
H A D | scc.c | 326 tp->t_ispeed = tp->t_ospeed = ISPEED; 332 (void) sccparam(tp, &tp->t_termios); 348 return ((*linesw[tp->t_line].l_open)(dev, tp)); 367 (*linesw[tp->t_line].l_close)(tp, flag); 621 ndflush(&tp->t_outq, dp->p_mem-tp->t_outq.c_cf); 625 (*linesw[tp->t_line].l_start)(tp); 730 (*linesw[tp->t_line].l_rint)(cc, tp); 757 if (tp->t_outq.c_cc <= tp->t_lowat) { 776 if (tp->t_outq.c_cc <= tp->t_lowat) { 936 (void)(*linesw[tp->t_line].l_modem)(tp, 1); [all …]
|
H A D | dtop.c | 223 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 225 (void) dtopparam(tp, &tp->t_termios); 240 error = (*linesw[tp->t_line].l_open)(dev, tp); 255 (*linesw[tp->t_line].l_close)(tp, flag); 266 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 276 return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); 361 dtopstart(tp) in dtopstart() argument 370 if (tp->t_outq.c_cc <= tp->t_lowat) { 389 if (tp->t_outq.c_cc <= tp->t_lowat) { 777 (*linesw[tp->t_line].l_rint)(c, tp); [all …]
|
/original-bsd/sys/sparc/dev/ |
H A D | zs.c | 237 tp->t_ispeed = tp->t_ospeed = cs->cs_speed; in zsattach() 264 tp->t_ispeed = tp->t_ospeed = cs->cs_speed; in zsattach() 385 tp->t_dev = makedev(major(tp->t_dev), unit); in zs_checkcons() 423 tp->t_ispeed = tp->t_ospeed = kgdb_rate; in zs_checkkgdb() 427 (void) zsparam(tp, &tp->t_termios); in zs_checkkgdb() 454 (void) zsparam(tp, &tp->t_termios); in zsiopen() 502 (void) zsparam(tp, &tp->t_termios); in zsopen() 544 linesw[tp->t_line].l_close(tp, flags); in zsclose() 555 tp->t_ispeed = tp->t_ospeed = kgdb_rate; in zsclose() 556 (void) zsparam(tp, &tp->t_termios); in zsclose() [all …]
|
/original-bsd/bin/stty/ |
H A D | gfmt.c | 32 gprint(tp, wp, ldisc) in gprint() argument 33 struct termios *tp; in gprint() 40 tp->c_cflag, tp->c_iflag, tp->c_lflag, tp->c_oflag); 43 (void)printf("ispeed=%d:ospeed=%d\n", cfgetispeed(tp), cfgetospeed(tp)); 47 gread(tp, s) in gread() argument 48 struct termios *tp; in gread() 68 tp->c_cflag = tmp; 72 tp->c_iflag = tmp; 77 tp->c_ispeed = tmp; 81 tp->c_lflag = tmp; [all …]
|
/original-bsd/sys/tahoe/vba/ |
H A D | vx.c | 227 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 229 vxparam(tp, &tp->t_termios); 241 error = (*linesw[tp->t_line].l_open)(dev,tp); 261 (*linesw[tp->t_line].l_close)(tp, flag); 374 (*linesw[tp->t_line].l_rint)(c, tp); 538 (*linesw[tp->t_line].l_start)(tp); 541 for(tp = &vx_tty[vx*16 + vs->vs_loport]; tp <= tp0; tp++) 542 (*linesw[tp->t_line].l_start)(tp); 582 if (tp->t_outq.c_cc <= tp->t_lowat) { 1263 vxcparam(tp, &tp->t_termios, 0); [all …]
|
H A D | vxm.c | 36 struct tty *tp ; local 43 tp = &vx_tty[port] ; 45 xp = (struct vcx *)tp->t_addr ; 59 tp->t_state |= TS_CARR_ON ; 74 register struct tty *tp ; local 79 tp = &vx_tty[port+n*16] ; 91 bp = &bsc[minor(tp->t_dev)] ; 100 tp->t_state |= TS_CARR_ON ; 106 tp->t_state &= ~TS_CARR_ON ; 112 ttyflush(tp, FREAD|FWRITE); [all …]
|
/original-bsd/sys/sys/ |
H A D | tty.h | 139 #define isctty(p, tp) \ argument 143 #define isbackground(p, tp) \ argument 144 (isctty((p), (tp)) && (p)->p_pgrp != (tp)->t_pgrp) 167 void ttrstrt __P((void *tp)); 171 int ttstart __P((struct tty *tp)); 172 void ttwakeup __P((struct tty *tp)); 176 int ttyclose __P((struct tty *tp)); 178 void ttyinfo __P((struct tty *tp)); 184 void ttypend __P((struct tty *tp)); 187 int ttysleep __P((struct tty *tp, [all …]
|
/original-bsd/old/tp/ |
H A D | tp2.c | 80 tp = tptr; in rddir() 87 p1->d_size = (((long)tp->size0&0377L)<<16)+(tp->size1&0177777L); in rddir() 135 tp = &tpentry[0]; in wrdir() 148 swabdir(tp); in wrdir() 149 swab((char *)tp, (char *)tp, sizeof(*tp)); in wrdir() 152 sp = (short *)tp; in wrdir() 157 swab((char *)tp, (char *)tp, sizeof(*tp)); in wrdir() 163 tp++; in wrdir() 346 swabdir(tp) in swabdir() argument 349 swab((char *)tp, (char *)tp, sizeof(*tp)); [all …]
|
/original-bsd/usr.bin/netstat/ |
H A D | main.c | 308 (*tp->pr_stats)(nl[tp->pr_sindex].n_value, 309 tp->pr_name); 346 for (tp = protox; tp->pr_name; tp++) 349 if (tp->pr_name == 0 || tp->pr_wanted == 0) 356 for (tp = nsprotox; tp->pr_name; tp++) 357 printproto(tp, tp->pr_name); 359 for (tp = isoprotox; tp->pr_name; tp++) 360 printproto(tp, tp->pr_name); 433 for (tp = *tpp; tp->pr_name; tp++) 435 return (tp); [all …]
|
/original-bsd/share/zoneinfo/ |
H A D | scheck.c | 33 register char * tp; local 45 tp = fbuf; 50 *tp++ = *fp++; 53 *tp++ = '*'; 57 *tp++ = *fp++; 59 *tp++ = *fp++; 61 do *tp++ = *fp++; 63 if ((*tp++ = *fp++) == '\0') 66 *(tp - 1) = '%'; 67 *tp++ = 'c'; [all …]
|