Lines Matching refs:client_contexts_lru
112 r = prioq_ensure_allocated(&s->client_contexts_lru, client_context_compare); in client_context_new()
193 assert_se(prioq_remove(s->client_contexts_lru, c, &c->lru_index) >= 0); in client_context_free()
536 assert_se(prioq_reshuffle(s->client_contexts_lru, c, &c->lru_index) >= 0); in client_context_really_refresh()
595 unsigned n = prioq_size(s->client_contexts_lru), idx = 0; in client_context_try_shrink_to()
601 c = prioq_peek_by_index(s->client_contexts_lru, idx); in client_context_try_shrink_to()
619 c = prioq_pop(s->client_contexts_lru); in client_context_try_shrink_to()
642 assert(prioq_size(s->client_contexts_lru) == 0); in client_context_flush_all()
645 s->client_contexts_lru = prioq_free(s->client_contexts_lru); in client_context_flush_all()
674 … assert_se(prioq_remove(s->client_contexts_lru, c, &c->lru_index) >= 0); in client_context_get_internal()
696 r = prioq_put(s->client_contexts_lru, c, &c->lru_index); in client_context_get_internal()
749 if (prioq_put(s->client_contexts_lru, c, &c->lru_index) < 0) in client_context_release()