/freebsd-11.0-release/sys/pc98/cbus/ |
H A D | olpt.c | 146 short sc_state; member in struct:lpt_softc 389 if (sc->sc_state) { 390 lprintf(("lp: still open %x\n", sc->sc_state)); 393 sc->sc_state |= INIT; 399 sc->sc_state = OPEN; 414 sc->sc_state = OPEN; 422 sc->sc_state |= TOUT; 438 if (sc->sc_state & OPEN) { 444 sc->sc_state &= ~TOUT; 446 if (sc->sc_state [all...] |
/freebsd-11.0-release/sys/dev/usb/gadget/ |
H A D | g_keyboard.c | 118 int sc_state; member in struct:g_keyboard_softc 331 if ((sc->sc_state < 0) || (sc->sc_state >= G_KEYBOARD_MAX_STRLEN)) 332 sc->sc_state = 0; 334 switch (sc->sc_state % 6) { 337 g_keyboard_get_keycode(sc, sc->sc_state + 0); 340 g_keyboard_get_keycode(sc, sc->sc_state + 1); 343 g_keyboard_get_keycode(sc, sc->sc_state + 2); 346 g_keyboard_get_keycode(sc, sc->sc_state + 3); 349 g_keyboard_get_keycode(sc, sc->sc_state [all...] |
H A D | g_audio.c | 83 int sc_state; member in struct:g_audio_softc 415 if ((sc->sc_state < 0) || (sc->sc_state >= sc->sc_pattern_len)) 416 sc->sc_state = 0; 419 j = (j * sc->sc_pattern[sc->sc_state]) >> 16; 420 sc->sc_state++;
|
/freebsd-11.0-release/sys/dev/ppbus/ |
H A D | lpt.c | 111 short sc_state; member in struct:lpt_data 206 if (sc->sc_state & HAVEBUS) 211 sc->sc_state |= HAVEBUS; 223 if (sc->sc_state & HAVEBUS) { 226 sc->sc_state &= ~HAVEBUS; 455 if (sc->sc_state & OPEN) { 461 sc->sc_state &= ~TOUT; 463 if (sc->sc_state & EERROR) 464 sc->sc_state &= ~EERROR; 472 sc->sc_state [all...] |
/freebsd-11.0-release/sys/powerpc/powermac/ |
H A D | cudavar.h | 88 volatile int sc_state; member in struct:cuda_softc
|
H A D | cuda.c | 183 sc->sc_state = CUDA_NOTREADY; 210 sc->sc_state = CUDA_IDLE; /* used by all types of hardware */ 362 if (sc->sc_state == CUDA_NOTREADY) 423 if (sc->sc_state == CUDA_IDLE && !cuda_intr_state(sc)) { 424 sc->sc_state = CUDA_OUT; 503 if (sc->sc_state == CUDA_IDLE && !cuda_intr_state(sc) && 536 switch (sc->sc_state) { 551 sc->sc_state = CUDA_OUT; 565 sc->sc_state = CUDA_IN; 609 sc->sc_state [all...] |
/freebsd-11.0-release/sys/kern/ |
H A D | subr_log.c | 88 int sc_state; /* see above for possibilities */ member in struct:logsoftc 137 logsoftc.sc_state = 0; 241 if ((logsoftc.sc_state & LOG_ASYNC) && logsoftc.sc_sigio != NULL) 271 logsoftc.sc_state |= LOG_ASYNC; 273 logsoftc.sc_state &= ~LOG_ASYNC;
|
/freebsd-11.0-release/sys/dev/esp/ |
H A D | ncr53c9x.c | 380 sc->sc_state = 0; 568 sc->sc_state = NCR_CLEANING; 629 NCR_MISC(("[NCR_INIT(%d) %d] ", doreset, sc->sc_state)); 631 if (sc->sc_state == 0) { 658 if (sc->sc_state == 0) { 684 sc->sc_state = NCR_SBR; 689 sc->sc_state = NCR_IDLE; 820 sc->sc_state = NCR_SELECTING; 1126 if (sc->sc_state == NCR_IDLE) 1256 if (sc->sc_state ! [all...] |
H A D | ncr53c9xvar.h | 344 uint8_t sc_state; /* State applicable to the adapter */ member in struct:ncr53c9x_softc 384 /* values for sc_state */
|
/freebsd-11.0-release/sys/dev/usb/misc/ |
H A D | uled.c | 69 uint8_t sc_state; member in struct:uled_softc 201 sc->sc_state |= ULED_ENABLED; 217 if (sc->sc_state & ULED_ENABLED) 232 sc->sc_state &= ~ULED_ENABLED;
|
/freebsd-11.0-release/sys/arm/versatile/ |
H A D | pl050.c | 121 int sc_state; /* shift/lock key state */ member in struct:kmi_softc 343 sc->sc_state &= ~LOCK_MASK; 344 sc->sc_state |= KBD_LED_VAL(kbd); 371 /* NOTE: lock key state in "sc_state" won't be changed */ 391 *(int *)arg = sc->sc_state & LOCK_MASK; 404 sc->sc_state &= ~LOCK_MASK; 405 sc->sc_state |= *(int *)arg; 494 sc->sc_state &= LOCK_MASK; /* preserve locking key state */
|
/freebsd-11.0-release/sys/dev/uart/ |
H A D | uart_kbd_sun.c | 85 int sc_state; member in struct:sunkbd_softc 626 &sc->sc_state, &sc->sc_accents); 675 sc->sc_state &= ~LOCK_MASK; 676 sc->sc_state |= KBD_LED_VAL(kbd); 721 *(int *)data = sc->sc_state & LOCK_MASK; 734 sc->sc_state &= ~LOCK_MASK; 735 sc->sc_state |= *(int *)data; 771 sc->sc_state &= LOCK_MASK; /* Preserve locking key state. */
|
/freebsd-11.0-release/sys/dev/adb/ |
H A D | adb_kbd.c | 74 int sc_state; member in struct:adb_kbd_softc 300 sc->sc_state = 0; 724 sc->sc_state &= ~LOCK_MASK; 725 sc->sc_state |= KBD_LED_VAL(kbd); 749 sc->sc_state &= ~LOCK_MASK; 750 sc->sc_state |= *(int *)data; 775 *(int *)data = sc->sc_state & LOCK_MASK;
|
/freebsd-11.0-release/sys/arm/samsung/exynos/ |
H A D | chrome_kb.c | 117 int sc_state; /* shift/lock key state */ member in struct:ckb_softc 221 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ 455 sc->sc_state &= ~LOCK_MASK; 456 sc->sc_state |= KBD_LED_VAL(kbd); 477 /* NOTE: lock key state in "sc_state" won't be changed */ 498 *(int *)arg = sc->sc_state & LOCK_MASK; 505 sc->sc_state &= ~LOCK_MASK; 506 sc->sc_state |= *(int *)arg;
|
/freebsd-11.0-release/sys/geom/raid3/ |
H A D | g_raid3.c | 708 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { 1167 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { 1343 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { 1435 KASSERT(sc != NULL && (sc->sc_state == G_RAID3_DEVICE_STATE_DEGRADED || 1436 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE), 1791 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { 1800 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { 2192 KASSERT(sc->sc_state == G_RAID3_DEVICE_STATE_DEGRADED, 2194 sc->sc_state)); 2196 sc->sc_name, sc->sc_state)); [all...] |
/freebsd-11.0-release/sys/netinet/ |
H A D | ip_carp.c | 111 enum { INIT = 0, BACKUP, MASTER } sc_state; member in struct:carp_softc 644 switch (sc->sc_state) { 738 if (sc->sc_state == MASTER) { 999 return (sc->sc_state == MASTER); 1027 if (sc->sc_state == MASTER) { 1071 if (ifa->ifa_carp && ifa->ifa_carp->sc_state != MASTER) 1125 if (sc->sc_state == MASTER && !bcmp(dhost, LLADDR(&sc->sc_addr), 1147 if (sc->sc_state == BACKUP) { 1161 switch (sc->sc_state) { 1180 sc->sc_state [all...] |
/freebsd-11.0-release/sys/dev/gpio/ |
H A D | gpiokeys.c | 131 int sc_state; /* shift/lock key state */ member in struct:gpiokeys_softc 723 &sc->sc_state, &sc->sc_accents); 772 sc->sc_state &= ~LOCK_MASK; 773 sc->sc_state |= KBD_LED_VAL(kbd); 803 *(int *)arg = sc->sc_state & LOCK_MASK; 816 sc->sc_state &= ~LOCK_MASK; 817 sc->sc_state |= *(int *)arg; 891 sc->sc_state &= LOCK_MASK; /* preserve locking key state */
|
/freebsd-11.0-release/sys/dev/usb/input/ |
H A D | atp.c | 670 u_int sc_state; member in struct:atp_softc 957 if (sc->sc_state & ATP_ENABLED) 965 sc->sc_state |= ATP_ENABLED; 974 sc->sc_state &= ~(ATP_ENABLED | ATP_VALID); 1002 ((sc->sc_state & ATP_VALID) == 0)) { 1008 sc->sc_state |= ATP_VALID; 1699 sc->sc_state &= ~ATP_DOUBLE_TAP_DRAG; 1796 sc->sc_state &= ~ATP_DOUBLE_TAP_DRAG; 1975 sc->sc_state |= ATP_ZOMBIES_EXIST; 1985 sc->sc_state [all...] |
H A D | ukbd.c | 199 int sc_state; /* shift/lock key state */ member in struct:ukbd_softc 1227 * FIXME: set the initial value for lock keys in "sc_state" 1265 ukbd_ioctl(kbd, KDSETLED, (caddr_t)&sc->sc_state); 1738 &sc->sc_state, &sc->sc_accents); 1796 sc->sc_state &= ~LOCK_MASK; 1797 sc->sc_state |= KBD_LED_VAL(kbd); 1824 /* NOTE: lock key state in "sc_state" won't be changed */ 1844 *(int *)arg = sc->sc_state & LOCK_MASK; 1857 sc->sc_state &= ~LOCK_MASK; 1858 sc->sc_state | [all...] |
H A D | wsp.c | 543 u_int sc_state; member in struct:wsp_softc 669 sc->sc_state |= WSP_ENABLED; 678 sc->sc_state &= ~WSP_ENABLED; 819 if (sc->sc_state & WSP_ENABLED) 1260 if (sc->sc_state & WSP_ENABLED)
|
/freebsd-11.0-release/sys/dev/usb/wlan/ |
H A D | if_urtwvar.h | 112 enum ieee80211_state sc_state; member in struct:urtw_softc
|
H A D | if_upgtvar.h | 435 enum ieee80211_state sc_state; member in struct:upgt_softc
|
/freebsd-11.0-release/sys/geom/mirror/ |
H A D | g_mirror.c | 1120 KASSERT(sc != NULL && sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, 1953 KASSERT(sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, 1955 sc->sc_state)); 2239 switch (sc->sc_state) { 2413 sc->sc_name, g_mirror_device_state2str(sc->sc_state), 2415 sc->sc_state = state; 2462 sc->sc_name, g_mirror_device_state2str(sc->sc_state))); 2519 if (sc->sc_state == G_MIRROR_DEVICE_STATE_STARTING) 2521 KASSERT(sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, 2523 g_mirror_device_state2str(sc->sc_state), [all...] |
H A D | g_mirror.h | 173 u_int sc_state; /* Device state. */ member in struct:g_mirror_softc
|
/freebsd-11.0-release/sys/dev/iir/ |
H A D | iir.c | 190 gdt->sc_state = GDT_POLLING; 537 gdt->sc_state = GDT_NORMAL; 571 gdt->sc_state |= GDT_POLL_WAIT; 579 gdt->sc_state &= ~GDT_POLL_WAIT; 683 if (gdt->sc_state & GDT_SHUTDOWN) 705 if (!(gdt->sc_state & GDT_POLLING)) { 784 if ((gdt->sc_state & GDT_POLLING) || !next_cmd) 790 if ((gdt->sc_state & GDT_POLLING) && gdt->sc_cmd_cnt > 0) { 901 if ((gdt->sc_state & GDT_SHUTDOWN) && opcode == GDT_WRITE) 1436 gdt->sc_state [all...] |