Lines Matching refs:tail
39 __le32 *tail;
55 u32 tail;
71 tail = le32_to_cpu(*pipe->tail);
73 if (head < tail)
74 return pipe->native.length - tail + head;
76 return head - tail;
84 u32 tail;
86 tail = le32_to_cpu(*pipe->tail);
87 tail += offset;
88 if (tail >= pipe->native.length)
89 tail -= pipe->native.length;
91 len = min_t(size_t, count, pipe->native.length - tail);
93 memcpy_fromio(data, pipe->fifo + tail, len);
103 u32 tail;
105 tail = le32_to_cpu(*pipe->tail);
107 tail += count;
108 if (tail >= pipe->native.length)
109 tail -= pipe->native.length;
111 *pipe->tail = cpu_to_le32(tail);
118 u32 tail;
122 tail = le32_to_cpu(*pipe->tail);
124 if (tail <= head)
125 avail = pipe->native.length - head + tail;
127 avail = tail - head;
247 tx_pipe->tail = &descs[0];
249 rx_pipe->tail = &descs[2];
276 *rx_pipe->tail = 0;