Lines Matching refs:tail
53 __le32 *tail;
70 u32 tail;
86 tail = le32_to_cpu(*pipe->tail);
88 if (head < tail)
89 return pipe->native.length - tail + head;
91 return head - tail;
99 u32 tail;
101 tail = le32_to_cpu(*pipe->tail);
102 tail += offset;
103 if (tail >= pipe->native.length)
104 tail -= pipe->native.length;
106 len = min_t(size_t, count, pipe->native.length - tail);
108 memcpy_fromio(data, pipe->fifo + tail, len);
118 u32 tail;
120 tail = le32_to_cpu(*pipe->tail);
122 tail += count;
123 if (tail >= pipe->native.length)
124 tail -= pipe->native.length;
126 *pipe->tail = cpu_to_le32(tail);
133 u32 tail;
137 tail = le32_to_cpu(*pipe->tail);
139 if (tail <= head)
140 avail = pipe->native.length - head + tail;
142 avail = tail - head;
287 tx_pipe->tail = &descs[0];
289 rx_pipe->tail = &descs[2];
335 *rx_pipe->tail = 0;