Home
last modified time | relevance | path

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

12

/freebsd-11-stable/sys/dev/ppbus/
HDlpt.c111 short sc_state; member
206 if (sc->sc_state & HAVEBUS) in lpt_request_ppbus()
211 sc->sc_state |= HAVEBUS; in lpt_request_ppbus()
223 if (sc->sc_state & HAVEBUS) { in lpt_release_ppbus()
226 sc->sc_state &= ~HAVEBUS; in lpt_release_ppbus()
455 if (sc->sc_state & OPEN) { in lptout()
461 sc->sc_state &= ~TOUT; in lptout()
463 if (sc->sc_state & EERROR) in lptout()
464 sc->sc_state &= ~EERROR; in lptout()
472 sc->sc_state &= ~OBUSY; in lptout()
[all …]
/freebsd-11-stable/sys/pc98/cbus/
HDolpt.c146 short sc_state; member
389 if (sc->sc_state) { in lptopen()
390 lprintf(("lp: still open %x\n", sc->sc_state)); in lptopen()
393 sc->sc_state |= INIT; in lptopen()
399 sc->sc_state = OPEN; in lptopen()
414 sc->sc_state = OPEN; in lptopen()
422 sc->sc_state |= TOUT; in lptopen()
438 if (sc->sc_state & OPEN) { in lptout()
444 sc->sc_state &= ~TOUT; in lptout()
446 if (sc->sc_state & ERROR) in lptout()
[all …]
/freebsd-11-stable/sys/dev/usb/gadget/
HDg_keyboard.c118 int sc_state; member
331 if ((sc->sc_state < 0) || (sc->sc_state >= G_KEYBOARD_MAX_STRLEN)) in g_keyboard_intr_callback()
332 sc->sc_state = 0; in g_keyboard_intr_callback()
334 switch (sc->sc_state % 6) { in g_keyboard_intr_callback()
337 g_keyboard_get_keycode(sc, sc->sc_state + 0); in g_keyboard_intr_callback()
340 g_keyboard_get_keycode(sc, sc->sc_state + 1); in g_keyboard_intr_callback()
343 g_keyboard_get_keycode(sc, sc->sc_state + 2); in g_keyboard_intr_callback()
346 g_keyboard_get_keycode(sc, sc->sc_state + 3); in g_keyboard_intr_callback()
349 g_keyboard_get_keycode(sc, sc->sc_state + 4); in g_keyboard_intr_callback()
352 g_keyboard_get_keycode(sc, sc->sc_state + 5); in g_keyboard_intr_callback()
[all …]
HDg_audio.c83 int sc_state; member
415 if ((sc->sc_state < 0) || (sc->sc_state >= sc->sc_pattern_len)) in g_audio_make_samples()
416 sc->sc_state = 0; in g_audio_make_samples()
419 j = (j * sc->sc_pattern[sc->sc_state]) >> 16; in g_audio_make_samples()
420 sc->sc_state++; in g_audio_make_samples()
/freebsd-11-stable/sys/powerpc/powermac/
HDcuda.c183 sc->sc_state = CUDA_NOTREADY; in cuda_attach()
210 sc->sc_state = CUDA_IDLE; /* used by all types of hardware */ in cuda_attach()
362 if (sc->sc_state == CUDA_NOTREADY) in cuda_send()
423 if (sc->sc_state == CUDA_IDLE && !cuda_intr_state(sc)) { in cuda_send_outbound()
424 sc->sc_state = CUDA_OUT; in cuda_send_outbound()
503 if (sc->sc_state == CUDA_IDLE && !cuda_intr_state(sc) && in cuda_poll()
536 switch (sc->sc_state) { in cuda_intr()
551 sc->sc_state = CUDA_OUT; in cuda_intr()
565 sc->sc_state = CUDA_IN; in cuda_intr()
609 sc->sc_state = CUDA_IDLE; in cuda_intr()
[all …]
HDcudavar.h88 volatile int sc_state; member
/freebsd-11-stable/sys/dev/esp/
HDncr53c9x.c380 sc->sc_state = 0; in ncr53c9x_attach()
568 sc->sc_state = NCR_CLEANING; in ncr53c9x_clear()
629 NCR_MISC(("[NCR_INIT(%d) %d] ", doreset, sc->sc_state)); in ncr53c9x_init()
631 if (sc->sc_state == 0) { in ncr53c9x_init()
658 if (sc->sc_state == 0) { in ncr53c9x_init()
684 sc->sc_state = NCR_SBR; in ncr53c9x_init()
689 sc->sc_state = NCR_IDLE; in ncr53c9x_init()
820 sc->sc_state = NCR_SELECTING; in ncr53c9x_select()
1126 if (sc->sc_state == NCR_IDLE) in ncr53c9x_action()
1256 if (sc->sc_state != NCR_IDLE) in ncr53c9x_sched()
[all …]
HDncr53c9xvar.h344 uint8_t sc_state; /* State applicable to the adapter */ member
/freebsd-11-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()
271 logsoftc.sc_state |= LOG_ASYNC; in logioctl()
273 logsoftc.sc_state &= ~LOG_ASYNC; in logioctl()
/freebsd-11-stable/sys/arm/versatile/
HDpl050.c127 int sc_state; /* shift/lock key state */ member
351 sc->sc_state &= ~LOCK_MASK; in kmi_ioctl_locked()
352 sc->sc_state |= KBD_LED_VAL(kbd); in kmi_ioctl_locked()
399 *(int *)arg = sc->sc_state & LOCK_MASK; in kmi_ioctl_locked()
412 sc->sc_state &= ~LOCK_MASK; in kmi_ioctl_locked()
413 sc->sc_state |= *(int *)arg; in kmi_ioctl_locked()
501 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in kmi_clear_state()
/freebsd-11-stable/sys/dev/hyperv/input/
HDhv_kbd.c323 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in hvkbd_clear_state()
353 sc->sc_state &= ~LOCK_MASK; in hvkbd_ioctl_locked()
354 sc->sc_state |= KBD_LED_VAL(kbd); in hvkbd_ioctl_locked()
371 *(int *)arg = sc->sc_state & LOCK_MASK; in hvkbd_ioctl_locked()
384 sc->sc_state &= ~LOCK_MASK; in hvkbd_ioctl_locked()
385 sc->sc_state |= *(int *)arg; in hvkbd_ioctl_locked()
HDhv_kbdc.h86 int sc_state; member
/freebsd-11-stable/sys/geom/raid3/
HDg_raid3.c708 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_write_metadata()
1167 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_gather()
1343 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_regular_request()
1435 KASSERT(sc != NULL && (sc->sc_state == G_RAID3_DEVICE_STATE_DEGRADED || in g_raid3_start()
1436 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE), in g_raid3_start()
1791 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_register_request()
1800 sc->sc_state == G_RAID3_DEVICE_STATE_COMPLETE) { in g_raid3_register_request()
2192 KASSERT(sc->sc_state == G_RAID3_DEVICE_STATE_DEGRADED, in g_raid3_sync_start()
2194 sc->sc_state)); in g_raid3_sync_start()
2196 sc->sc_name, sc->sc_state)); in g_raid3_sync_start()
[all …]
/freebsd-11-stable/sys/dev/usb/misc/
HDuled.c69 uint8_t sc_state; member
201 sc->sc_state |= ULED_ENABLED; in uled_enable()
217 if (sc->sc_state & ULED_ENABLED) in uled_open()
232 sc->sc_state &= ~ULED_ENABLED; in uled_close()
/freebsd-11-stable/sys/dev/uart/
HDuart_kbd_sun.c85 int sc_state; member
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/arm/samsung/exynos/
HDchrome_kb.c116 int sc_state; /* shift/lock key state */ member
220 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in ckb_clear_state()
454 sc->sc_state &= ~LOCK_MASK; in ckb_ioctl_locked()
455 sc->sc_state |= KBD_LED_VAL(kbd); in ckb_ioctl_locked()
497 *(int *)arg = sc->sc_state & LOCK_MASK; in ckb_ioctl_locked()
504 sc->sc_state &= ~LOCK_MASK; in ckb_ioctl_locked()
505 sc->sc_state |= *(int *)arg; in ckb_ioctl_locked()
/freebsd-11-stable/sys/dev/adb/
HDadb_kbd.c74 int sc_state; member
298 sc->sc_state = 0; in adb_kbd_attach()
722 sc->sc_state &= ~LOCK_MASK; in akbd_ioctl()
723 sc->sc_state |= KBD_LED_VAL(kbd); in akbd_ioctl()
747 sc->sc_state &= ~LOCK_MASK; in akbd_ioctl()
748 sc->sc_state |= *(int *)data; in akbd_ioctl()
773 *(int *)data = sc->sc_state & LOCK_MASK; in akbd_ioctl()
/freebsd-11-stable/sys/dev/gpio/
HDgpiokeys.c130 int sc_state; /* shift/lock key state */ member
722 &sc->sc_state, &sc->sc_accents); in gpiokeys_read_char_locked()
771 sc->sc_state &= ~LOCK_MASK; in gpiokeys_ioctl_locked()
772 sc->sc_state |= KBD_LED_VAL(kbd); in gpiokeys_ioctl_locked()
802 *(int *)arg = sc->sc_state & LOCK_MASK; in gpiokeys_ioctl_locked()
815 sc->sc_state &= ~LOCK_MASK; in gpiokeys_ioctl_locked()
816 sc->sc_state |= *(int *)arg; in gpiokeys_ioctl_locked()
890 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in gpiokeys_clear_state()
/freebsd-11-stable/sys/netinet/
HDip_carp.c111 enum { INIT = 0, BACKUP, MASTER } sc_state; member
655 switch (sc->sc_state) { in carp_input_c()
749 if (sc->sc_state == MASTER) { in carp_send_ad_all()
1014 return (sc->sc_state == MASTER); in carp_master()
1042 if (sc->sc_state == MASTER) { in carp_iamatch()
1086 if (ifa->ifa_carp && ifa->ifa_carp->sc_state != MASTER) in carp_iamatch6()
1143 if (sc->sc_state == MASTER && !bcmp(dhost, LLADDR(&sc->sc_addr), in carp_forus()
1163 if (sc->sc_state == BACKUP) { in carp_master_down()
1177 switch (sc->sc_state) { in carp_master_down_locked()
1196 sc->sc_state ? "MASTER" : "INIT"); in carp_master_down_locked()
[all …]
/freebsd-11-stable/sys/dev/usb/input/
HDatp.c670 u_int sc_state; member
957 if (sc->sc_state & ATP_ENABLED) in atp_enable()
965 sc->sc_state |= ATP_ENABLED; in atp_enable()
974 sc->sc_state &= ~(ATP_ENABLED | ATP_VALID); in atp_disable()
1002 ((sc->sc_state & ATP_VALID) == 0)) { in fg_interpret_sensor_data()
1008 sc->sc_state |= ATP_VALID; in fg_interpret_sensor_data()
1699 sc->sc_state &= ~ATP_DOUBLE_TAP_DRAG; in fg_add_stroke()
1796 sc->sc_state &= ~ATP_DOUBLE_TAP_DRAG; in wsp_add_stroke()
1975 sc->sc_state |= ATP_ZOMBIES_EXIST; in atp_terminate_stroke()
1985 sc->sc_state &= ~ATP_DOUBLE_TAP_DRAG; in atp_terminate_stroke()
[all …]
HDukbd.c186 int sc_state; /* shift/lock key state */ member
1204 ukbd_ioctl(kbd, KDSETLED, (caddr_t)&sc->sc_state); in ukbd_attach()
1705 &sc->sc_state, &sc->sc_accents); in ukbd_read_char_locked()
1763 sc->sc_state &= ~LOCK_MASK; in ukbd_ioctl_locked()
1764 sc->sc_state |= KBD_LED_VAL(kbd); in ukbd_ioctl_locked()
1811 *(int *)arg = sc->sc_state & LOCK_MASK; in ukbd_ioctl_locked()
1824 sc->sc_state &= ~LOCK_MASK; in ukbd_ioctl_locked()
1825 sc->sc_state |= *(int *)arg; in ukbd_ioctl_locked()
1921 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in ukbd_clear_state()
HDwsp.c548 u_int sc_state; member
674 sc->sc_state |= WSP_ENABLED; in wsp_enable()
683 sc->sc_state &= ~WSP_ENABLED; in wsp_disable()
824 if (sc->sc_state & WSP_ENABLED) in wsp_detach()
1270 if (sc->sc_state & WSP_ENABLED) in wsp_open()
/freebsd-11-stable/sys/geom/mirror/
HDg_mirror.c1131 KASSERT(sc != NULL && sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, in g_mirror_start()
2075 KASSERT(sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, in g_mirror_sync_start()
2077 sc->sc_state)); in g_mirror_sync_start()
2360 switch (sc->sc_state) { in g_mirror_update_device()
2541 sc->sc_name, g_mirror_device_state2str(sc->sc_state), in g_mirror_update_device()
2543 sc->sc_state = state; in g_mirror_update_device()
2591 sc->sc_name, g_mirror_device_state2str(sc->sc_state))); in g_mirror_update_device()
2650 if (sc->sc_state == G_MIRROR_DEVICE_STATE_STARTING) in g_mirror_update_disk()
2652 KASSERT(sc->sc_state == G_MIRROR_DEVICE_STATE_RUNNING, in g_mirror_update_disk()
2654 g_mirror_device_state2str(sc->sc_state), in g_mirror_update_disk()
[all …]
/freebsd-11-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-11-stable/sys/dev/usb/wlan/
HDif_urtwvar.h112 enum ieee80211_state sc_state; member

12