Lines Matching refs:sc_state
265 sc->sc_state |= SUNSCPAL_DOINGDMA;
270 __func__, sc->sc_state);
290 if (sc->sc_state & SUNSCPAL_ABORTING)
326 if ((sc->sc_state & SUNSCPAL_DOINGDMA) == 0) {
332 sc->sc_state &= ~SUNSCPAL_DOINGDMA;
361 sc->sc_state |= SUNSCPAL_ABORTING;
366 if (sc->sc_state & SUNSCPAL_ABORTING)
388 sc->sc_state |= SUNSCPAL_ABORTING;
512 sc->sc_state = SUNSCPAL_IDLE;
562 SUNSCPAL_TRACE("intr: top, state=%d\n", sc->sc_state);
564 if (sc->sc_state == SUNSCPAL_IDLE) {
587 if (sc->sc_state & SUNSCPAL_WORKING) {
598 if (sc->sc_state == SUNSCPAL_IDLE) {
629 sc->sc_state |= SUNSCPAL_ABORTING;
630 if ((sc->sc_state & SUNSCPAL_DOINGDMA) == 0) {
698 if (sc->sc_state == SUNSCPAL_IDLE) {
753 if (sc->sc_state != SUNSCPAL_IDLE) {
794 if (sc->sc_state == SUNSCPAL_IDLE) {
845 if (sc->sc_state == SUNSCPAL_IDLE)
869 if (sc->sc_state & SUNSCPAL_ABORTING) {
908 * Dequeue the finished command, but don't clear sc_state until
912 * Keeping sc->sc_state != idle terminates the recursion.
915 if ((sc->sc_state & SUNSCPAL_WORKING) == 0)
931 sc->sc_state = SUNSCPAL_IDLE;
939 * Busy (sc->sc_state != SUNSCPAL_IDLE)
961 if (sc->sc_state != SUNSCPAL_IDLE)
1010 sc->sc_state = SUNSCPAL_WORKING;
1019 sc->sc_state |= SUNSCPAL_ABORTING;
1079 sc->sc_state |= SUNSCPAL_ABORTING;
1160 if (sc->sc_state == SUNSCPAL_IDLE)
1309 sc->sc_state &= ~SUNSCPAL_DROP_MSGIN;
1350 sc->sc_state |= SUNSCPAL_DROP_MSGIN;
1354 if ((sc->sc_state & SUNSCPAL_DROP_MSGIN) == 0) {
1357 sc->sc_state |= SUNSCPAL_DROP_MSGIN;
1469 sc->sc_state |= SUNSCPAL_ABORTING;
1541 sc->sc_state |= SUNSCPAL_ABORTING;
1565 if (sc->sc_state & SUNSCPAL_ABORTING) {
1632 sc->sc_state |= SUNSCPAL_ABORTING;
1673 if (sc->sc_state == SUNSCPAL_IDLE)
1688 if ((sc->sc_state & SUNSCPAL_DOINGDMA) != 0) {
1713 if (sc->sc_state & SUNSCPAL_ABORTING) {
1721 sc->sc_state |= SUNSCPAL_ABORTING;
1762 sc->sc_state |= SUNSCPAL_ABORTING;
1785 sc->sc_state |= SUNSCPAL_ABORTING;
1795 if (sc->sc_state & SUNSCPAL_ABORTING) {
1806 /* XXX: sc->sc_state |= SUNSCPAL_ABORTING; */
1822 sc->sc_state |= SUNSCPAL_ABORTING;
1877 sc->sc_state = SUNSCPAL_IDLE;
2032 db_printf("sc_state=0x%x\n", sc->sc_state);
2201 if (sc->sc_state & SUNSCPAL_DOINGDMA)