| /freebsd-14.2/sys/dev/ppbus/ |
| H A D | lpt.c | 111 short sc_state; member 494 if (sc->sc_state) { in lptopen() 496 sc->sc_state)); in lptopen() 506 sc->sc_state = OPEN; in lptopen() 514 sc->sc_state = 0; in lptopen() 548 sc->sc_state = 0; in lptopen() 557 sc->sc_state = 0; in lptopen() 578 sc->sc_state |= OPEN; in lptopen() 584 sc->sc_state |= TOUT; in lptopen() 640 sc->sc_state = 0; in lptclose() [all …]
|
| /freebsd-14.2/sys/dev/hid/ |
| H A D | hidraw.c | 113 } sc_state; member 322 sc->sc_state.lock = true; in hidraw_lock_queue() 336 sc->sc_state.lock = false; in hidraw_unlock_queue() 352 if (sc->sc_state.open) { in hidraw_open() 356 sc->sc_state.open = true; in hidraw_open() 402 sc->sc_state.open = false; in hidraw_dtor() 426 if (sc->sc_state.immed) { in hidraw_read() 476 if (!sc->sc_state.uhid) in hidraw_read() 506 if (sc->sc_state.uhid) { in hidraw_write() 981 if (sc->sc_state.aslp) { in hidraw_notify() [all …]
|
| H A D | hkbd.c | 180 int sc_state; /* shift/lock key state */ member 950 hkbd_ioctl(kbd, KDSETLED, (caddr_t)&sc->sc_state); in hkbd_attach() 1462 &sc->sc_state, &sc->sc_accents); in hkbd_read_char_locked() 1524 sc->sc_state &= ~LOCK_MASK; in hkbd_ioctl_locked() 1525 sc->sc_state |= KBD_LED_VAL(kbd); in hkbd_ioctl_locked() 1583 *(int *)arg = sc->sc_state & LOCK_MASK; in hkbd_ioctl_locked() 1596 sc->sc_state &= ~LOCK_MASK; in hkbd_ioctl_locked() 1597 sc->sc_state |= *(int *)arg; in hkbd_ioctl_locked() 1699 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in hkbd_clear_state()
|
| /freebsd-14.2/sys/dev/usb/gadget/ |
| H A D | g_keyboard.c | 120 int sc_state; member 330 if ((sc->sc_state < 0) || (sc->sc_state >= G_KEYBOARD_MAX_STRLEN)) in g_keyboard_intr_callback() 331 sc->sc_state = 0; in g_keyboard_intr_callback() 333 switch (sc->sc_state % 6) { in g_keyboard_intr_callback() 336 g_keyboard_get_keycode(sc, sc->sc_state + 0); in g_keyboard_intr_callback() 339 g_keyboard_get_keycode(sc, sc->sc_state + 1); in g_keyboard_intr_callback() 342 g_keyboard_get_keycode(sc, sc->sc_state + 2); in g_keyboard_intr_callback() 345 g_keyboard_get_keycode(sc, sc->sc_state + 3); in g_keyboard_intr_callback() 348 g_keyboard_get_keycode(sc, sc->sc_state + 4); in g_keyboard_intr_callback() 351 g_keyboard_get_keycode(sc, sc->sc_state + 5); in g_keyboard_intr_callback() [all …]
|
| H A D | g_audio.c | 83 int sc_state; member 411 if ((sc->sc_state < 0) || (sc->sc_state >= sc->sc_pattern_len)) in g_audio_make_samples() 412 sc->sc_state = 0; in g_audio_make_samples() 415 j = (j * sc->sc_pattern[sc->sc_state]) >> 16; in g_audio_make_samples() 416 sc->sc_state++; in g_audio_make_samples()
|
| /freebsd-14.2/sys/powerpc/powermac/ |
| H A D | cuda.c | 188 sc->sc_state = CUDA_NOTREADY; in cuda_attach() 367 if (sc->sc_state == CUDA_NOTREADY) in cuda_send() 429 sc->sc_state = CUDA_OUT; in cuda_send_outbound() 539 switch (sc->sc_state) { in cuda_intr() 554 sc->sc_state = CUDA_OUT; in cuda_intr() 568 sc->sc_state = CUDA_IN; in cuda_intr() 612 sc->sc_state = CUDA_IDLE; in cuda_intr() 622 sc->sc_state = CUDA_OUT; in cuda_intr() 634 sc->sc_state = CUDA_IDLE; in cuda_intr() 662 sc->sc_state = CUDA_IDLE; /* new state */ in cuda_intr() [all …]
|
| H A D | cudavar.h | 88 volatile int sc_state; member
|
| /freebsd-14.2/sys/kern/ |
| H A D | subr_log.c | 88 int sc_state; /* see above for possibilities */ member 137 logsoftc.sc_state = 0; in logclose() 241 if ((logsoftc.sc_state & LOG_ASYNC) && logsoftc.sc_sigio != NULL) in logtimeout() 270 logsoftc.sc_state |= LOG_ASYNC; in logioctl() 272 logsoftc.sc_state &= ~LOG_ASYNC; in logioctl()
|
| /freebsd-14.2/sys/geom/raid3/ |
| H A D | g_raid3.c | 2222 sc->sc_state)); in g_raid3_sync_start() 2224 sc->sc_name, sc->sc_state)); in g_raid3_sync_start() 2316 sc->sc_state)); in g_raid3_sync_stop() 2508 switch (sc->sc_state) { in g_raid3_update_device() 2633 sc->sc_state = state; in g_raid3_update_device() 2670 sc->sc_state = state; in g_raid3_update_device() 2703 sc->sc_state = state; in g_raid3_update_device() 2761 g_raid3_device_state2str(sc->sc_state), in g_raid3_update_disk() 2777 g_raid3_device_state2str(sc->sc_state), in g_raid3_update_disk() 2812 g_raid3_device_state2str(sc->sc_state), in g_raid3_update_disk() [all …]
|
| H A D | g_raid3.h | 179 u_int sc_state; /* Device state. */ member
|
| /freebsd-14.2/sys/dev/usb/misc/ |
| H A D | uled.c | 67 uint8_t sc_state; member 208 sc->sc_state |= ULED_ENABLED; in uled_enable() 224 if (sc->sc_state & ULED_ENABLED) in uled_open() 239 sc->sc_state &= ~ULED_ENABLED; in uled_close()
|
| /freebsd-14.2/sys/dev/hyperv/input/ |
| H A D | hv_kbd.c | 535 &sc->sc_state, &sc->sc_accents); in hvkbd_read_char_locked() 560 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in hvkbd_clear_state() 592 sc->sc_state &= ~LOCK_MASK; in hvkbd_ioctl_locked() 593 sc->sc_state |= KBD_LED_VAL(kbd); in hvkbd_ioctl_locked() 610 *(int *)arg = sc->sc_state & LOCK_MASK; in hvkbd_ioctl_locked() 623 sc->sc_state &= ~LOCK_MASK; in hvkbd_ioctl_locked() 624 sc->sc_state |= *(int *)arg; in hvkbd_ioctl_locked()
|
| H A D | hv_kbdc.h | 90 int sc_state; member
|
| /freebsd-14.2/sys/dev/adb/ |
| H A D | adb_kbd.c | 76 int sc_state; member 297 sc->sc_state = 0; in adb_kbd_attach() 714 sc->sc_state &= ~LOCK_MASK; in akbd_ioctl() 715 sc->sc_state |= KBD_LED_VAL(kbd); in akbd_ioctl() 739 sc->sc_state &= ~LOCK_MASK; in akbd_ioctl() 740 sc->sc_state |= *(int *)data; in akbd_ioctl() 765 *(int *)data = sc->sc_state & LOCK_MASK; in akbd_ioctl()
|
| /freebsd-14.2/sys/dev/gpio/ |
| H A D | gpiokeys.c | 140 int sc_state; /* shift/lock key state */ member 768 &sc->sc_state, &sc->sc_accents); in gpiokeys_read_char_locked() 817 sc->sc_state &= ~LOCK_MASK; in gpiokeys_ioctl_locked() 818 sc->sc_state |= KBD_LED_VAL(kbd); in gpiokeys_ioctl_locked() 848 *(int *)arg = sc->sc_state & LOCK_MASK; in gpiokeys_ioctl_locked() 861 sc->sc_state &= ~LOCK_MASK; in gpiokeys_ioctl_locked() 862 sc->sc_state |= *(int *)arg; in gpiokeys_ioctl_locked() 940 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in gpiokeys_clear_state()
|
| /freebsd-14.2/sys/netinet/ |
| H A D | ip_carp.c | 760 switch (sc->sc_state) { in carp_input_c() 856 if (sc->sc_state == MASTER) { in carp_send_ad_all() 1160 return (sc->sc_state == MASTER); in carp_master() 1190 if (sc->sc_state == MASTER) { in carp_iamatch() 1311 if (sc->sc_state == BACKUP) { in carp_master_down() 1327 switch (sc->sc_state) { in carp_master_down_locked() 1369 switch (sc->sc_state) { in carp_setrun() 1640 sc->sc_state = INIT; in carp_alloc() 1837 if (sc->sc_state != INIT && in carp_ioctl_set() 2110 if (sc->sc_state != state) { in carp_set_state() [all …]
|
| /freebsd-14.2/sys/dev/usb/input/ |
| H A D | atp.c | 674 u_int sc_state; member 960 if (sc->sc_state & ATP_ENABLED) in atp_enable() 968 sc->sc_state |= ATP_ENABLED; in atp_enable() 1011 sc->sc_state |= ATP_VALID; in fg_interpret_sensor_data() 1701 sc->sc_state &= ~ATP_DOUBLE_TAP_DRAG; in fg_add_stroke() 1798 sc->sc_state &= ~ATP_DOUBLE_TAP_DRAG; in wsp_add_stroke() 1977 sc->sc_state |= ATP_ZOMBIES_EXIST; in atp_terminate_stroke() 1987 sc->sc_state &= ~ATP_DOUBLE_TAP_DRAG; in atp_terminate_stroke() 2043 sc->sc_state &= ~ATP_ZOMBIES_EXIST; in atp_reap_sibling_zombies() 2284 sc->sc_state = 0; in atp_attach() [all …]
|
| H A D | wsp.c | 563 u_int sc_state; member 699 sc->sc_state |= WSP_ENABLED; in wsp_enable() 708 sc->sc_state &= ~WSP_ENABLED; in wsp_disable() 903 if (sc->sc_state & WSP_ENABLED) in wsp_detach() 1380 if ((sc->sc_state & WSP_EVDEV_OPENED) == 0) in wsp_open() 1399 if ((sc->sc_state & WSP_EVDEV_OPENED) == 0) in wsp_close() 1422 if ((sc->sc_state & WSP_EVDEV_OPENED) == 0) in wsp_fifo_stop_read() 1439 sc->sc_state |= WSP_EVDEV_OPENED; in wsp_ev_open() 1452 sc->sc_state &= ~WSP_EVDEV_OPENED; in wsp_ev_close()
|
| H A D | ukbd.c | 185 int sc_state; /* shift/lock key state */ member 1186 ukbd_ioctl(kbd, KDSETLED, (caddr_t)&sc->sc_state); in ukbd_attach() 1702 &sc->sc_state, &sc->sc_accents); in ukbd_read_char_locked() 1760 sc->sc_state &= ~LOCK_MASK; in ukbd_ioctl_locked() 1761 sc->sc_state |= KBD_LED_VAL(kbd); in ukbd_ioctl_locked() 1808 *(int *)arg = sc->sc_state & LOCK_MASK; in ukbd_ioctl_locked() 1821 sc->sc_state &= ~LOCK_MASK; in ukbd_ioctl_locked() 1822 sc->sc_state |= *(int *)arg; in ukbd_ioctl_locked() 1921 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in ukbd_clear_state()
|
| /freebsd-14.2/sys/geom/mirror/ |
| H A D | g_mirror.c | 2136 sc->sc_state)); in g_mirror_sync_start() 2432 switch (sc->sc_state) { in g_mirror_update_device() 2635 sc->sc_state = state; in g_mirror_update_device() 2746 g_mirror_device_state2str(sc->sc_state), in g_mirror_update_disk() 2761 g_mirror_device_state2str(sc->sc_state), in g_mirror_update_disk() 2795 g_mirror_device_state2str(sc->sc_state), in g_mirror_update_disk() 2804 g_mirror_device_state2str(sc->sc_state), in g_mirror_update_disk() 2826 g_mirror_device_state2str(sc->sc_state), in g_mirror_update_disk() 2873 g_mirror_device_state2str(sc->sc_state), in g_mirror_update_disk() 2975 md->md_genid, md->md_priority, sc->sc_state); in g_mirror_check_metadata() [all …]
|
| H A D | g_mirror.h | 171 u_int sc_state; /* Device state. */ member
|
| /freebsd-14.2/sys/dev/usb/wlan/ |
| H A D | if_urtwvar.h | 111 enum ieee80211_state sc_state; member
|
| H A D | if_upgtvar.h | 434 enum ieee80211_state sc_state; member
|
| H A D | if_upgt.c | 519 if (sc->sc_state != IEEE80211_S_RUN) { in upgt_set_led() 990 sc->sc_state = nstate; in upgt_newstate() 1000 (void)upgt_set_macfilter(sc, sc->sc_state); in upgt_newstate() 1012 upgt_set_macfilter(sc, sc->sc_state); in upgt_newstate()
|
| H A D | if_urtw.c | 1873 sc->sc_state = nstate; in urtw_newstate() 1985 if (sc->sc_state == IEEE80211_S_RUN) { in urtw_update_msr() 4350 if (sc->sc_state == IEEE80211_S_ASSOC && in urtw_updateslottask()
|