Lines Matching refs:head
51 void __iomem *head;
59 unsigned int head;
62 head = readl(pipe->head);
65 if (head < tail)
66 return pipe->native.length - tail + head;
68 return head - tail;
113 unsigned int head;
116 head = readl(pipe->head);
119 if (tail <= head)
120 return pipe->native.length - head + tail;
122 return tail - head;
126 unsigned int head,
131 len = min_t(size_t, count, pipe->native.length - head);
133 __iowrite32_copy(pipe->fifo + head, data,
142 head += count;
143 if (head >= pipe->native.length)
144 head -= pipe->native.length;
146 return head;
156 unsigned int head;
172 head = readl(pipe->head);
173 head = glink_rpm_tx_write_one(pipe, head, hdr, hlen);
174 head = glink_rpm_tx_write_one(pipe, head, data, aligned_dlen);
178 head = glink_rpm_tx_write_one(pipe, head, padding, pad);
179 writel(head, pipe->head);
231 rx->head = msg_ram + offset + sizeof(u32);
238 tx->head = msg_ram + offset + sizeof(u32);
297 writel(0, tx_pipe->head);