| /freebsd-13-stable/sys/dev/ppbus/ |
| HD | lpt.c | 111 short sc_state; member 204 if (sc->sc_state & HAVEBUS) in lpt_request_ppbus() 209 sc->sc_state |= HAVEBUS; in lpt_request_ppbus() 221 if (sc->sc_state & HAVEBUS) { in lpt_release_ppbus() 224 sc->sc_state &= ~HAVEBUS; in lpt_release_ppbus() 453 if (sc->sc_state & OPEN) { in lptout() 459 sc->sc_state &= ~TOUT; in lptout() 461 if (sc->sc_state & EERROR) in lptout() 462 sc->sc_state &= ~EERROR; in lptout() 470 sc->sc_state &= ~OBUSY; in lptout() [all …]
|
| /freebsd-13-stable/sys/dev/hid/ |
| HD | hidraw.c | 113 } sc_state; member 282 if (sc->sc_state.quiet || next == sc->sc_head) in hidraw_intr() 306 sc->sc_state.flush = true; in hidraw_lock_queue() 308 while (sc->sc_state.lock && error == 0) { in hidraw_lock_queue() 310 if (flush && sc->sc_state.aslp) { in hidraw_lock_queue() 311 sc->sc_state.aslp = false; in hidraw_lock_queue() 320 sc->sc_state.flush = false; in hidraw_lock_queue() 322 sc->sc_state.lock = true; in hidraw_lock_queue() 332 KASSERT(sc->sc_state.lock, ("input buffer is not locked")); in hidraw_unlock_queue() 336 sc->sc_state.lock = false; in hidraw_unlock_queue() [all …]
|
| HD | 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() 1696 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in hkbd_clear_state()
|
| /freebsd-13-stable/sys/dev/usb/gadget/ |
| HD | g_keyboard.c | 120 int sc_state; member 332 if ((sc->sc_state < 0) || (sc->sc_state >= G_KEYBOARD_MAX_STRLEN)) in g_keyboard_intr_callback() 333 sc->sc_state = 0; in g_keyboard_intr_callback() 335 switch (sc->sc_state % 6) { in g_keyboard_intr_callback() 338 g_keyboard_get_keycode(sc, sc->sc_state + 0); in g_keyboard_intr_callback() 341 g_keyboard_get_keycode(sc, sc->sc_state + 1); in g_keyboard_intr_callback() 344 g_keyboard_get_keycode(sc, sc->sc_state + 2); in g_keyboard_intr_callback() 347 g_keyboard_get_keycode(sc, sc->sc_state + 3); in g_keyboard_intr_callback() 350 g_keyboard_get_keycode(sc, sc->sc_state + 4); in g_keyboard_intr_callback() 353 g_keyboard_get_keycode(sc, sc->sc_state + 5); in g_keyboard_intr_callback() [all …]
|
| HD | g_audio.c | 83 int sc_state; member 413 if ((sc->sc_state < 0) || (sc->sc_state >= sc->sc_pattern_len)) in g_audio_make_samples() 414 sc->sc_state = 0; in g_audio_make_samples() 417 j = (j * sc->sc_pattern[sc->sc_state]) >> 16; in g_audio_make_samples() 418 sc->sc_state++; in g_audio_make_samples()
|
| /freebsd-13-stable/sys/powerpc/powermac/ |
| HD | cuda.c | 190 sc->sc_state = CUDA_NOTREADY; in cuda_attach() 217 sc->sc_state = CUDA_IDLE; /* used by all types of hardware */ in cuda_attach() 369 if (sc->sc_state == CUDA_NOTREADY) in cuda_send() 430 if (sc->sc_state == CUDA_IDLE && !cuda_intr_state(sc)) { in cuda_send_outbound() 431 sc->sc_state = CUDA_OUT; in cuda_send_outbound() 510 if (sc->sc_state == CUDA_IDLE && !cuda_intr_state(sc) && in cuda_poll() 543 switch (sc->sc_state) { in cuda_intr() 558 sc->sc_state = CUDA_OUT; in cuda_intr() 572 sc->sc_state = CUDA_IN; in cuda_intr() 616 sc->sc_state = CUDA_IDLE; in cuda_intr() [all …]
|
| HD | cudavar.h | 88 volatile int sc_state; member
|
| /freebsd-13-stable/sys/dev/esp/ |
| HD | ncr53c9x.c | 380 sc->sc_state = 0; in ncr53c9x_attach() 569 sc->sc_state = NCR_CLEANING; in ncr53c9x_clear() 630 NCR_MISC(("[NCR_INIT(%d) %d] ", doreset, sc->sc_state)); in ncr53c9x_init() 632 if (sc->sc_state == 0) { in ncr53c9x_init() 659 if (sc->sc_state == 0) { in ncr53c9x_init() 685 sc->sc_state = NCR_SBR; in ncr53c9x_init() 690 sc->sc_state = NCR_IDLE; in ncr53c9x_init() 821 sc->sc_state = NCR_SELECTING; in ncr53c9x_select() 1127 if (sc->sc_state == NCR_IDLE) in ncr53c9x_action() 1257 if (sc->sc_state != NCR_IDLE) in ncr53c9x_sched() [all …]
|
| HD | ncr53c9xvar.h | 345 uint8_t sc_state; /* State applicable to the adapter */ member
|
| /freebsd-13-stable/sys/kern/ |
| HD | 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-13-stable/sys/arm/versatile/ |
| HD | pl050.c | 124 int sc_state; /* shift/lock key state */ member 348 sc->sc_state &= ~LOCK_MASK; in kmi_ioctl_locked() 349 sc->sc_state |= KBD_LED_VAL(kbd); in kmi_ioctl_locked() 396 *(int *)arg = sc->sc_state & LOCK_MASK; in kmi_ioctl_locked() 409 sc->sc_state &= ~LOCK_MASK; in kmi_ioctl_locked() 410 sc->sc_state |= *(int *)arg; in kmi_ioctl_locked() 498 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in kmi_clear_state()
|
| /freebsd-13-stable/sys/geom/raid3/ |
| HD | g_raid3.c | 708 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_write_metadata() 1162 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_gather() 1338 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_regular_request() 1430 KASSERT(sc != NULL && (sc->sc_state == G_RAID3_DEVICE_STATE_DEGRADED || in g_raid3_start() 1431 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE), in g_raid3_start() 1787 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_register_request() 1796 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_register_request() 2188 KASSERT(sc->sc_state == G_RAID3_DEVICE_STATE_DEGRADED, in g_raid3_sync_start() 2190 sc->sc_state)); in g_raid3_sync_start() 2192 sc->sc_name, sc->sc_state)); in g_raid3_sync_start() [all …]
|
| /freebsd-13-stable/sys/dev/usb/misc/ |
| HD | uled.c | 67 uint8_t sc_state; member 210 sc->sc_state |= ULED_ENABLED; in uled_enable() 226 if (sc->sc_state & ULED_ENABLED) in uled_open() 241 sc->sc_state &= ~ULED_ENABLED; in uled_close()
|
| /freebsd-13-stable/sys/dev/hyperv/input/ |
| HD | 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()
|
| HD | hv_kbdc.h | 92 int sc_state; member
|
| /freebsd-13-stable/sys/dev/adb/ |
| HD | adb_kbd.c | 76 int sc_state; member 299 sc->sc_state = 0; in adb_kbd_attach() 724 sc->sc_state &= ~LOCK_MASK; in akbd_ioctl() 725 sc->sc_state |= KBD_LED_VAL(kbd); in akbd_ioctl() 749 sc->sc_state &= ~LOCK_MASK; in akbd_ioctl() 750 sc->sc_state |= *(int *)data; in akbd_ioctl() 775 *(int *)data = sc->sc_state & LOCK_MASK; in akbd_ioctl()
|
| /freebsd-13-stable/sys/dev/gpio/ |
| HD | 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() 937 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in gpiokeys_clear_state()
|
| /freebsd-13-stable/sys/netinet/ |
| HD | ip_carp.c | 109 enum { INIT = 0, BACKUP, MASTER } sc_state; member 728 switch (sc->sc_state) { in carp_input_c() 824 if (sc->sc_state == MASTER) { in carp_send_ad_all() 1126 return (sc->sc_state == MASTER); in carp_master() 1156 if (sc->sc_state == MASTER) { in carp_iamatch() 1201 if (ifa->ifa_carp && ifa->ifa_carp->sc_state != MASTER) in carp_iamatch6() 1255 if (sc->sc_state == MASTER && !bcmp(dhost, LLADDR(&sc->sc_addr), in carp_forus() 1277 if (sc->sc_state == BACKUP) { in carp_master_down() 1293 switch (sc->sc_state) { in carp_master_down_locked() 1312 sc->sc_state ? "MASTER" : "INIT"); in carp_master_down_locked() [all …]
|
| /freebsd-13-stable/sys/dev/usb/input/ |
| HD | 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() 977 sc->sc_state &= ~(ATP_ENABLED | ATP_VALID); in atp_disable() 1005 ((sc->sc_state & ATP_VALID) == 0)) { in fg_interpret_sensor_data() 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() [all …]
|
| HD | 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()
|
| HD | 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() 1918 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in ukbd_clear_state()
|
| /freebsd-13-stable/sys/geom/mirror/ |
| HD | g_mirror.c | 1184 KASSERT(sc != NULL && sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, in g_mirror_start() 2133 KASSERT(sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, in g_mirror_sync_start() 2135 sc->sc_state)); in g_mirror_sync_start() 2431 switch (sc->sc_state) { in g_mirror_update_device() 2632 sc->sc_name, g_mirror_device_state2str(sc->sc_state), in g_mirror_update_device() 2634 sc->sc_state = state; in g_mirror_update_device() 2682 sc->sc_name, g_mirror_device_state2str(sc->sc_state))); in g_mirror_update_device() 2741 if (sc->sc_state == G_MIRROR_DEVICE_STATE_STARTING) in g_mirror_update_disk() 2743 KASSERT(sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, in g_mirror_update_disk() 2745 g_mirror_device_state2str(sc->sc_state), in g_mirror_update_disk() [all …]
|
| /freebsd-13-stable/sys/dev/iir/ |
| HD | iir.c | 190 gdt->sc_state = GDT_POLLING; in iir_init() 537 gdt->sc_state = GDT_NORMAL; in iir_attach() 571 gdt->sc_state |= GDT_POLL_WAIT; in gdt_wait() 579 gdt->sc_state &= ~GDT_POLL_WAIT; in gdt_wait() 683 if (gdt->sc_state & GDT_SHUTDOWN) in gdt_free_ccb() 705 if (!(gdt->sc_state & GDT_POLLING)) { in gdt_next() 784 if ((gdt->sc_state & GDT_POLLING) || !next_cmd) in gdt_next() 790 if ((gdt->sc_state & GDT_POLLING) && gdt->sc_cmd_cnt > 0) { in gdt_next() 901 if ((gdt->sc_state & GDT_SHUTDOWN) && opcode == GDT_WRITE) in gdt_cache_cmd() 1436 gdt->sc_state = GDT_SHUTDOWN; in iir_shutdown() [all …]
|
| /freebsd-13-stable/sys/dev/usb/wlan/ |
| HD | if_urtwvar.h | 111 enum ieee80211_state sc_state; member
|
| HD | if_upgtvar.h | 434 enum ieee80211_state sc_state; member
|