Lines Matching refs:tail
76 mp->head = mp->tail = NULL;
99 b = mp->tail;
130 if (!mp->tail) {
131 mp->tail = nbuf;
146 struct buf *buf = mp->tail;
148 mp->tail = buf->next;
149 if (mp->tail)
150 mp->tail->prev = NULL;
152 mp->tail = mp->head = NULL;
168 pos = mp->tail->pos;
169 while (pos >= mp->tail->size) {
171 if (!mp->tail) {
175 pos = mp->tail->pos;
178 b = mp->tail->pnt[pos];
180 mp->tail->pos++;
212 while (len < size && mp->tail) {
214 int blen = mp->tail->size - mp->tail->pos;
221 memcpy(ptr + len, mp->tail->pnt + mp->tail->pos, (size_t) nlen);
223 mp->tail->pos += nlen;
225 if (mp->tail->pos == mp->tail->size) {
250 struct buf *buf = mp->tail;
309 struct buf *buf = mp->tail;