Home
last modified time | relevance | path

Searched refs:sc_state (Results 1 – 25 of 30) sorted by relevance

12

/freebsd-13-stable/sys/dev/ppbus/
HDlpt.c111 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/
HDhidraw.c113 } 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 …]
HDhkbd.c180 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/
HDg_keyboard.c120 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 …]
HDg_audio.c83 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/
HDcuda.c190 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 …]
HDcudavar.h88 volatile int sc_state; member
/freebsd-13-stable/sys/dev/esp/
HDncr53c9x.c380 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 …]
HDncr53c9xvar.h345 uint8_t sc_state; /* State applicable to the adapter */ member
/freebsd-13-stable/sys/kern/
HDsubr_log.c88 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/
HDpl050.c124 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/
HDg_raid3.c708 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/
HDuled.c67 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/
HDhv_kbd.c535 &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()
HDhv_kbdc.h92 int sc_state; member
/freebsd-13-stable/sys/dev/adb/
HDadb_kbd.c76 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/
HDgpiokeys.c140 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/
HDip_carp.c109 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/
HDatp.c674 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 …]
HDwsp.c563 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()
HDukbd.c185 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/
HDg_mirror.c1184 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/
HDiir.c190 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/
HDif_urtwvar.h111 enum ieee80211_state sc_state; member
HDif_upgtvar.h434 enum ieee80211_state sc_state; member

12