Lines Matching refs:pq
38 pqueue *pq = OPENSSL_zalloc(sizeof(*pq)); in pqueue_new() local
40 return pq; in pqueue_new()
43 void pqueue_free(pqueue *pq) in pqueue_free() argument
45 OPENSSL_free(pq); in pqueue_free()
48 pitem *pqueue_insert(pqueue *pq, pitem *item) in pqueue_insert() argument
52 if (pq->items == NULL) { in pqueue_insert()
53 pq->items = item; in pqueue_insert()
57 for (curr = NULL, next = pq->items; in pqueue_insert()
67 pq->items = item; in pqueue_insert()
84 pitem *pqueue_peek(pqueue *pq) in pqueue_peek() argument
86 return pq->items; in pqueue_peek()
89 pitem *pqueue_pop(pqueue *pq) in pqueue_pop() argument
91 pitem *item = pq->items; in pqueue_pop()
93 if (pq->items != NULL) in pqueue_pop()
94 pq->items = pq->items->next; in pqueue_pop()
99 pitem *pqueue_find(pqueue *pq, unsigned char *prio64be) in pqueue_find() argument
104 if (pq->items == NULL) in pqueue_find()
107 for (next = pq->items; next->next != NULL; next = next->next) { in pqueue_find()
124 pitem *pqueue_iterator(pqueue *pq) in pqueue_iterator() argument
126 return pqueue_peek(pq); in pqueue_iterator()
143 size_t pqueue_size(pqueue *pq) in pqueue_size() argument
145 pitem *item = pq->items; in pqueue_size()