/netbsd/sys/dev/hpc/ |
H A D | biconsdev.c | 129 tp->t_linesw = ttyldisc_default(); in biconsdevattach() 193 status = (*tp->t_linesw->l_open)(dev, tp); in biconsdevopen() 203 (*tp->t_linesw->l_close)(tp, flag); in biconsdevclose() 215 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in biconsdevread() 224 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in biconsdevwrite() 233 return ((*tp->t_linesw->l_poll)(tp, events, l)); in biconsdevpoll() 251 if ((error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l)) != in biconsdevioctl()
|
/netbsd/sys/dev/arcbios/ |
H A D | arcbios_tty.c | 128 error = (*tp->t_linesw->l_open)(dev, tp); in arcbios_ttyopen() 142 (*tp->t_linesw->l_close)(tp, flag); in arcbios_ttyclose() 152 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in arcbios_ttyread() 160 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in arcbios_ttywrite() 168 return ((*tp->t_linesw->l_poll)(tp, events, l)); in arcbios_ttypoll() 178 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in arcbios_ttyioctl() 251 (void)(*tp->t_linesw->l_rint)(c, tp); in arcbios_tty_poll()
|
/netbsd/sys/arch/alpha/alpha/ |
H A D | promcons.c | 144 error = (*tp->t_linesw->l_open)(dev, tp); in promopen() 161 (*tp->t_linesw->l_close)(tp, flag); in promclose() 171 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in promread() 179 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in promwrite() 187 return ((*tp->t_linesw->l_poll)(tp, events, l)); in prompoll() 197 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in promioctl() 250 (*tp->t_linesw->l_rint)(c, tp); in promtimeout()
|
/netbsd/sys/arch/usermode/dev/ |
H A D | ttycons.c | 225 return t->t_linesw->l_open(dev, t); in ttycons_open() 240 t->t_linesw->l_close(t, flag); in ttycons_close() 255 return t->t_linesw->l_read(t, uio, flag); in ttycons_read() 267 return t->t_linesw->l_write(t, uio, flag); in ttycons_write() 279 return t->t_linesw->l_poll(t, events, l); in ttycons_poll() 302 error = t->t_linesw->l_ioctl(t, cmd, data, flag, l); in ttycons_ioctl() 382 t->t_linesw->l_rint(ch, t); in ttycons_softintr() 411 t->t_linesw->l_rint(ch, t); in ttycons_softctrlc() 437 t->t_linesw->l_rint(ch, t); in ttycons_softctrlz()
|
/netbsd/sys/arch/news68k/news68k/ |
H A D | romcons.c | 171 return (*tp->t_linesw->l_open)(dev, tp); in romcons_open() 184 (*tp->t_linesw->l_close)(tp, flag); in romcons_close() 198 return (*tp->t_linesw->l_read)(tp, uio, flag); in romcons_read() 209 return (*tp->t_linesw->l_write)(tp, uio, flag); in romcons_write() 220 return (*tp->t_linesw->l_poll)(tp, events, l); in romcons_poll() 231 if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) != in romcons_ioctl() 292 (*tp->t_linesw->l_rint)(ch, tp); in romcons_pollin() 306 (*tp->t_linesw->l_rint)(ks, tp); in romcons_kbdinput()
|
/netbsd/sys/arch/vax/vax/ |
H A D | gencons.c | 137 return ((*tp->t_linesw->l_open)(dev, tp)); in gencnopen() 145 (*tp->t_linesw->l_close)(tp, flag); in gencnclose() 162 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in gencnread() 170 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in gencnwrite() 178 return ((*tp->t_linesw->l_poll)(tp, events, l)); in gencnpoll() 187 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in gencnioctl() 240 (*tp->t_linesw->l_rint)(27, tp); in gencnrint() 244 (*tp->t_linesw->l_rint)(i, tp); in gencnrint()
|
/netbsd/sys/arch/sparc64/dev/ |
H A D | pcons.c | 165 return (*tp->t_linesw->l_open)(dev, tp); in pconsopen() 176 (*tp->t_linesw->l_close)(tp, flag); in pconsclose() 187 return (*tp->t_linesw->l_read)(tp, uio, flag); in pconsread() 196 return (*tp->t_linesw->l_write)(tp, uio, flag); in pconswrite() 205 return ((*tp->t_linesw->l_poll)(tp, events, l)); in pconspoll() 215 if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) != EPASSTHROUGH) in pconsioctl() 273 (*tp->t_linesw->l_rint)(ch, tp); in pcons_poll()
|
H A D | kd.c | 218 return ((*tp->t_linesw->l_open)(dev, tp)); in kdopen() 235 (*tp->t_linesw->l_close)(tp, flag); in kdclose() 253 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in kdread() 265 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in kdwrite() 277 return ((*tp->t_linesw->l_poll)(tp, events, l)); in kdpoll() 290 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in kdioctl() 370 (*tp->t_linesw->l_start)(tp); in kd_later() 435 (*tp->t_linesw->l_rint)(c, tp); in kd_cons_input()
|
/netbsd/sys/arch/sun2/dev/ |
H A D | pcons.c | 163 return (*tp->t_linesw->l_open)(dev, tp); in pconsopen() 174 (*tp->t_linesw->l_close)(tp, flag); in pconsclose() 185 return (*tp->t_linesw->l_read)(tp, uio, flag); in pconsread() 194 return (*tp->t_linesw->l_write)(tp, uio, flag); in pconswrite() 203 return (*tp->t_linesw->l_poll)(tp, events, l); in pconspoll() 213 if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) >= 0) in pconsioctl() 276 (*tp->t_linesw->l_rint)(ch, tp); in pcons_poll()
|
H A D | kd.c | 261 return ((*tp->t_linesw->l_open)(dev, tp)); in kdopen() 278 (*tp->t_linesw->l_close)(tp, flag); in kdclose() 296 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in kdread() 308 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in kdwrite() 320 return ((*tp->t_linesw->l_poll)(tp, events, l)); in kdpoll() 333 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in kdioctl() 415 (*tp->t_linesw->l_start)(tp); in kd_later() 480 (*tp->t_linesw->l_rint)(c, tp); in kd_cons_input()
|
/netbsd/sys/dev/qbus/ |
H A D | dl.c | 307 (*tp->t_linesw->l_rint)(cc, tp); in dlrint() 325 (*tp->t_linesw->l_start)(tp); in dlxint() 367 return ((*tp->t_linesw->l_open)(dev, tp)); in dlopen() 377 (*tp->t_linesw->l_close)(tp, flag); in dlclose() 391 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in dlread() 400 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in dlwrite() 409 return ((*tp->t_linesw->l_poll)(tp, events, l)); in dlpoll() 420 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in dlioctl()
|
H A D | dhu.c | 343 (void)(*tp->t_linesw->l_modem)(tp, 1); in dhurint() 346 (*tp->t_linesw->l_modem)(tp, 0) == 0) in dhurint() 382 (*tp->t_linesw->l_rint)(cc, tp); in dhurint() 420 (*tp->t_linesw->l_start)(tp); in dhuxint() 487 return ((*tp->t_linesw->l_open)(dev, tp)); in dhuopen() 499 (*tp->t_linesw->l_close)(tp, flag); in dhuclose() 519 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in dhuread() 528 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in dhuwrite() 537 return ((*tp->t_linesw->l_poll)(tp, events, l)); in dhupoll() 550 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in dhuioctl()
|
/netbsd/sys/arch/sun3/dev/ |
H A D | kd.c | 191 return ((*tp->t_linesw->l_open)(dev, tp)); in kdopen() 208 (*tp->t_linesw->l_close)(tp, flag); in kdclose() 224 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in kdread() 236 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in kdwrite() 248 return ((*tp->t_linesw->l_poll)(tp, events, l)); in kdpoll() 261 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in kdioctl() 343 (*tp->t_linesw->l_start)(tp); in kd_later() 418 (*tp->t_linesw->l_rint)(c, tp); in kd_cons_input()
|
/netbsd/sys/dev/ofw/ |
H A D | ofcons.c | 157 return (*tp->t_linesw->l_open)(dev, tp); in ofcons_open() 168 (*tp->t_linesw->l_close)(tp, flag); in ofcons_close() 179 return (*tp->t_linesw->l_read)(tp, uio, flag); in ofcons_read() 188 return (*tp->t_linesw->l_write)(tp, uio, flag); in ofcons_write() 197 return ((*tp->t_linesw->l_poll)(tp, events, l)); in ofcons_poll() 206 if ((error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l)) != EPASSTHROUGH) in ofcons_ioctl() 261 (*tp->t_linesw->l_rint)(ch, tp); in ofcons_pollin()
|
/netbsd/sys/arch/mips/adm5120/dev/ |
H A D | uart.c | 226 error = (*tp->t_linesw->l_open)(dev, tp); in uart_open() 237 (*tp->t_linesw->l_close)(tp, flag); in uart_close() 249 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in uart_read() 258 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in uart_write() 267 return ((*tp->t_linesw->l_poll)(tp, events, l)); in uart_poll() 277 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in uart_ioctl() 347 (*tp->t_linesw->l_rint)(c, tp); in uart_intr()
|
/netbsd/sys/arch/sparc/dev/ |
H A D | kd.c | 246 return ((*tp->t_linesw->l_open)(dev, tp)); in kdopen() 263 (*tp->t_linesw->l_close)(tp, flag); in kdclose() 281 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in kdread() 293 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in kdwrite() 305 return ((*tp->t_linesw->l_poll)(tp, events, l)); in kdpoll() 318 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in kdioctl() 386 (*tp->t_linesw->l_start)(tp); in kd_later() 432 (*tp->t_linesw->l_rint)(c, tp); in kd_cons_input()
|
/netbsd/sys/arch/amiga/dev/ |
H A D | ser.c | 360 error = tp->t_linesw->l_open(dev, tp); in seropen() 388 tp->t_linesw->l_close(tp, flag); in serclose() 445 return ser_tty->t_linesw->l_read(ser_tty, uio, flag); in serread() 453 return ser_tty->t_linesw->l_write(ser_tty, uio, flag); in serwrite() 461 return ser_tty->t_linesw->l_poll(ser_tty, events, l); in serpoll() 627 tp->t_linesw->l_rint(c, tp); in sereint() 667 tp->t_linesw->l_modem(tp, ISDCD(stat)); in sermint() 702 error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l); in serioctl() 818 (void)tp->t_linesw->l_modem(tp, ISDCD(last_ciab_pra)); in serparam() 887 if (tp->t_linesw) in ser_outintr() [all …]
|
H A D | msc.c | 477 return tp->t_linesw->l_open(dev, tp); in mscopen() 503 tp->t_linesw->l_close(tp, flag); in mscclose() 528 return tp->t_linesw->l_read(tp, uio, flag); in mscread() 542 return tp->t_linesw->l_write(tp, uio, flag); in mscwrite() 555 return ((*tp->t_linesw->l_poll)(tp, events, l)); in mscpoll() 621 if (tp->t_linesw->l_modem(tp, 0) == 0) { in mscmint() 640 tp->t_linesw->l_modem(tp, 1); in mscmint() 686 tp->t_linesw->l_rint(TTY_FE, tp); in mscmint() 699 tp->t_linesw->l_rint((int)ibuf[bufpos++], tp); in mscmint() 722 if (tp->t_linesw) in mscmint() [all …]
|
H A D | mfc.c | 582 return tp->t_linesw->l_open(dev, tp); in mfcsopen() 597 tp->t_linesw->l_close(tp, flag); in mfcsclose() 634 return tp->t_linesw->l_read(tp, uio, flag); in mfcsread() 645 return tp->t_linesw->l_write(tp, uio, flag); in mfcswrite() 656 return ((*tp->t_linesw->l_poll)(tp, events, l)); in mfcspoll() 678 error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l); in mfcsioctl() 1123 tp->t_linesw->l_rint(c, tp); in mfcseint() 1165 tp->t_linesw->l_modem(tp, 1); in mfcsmint() 1166 else if (tp->t_linesw->l_modem(tp, 0) == 0) { in mfcsmint() 1178 if (tp->t_linesw) in mfcs_intr_soft() [all …]
|
/netbsd/sys/dev/dec/ |
H A D | dz.c | 299 (*tp->t_linesw->l_rint)(cc, tp); in dzrint() 365 (*tp->t_linesw->l_start)(tp); in dzxint() 422 return ((*tp->t_linesw->l_open)(dev, tp)); in dzopen() 433 (*tp->t_linesw->l_close)(tp, flag); in dzclose() 451 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in dzread() 460 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in dzwrite() 469 return ((*tp->t_linesw->l_poll)(tp, events, l)); in dzpoll() 481 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in dzioctl() 723 (*tp->t_linesw->l_modem) (tp, 1); in dzscan() 725 (*tp->t_linesw->l_modem)(tp, 0) == 0) { in dzscan()
|
/netbsd/sys/arch/evbppc/virtex/dev/ |
H A D | xlcom.c | 263 (tp->t_linesw->l_start)(tp); in xlcom_tx_soft() 280 rint = tp->t_linesw->l_rint; in xlcom_rx_soft() 446 error = (tp->t_linesw->l_open)(dev, tp); in xlcom_open() 470 return (tp->t_linesw->l_read)(tp, uio, flag); in xlcom_read() 484 return (tp->t_linesw->l_write)(tp, uio, flag); in xlcom_write() 498 return (tp->t_linesw->l_poll)(tp, events, l); in xlcom_poll() 527 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in xlcom_ioctl() 551 (tp->t_linesw->l_close)(tp, flag); in xlcom_close()
|
/netbsd/sys/arch/arm/amlogic/ |
H A D | meson_uart.c | 328 return tp->t_linesw->l_open(dev, tp); in meson_uart_open() 339 tp->t_linesw->l_close(tp, flag); in meson_uart_close() 358 return tp->t_linesw->l_read(tp, uio, flag); in meson_uart_read() 368 return tp->t_linesw->l_write(tp, uio, flag); in meson_uart_write() 378 return tp->t_linesw->l_poll(tp, events, l); in meson_uart_poll() 389 error = tp->t_linesw->l_ioctl(tp, cmd, data, flag, l); in meson_uart_ioctl() 506 if (tp->t_linesw->l_rint(c & 0xff, tp) == -1) in meson_uart_rxsoft()
|
/netbsd/sys/arch/xen/xen/ |
H A D | xencons.c | 285 return ((*tp->t_linesw->l_open)(dev, tp)); in xencons_open() 297 (*tp->t_linesw->l_close)(tp, flag); in xencons_close() 312 return ((*tp->t_linesw->l_read)(tp, uio, flag)); in xencons_read() 322 return ((*tp->t_linesw->l_write)(tp, uio, flag)); in xencons_write() 332 return ((*tp->t_linesw->l_poll)(tp, events, l)); in xencons_poll() 353 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in xencons_ioctl() 503 (*tp->t_linesw->l_rint)(buf[i], tp); in xencons_tty_input()
|
/netbsd/sys/arch/emips/ebus/ |
H A D | dz_ebus.c | 182 return (*tp->t_linesw->l_open)(dev, tp); in dzopen() 198 (*tp->t_linesw->l_close)(tp, flag); in dzclose() 219 return (*tp->t_linesw->l_read)(tp, uio, flag); in dzread() 231 return (*tp->t_linesw->l_write)(tp, uio, flag); in dzwrite() 248 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in dzioctl() 327 return (*tp->t_linesw->l_poll)(tp, events, l); in dzpoll() 560 (*tp->t_linesw->l_rint)(cc, tp); in dzrint() 596 (*tp->t_linesw->l_start)(tp); in dzxint()
|
/netbsd/sys/arch/arm/clps711x/ |
H A D | clpscom.c | 411 (*tp->t_linesw->l_start)(tp); in clpscom_soft() 550 (*tp->t_linesw->l_modem)(tp, ISSET(sc->sc_ms, SYSFLG_DCD)); in clpscom_param() 654 error = (*tp->t_linesw->l_open)(dev, tp); in clpscomopen() 688 (*tp->t_linesw->l_close)(tp, flag); in clpscomclose() 721 return (*tp->t_linesw->l_read)(tp, uio, flag); in clpscomread() 734 return (*tp->t_linesw->l_write)(tp, uio, flag); in clpscomwrite() 748 error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l); in clpscomioctl() 808 return (*tp->t_linesw->l_poll)(tp, events, l); in clpscompoll() 925 if ((*tp->t_linesw->l_rint)(code, tp) == -1) { in clpscom_rxsoft() 991 (void) (*tp->t_linesw->l_modem)(tp, ISSET(ms, SYSFLG_DCD)); in clpscom_mssoft() [all …]
|