Lines Matching refs:item
20 pitem *item = OPENSSL_malloc(sizeof(*item)); in pitem_new() local
22 if (item == NULL) in pitem_new()
25 memcpy(item->priority, prio64be, sizeof(item->priority)); in pitem_new()
26 item->data = data; in pitem_new()
27 item->next = NULL; in pitem_new()
28 return item; in pitem_new()
31 void pitem_free(pitem *item) in pitem_free() argument
33 OPENSSL_free(item); in pitem_free()
48 pitem *pqueue_insert(pqueue *pq, pitem *item) in pqueue_insert() argument
53 pq->items = item; in pqueue_insert()
54 return item; in pqueue_insert()
62 int cmp = memcmp(next->priority, item->priority, 8); in pqueue_insert()
64 item->next = next; in pqueue_insert()
67 pq->items = item; in pqueue_insert()
69 curr->next = item; in pqueue_insert()
71 return item; in pqueue_insert()
78 item->next = NULL; in pqueue_insert()
79 curr->next = item; in pqueue_insert()
81 return item; in pqueue_insert()
91 pitem *item = pq->items; in pqueue_pop() local
96 return item; in pqueue_pop()
129 pitem *pqueue_next(piterator *item) in pqueue_next() argument
133 if (item == NULL || *item == NULL) in pqueue_next()
137 ret = *item; in pqueue_next()
138 *item = (*item)->next; in pqueue_next()
145 pitem *item = pq->items; in pqueue_size() local
148 while (item != NULL) { in pqueue_size()
150 item = item->next; in pqueue_size()