Lines Matching refs:tail
129 q->head = q->tail = NULL; in Q_Init()
174 return(q && q->cursor == q->tail); in Q_AtTail()
261 q->cursor = q->tail; in Q_Tail()
298 q->tail = q->head; in Q_PushHead()
343 p = q->tail; in Q_PushTail()
344 q->tail = (node *)n; in Q_PushTail()
347 q->tail->prev = NULL; in Q_PushTail()
348 q->head = q->tail; in Q_PushTail()
351 q->tail->prev = (datanode *)p; in Q_PushTail()
352 p->next = q->tail; in Q_PushTail()
355 q->tail->next = NULL; in Q_PushTail()
357 q->tail->data = d; in Q_PushTail()
358 q->cursor = q->tail; in Q_PushTail()
400 q->head = q->tail = q->cursor = NULL; in Q_PopHead()
436 d = q->tail->data; in Q_PopTail()
437 p = q->tail->prev; in Q_PopTail()
438 efree(q->tail); in Q_PopTail()
442 q->head = q->tail = q->cursor = NULL; in Q_PopTail()
444 q->tail = (node *)p; in Q_PopTail()
445 q->tail->next = NULL; in Q_PopTail()
446 q->cursor = q->tail; in Q_PopTail()
530 if(iter == (q_iter)q->tail) in Q_Iter_Del()
956 return q ? (q_iter)q->tail : NULL; in Q_Iter_Tail()