Lines Matching refs:tx_ptr
26 struct snd_pcm_runtime *runtime, unsigned int tx_ptr, \
30 unsigned int period_pos = tx_ptr % runtime->period_size; \
34 iowrite32(p[tx_ptr][0], dev->i2s_base + LRBR_LTHR(0)); \
35 iowrite32(p[tx_ptr][1], dev->i2s_base + RRBR_RTHR(0)); \
37 if (++tx_ptr >= runtime->buffer_size) \
38 tx_ptr = 0; \
41 return tx_ptr; \
111 ptr = READ_ONCE(dev->tx_ptr); in dw_pcm_transfer()
114 cmpxchg(&dev->tx_ptr, ptr, new_ptr); in dw_pcm_transfer()
204 WRITE_ONCE(dev->tx_ptr, 0); in dw_pcm_trigger()
235 pos = READ_ONCE(dev->tx_ptr); in dw_pcm_pointer()