Lines Matching refs:key
1337 _cache_check_pending_request_locked( struct resolv_cache** cache, Entry* key, unsigned netid ) in _cache_check_pending_request_locked() argument
1342 if (*cache && key) { in _cache_check_pending_request_locked()
1346 if (ri->hash == key->hash) { in _cache_check_pending_request_locked()
1357 ri->hash = key->hash; in _cache_check_pending_request_locked()
1377 _cache_notify_waiting_tid_locked( struct resolv_cache* cache, Entry* key ) in _cache_notify_waiting_tid_locked() argument
1381 if (cache && key) { in _cache_notify_waiting_tid_locked()
1385 if (ri->hash == key->hash) { in _cache_notify_waiting_tid_locked()
1408 Entry key[1]; in _resolv_cache_query_failed() local
1411 if (!entry_init_key(key, query, querylen)) in _resolv_cache_query_failed()
1419 _cache_notify_waiting_tid_locked(cache, key); in _resolv_cache_query_failed()
1575 Entry* key ) in _cache_lookup_p() argument
1577 int index = key->hash % cache->max_entries; in _cache_lookup_p()
1586 if (node->hash == key->hash && entry_equals(node, key)) in _cache_lookup_p()
1681 Entry key[1]; in _resolv_cache_lookup() local
1693 if (!entry_init_key(key, query, querylen)) { in _resolv_cache_lookup()
1710 lookup = _cache_lookup_p(cache, key); in _resolv_cache_lookup()
1717 if (!_cache_check_pending_request_locked(&cache, key, netid) || cache == NULL) { in _resolv_cache_lookup()
1720 lookup = _cache_lookup_p(cache, key); in _resolv_cache_lookup()
1770 Entry key[1]; in _resolv_cache_add() local
1778 if (!entry_init_key( key, query, querylen )) { in _resolv_cache_add()
1798 lookup = _cache_lookup_p(cache, key); in _resolv_cache_add()
1813 lookup = _cache_lookup_p(cache, key); in _resolv_cache_add()
1824 e = entry_alloc(key, answer, answerlen); in _resolv_cache_add()
1835 _cache_notify_waiting_tid_locked(cache, key); in _resolv_cache_add()