/original-bsd/sys/hp300/dev/ |
H A D | dcm.c | 340 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 342 (void) dcmparam(tp, &tp->t_termios); 371 unit, tp->t_state, tp->t_flags); 374 error = (*linesw[tp->t_line].l_open)(dev, tp); 389 (*linesw[tp->t_line].l_close)(tp, flag); 396 unit, tp->t_state, tp->t_flags); 638 (*linesw[tp->t_line].l_rint)(c, tp); 658 (*linesw[tp->t_line].l_start)(tp); 687 (void)(*linesw[tp->t_line].l_modem)(tp, 1); 877 UNIT(tp->t_dev), tp->t_state, tp->t_flags, [all …]
|
H A D | grf_tc.c | 42 register struct tcboxfb *tp = (struct tcboxfb *) addr; variable 54 gi->gd_fbwidth = (tp->fbwmsb << 8) | tp->fbwlsb; 55 gi->gd_fbheight = (tp->fbhmsb << 8) | tp->fbhlsb; 57 fboff = (tp->fbomsb << 8) | tp->fbolsb; 76 gi->gd_dwidth = (tp->dwmsb << 8) | tp->dwlsb; 77 gi->gd_dheight = (tp->dhmsb << 8) | tp->dhlsb; 78 gi->gd_planes = tp->num_planes; 82 tp->wen = ~0; 83 tp->prr = 0x3; 84 tp->fben = ~0;
|
/original-bsd/sys/kern/ |
H A D | tty_tb.c | 75 tbopen(dev, tp) in tbopen() argument 83 ttywflush(tp); 91 tp->t_inbuf = 0; 101 tbclose(tp) in tbclose() argument 110 tp->t_cp = 0; 111 tp->t_inbuf = 0; 122 tbread(tp, uio) in tbread() argument 146 tbinput(c, tp) in tbinput() argument 160 tp->t_inbuf = 0; 286 struct tty *tp; variable [all …]
|
H A D | tty_compat.c | 54 register struct tty *tp; in ttcompat() 68 if (tp->t_ispeed == 0) 86 term = tp->t_termios; 97 tp->t_flags = tp->t_flags&0xffff0000 | sg->sg_flags&0xffff; 158 term = tp->t_termios; 160 tp->t_flags = (tp->t_flags&0xffff) | *(int *)data<<16; 162 tp->t_flags = 163 (ttcompatgetflags(tp)&0xffff0000)|(tp->t_flags&0xffff); 179 *(int *)data = tp->t_line ? tp->t_line : 2; 199 ttcompatgetflags(tp) in ttcompatgetflags() argument [all …]
|
H A D | tty_conf.c | 34 int tbopen __P((dev_t dev, struct tty *tp)); 35 int tbclose __P((struct tty *tp, int flags)); 37 int tbioctl __P((struct tty *tp, u_long cmd, caddr_t data, 39 int tbinput __P((int c, struct tty *tp)); 44 int slopen __P((dev_t dev, struct tty *tp)); 45 int slclose __P((struct tty *tp, int flags)); 48 int slinput __P((int c, struct tty *tp)); 49 int slstart __P((struct tty *tp)); 88 nullioctl(tp, cmd, data, flags, p) 89 struct tty *tp; variable [all …]
|
/original-bsd/sys/netinet/ |
H A D | tcp_seq.h | 25 #define tcp_rcvseqinit(tp) \ argument 26 (tp)->rcv_adv = (tp)->rcv_nxt = (tp)->irs + 1 28 #define tcp_sendseqinit(tp) \ argument 29 (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \ 30 (tp)->iss
|
/original-bsd/sys/vax/uba/ |
H A D | dmz.c | 145 tp = &dmz_tty[unit]; 187 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 197 return ((*linesw[tp->t_line].l_write)(tp, uio)); 275 dmzstart(tp) 276 struct tty *tp; variable 279 dmxstart(tp, &dmz_softc[minor(tp->t_dev) >> 3]); 285 dmzstop(tp, flag) 286 struct tty *tp; variable 289 dmxstop(tp, &dmz_softc[minor(tp->t_dev) >> 3], flag); 339 dmxparam(tp, &tp->t_termios); [all …]
|
/original-bsd/sys/i386/i386/ |
H A D | ufs_machdep.c | 33 allocbuf(tp, size) in allocbuf() argument 34 register struct buf *tp; in allocbuf() 44 if (sizealloc == tp->b_bufsize) 53 if (sizealloc < tp->b_bufsize) { 59 (int)tp->b_bufsize - sizealloc); 61 tp->b_bufsize = sizealloc; 72 while (tp->b_bufsize < sizealloc) { 73 take = sizealloc - tp->b_bufsize; 78 &tp->b_un.b_addr[tp->b_bufsize], take); 79 tp->b_bufsize += take; [all …]
|
/original-bsd/lib/libcompat/4.1/ |
H A D | ftime.c | 27 ftime(tp) in ftime() argument 28 register struct timeb *tp; in ftime() 37 tp->time = t.tv_sec; 38 tp->millitm = t.tv_usec / 1000; 39 if ((tm = localtime(&tp->time)) == NULL) { 41 tp->timezone = tz.tz_minuteswest; 42 tp->dstflag = tz.tz_dsttime; 44 tp->dstflag = tm->tm_isdst; 47 tp->timezone = -localtime(&zero)->tm_gmtoff / 60; 49 tp->timezone = -tm->tm_gmtoff / 60;
|
/original-bsd/usr.bin/uucp/ |
H A D | assert.c | 19 register struct tm *tp; local 38 tp = localtime(&clock); 40 fprintf(errlog, "(%d/%d-%2.2d:%2.2d) ", tp->tm_mon + 1, 41 tp->tm_mday, tp->tm_hour, tp->tm_min); 44 fprintf(errlog, "(%d/%d-%02d:%02d) ", tp->tm_mon + 1, 45 tp->tm_mday, tp->tm_hour, tp->tm_min);
|
/original-bsd/usr.bin/ex/ |
H A D | ex_vput.c | 55 vclrlin(l, tp) in vclrlin() argument 57 line *tp; 92 if (*tp == 0) in vclreol() 99 --i, *tp++ = 0; in vclreol() 603 --tp; 609 i = *tp++; 976 tp = vtube0 + tabstart; up = tp + inssiz - doomed; 1135 *tp = c; 1184 *tp = c; 1272 while (tp < tpe && *tp) [all …]
|
/original-bsd/local/sccscmds/sccscmds.2/cmd/ |
H A D | get.c | 508 tp = trans(tp,Mod); 512 tp = trans(tp,str); 516 tp = trans(tp,str); 520 tp = trans(tp,str); 524 tp = trans(tp,str); 551 tp = trans(tp,Type); 555 tp = trans(tp,Mod); 558 tp = trans(tp,Sid); 570 tp = trans(tp,str); 576 tp = trans(tp,Mod); [all …]
|
/original-bsd/local/sccscmds/sccscmds.ok/cmd/ |
H A D | get.c | 508 tp = trans(tp,Mod); 512 tp = trans(tp,str); 516 tp = trans(tp,str); 520 tp = trans(tp,str); 524 tp = trans(tp,str); 551 tp = trans(tp,Type); 555 tp = trans(tp,Mod); 558 tp = trans(tp,Sid); 570 tp = trans(tp,str); 576 tp = trans(tp,Mod); [all …]
|
/original-bsd/sys/tahoe/vba/ |
H A D | mp.c | 232 ev = mpparam2(tp, &tp->t_termios); 261 error = (*linesw[tp->t_line].l_open)(dev,tp); 307 (*linesw[tp->t_line].l_close)(tp, flag); 341 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 354 return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); 508 mpstart(tp) in mpstart() argument 537 selwakeup(tp->t_wsel, tp->t_state & TS_WCOLL); 843 (void) (*linesw[tp->t_line].l_modem)(tp, 0); 1073 (*linesw[tp->t_line].l_modem)(tp, 1); 1077 (*linesw[tp->t_line].l_modem)(tp, 0); [all …]
|
H A D | vxc.c | 401 register struct tty *tp; local 426 tp = &vx_tty[i+n*16]; 428 tp->t_state &= ~TS_CARR_ON; 429 vcmodem(tp->t_dev, VMOD_ON); 436 if(tp->t_state&TS_FLUSH) 452 tp->t_state |= TS_CARR_ON ; 455 tp->t_state &= ~TS_CARR_ON ; 458 if(tp->t_state&TS_FLUSH) 497 tp = tp0 + i; 501 vxstart(tp); [all …]
|
/original-bsd/usr.sbin/amd/amd/ |
H A D | info_file.c | 170 time_t *tp; 173 if (mapf && tp) { 176 *tp = clocktime(); 178 *tp = stb.st_mtime; 184 int file_init(map, tp) in file_init() argument 186 time_t *tp; 218 time_t *tp; 224 if (*tp < t) { 225 *tp = t; 238 int file_mtime(map, tp) in file_mtime() argument [all …]
|
H A D | info_ndbm.c | 47 int ndbm_search P((mnt_map *m, char *map, char *key, char **pval, time_t *tp)); 48 int ndbm_search(m, map, key, pval, tp) in ndbm_search() argument 53 time_t *tp; 62 if (!error && *tp < stb.st_mtime) { 63 *tp = stb.st_mtime; 75 int ndbm_init P((char *map, time_t *tp)); 76 int ndbm_init(map, tp) in ndbm_init() argument 78 time_t *tp; 87 *tp = clocktime(); 89 *tp = stb.st_mtime;
|
/original-bsd/old/refer/hunt/ |
H A D | tick.c | 23 struct timeb tp; in tick() local 25 ftime (&tp); in tick() 28 start = tp.time*1000+tp.millitm; in tick() 33 struct timeb tp; in tock() local 37 ftime (&tp); in tock() 38 lap = (tp.time*1000+tp.millitm-start)/1000.; in tock()
|
/original-bsd/usr.sbin/ac/ |
H A D | ac.c | 128 for(tp = tbuf; tp < &tbuf[TSIZE]; tp++) in loop() 175 tp = &tbuf[i]; in loop() 176 update(tp, 0); in loop() 206 for (tp=tbuf; tp < &tbuf[TSIZE]; tp++) in upall() 207 update(tp, f); in upall() 210 update(tp, f) 211 struct tbuf *tp; variable 221 if (tp->userp) { 226 tp->ttime = t; 230 tp->userp = 0; [all …]
|
/original-bsd/usr.sbin/sa/ |
H A D | sa.c | 158 #define ISPROCESS(tp) (tp->p.name[0] && (tp->p.name[0] != USERKEY)) argument 159 #define ISUSER(tp) (tp->p.name[0] && (tp->p.name[0] == USERKEY)) argument 571 column(ft, tp->p.realt, tp->p.cput, 572 tp->p.syst, tp->p.imem, tp->p.io); 708 tp->p.count++; 713 tp->p.cput += x; 716 tp->p.syst += x; 718 tp->p.io += z; 930 if (tp->p.name[0] && tp->p.count <= thres) { in strip() 979 struct user *tp; local [all …]
|
/original-bsd/sys/i386/isa/ |
H A D | pccons.c | 150 tp = &pccons; 153 tp->t_dev = dev; 157 ttychars(tp); 162 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 163 pcparam(tp, &tp->t_termios); 168 return ((*linesw[tp->t_line].l_open)(dev, tp)); 228 error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p); 258 pcstart(tp) in pcstart() argument 267 if (tp->t_outq.c_cc <= tp->t_lowat) { 355 pcgetchar(tp) in pcgetchar() argument [all …]
|
/original-bsd/old/configttys/ |
H A D | configttys.c | 59 struct ttytype *tp; local 150 tp = ttytype; 154 if (sscanf(buf, "%s %s", tp->tp_term, tp->tp_port) == 2) 155 tp++; 164 tp->tp_term[0] = '\0'; 264 if (tp = type(port)) 516 for (tp = ttytype; tp->tp_term[0]; tp++) 518 return (tp->tp_term); 548 for (tp = ttytype; tp->tp_term[0]; tp++) 550 return (tp); [all …]
|
/original-bsd/sys/net/ |
H A D | if_sl.c | 212 slopen(dev, tp) in slopen() argument 249 slclose(tp) in slclose() argument 250 struct tty *tp; in slclose() 255 ttywflush(tp); 257 tp->t_line = 0; 258 tp->t_state = 0; 263 tp->t_sc = NULL; 279 struct tty *tp; in sltioctl() 366 slstart(tp) in slstart() argument 388 (*tp->t_oproc)(tp); [all …]
|
/original-bsd/libexec/talkd/ |
H A D | print.c | 32 char tbuf[80], *tp; local 36 tp = tbuf; 38 tp = types[mp->type]; 40 cp, tp, mp->id_num, mp->l_name, mp->r_name, mp->r_tty); 47 char tbuf[80], *tp, abuf[80], *ap; local 51 tp = tbuf; 53 tp = types[rp->type]; 59 syslog(LOG_DEBUG, "%s: %s: %s, id %d", cp, tp, ap, ntohl(rp->id_num));
|
/original-bsd/sys/hp/dev/ |
H A D | ite.c | 117 kbd_tty = tp; 211 tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; 215 error = (*linesw[tp->t_line].l_open)(dev, tp); 232 (*linesw[tp->t_line].l_close)(tp, flag); 233 ttyclose(tp); 245 return ((*linesw[tp->t_line].l_read)(tp, uio, flag)); 259 return ((*linesw[tp->t_line].l_write)(tp, uio, flag)); 282 iterestart(tp) in iterestart() argument 293 itestart(tp) in itestart() argument 323 iteputchar(getc(&tp->t_outq), tp->t_dev); [all …]
|