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

12

/freebsd-11-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/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-stable/sys/arm/versatile/
H A Dpl050.c127 int sc_state; /* shift/lock key state */ member in struct:kmi_softc
351 sc->sc_state &= ~LOCK_MASK;
352 sc->sc_state |= KBD_LED_VAL(kbd);
379 /* NOTE: lock key state in "sc_state" won't be changed */
399 *(int *)arg = sc->sc_state & LOCK_MASK;
412 sc->sc_state &= ~LOCK_MASK;
413 sc->sc_state |= *(int *)arg;
501 sc->sc_state &= LOCK_MASK; /* preserve locking key state */
/freebsd-11-stable/sys/dev/hyperv/input/
H A Dhv_kbd.c323 sc->sc_state &= LOCK_MASK; /* preserve locking key state */
353 sc->sc_state &= ~LOCK_MASK;
354 sc->sc_state |= KBD_LED_VAL(kbd);
371 *(int *)arg = sc->sc_state & LOCK_MASK;
384 sc->sc_state &= ~LOCK_MASK;
385 sc->sc_state |= *(int *)arg;
398 /* NOTE: lock key state in "sc_state" won't be changed */
H A Dhv_kbdc.h86 int sc_state; member in struct:hv_kbd_sc_t
/freebsd-11-stable/sys/arm/samsung/exynos/
H A Dchrome_kb.c116 int sc_state; /* shift/lock key state */ member in struct:ckb_softc
220 sc->sc_state &= LOCK_MASK; /* preserve locking key state */
454 sc->sc_state &= ~LOCK_MASK;
455 sc->sc_state |= KBD_LED_VAL(kbd);
476 /* NOTE: lock key state in "sc_state" won't be changed */
497 *(int *)arg = sc->sc_state & LOCK_MASK;
504 sc->sc_state &= ~LOCK_MASK;
505 sc->sc_state |= *(int *)arg;
/freebsd-11-stable/sys/dev/adb/
H A Dadb_kbd.c74 int sc_state; member in struct:adb_kbd_softc
298 sc->sc_state = 0;
722 sc->sc_state &= ~LOCK_MASK;
723 sc->sc_state |= KBD_LED_VAL(kbd);
747 sc->sc_state &= ~LOCK_MASK;
748 sc->sc_state |= *(int *)data;
773 *(int *)data = sc->sc_state & LOCK_MASK;
/freebsd-11-stable/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-stable/sys/netinet/
H A Dip_carp.c111 enum { INIT = 0, BACKUP, MASTER } sc_state; member in struct:carp_softc
655 switch (sc->sc_state) {
749 if (sc->sc_state == MASTER) {
1014 return (sc->sc_state == MASTER);
1042 if (sc->sc_state == MASTER) {
1086 if (ifa->ifa_carp && ifa->ifa_carp->sc_state != MASTER)
1143 if (sc->sc_state == MASTER && !bcmp(dhost, LLADDR(&sc->sc_addr),
1163 if (sc->sc_state == BACKUP) {
1177 switch (sc->sc_state) {
1196 sc->sc_state
[all...]
/freebsd-11-stable/sys/dev/uart/
H A Duart_kbd_sun.c85 int sc_state; member in struct:sunkbd_softc
625 &sc->sc_state, &sc->sc_accents);
674 sc->sc_state &= ~LOCK_MASK;
675 sc->sc_state |= KBD_LED_VAL(kbd);
720 *(int *)data = sc->sc_state & LOCK_MASK;
733 sc->sc_state &= ~LOCK_MASK;
734 sc->sc_state |= *(int *)data;
770 sc->sc_state &= LOCK_MASK; /* Preserve locking key state. */
/freebsd-11-stable/sys/dev/gpio/
H A Dgpiokeys.c130 int sc_state; /* shift/lock key state */ member in struct:gpiokeys_softc
722 &sc->sc_state, &sc->sc_accents);
771 sc->sc_state &= ~LOCK_MASK;
772 sc->sc_state |= KBD_LED_VAL(kbd);
802 *(int *)arg = sc->sc_state & LOCK_MASK;
815 sc->sc_state &= ~LOCK_MASK;
816 sc->sc_state |= *(int *)arg;
890 sc->sc_state &= LOCK_MASK; /* preserve locking key state */
/freebsd-11-stable/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.c186 int sc_state; /* shift/lock key state */ member in struct:ukbd_softc
1166 * FIXME: set the initial value for lock keys in "sc_state"
1204 ukbd_ioctl(kbd, KDSETLED, (caddr_t)&sc->sc_state);
1705 &sc->sc_state, &sc->sc_accents);
1763 sc->sc_state &= ~LOCK_MASK;
1764 sc->sc_state |= KBD_LED_VAL(kbd);
1791 /* NOTE: lock key state in "sc_state" won't be changed */
1811 *(int *)arg = sc->sc_state & LOCK_MASK;
1824 sc->sc_state &= ~LOCK_MASK;
1825 sc->sc_state |
[all...]
H A Dwsp.c548 u_int sc_state; member in struct:wsp_softc
674 sc->sc_state |= WSP_ENABLED;
683 sc->sc_state &= ~WSP_ENABLED;
824 if (sc->sc_state & WSP_ENABLED)
1270 if (sc->sc_state & WSP_ENABLED)
/freebsd-11-stable/sys/dev/usb/wlan/
H A Dif_urtwvar.h112 enum ieee80211_state sc_state; member in struct:urtw_softc
/freebsd-11-stable/sys/geom/mirror/
H A Dg_mirror.c1131 KASSERT(sc != NULL && sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING,
2075 KASSERT(sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING,
2077 sc->sc_state));
2360 switch (sc->sc_state) {
2541 sc->sc_name, g_mirror_device_state2str(sc->sc_state),
2543 sc->sc_state = state;
2591 sc->sc_name, g_mirror_device_state2str(sc->sc_state)));
2650 if (sc->sc_state == G_MIRROR_DEVICE_STATE_STARTING)
2652 KASSERT(sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING,
2654 g_mirror_device_state2str(sc->sc_state),
[all...]
/freebsd-11-stable/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 165 milliseconds

12