Lines Matching refs:Entry
684 struct Entry { struct
686 struct Entry* hlink; /* next in collision chain */ argument
687 struct Entry* mru_prev; argument
688 struct Entry* mru_next; argument
791 static void entry_free(Entry* e) { in entry_free()
798 static void entry_mru_remove(Entry* e) { in entry_mru_remove()
803 static void entry_mru_add(Entry* e, Entry* list) { in entry_mru_add()
804 Entry* first = list->mru_next; in entry_mru_add()
815 static unsigned entry_hash(const Entry* e) { in entry_hash()
824 static int entry_init_key(Entry* e, const void* query, int querylen) { in entry_init_key()
839 static Entry* entry_alloc(const Entry* init, const void* answer, int answerlen) { in entry_alloc()
840 Entry* e; in entry_alloc()
844 e = (Entry*) calloc(size, 1); in entry_alloc()
861 static int entry_equals(const Entry* e1, const Entry* e2) { in entry_equals()
941 Entry** pnode = (Entry**)&entries[nn]; in flush()
944 Entry* node = *pnode; in flush()
974 Entry mru_list;
976 std::vector<Entry> entries;
1018 static bool cache_has_pending_request_locked(Cache* cache, const Entry* key, in cache_has_pending_request_locked()
1043 static void cache_notify_waiting_tid_locked(struct Cache* cache, const Entry* key) { in cache_notify_waiting_tid_locked()
1066 Entry key[1]; in _resolv_cache_query_failed()
1083 for (Entry* e = cache->mru_list.mru_next; e != &cache->mru_list; e = e->mru_next) { in cache_dump_mru_locked()
1104 static Entry** _cache_lookup_p(Cache* cache, Entry* key) { in _cache_lookup_p()
1106 Entry** pnode = (Entry**) &cache->entries[index]; in _cache_lookup_p()
1109 Entry* node = *pnode; in _cache_lookup_p()
1125 static void _cache_add_p(Cache* cache, Entry** lookup, Entry* e) { in _cache_add_p()
1138 static void _cache_remove_p(Cache* cache, Entry** lookup) { in _cache_remove_p()
1139 Entry* e = *lookup; in _cache_remove_p()
1153 Entry* oldest = cache->mru_list.mru_prev; in _cache_remove_oldest()
1154 Entry** lookup = _cache_lookup_p(cache, oldest); in _cache_remove_oldest()
1168 Entry* e; in _cache_remove_expired()
1174 Entry** lookup = _cache_lookup_p(cache, e); in _cache_remove_expired()
1201 Entry key; in resolv_cache_lookup()
1202 Entry** lookup; in resolv_cache_lookup()
1203 Entry* e; in resolv_cache_lookup()
1292 Entry key[1]; in resolv_cache_add()
1293 Entry* e; in resolv_cache_add()
1294 Entry** lookup; in resolv_cache_add()
1366 Entry* node = nullptr; in resolv_gethostbyaddr_from_cache()
1850 Entry key; in resolv_cache_get_expiration()
1866 Entry** lookup = _cache_lookup_p(cache, &key); in resolv_cache_get_expiration()
1867 Entry* e = *lookup; in resolv_cache_get_expiration()