Lines Matching refs:by_expiry
114 prioq_remove(c->by_expiry, i, &i->prioq_idx); in dns_cache_item_unlink_and_free()
148 prioq_remove(c->by_expiry, i, &i->prioq_idx); in dns_cache_remove_by_key()
164 assert(prioq_size(c->by_expiry) == 0); in dns_cache_flush()
167 c->by_expiry = prioq_free(c->by_expiry); in dns_cache_flush()
185 if (prioq_size(c->by_expiry) <= 0) in dns_cache_make_space()
188 if (prioq_size(c->by_expiry) + add < CACHE_MAX) in dns_cache_make_space()
191 i = prioq_peek(c->by_expiry); in dns_cache_make_space()
212 i = prioq_peek(c->by_expiry); in dns_cache_prune()
253 r = prioq_ensure_allocated(&c->by_expiry, dns_cache_item_prioq_compare_func); in dns_cache_init()
271 r = prioq_put(c->by_expiry, i, &i->prioq_idx); in dns_cache_link_item()
295 prioq_remove(c->by_expiry, i, &i->prioq_idx); in dns_cache_link_item()
399 prioq_reshuffle(c->by_expiry, i, &i->prioq_idx); in dns_cache_item_update_positive()