Lines Matching refs:spcr

191 	u32 spcr;  in davinci_mcbsp_start()  local
195 spcr = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); in davinci_mcbsp_start()
196 spcr |= mask; in davinci_mcbsp_start()
200 spcr |= DAVINCI_MCBSP_SPCR_FRST; in davinci_mcbsp_start()
202 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, spcr); in davinci_mcbsp_start()
207 u32 spcr; in davinci_mcbsp_stop() local
210 spcr = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); in davinci_mcbsp_stop()
211 spcr &= ~(DAVINCI_MCBSP_SPCR_GRST | DAVINCI_MCBSP_SPCR_FRST); in davinci_mcbsp_stop()
212 spcr &= playback ? ~DAVINCI_MCBSP_SPCR_XRST : ~DAVINCI_MCBSP_SPCR_RRST; in davinci_mcbsp_stop()
213 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, spcr); in davinci_mcbsp_stop()
384 u32 spcr; in davinci_i2s_hw_params() local
389 spcr = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); in davinci_i2s_hw_params()
391 spcr |= DAVINCI_MCBSP_SPCR_RINTM(3) | DAVINCI_MCBSP_SPCR_FREE; in davinci_i2s_hw_params()
392 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, spcr); in davinci_i2s_hw_params()
394 spcr |= DAVINCI_MCBSP_SPCR_XINTM(3) | DAVINCI_MCBSP_SPCR_FREE; in davinci_i2s_hw_params()
395 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, spcr); in davinci_i2s_hw_params()
530 u32 spcr; in davinci_i2s_prepare() local
535 spcr = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); in davinci_i2s_prepare()
536 if (spcr & mask) { in davinci_i2s_prepare()
539 spcr & ~mask); in davinci_i2s_prepare()
545 spcr |= DAVINCI_MCBSP_SPCR_GRST; in davinci_i2s_prepare()
546 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, spcr); in davinci_i2s_prepare()
551 spcr = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); in davinci_i2s_prepare()
552 spcr |= DAVINCI_MCBSP_SPCR_XRST; in davinci_i2s_prepare()
553 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, spcr); in davinci_i2s_prepare()
559 spcr = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); in davinci_i2s_prepare()
560 spcr &= ~DAVINCI_MCBSP_SPCR_XRST; in davinci_i2s_prepare()
561 davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, spcr); in davinci_i2s_prepare()