Home | History | Annotate | Download | only in src

Lines Matching refs:tail

51 	uint32_t head, tail;
95 uint32_t head, tail;
98 tail = MASK(b->tail);
99 if (head < tail) {
101 iov[0].iov_len = tail - head;
103 } else if (tail == 0) {
111 iov[1].iov_len = tail;
119 uint32_t head, tail;
122 tail = MASK(b->tail);
123 if (tail < head) {
124 iov[0].iov_base = b->data + tail;
125 iov[0].iov_len = head - tail;
128 iov[0].iov_base = b->data + tail;
129 iov[0].iov_len = sizeof b->data - tail;
132 iov[0].iov_base = b->data + tail;
133 iov[0].iov_len = sizeof b->data - tail;
143 uint32_t tail, size;
145 tail = MASK(b->tail);
146 if (tail + count <= sizeof b->data) {
147 memcpy(data, b->data + tail, count);
149 size = sizeof b->data - tail;
150 memcpy(data, b->data + tail, size);
158 return b->head - b->tail;
181 size = buffer->head - buffer->tail;
191 buffer->tail += size;
215 connection->in.tail += size;
224 size = buffer->head - buffer->tail;
280 uint32_t tail;
285 tail = connection->out.tail;
286 while (connection->out.head - connection->out.tail > 0) {
309 connection->out.tail += len;
314 return connection->out.head - tail;
366 if (connection->out.head - connection->out.tail +
385 if (connection->out.head - connection->out.tail +
767 if (connection->fds_in.tail == connection->fds_in.head) {
777 connection->fds_in.tail += sizeof fd;