Lines Matching refs:netid
1289 unsigned netid; member
1311 static struct resolv_cache* _find_named_cache_locked(unsigned netid);
1337 _cache_check_pending_request_locked( struct resolv_cache** cache, Entry* key, unsigned netid ) in _cache_check_pending_request_locked() argument
1367 *cache = _find_named_cache_locked(netid); in _cache_check_pending_request_locked()
1404 _resolv_cache_query_failed( unsigned netid, in _resolv_cache_query_failed() argument
1416 cache = _find_named_cache_locked(netid); in _resolv_cache_query_failed()
1425 static struct resolv_cache_info* _find_cache_info_locked(unsigned netid);
1674 _resolv_cache_lookup( unsigned netid, in _resolv_cache_lookup() argument
1701 cache = _find_named_cache_locked(netid); in _resolv_cache_lookup()
1717 if (!_cache_check_pending_request_locked(&cache, key, netid) || cache == NULL) { in _resolv_cache_lookup()
1764 _resolv_cache_add( unsigned netid, in _resolv_cache_add() argument
1785 cache = _find_named_cache_locked(netid); in _resolv_cache_add()
1856 static struct resolv_cache_info* _find_cache_info_locked(unsigned netid);
1858 static struct resolv_cache* _get_res_cache_for_net_locked(unsigned netid);
1860 static void _flush_cache_for_net_locked(unsigned netid);
1878 _get_res_cache_for_net_locked(unsigned netid) in _get_res_cache_for_net_locked() argument
1880 struct resolv_cache* cache = _find_named_cache_locked(netid); in _get_res_cache_for_net_locked()
1887 cache_info->netid = netid; in _get_res_cache_for_net_locked()
1898 _resolv_flush_cache_for_net(unsigned netid) in _resolv_flush_cache_for_net() argument
1903 _flush_cache_for_net_locked(netid); in _resolv_flush_cache_for_net()
1909 _flush_cache_for_net_locked(unsigned netid) in _flush_cache_for_net_locked() argument
1911 struct resolv_cache* cache = _find_named_cache_locked(netid); in _flush_cache_for_net_locked()
1917 struct resolv_cache_info* cache_info = _find_cache_info_locked(netid); in _flush_cache_for_net_locked()
1921 void _resolv_delete_cache_for_net(unsigned netid) in _resolv_delete_cache_for_net() argument
1931 if (cache_info->netid == netid) { in _resolv_delete_cache_for_net()
1968 _find_named_cache_locked(unsigned netid) { in _find_named_cache_locked() argument
1970 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _find_named_cache_locked()
1978 _find_cache_info_locked(unsigned netid) in _find_cache_info_locked() argument
1983 if (cache_info->netid == netid) { in _find_cache_info_locked()
2002 _resolv_set_nameservers_for_net(unsigned netid, const char** servers, unsigned numservers, in _resolv_set_nameservers_for_net() argument
2040 _get_res_cache_for_net_locked(netid); in _resolv_set_nameservers_for_net()
2042 struct resolv_cache_info* cache_info = _find_cache_info_locked(netid); in _resolv_set_nameservers_for_net()
2059 XLOG("%s: netid = %u, addr = %s\n", __FUNCTION__, netid, servers[i]); in _resolv_set_nameservers_for_net()
2175 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net()
2179 XLOG("%s: %u\n", __FUNCTION__, statp->netid); in _resolv_populate_res_for_net()
2245 android_net_res_stats_get_info_for_net(unsigned netid, int* nscount, in android_net_res_stats_get_info_for_net() argument
2251 struct resolv_cache_info* info = _find_cache_info_locked(netid); in android_net_res_stats_get_info_for_net()
2313 _resolv_cache_get_resolver_stats( unsigned netid, struct __res_params* params, in _resolv_cache_get_resolver_stats() argument
2318 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _resolv_cache_get_resolver_stats()
2330 _resolv_cache_add_resolver_stats_sample( unsigned netid, int revision_id, int ns, in _resolv_cache_add_resolver_stats_sample() argument
2336 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _resolv_cache_add_resolver_stats_sample()