Lines Matching refs:sc_state

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()
352 if (sc->sc_state.open) { in hidraw_open()
356 sc->sc_state.open = true; in hidraw_open()
362 sc->sc_state.open = false; in hidraw_open()
373 sc->sc_state.immed = false; in hidraw_open()
375 sc->sc_state.uhid = false; /* hidraw mode is default */ in hidraw_open()
376 sc->sc_state.quiet = false; in hidraw_open()
402 sc->sc_state.open = false; in hidraw_dtor()
426 if (sc->sc_state.immed) { in hidraw_read()
439 while (sc->sc_tail == sc->sc_head && !sc->sc_state.flush) { in hidraw_read()
444 sc->sc_state.aslp = true; in hidraw_read()
452 sc->sc_state.aslp = false; in hidraw_read()
458 length = min(uio->uio_resid, sc->sc_state.uhid ? in hidraw_read()
476 if (!sc->sc_state.uhid) in hidraw_read()
506 if (sc->sc_state.uhid) { in hidraw_write()
644 sc->sc_state.uhid = true; in hidraw_ioctl()
676 sc->sc_state.quiet = true; in hidraw_ioctl()
699 sc->sc_state.quiet = false; in hidraw_ioctl()
717 sc->sc_state.immed = true; in hidraw_ioctl()
721 sc->sc_state.immed = false; in hidraw_ioctl()
833 sc->sc_state.uhid = false; in hidraw_ioctl()
956 sc->sc_state.sel = true; in hidraw_poll()
1024 if (sc->sc_state.aslp) { in hidraw_notify()
1025 sc->sc_state.aslp = false; in hidraw_notify()
1029 if (sc->sc_state.sel) { in hidraw_notify()
1030 sc->sc_state.sel = false; in hidraw_notify()