Lines Matching refs:first
72 DnsCacheItem *first;
79 first = hashmap_get(c->by_key, i->key);
80 LIST_REMOVE(by_key, first, i);
82 if (first)
83 assert_se(hashmap_replace(c->by_key, first->key, first) >= 0);
93 DnsCacheItem *first, *i;
96 first = hashmap_get(c->by_key, rr->key);
97 LIST_FOREACH(by_key, i, first) {
111 DnsCacheItem *first, *i, *n;
116 first = hashmap_remove(c->by_key, key);
117 if (!first)
120 LIST_FOREACH_SAFE(by_key, i, n, first) {
237 DnsCacheItem *first;
247 first = hashmap_get(c->by_key, i->key);
248 if (first) {
252 k = dns_resource_key_ref(first->key);
255 dns_resource_key_reduce(&first->key, &i->key);
257 if (first->rr)
258 dns_resource_key_reduce(&first->rr->key, &i->key);
262 LIST_PREPEND(by_key, first, i);
263 assert_se(hashmap_replace(c->by_key, first->key, first) >= 0);
343 /* We are the first item in the list, we need to
808 DnsCacheItem *j, *first, *nsec = NULL;
838 first = dns_cache_get_by_key_follow_cname_dname_nsec(c, key);
839 if (!first) {
857 LIST_FOREACH(by_key, j, first) {
927 LIST_FOREACH(by_key, j, first) {
947 DnsCacheItem *i, *first;
957 first = hashmap_get(cache->by_key, rr->key);
958 if (!first)
963 LIST_FOREACH(by_key, i, first) {