Lines Matching refs:SCSTATE
60 #define SCSTATE ((struct sc_state_sbc *)(&sm->hw)) macro
274 write_dsp(dev, SCSTATE->fmt[send]); in setup_dma_dsp()
278 if (SCSTATE->revhi >= 4) { in setup_dma_dsp()
287 write_dsp(dev, sbcmode[SCSTATE->fmt[send] >= 180][send]); in setup_dma_dsp()
364 if (!read_dsp(dev, &SCSTATE->revhi) || in sbc_open()
365 !read_dsp(dev, &SCSTATE->revlo)) in sbc_open()
368 SCSTATE->revhi, SCSTATE->revlo); in sbc_open()
369 if (SCSTATE->revhi < 2) { in sbc_open()
374 if (SCSTATE->revhi < 3 && in sbc_open()
375 (SCSTATE->fmt[0] >= 180 || SCSTATE->fmt[1] >= 180)) { in sbc_open()
378 dev->base_addr, SCSTATE->revhi, SCSTATE->revlo); in sbc_open()
381 if (SCSTATE->revhi >= 4 && in sbc_open()
480 SCSTATE->fmt[0] = 256-((1000000L+sm->mode_rx->srate/2)/ in sbc_sethw()
482 SCSTATE->fmt[1] = 256-((1000000L+sm->mode_tx->srate/2)/ in sbc_sethw()
525 switch (SCSTATE->revhi) { in sbc_ioctl()
552 switch (SCSTATE->revhi) { in sbc_ioctl()
608 write_dsp(dev, SCSTATE->sr[0] >> 8); in setup_dma_fdx_dsp()
609 write_dsp(dev, SCSTATE->sr[0] & 0xff); in setup_dma_fdx_dsp()
611 write_dsp(dev, SCSTATE->sr[1] >> 8); in setup_dma_fdx_dsp()
612 write_dsp(dev, SCSTATE->sr[1] & 0xff); in setup_dma_fdx_dsp()
746 if (!read_dsp(dev, &SCSTATE->revhi) || in sbcfdx_open()
747 !read_dsp(dev, &SCSTATE->revlo)) in sbcfdx_open()
750 SCSTATE->revhi, SCSTATE->revlo); in sbcfdx_open()
751 if (SCSTATE->revhi < 4) { in sbcfdx_open()
861 SCSTATE->sr[0] = sm->mode_rx->srate; in sbcfdx_sethw()
862 SCSTATE->sr[1] = sm->mode_tx->srate; in sbcfdx_sethw()