Lines Matching refs:sc_state
100 int sc_state; member
198 sc->sc_state = 0; in oboe_attach()
263 sc->sc_state = 0; in oboe_open()
283 sc->sc_state |= OBOE_CLOSING; in oboe_close()
284 error = tsleep(&sc->sc_state, PZERO | PCATCH, "oboecl", hz/10); in oboe_close()
310 sc->sc_state |= OBOE_RSLP; in oboe_read()
315 sc->sc_state &= ~OBOE_RSLP; in oboe_read()
356 sc->sc_state |= OBOE_WSLP; in oboe_write()
361 sc->sc_state &= ~OBOE_WSLP; in oboe_write()
566 if (sc->sc_state & OBOE_RSLP) { in oboe_intr()
568 sc->sc_state &= ~OBOE_RSLP; in oboe_intr()
580 if ((sc->sc_state & OBOE_CLOSING) && sc->sc_txpending == 0) { in oboe_intr()
581 wakeup(&sc->sc_state); in oboe_intr()
585 if (sc->sc_state & OBOE_WSLP) { in oboe_intr()
587 sc->sc_state &= ~OBOE_WSLP; in oboe_intr()