Lines Matching defs:swstate
1442 * devc->io_mutex protects: swstate, sw_*, swb_[iu]_idx.
1453 vwsnd_port_swstate_t swstate;
1745 rport->swstate = SW_RUN;
1773 wport->swstate = SW_RUN;
1805 aport->swstate = SW_INITIAL;
1833 * Also sets the ports' swstate to newstate.
1948 vwsnd_port_swstate_t swstate = wport->swstate;
1957 if (sw_avail && swstate == SW_RUN) {
1961 } else if (swstate == SW_INITIAL ||
1962 swstate == SW_OFF ||
1963 (swstate == SW_DRAIN &&
2073 vwsnd_port_swstate_t swstate = rport->swstate;
2081 if (swstate != SW_RUN) {
2144 DBGPV("swstate = %d\n", wport->swstate);
2145 if (wport->swstate == SW_RUN) {
2156 wport->swstate = SW_DRAIN;
2190 DBGPV("swstate = %d, hwstate = %d\n", wport->swstate, wport->hwstate);
2463 if (aport->swstate != SW_INITIAL) {
2464 DBGX("SNDCTL_DSP_SPEED failed: swstate = %d\n",
2465 aport->swstate);
2486 if (aport->swstate != SW_INITIAL)
2500 if (aport->swstate != SW_INITIAL)
2523 if (aport->swstate != SW_INITIAL)
2561 if (aport->swstate != SW_INITIAL)
2593 if (aport->swstate != SW_INITIAL) {
2594 DBGP("SETFMT failed, swstate = %d\n",
2595 aport->swstate);
2669 wport->swstate = SW_INITIAL;
2700 ASSERT(rport->swstate == SW_RUN);
2724 ASSERT(wport->swstate == SW_RUN);
2819 aport->swstate != SW_INITIAL)
2835 if (rport->swstate == SW_INITIAL)
2853 if (wport->swstate == SW_RUN)
2953 devc->rport.swstate = SW_INITIAL;
2965 devc->wport.swstate = SW_INITIAL;
3009 rport->swstate = SW_OFF;
3011 wport->swstate = SW_OFF;
3376 devc->rport.swstate = SW_OFF;
3382 devc->wport.swstate = SW_OFF;