Lines Matching refs:Head
80 byte *Head; /* first message in queue (if any) */ member
98 Q->Base = Q->Head = Q->Tail = Buffer; in queueInit()
116 if (Q->Tail == Q->Head) { in queueAllocMsg()
123 if (Q->Tail > Q->Head) { in queueAllocMsg()
125 if (Q->Base + need > Q->Head) { in queueAllocMsg()
134 if (Q->Tail + need > Q->Head) { in queueAllocMsg()
154 word size = ((MSG_HEAD *)Q->Head)->Size & ~MSG_INCOMPLETE; in queueFreeMsg()
156 Q->Head += MSG_NEED(size); in queueFreeMsg()
160 if (Q->Head >= Q->Wrap) { in queueFreeMsg()
161 Q->Head = Q->Base; in queueFreeMsg()
164 } else if (Q->Head >= Q->Tail) { in queueFreeMsg()
165 Q->Head = Q->Tail = Q->Base; in queueFreeMsg()
174 MSG_HEAD *Msg = (MSG_HEAD *)Q->Head; in queuePeekMsg()