Lines Matching refs:tx_ptr
78 unsigned int tx_ptr) in hdmi_reformat_iec958() argument
87 temp = buf[tx_ptr][j]; in hdmi_reformat_iec958()
91 buf[tx_ptr][j] = sample << 4; in hdmi_reformat_iec958()
94 tx_ptr++; in hdmi_reformat_iec958()
100 unsigned int tx_ptr, bool *period_elapsed) in kmb_pcm_tx_fn() argument
102 unsigned int period_pos = tx_ptr % runtime->period_size; in kmb_pcm_tx_fn()
108 hdmi_reformat_iec958(runtime, kmb_i2s, tx_ptr); in kmb_pcm_tx_fn()
113 writel(((u16(*)[2])buf)[tx_ptr][0], i2s_base + LRBR_LTHR(0)); in kmb_pcm_tx_fn()
114 writel(((u16(*)[2])buf)[tx_ptr][1], i2s_base + RRBR_RTHR(0)); in kmb_pcm_tx_fn()
116 writel(((u32(*)[2])buf)[tx_ptr][0], i2s_base + LRBR_LTHR(0)); in kmb_pcm_tx_fn()
117 writel(((u32(*)[2])buf)[tx_ptr][1], i2s_base + RRBR_RTHR(0)); in kmb_pcm_tx_fn()
122 if (++tx_ptr >= runtime->buffer_size) in kmb_pcm_tx_fn()
123 tx_ptr = 0; in kmb_pcm_tx_fn()
128 return tx_ptr; in kmb_pcm_tx_fn()
235 ptr = kmb_i2s->tx_ptr; in kmb_pcm_operation()
238 cmpxchg(&kmb_i2s->tx_ptr, ptr, new_ptr); in kmb_pcm_operation()
274 kmb_i2s->tx_ptr = 0; in kmb_pcm_trigger()
382 pos = kmb_i2s->tx_ptr; in kmb_pcm_pointer()