Lines Matching refs:qe
117 slp_queue_entry_t *qe; in slp_enqueue() local
120 if ((qe = malloc(sizeof (*qe))) == NULL) { in slp_enqueue()
126 qe->msg = msg; in slp_enqueue()
127 qe->next = NULL; in slp_enqueue()
129 q->tail->next = qe; in slp_enqueue()
130 q->tail = qe; in slp_enqueue()
132 q->head = q->tail = qe; in slp_enqueue()
146 slp_queue_entry_t *qe; in slp_enqueue_at_head() local
149 if ((qe = malloc(sizeof (*qe))) == NULL) { in slp_enqueue_at_head()
155 qe->msg = msg; in slp_enqueue_at_head()
156 qe->next = q->head; in slp_enqueue_at_head()
157 q->head = qe; in slp_enqueue_at_head()
171 slp_queue_entry_t *qe = q->head; in dequeue_nolock() local
173 if (!qe) in dequeue_nolock()
175 msg = qe->msg; in dequeue_nolock()
176 if (!qe->next) /* last one in queue */ in dequeue_nolock()
179 q->head = qe->next; in dequeue_nolock()
180 free(qe); in dequeue_nolock()