Lines Matching refs:head
52 int head;
91 n = ((size_t)(m->head - m->tail) % sizeof(m->buf));
98 n = ((size_t)(m->head - m->tail) % sizeof(m->buf));
127 n = sizeof(m->buf) - ((size_t)(m->head - m->tail) % sizeof(m->buf));
129 (int)len, (int)m->head, (int)m->tail, (int)n);
138 if (m->head < m->tail) /* |****h-------t**| */
139 memcpy(&m->buf[m->head], buf, len);
141 n1 = sizeof(m->buf) - (size_t)m->head;
144 memcpy(&m->buf[m->head], buf, n1);
149 m->head = (((size_t)m->head) + len) % sizeof(m->buf);