Lines Matching full:queue
9 /* Put a packet header in a queue defined in argument */
10 void phdr_desc_enqueue(struct phdr_desc_queue *queue, struct phdr_desc *desc, in phdr_desc_enqueue() argument
13 /* Locking queue */ in phdr_desc_enqueue()
16 if (queue->count == 0) { in phdr_desc_enqueue()
17 queue->head = queue->tail = desc; in phdr_desc_enqueue()
19 queue->tail->next = desc; in phdr_desc_enqueue()
20 queue->tail = desc; in phdr_desc_enqueue()
22 queue->count++; in phdr_desc_enqueue()
25 /* Unlocking queue */ in phdr_desc_enqueue()
29 /* Take a packet header from queue defined in argument */
30 struct phdr_desc *phdr_desc_dequeue(struct phdr_desc_queue *queue, in phdr_desc_dequeue() argument
34 /* Locking queue */ in phdr_desc_dequeue()
36 if (queue->count != 0) { in phdr_desc_dequeue()
37 queue->count--; in phdr_desc_dequeue()
38 return_ptr = queue->head; in phdr_desc_dequeue()
39 queue->head = queue->head->next; in phdr_desc_dequeue()
42 /* Unlocking queue */ in phdr_desc_dequeue()