Lines Matching refs:ht
53 struct cds_lfht *ht;
84 bcentry_alive(struct cds_lfht *ht, dns_bcentry_t *bad, isc_stdtime_t now);
97 bc->ht = cds_lfht_new(BADCACHE_INIT_SIZE, BADCACHE_MIN_SIZE, 0,
99 INSIST(bc->ht != NULL);
122 cds_lfht_for_each_entry(bc->ht, &iter, bad, ht_node) {
123 INSIST(!cds_lfht_del(bc->ht, &bad->ht_node));
126 RUNTIME_CHECK(!cds_lfht_destroy(bc->ht, NULL));
152 bcentry_lookup(struct cds_lfht *ht, uint32_t hashval, dns__bckey_t *key) {
155 cds_lfht_lookup(ht, hashval, bcentry_match, key, &iter);
205 bcentry_evict(struct cds_lfht *ht, dns_bcentry_t *bad) {
206 if (!cds_lfht_del(ht, &bad->ht_node)) {
217 bcentry_alive(struct cds_lfht *ht, dns_bcentry_t *bad, isc_stdtime_t now) {
221 bcentry_evict(ht, bad);
228 #define cds_lfht_for_each_entry_next(ht, iter, pos, member) \
229 for (cds_lfht_next(ht, iter), \
233 cds_lfht_next(ht, iter), \
238 bcentry_purge(struct cds_lfht *ht, struct cds_list_head *lru,
243 if (bcentry_alive(ht, bad, now)) {
268 struct cds_lfht *ht = rcu_dereference(bc->ht);
269 INSIST(ht != NULL);
281 ht_node = cds_lfht_add_unique(ht, hashval, bcentry_match, &key,
286 bcentry_evict(ht, found);
293 bcentry_purge(ht, lru, now);
307 struct cds_lfht *ht = rcu_dereference(bc->ht);
308 INSIST(ht != NULL);
316 dns_bcentry_t *found = bcentry_lookup(ht, hashval, &key);
318 if (found != NULL && bcentry_alive(ht, found, now)) {
327 bcentry_purge(ht, lru, now);
339 struct cds_lfht *ht = rcu_dereference(bc->ht);
340 INSIST(ht != NULL);
345 cds_lfht_for_each_entry(ht, &iter, bad, ht_node) {
346 bcentry_evict(ht, bad);
360 struct cds_lfht *ht = rcu_dereference(bc->ht);
361 INSIST(ht != NULL);
365 cds_lfht_for_each_entry(ht, &iter, bad, ht_node) {
367 bcentry_evict(ht, bad);
372 (void)bcentry_alive(ht, bad, now);
386 struct cds_lfht *ht = rcu_dereference(bc->ht);
387 INSIST(ht != NULL);
391 cds_lfht_for_each_entry(ht, &iter, bad, ht_node) {
393 bcentry_evict(ht, bad);
398 (void)bcentry_alive(ht, bad, now);
426 struct cds_lfht *ht = rcu_dereference(bc->ht);
427 INSIST(ht != NULL);
430 cds_lfht_for_each_entry(ht, &iter, bad, ht_node) {
431 if (bcentry_alive(ht, bad, now)) {