tp 61 bsp/drv/dev/base/tty.c static void tty_output(int c, struct tty *tp); tp 151 bsp/drv/dev/base/tty.c tty_rubout(int c, struct tty *tp) tp 154 bsp/drv/dev/base/tty.c if (!(tp->t_lflag & ECHO)) tp 156 bsp/drv/dev/base/tty.c if (tp->t_lflag & ECHOE) { tp 157 bsp/drv/dev/base/tty.c tty_output('\b', tp); tp 158 bsp/drv/dev/base/tty.c tty_output(' ', tp); tp 159 bsp/drv/dev/base/tty.c tty_output('\b', tp); tp 161 bsp/drv/dev/base/tty.c tty_output(tp->t_cc[VERASE], tp); tp 168 bsp/drv/dev/base/tty.c tty_echo(int c, struct tty *tp) tp 171 bsp/drv/dev/base/tty.c if (!(tp->t_lflag & ECHO)) { tp 172 bsp/drv/dev/base/tty.c if (c == '\n' && (tp->t_lflag & ECHONL)) tp 173 bsp/drv/dev/base/tty.c tty_output('\n', tp); tp 177 bsp/drv/dev/base/tty.c tty_output('^', tp); tp 178 bsp/drv/dev/base/tty.c tty_output(c + 'A' - 1, tp); tp 180 bsp/drv/dev/base/tty.c tty_output(c, tp); tp 187 bsp/drv/dev/base/tty.c tty_start(struct tty *tp) tp 192 bsp/drv/dev/base/tty.c if (tp->t_state & (TS_TTSTOP|TS_BUSY)) tp 194 bsp/drv/dev/base/tty.c if (tp->t_oproc) tp 195 bsp/drv/dev/base/tty.c (*tp->t_oproc)(tp); tp 202 bsp/drv/dev/base/tty.c tty_flush(struct tty *tp, int rw) tp 208 bsp/drv/dev/base/tty.c while (tty_getc(&tp->t_canq) != -1) tp 210 bsp/drv/dev/base/tty.c while (tty_getc(&tp->t_rawq) != -1) tp 212 bsp/drv/dev/base/tty.c sched_wakeup(&tp->t_input); tp 215 bsp/drv/dev/base/tty.c tp->t_state &= ~TS_TTSTOP; tp 216 bsp/drv/dev/base/tty.c tty_start(tp); tp 224 bsp/drv/dev/base/tty.c tty_done(struct tty *tp) tp 227 bsp/drv/dev/base/tty.c if (tp->t_outq.tq_count == 0) tp 228 bsp/drv/dev/base/tty.c tp->t_state &= ~TS_BUSY; tp 229 bsp/drv/dev/base/tty.c if (tp->t_state & TS_ASLEEP) { tp 230 bsp/drv/dev/base/tty.c tp->t_state &= ~TS_ASLEEP; tp 231 bsp/drv/dev/base/tty.c sched_wakeup(&tp->t_output); tp 239 bsp/drv/dev/base/tty.c tty_wait(struct tty *tp) tp 244 bsp/drv/dev/base/tty.c if ((tp->t_outq.tq_count > 0) && tp->t_oproc) { tp 245 bsp/drv/dev/base/tty.c tp->t_state |= TS_BUSY; tp 247 bsp/drv/dev/base/tty.c (*tp->t_oproc)(tp); tp 248 bsp/drv/dev/base/tty.c if ((tp->t_state & TS_BUSY) == 0) tp 250 bsp/drv/dev/base/tty.c tp->t_state |= TS_ASLEEP; tp 251 bsp/drv/dev/base/tty.c sched_sleep(&tp->t_output); tp 262 bsp/drv/dev/base/tty.c struct tty *tp = arg; tp 264 bsp/drv/dev/base/tty.c DPRINTF(("tty_signal sig=%d\n", tp->t_signo)); tp 265 bsp/drv/dev/base/tty.c exception_post(tp->t_sigtask, tp->t_signo); tp 274 bsp/drv/dev/base/tty.c tty_input(int c, struct tty *tp) tp 285 bsp/drv/dev/base/tty.c lflag = tp->t_lflag; tp 286 bsp/drv/dev/base/tty.c iflag = tp->t_iflag; tp 287 bsp/drv/dev/base/tty.c cc = tp->t_cc; tp 292 bsp/drv/dev/base/tty.c tty_flush(tp, FREAD | FWRITE); tp 309 bsp/drv/dev/base/tty.c if (!(tp->t_state & TS_TTSTOP)) { tp 310 bsp/drv/dev/base/tty.c tp->t_state |= TS_TTSTOP; tp 325 bsp/drv/dev/base/tty.c if (!ttyq_empty(&tp->t_rawq)) tp 326 bsp/drv/dev/base/tty.c tty_rubout(tty_unputc(&tp->t_rawq), tp); tp 331 bsp/drv/dev/base/tty.c while (!ttyq_empty(&tp->t_rawq)) tp 332 bsp/drv/dev/base/tty.c tty_rubout(tty_unputc(&tp->t_rawq), tp); tp 340 bsp/drv/dev/base/tty.c tp->t_state |= TS_ISIG; tp 341 bsp/drv/dev/base/tty.c tty_flush(tp, FREAD | FWRITE); tp 343 bsp/drv/dev/base/tty.c tty_echo(c, tp); tp 350 bsp/drv/dev/base/tty.c tp->t_state |= TS_ISIG; tp 351 bsp/drv/dev/base/tty.c tty_flush(tp, FREAD | FWRITE); tp 353 bsp/drv/dev/base/tty.c tty_echo(c, tp); tp 362 bsp/drv/dev/base/tty.c if (ttyq_full(&tp->t_rawq)) { tp 363 bsp/drv/dev/base/tty.c tty_flush(tp, FREAD | FWRITE); tp 366 bsp/drv/dev/base/tty.c tty_putc(c, &tp->t_rawq); tp 370 bsp/drv/dev/base/tty.c tty_catq(&tp->t_rawq, &tp->t_canq); tp 371 bsp/drv/dev/base/tty.c sched_wakeup(&tp->t_input); tp 374 bsp/drv/dev/base/tty.c sched_wakeup(&tp->t_input); tp 377 bsp/drv/dev/base/tty.c tty_echo(c, tp); tp 382 bsp/drv/dev/base/tty.c if ((tp->t_state & TS_TTSTOP) && (iflag & IXANY) == 0 && tp 386 bsp/drv/dev/base/tty.c tp->t_state &= ~TS_TTSTOP; tp 389 bsp/drv/dev/base/tty.c if (tp->t_sigtask) { tp 390 bsp/drv/dev/base/tty.c tp->t_signo = sig; tp 391 bsp/drv/dev/base/tty.c sched_dpc(&tp->t_dpc, &tty_signal, tp); tp 394 bsp/drv/dev/base/tty.c tty_start(tp); tp 402 bsp/drv/dev/base/tty.c tty_output(int c, struct tty *tp) tp 406 bsp/drv/dev/base/tty.c if ((tp->t_lflag & ICANON) == 0) { tp 407 bsp/drv/dev/base/tty.c tty_putc(c, &tp->t_outq); tp 411 bsp/drv/dev/base/tty.c if (c == '\t' && (tp->t_oflag & OXTABS)) { tp 412 bsp/drv/dev/base/tty.c i = 8 - (tp->t_column & 7); tp 413 bsp/drv/dev/base/tty.c tp->t_column += i; tp 415 bsp/drv/dev/base/tty.c tty_putc(' ', &tp->t_outq); tp 420 bsp/drv/dev/base/tty.c if (c == '\n' && (tp->t_oflag & ONLCR)) tp 421 bsp/drv/dev/base/tty.c tty_putc('\r', &tp->t_outq); tp 423 bsp/drv/dev/base/tty.c tty_putc(c, &tp->t_outq); tp 425 bsp/drv/dev/base/tty.c col = tp->t_column; tp 445 bsp/drv/dev/base/tty.c tp->t_column = col; tp 453 bsp/drv/dev/base/tty.c tty_read(struct tty *tp, char *buf, size_t *nbyte) tp 464 bsp/drv/dev/base/tty.c lflag = tp->t_lflag; tp 465 bsp/drv/dev/base/tty.c cc = tp->t_cc; tp 466 bsp/drv/dev/base/tty.c qp = (lflag & ICANON) ? &tp->t_canq : &tp->t_rawq; tp 470 bsp/drv/dev/base/tty.c rc = sched_sleep(&tp->t_input); tp 471 bsp/drv/dev/base/tty.c if (rc == SLP_INTR || tp->t_state & TS_ISIG) { tp 472 bsp/drv/dev/base/tty.c tp->t_state &= ~TS_ISIG; tp 497 bsp/drv/dev/base/tty.c tty_write(struct tty *tp, char *buf, size_t *nbyte) tp 506 bsp/drv/dev/base/tty.c if (tp->t_outq.tq_count > TTYQ_HIWAT) { tp 507 bsp/drv/dev/base/tty.c tty_start(tp); tp 508 bsp/drv/dev/base/tty.c if (tp->t_outq.tq_count <= TTYQ_HIWAT) tp 510 bsp/drv/dev/base/tty.c tp->t_state |= TS_ASLEEP; tp 511 bsp/drv/dev/base/tty.c sched_sleep(&tp->t_output); tp 516 bsp/drv/dev/base/tty.c tty_output((int)c, tp); tp 521 bsp/drv/dev/base/tty.c tty_start(tp); tp 530 bsp/drv/dev/base/tty.c tty_ioctl(struct tty *tp, u_long cmd, void *data) tp 537 bsp/drv/dev/base/tty.c if (copyout(&tp->t_termios, data, tp 543 bsp/drv/dev/base/tty.c tty_wait(tp); tp 545 bsp/drv/dev/base/tty.c tty_flush(tp, FREAD); tp 548 bsp/drv/dev/base/tty.c if (copyin(data, &tp->t_termios, tp 553 bsp/drv/dev/base/tty.c if (copyin(data, &tp->t_pgid, sizeof(pid_t))) tp 557 bsp/drv/dev/base/tty.c if (copyout(&tp->t_pgid, data, sizeof(pid_t))) tp 567 bsp/drv/dev/base/tty.c tty_flush(tp, flags); tp 570 bsp/drv/dev/base/tty.c if (tp->t_state & TS_TTSTOP) { tp 571 bsp/drv/dev/base/tty.c tp->t_state &= ~TS_TTSTOP; tp 572 bsp/drv/dev/base/tty.c tty_start(tp); tp 576 bsp/drv/dev/base/tty.c if (!(tp->t_state & TS_TTSTOP)) { tp 577 bsp/drv/dev/base/tty.c tp->t_state |= TS_TTSTOP; tp 581 bsp/drv/dev/base/tty.c if (copyout(&tp->t_winsize, data, tp 586 bsp/drv/dev/base/tty.c if (copyin(data, &tp->t_winsize, tp 591 bsp/drv/dev/base/tty.c if (copyin(data, &tp->t_sigtask, sizeof(task_t))) tp 595 bsp/drv/dev/base/tty.c qp = (tp->t_lflag & ICANON) ? &tp->t_canq : &tp->t_rawq; tp 600 bsp/drv/dev/base/tty.c if (copyout(&tp->t_outq.tq_count, data, sizeof(int))) tp 611 bsp/drv/dev/base/tty.c tty_attach(struct tty *tp) tp 616 bsp/drv/dev/base/tty.c memset(tp, 0, sizeof(struct tty)); tp 617 bsp/drv/dev/base/tty.c memcpy(&tp->t_termios.c_cc, ttydefchars, sizeof(ttydefchars)); tp 619 bsp/drv/dev/base/tty.c event_init(&tp->t_input, "TTY input"); tp 620 bsp/drv/dev/base/tty.c event_init(&tp->t_output, "TTY output"); tp 622 bsp/drv/dev/base/tty.c tp->t_iflag = TTYDEF_IFLAG; tp 623 bsp/drv/dev/base/tty.c tp->t_oflag = TTYDEF_OFLAG; tp 624 bsp/drv/dev/base/tty.c tp->t_cflag = TTYDEF_CFLAG; tp 625 bsp/drv/dev/base/tty.c tp->t_lflag = TTYDEF_LFLAG; tp 626 bsp/drv/dev/base/tty.c tp->t_ispeed = TTYDEF_SPEED; tp 627 bsp/drv/dev/base/tty.c tp->t_ospeed = TTYDEF_SPEED; tp 630 bsp/drv/dev/base/tty.c tp->t_winsize.ws_row = (u_short)bi->video.text_y; tp 631 bsp/drv/dev/base/tty.c tp->t_winsize.ws_col = (u_short)bi->video.text_x; tp 402 bsp/drv/dev/base/wscons.c wscons_start(struct tty *tp) tp 407 bsp/drv/dev/base/wscons.c while ((c = tty_getc(&tp->t_outq)) >= 0) tp 411 bsp/drv/dev/base/wscons.c tty_done(tp); tp 122 bsp/drv/dev/serial/serial.c serial_start(struct tty *tp) tp 124 bsp/drv/dev/serial/serial.c struct serial_softc *sc = device_private(tp->t_dev); tp 128 bsp/drv/dev/serial/serial.c while ((c = tty_getc(&tp->t_outq)) >= 0) tp 96 include/sys/prex.h int thread_create(task_t task, thread_t *tp); tp 65 sys/kern/thread.c thread_create(task_t task, thread_t *tp) tp 91 sys/kern/thread.c if (copyout(&t, tp, sizeof(t))) { tp 115 sys/kern/thread.c *tp = t; tp 117 sys/kern/thread.c copyout(&t, tp, sizeof(t)); tp 42 usr/lib/libc/string/memccpy.c unsigned char *tp = t; tp 45 usr/lib/libc/string/memccpy.c if ((*tp++ = *fp++) == c) tp 40 usr/lib/libc/string/swab.c char *tp; tp 44 usr/lib/libc/string/swab.c tp = (char *)to; tp 45 usr/lib/libc/string/swab.c #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp tp 53 usr/test/attack/attack.c thread_t *tp = (thread_t *)random(); tp 95 usr/test/attack/attack.c thread_create(self, tp);