Searched refs:sc_state (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-11.0-release/sys/pc98/cbus/
H A Dolpt.c146 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 Dg_keyboard.c118 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 Dg_audio.c83 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 Dlpt.c111 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 Dcudavar.h88 volatile int sc_state; member in struct:cuda_softc
H A Dcuda.c183 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 Dsubr_log.c88 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 Dncr53c9x.c380 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 Dncr53c9xvar.h344 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 Duled.c69 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 Dpl050.c121 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 Duart_kbd_sun.c85 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 Dadb_kbd.c74 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 Dchrome_kb.c117 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 Dg_raid3.c708 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 Dip_carp.c111 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 Dgpiokeys.c131 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 Datp.c670 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 Dukbd.c199 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 Dwsp.c543 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 Dif_urtwvar.h112 enum ieee80211_state sc_state; member in struct:urtw_softc
H A Dif_upgtvar.h435 enum ieee80211_state sc_state; member in struct:upgt_softc
/freebsd-11.0-release/sys/geom/mirror/
H A Dg_mirror.c1120 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 Dg_mirror.h173 u_int sc_state; /* Device state. */ member in struct:g_mirror_softc
/freebsd-11.0-release/sys/dev/iir/
H A Diir.c190 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...]

Completed in 218 milliseconds

12