Lines Matching defs:queue
11 * An SCTP inqueue is a queue into which you push SCTP packets
32 void sctp_inq_init(struct sctp_inq *queue)
34 INIT_LIST_HEAD(&queue->in_chunk_list);
35 queue->in_progress = NULL;
38 INIT_WORK(&queue->immediate, NULL);
42 void sctp_inq_free(struct sctp_inq *queue)
46 /* Empty the queue. */
47 list_for_each_entry_safe(chunk, tmp, &queue->in_chunk_list, list) {
55 if (queue->in_progress) {
56 sctp_chunk_free(queue->in_progress);
57 queue->in_progress = NULL;
84 struct sctp_chunkhdr *sctp_inq_peek(struct sctp_inq *queue)
89 chunk = queue->in_progress;
104 * WARNING: If you need to put the chunk on another queue, you need to
107 struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue)
116 chunk = queue->in_progress;
136 chunk = queue->in_progress = NULL;
146 /* Do we need to take the next packet out of the queue to process? */
151 /* Is the queue empty? */
152 entry = sctp_list_dequeue(&queue->in_chunk_list);
179 queue->in_progress = chunk;