Lines Matching refs:head
52 void __iomem *head;
72 unsigned int head;
75 head = readl(pipe->head);
78 if (head < tail)
79 return pipe->native.length - tail + head;
81 return head - tail;
126 unsigned int head;
129 head = readl(pipe->head);
132 if (tail <= head)
133 return pipe->native.length - head + tail;
135 return tail - head;
139 unsigned int head,
144 len = min_t(size_t, count, pipe->native.length - head);
146 __iowrite32_copy(pipe->fifo + head, data,
155 head += count;
156 if (head >= pipe->native.length)
157 head -= pipe->native.length;
159 return head;
169 unsigned int head;
185 head = readl(pipe->head);
186 head = glink_rpm_tx_write_one(pipe, head, hdr, hlen);
187 head = glink_rpm_tx_write_one(pipe, head, data, aligned_dlen);
191 head = glink_rpm_tx_write_one(pipe, head, padding, pad);
192 writel(head, pipe->head);
262 rx->head = msg_ram + offset + sizeof(u32);
269 tx->head = msg_ram + offset + sizeof(u32);
342 writel(0, rpm->tx_pipe.head);