Lines Matching refs:elements
51 struct pq_elem_st *elements; member
69 assert(pq->elements[pq->heap[idx].index].used); \
70 assert(pq->elements[pq->heap[idx].index].posn == idx)
72 assert(pq->elements[elem].used)
108 struct pq_elem_st *e = pq->elements; in pqueue_swap_elem()
124 struct pq_elem_st *e = pq->elements; in pqueue_move_elem()
206 pq->freelist = pq->elements[m].posn; in ossl_pqueue_push()
211 pq->elements[m].posn = n; in ossl_pqueue_push()
213 pq->elements[m].used = 1; in ossl_pqueue_push()
247 pq->elements[elem].posn = pq->freelist; in ossl_pqueue_pop()
250 pq->elements[elem].used = 0; in ossl_pqueue_pop()
263 n = pq->elements[elem].posn; in ossl_pqueue_remove()
268 pq->elements[elem].posn = pq->freelist; in ossl_pqueue_remove()
271 pq->elements[elem].used = 0; in ossl_pqueue_remove()
282 struct pq_elem_st *e = pq->elements; in pqueue_add_freelist()
318 e = OPENSSL_realloc(pq->elements, new_max * sizeof(*pq->elements)); in ossl_pqueue_reserve()
321 pq->elements = e; in ossl_pqueue_reserve()
343 pq->elements = OPENSSL_malloc(sizeof(*pq->elements) * min_nodes); in ossl_pqueue_new()
344 if (pq->heap == NULL || pq->elements == NULL) { in ossl_pqueue_new()
356 OPENSSL_free(pq->elements); in ossl_pqueue_free()