Lines Matching refs:item
72 pitem *item = (pitem *)OPENSSL_malloc(sizeof(pitem)); in pitem_new() local
73 if (item == NULL) { in pitem_new()
77 memcpy(item->priority, prio64be, sizeof(item->priority)); in pitem_new()
79 item->data = data; in pitem_new()
80 item->next = NULL; in pitem_new()
82 return item; in pitem_new()
85 void pitem_free(pitem *item) { in pitem_free() argument
86 if (item == NULL) { in pitem_free()
90 OPENSSL_free(item); in pitem_free()
128 pitem *item = pq->items; in pqueue_size() local
131 while (item != NULL) { in pqueue_size()
133 item = item->next; in pqueue_size()
140 pitem *pqueue_next(piterator *item) { in pqueue_next() argument
143 if (item == NULL || *item == NULL) { in pqueue_next()
147 ret = *item; in pqueue_next()
148 *item = (*item)->next; in pqueue_next()
153 pitem *pqueue_insert(pqueue_s *pq, pitem *item) { in pqueue_insert() argument
157 pq->items = item; in pqueue_insert()
158 return item; in pqueue_insert()
164 int cmp = memcmp(next->priority, item->priority, sizeof(item->priority)); in pqueue_insert()
167 item->next = next; in pqueue_insert()
170 pq->items = item; in pqueue_insert()
172 curr->next = item; in pqueue_insert()
175 return item; in pqueue_insert()
182 item->next = NULL; in pqueue_insert()
183 curr->next = item; in pqueue_insert()
185 return item; in pqueue_insert()
190 pitem *item = pq->items; in pqueue_pop() local
196 return item; in pqueue_pop()