Lines Matching refs:queue
61 netq_insert_node(list_t queue, netq_t *node) { in netq_insert_node() argument
64 assert(queue); in netq_insert_node()
67 p = (netq_t *)list_head(queue); in netq_insert_node()
72 list_insert(queue, p, node); in netq_insert_node()
74 list_push(queue, node); in netq_insert_node()
80 netq_head(list_t queue) { in netq_head() argument
81 if (!queue) in netq_head()
84 return list_head(queue); in netq_head()
96 netq_remove(list_t queue, netq_t *p) { in netq_remove() argument
97 if (!queue || !p) in netq_remove()
100 list_remove(queue, p); in netq_remove()
103 netq_t *netq_pop_first(list_t queue) { in netq_pop_first() argument
104 if (!queue) in netq_pop_first()
107 return list_pop(queue); in netq_pop_first()
133 netq_delete_all(list_t queue) { in netq_delete_all() argument
135 if (queue) { in netq_delete_all()
136 while((p = list_pop(queue))) in netq_delete_all()