Lines Matching refs:tail
50 void __iomem *tail; member
60 unsigned int tail; in glink_rpm_rx_avail() local
63 tail = readl(pipe->tail); in glink_rpm_rx_avail()
65 if (head < tail) in glink_rpm_rx_avail()
66 return pipe->native.length - tail + head; in glink_rpm_rx_avail()
68 return head - tail; in glink_rpm_rx_avail()
75 unsigned int tail; in glink_rpm_rx_peak() local
78 tail = readl(pipe->tail); in glink_rpm_rx_peak()
79 tail += offset; in glink_rpm_rx_peak()
80 if (tail >= pipe->native.length) in glink_rpm_rx_peak()
81 tail -= pipe->native.length; in glink_rpm_rx_peak()
83 len = min_t(size_t, count, pipe->native.length - tail); in glink_rpm_rx_peak()
85 __ioread32_copy(data, pipe->fifo + tail, in glink_rpm_rx_peak()
99 unsigned int tail; in glink_rpm_rx_advance() local
101 tail = readl(pipe->tail); in glink_rpm_rx_advance()
103 tail += count; in glink_rpm_rx_advance()
104 if (tail >= pipe->native.length) in glink_rpm_rx_advance()
105 tail -= pipe->native.length; in glink_rpm_rx_advance()
107 writel(tail, pipe->tail); in glink_rpm_rx_advance()
114 unsigned int tail; in glink_rpm_tx_avail() local
117 tail = readl(pipe->tail); in glink_rpm_tx_avail()
119 if (tail <= head) in glink_rpm_tx_avail()
120 return pipe->native.length - head + tail; in glink_rpm_tx_avail()
122 return tail - head; in glink_rpm_tx_avail()
230 rx->tail = msg_ram + offset; in glink_rpm_parse_toc()
237 tx->tail = msg_ram + offset; in glink_rpm_parse_toc()
298 writel(0, rx_pipe->tail); in glink_rpm_probe()