Lines Matching refs:ip
111 static inline int hash_ip(__be32 ip) in hash_ip() argument
113 int hash = (__force u32)ip ^ ((__force u32)ip>>16); in hash_ip()
117 static inline int hash_ip6(struct in6_addr ip) in hash_ip6() argument
119 return (hash_ip(ip.s6_addr32[0]) ^ in hash_ip6()
120 hash_ip(ip.s6_addr32[1]) ^ in hash_ip6()
121 hash_ip(ip.s6_addr32[2]) ^ in hash_ip6()
122 hash_ip(ip.s6_addr32[3])); in hash_ip6()
303 struct ip_map ip; in ip_map_lookup() local
306 strcpy(ip.m_class, class); in ip_map_lookup()
307 ipv6_addr_copy(&ip.m_addr, addr); in ip_map_lookup()
308 ch = sunrpc_cache_lookup(&ip_map_cache, &ip.h, in ip_map_lookup()
320 struct ip_map ip; in ip_map_update() local
323 ip.m_client = udom; in ip_map_update()
324 ip.h.flags = 0; in ip_map_update()
326 set_bit(CACHE_NEGATIVE, &ip.h.flags); in ip_map_update()
328 ip.m_add_change = udom->addr_changes; in ip_map_update()
333 ip.m_add_change++; in ip_map_update()
335 ip.h.expiry_time = expiry; in ip_map_update()
337 &ip.h, &ipm->h, in ip_map_update()