| /netbsd-src/sys/arch/macppc/dev/ |
| H A D | snapper.c | 71 int sc_mode; member 732 sc->sc_mode = SNAPPER_IS_TAS3004; in snapper_attach() 735 sc->sc_mode = SNAPPER_IS_TAS3001; in snapper_attach() 870 sc->sc_mode = SNAPPER_SWVOL; in snapper_defer() 880 sc->sc_mode = SNAPPER_IS_TAS3001; in snapper_defer() 884 sc->sc_mode = SNAPPER_IS_TAS3004; in snapper_defer() 888 sc->sc_mode = SNAPPER_IS_PCM3052; in snapper_defer() 893 sc->sc_mode = SNAPPER_IS_TAS3004; in snapper_defer() 895 sc->sc_mode = SNAPPER_IS_PCM3052; in snapper_defer() 897 sc->sc_mode = SNAPPER_IS_CS8416; in snapper_defer() [all …]
|
| H A D | ofb.c | 77 int sc_node, sc_ih, sc_mode; member 177 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in ofbattach() 296 if (new_mode != sc->sc_mode) in ofb_ioctl() 298 sc->sc_mode = new_mode; in ofb_ioctl()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | arcofi.c | 321 KASSERT(sc->sc_mode == 0); in arcofi_open() 515 device_xname(sc->sc_dev), __func__, sc->sc_mode); in arcofi_start_input() 519 if (sc->sc_mode == 0) in arcofi_start_input() 522 sc->sc_mode |= AUMODE_RECORD; in arcofi_start_input() 544 device_xname(sc->sc_dev), __func__, sc->sc_mode); in arcofi_start_output() 548 if (sc->sc_mode == 0) in arcofi_start_output() 551 sc->sc_mode |= AUMODE_PLAY; in arcofi_start_output() 575 device_xname(sc->sc_dev), __func__, sc->sc_mode); in arcofi_halt_input() 582 sc->sc_mode &= ~AUMODE_RECORD; in arcofi_halt_input() 583 if (sc->sc_mode == 0) in arcofi_halt_input() [all …]
|
| H A D | ct65550.c | 202 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in chipsfb_do_attach() 416 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in chipsfb_cursor() 454 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in chipsfb_copycols() 473 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in chipsfb_erasecols() 492 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in chipsfb_copyrows() 510 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in chipsfb_eraserows() 612 if (__predict_false((sc->sc_mode != WSDISPLAYIO_MODE_EMUL))) in chipsfb_putchar_aa() 722 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in chipsfb_putchar() 876 if (new_mode != sc->sc_mode) { in chipsfb_ioctl() 877 sc->sc_mode = new_mode; in chipsfb_ioctl()
|
| /netbsd-src/sys/dev/bluetooth/ |
| H A D | bthidev.c | 79 struct sockopt sc_mode; /* link mode sockopt */ member 211 sockopt_init(&sc->sc_mode, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in bthidev_attach() 233 sockopt_setint(&sc->sc_mode, L2CAP_LM_AUTH); in bthidev_attach() 235 sockopt_setint(&sc->sc_mode, L2CAP_LM_ENCRYPT); in bthidev_attach() 237 sockopt_setint(&sc->sc_mode, L2CAP_LM_SECURE); in bthidev_attach() 246 sockopt_setint(&sc->sc_mode, 0); in bthidev_attach() 413 sockopt_destroy(&sc->sc_mode); in bthidev_detach() 508 err = l2cap_setopt(sc->sc_ctl_l, &sc->sc_mode); in bthidev_listen() 528 err = l2cap_setopt(sc->sc_int_l, &sc->sc_mode); in bthidev_listen() 567 err = l2cap_setopt(sc->sc_ctl, &sc->sc_mode); in bthidev_connect() [all …]
|
| H A D | btmagic.c | 132 struct sockopt sc_mode; /* link mode */ member 308 sockopt_init(&sc->sc_mode, BTPROTO_L2CAP, SO_L2CAP_LM, 0); in btmagic_attach() 322 sockopt_setint(&sc->sc_mode, L2CAP_LM_AUTH); in btmagic_attach() 324 sockopt_setint(&sc->sc_mode, L2CAP_LM_ENCRYPT); in btmagic_attach() 326 sockopt_setint(&sc->sc_mode, L2CAP_LM_SECURE); in btmagic_attach() 335 sockopt_setint(&sc->sc_mode, 0); in btmagic_attach() 470 sockopt_destroy(&sc->sc_mode); in btmagic_detach() 505 err = l2cap_setopt(sc->sc_ctl_l, &sc->sc_mode); in btmagic_listen() 525 err = l2cap_setopt(sc->sc_int_l, &sc->sc_mode); in btmagic_listen() 564 err = l2cap_setopt(sc->sc_ctl, &sc->sc_mode); in btmagic_connect() [all …]
|
| /netbsd-src/sys/arch/arm/ti/ |
| H A D | ti_motg.c | 140 sc->sc_motg.sc_mode = MOTG_MODE_DEVICE; in ti_motg_attach() 142 sc->sc_motg.sc_mode = MOTG_MODE_HOST; in ti_motg_attach() 148 sc->sc_motg.sc_mode = MOTG_MODE_HOST; in ti_motg_attach() 150 if (sc->sc_motg.sc_mode == MOTG_MODE_HOST) { in ti_motg_attach()
|
| /netbsd-src/sys/arch/amiga/dev/ |
| H A D | mntva.c | 204 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in mntva_attach() 397 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in mntva_copyrows() 419 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in mntva_eraserows() 446 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in mntva_copycols() 469 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in mntva_erasecols() 520 if (new_mode != sc->sc_mode) { in mntva_ioctl() 521 sc->sc_mode = new_mode; in mntva_ioctl() 558 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) {
|
| /netbsd-src/sys/dev/sun/ |
| H A D | cgsixvar.h | 76 int sc_mode; member 86 (sc->sc_mode == WSDISPLAYIO_MODE_EMUL))
|
| H A D | bwtwo.c | 282 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in bwtwoattach() 427 if (new_mode != sc->sc_mode) in bwtwo_ioctl() 429 sc->sc_mode = new_mode; in bwtwo_ioctl()
|
| /netbsd-src/sys/arch/sparc64/dev/ |
| H A D | gfb.c | 74 int sc_mode; member 161 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in gfb_attach() 182 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in gfb_attach() 297 if (new_mode != sc->sc_mode) { in gfb_ioctl() 298 sc->sc_mode = new_mode; in gfb_ioctl()
|
| H A D | ffb.c | 230 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in ffb_attach() 458 if (sc->sc_mode != *(u_int *)data) { in ffb_ioctl() 459 sc->sc_mode = *(u_int *)data; in ffb_ioctl() 460 if ((sc->sc_mode == WSDISPLAYIO_MODE_EMUL) && in ffb_ioctl() 550 if ((sc->sc_mode == WSDISPLAYIO_MODE_EMUL) && in ffb_blank() 568 switch (sc->sc_mode) { in ffb_mmap() 883 if ((sc->sc_mode == WSDISPLAYIO_MODE_EMUL) && in ffbfb_close() 998 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in ffb_cursor() 1052 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in ffb_putchar_mono() 1143 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in ffb_putchar_aa()
|
| /netbsd-src/sys/arch/next68k/dev/ |
| H A D | nextdisplay.c | 263 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in nextdisplay_attach() 330 if (new_mode != sc->sc_mode) { in nextdisplay_ioctl() 331 sc->sc_mode = new_mode; in nextdisplay_ioctl() 356 switch (sc->sc_mode) { in nextdisplay_mmap()
|
| /netbsd-src/sys/arch/hppa/dev/ |
| H A D | hyperfb.c | 94 int sc_mode; 221 if ((sc->sc_mode != WSDISPLAYIO_MODE_EMUL) && sc->sc_24bit) { in hyperfb_wait() 402 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in hyperfb_attach() 585 if (new_mode != sc->sc_mode) { in hyperfb_ioctl() 586 sc->sc_mode = new_mode; in hyperfb_ioctl() 678 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) in hyperfb_putcmap() 1076 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in hyperfb_copycols() 1106 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in hyperfb_erasecols() 1185 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { 1213 if ((sc->sc_locked == 0) && (sc->sc_mode 98 int sc_mode; global() member [all...] |
| /netbsd-src/sys/arch/luna68k/dev/ |
| H A D | lunafb.c | 129 int sc_mode; member 217 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in omfbattach() 273 if (new_mode != sc->sc_mode) { in omfbioctl() 274 sc->sc_mode = new_mode; in omfbioctl() 303 switch (sc->sc_mode) { in omfbmmap()
|
| /netbsd-src/sys/dev/pci/ |
| H A D | r128fb.c | 86 int sc_mode; member 266 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in r128fb_attach() 410 if (new_mode != sc->sc_mode) { in r128fb_ioctl() 411 sc->sc_mode = new_mode; in r128fb_ioctl() 808 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in r128fb_cursor() 842 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in r128fb_putchar() 944 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in r128fb_putchar_aa() 1057 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in r128fb_copycols() 1075 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in r128fb_erasecols() 1094 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in r128fb_copyrows() [all …]
|
| H A D | sisfb.c | 97 int sc_mode; member 306 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in sisfb_attach() 418 sc->sc_mode = *(uint *)data; in sisfb_ioctl() 420 switch(sc->sc_mode) { in sisfb_ioctl() 431 aprint_debug("unknown mode %d\n", sc->sc_mode); in sisfb_ioctl() 436 *(uint *)data = sc->sc_mode; in sisfb_ioctl() 466 if (sc->sc_mode != WSDISPLAYIO_MODE_MAPPED) { in sisfb_mmap()
|
| H A D | gffb.c | 94 int sc_mode; member 276 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in gffb_attach() 453 if (new_mode != sc->sc_mode) { in gffb_ioctl() 454 sc->sc_mode = new_mode; in gffb_ioctl() 1076 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in gffb_cursor() 1109 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in gffb_putchar() 1160 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in gffb_copycols() 1178 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in gffb_erasecols() 1197 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in gffb_copyrows() 1215 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in gffb_eraserows()
|
| H A D | voodoofb.c | 113 int sc_mode; member 370 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in voodoofb_attach() 725 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in voodoofb_cursor() 764 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in voodoofb_putchar() 805 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in voodoofb_putchar_aa() 939 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in voodoofb_copycols() 958 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in voodoofb_erasecols() 977 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in voodoofb_copyrows() 995 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in voodoofb_eraserows() 1184 if (new_mode != sc->sc_mode) { in voodoofb_ioctl() [all …]
|
| H A D | pm3fb.c | 87 int sc_mode; member 294 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in pm3fb_attach() 385 if (new_mode != sc->sc_mode) { in pm3fb_ioctl() 386 sc->sc_mode = new_mode; in pm3fb_ioctl() 782 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in pm3fb_cursor() 813 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in pm3fb_putchar() 929 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in pm3fb_copycols() 947 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in pm3fb_erasecols() 966 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in pm3fb_copyrows() 984 if ((sc->sc_locked == 0) && (sc->sc_mode in pm3fb_eraserows() [all...] |
| /netbsd-src/sys/dev/pcmcia/ |
| H A D | if_ray.c | 182 uint8_t sc_mode; /* current operating mode SC_MODE_xx */ member 552 sc->sc_omode = sc->sc_mode = RAY_MODE_DEFAULT; in ray_attach() 589 if (sc->sc_mode == SC_MODE_ADHOC) in ray_attach() 1019 sc->sc_mode = SC_MODE_ADHOC; in ray_media_change() 1021 sc->sc_mode = SC_MODE_INFRA; in ray_media_change() 1022 if (sc->sc_mode != sc->sc_omode) in ray_media_change() 1040 if (sc->sc_mode == SC_MODE_ADHOC) in ray_media_status() 1167 if (sc->sc_mode == SC_MODE_ADHOC) { in ray_intr_start() 1532 if (sc->sc_mode == SC_MODE_ADHOC) { in ray_recv_auth() 1875 sc->sc_omode = sc->sc_mode; in ray_ccs_done() [all …]
|
| /netbsd-src/sys/dev/pci/voyager/ |
| H A D | voyagerfb.c | 94 int sc_mode; member 295 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in voyagerfb_attach() 418 if (new_mode != sc->sc_mode) { in voyagerfb_ioctl() 419 sc->sc_mode = new_mode; in voyagerfb_ioctl() 877 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in voyagerfb_cursor() 937 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in voyagerfb_putchar_mono() 999 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in voyagerfb_putchar_aa32() 1089 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in voyagerfb_putchar_aa8() 1192 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in voyagerfb_copycols() 1211 if ((sc->sc_locked == 0) && (sc->sc_mode == WSDISPLAYIO_MODE_EMUL)) { in voyagerfb_erasecols() [all …]
|
| /netbsd-src/sys/dev/ppbus/ |
| H A D | ppbus_base.c | 170 return (bus->sc_mode); in ppbus_get_mode() 181 if(bus->sc_mode == mode) in ppbus_set_mode() 191 else if(!(bus->sc_mode & (PPBUS_FAST | PPBUS_COMPATIBLE))) { in ppbus_set_mode() 199 bus->sc_mode = bus->ppbus_getmode(device_parent(dev)); in ppbus_set_mode()
|
| /netbsd-src/sys/arch/sparc/dev/ |
| H A D | cgfourteen.c | 501 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) in cgfourteenioctl() 524 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) { 528 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; 756 sc->sc_mode = WSDISPLAYIO_MODE_EMUL; in cg14_setup_wsdisplay() 996 if (new_mode != sc->sc_mode) { in cg14_ioctl() 997 sc->sc_mode = new_mode; in cg14_ioctl() 1570 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in cg14_putchar() 1660 if (sc->sc_mode == WSDISPLAYIO_MODE_EMUL) { in cg14_cursor() 1693 if (sc->sc_mode != WSDISPLAYIO_MODE_EMUL) in cg14_putchar_aa() 1804 if (sc->sc_mode in cg14_copycols() [all...] |
| /netbsd-src/sys/dev/dkwedge/ |
| H A D | dk.c | 131 int sc_mode; /* O&R: parent open mode */ member 1331 } else if (flags & ~sc->sc_mode & FWRITE) { in dkopen() 1341 KASSERT(sc->sc_mode != 0); in dkopen() 1342 KASSERTMSG(sc->sc_mode & FREAD, "%s: sc_mode=%x", in dkopen() 1343 device_xname(sc->sc_dev), sc->sc_mode); in dkopen() 1344 KASSERTMSG((flags & FWRITE) ? (sc->sc_mode & FWRITE) : 1, in dkopen() 1346 device_xname(sc->sc_dev), flags, sc->sc_mode); in dkopen() 1402 mode = nsc->sc_mode; in dkfirstopen() 1407 sc->sc_mode = mode; in dkfirstopen() 1424 const int mode = sc->sc_mode; in dklastclose() [all …]
|