Lines Matching refs:net

89 static inline struct net *ib_net(struct inet_bind_bucket *ib)  in ib_net()
218 inet_bind_bucket_create(struct kmem_cache *cachep, struct net *net,
224 static inline u32 inet_bhashfn(const struct net *net, const __u16 lport, in inet_bhashfn() argument
227 return (lport + net_hash_mix(net)) & (bhash_size - 1); in inet_bhashfn()
234 static inline u32 inet_lhashfn(const struct net *net, const unsigned short num) in inet_lhashfn() argument
236 return (num + net_hash_mix(net)) & (INET_LHTABLE_SIZE - 1); in inet_lhashfn()
256 struct sock *__inet_lookup_listener(struct net *net,
263 static inline struct sock *inet_lookup_listener(struct net *net, in inet_lookup_listener() argument
268 return __inet_lookup_listener(net, hashinfo, saddr, sport, in inet_lookup_listener()
326 struct sock *__inet_lookup_established(struct net *net,
333 inet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, in inet_lookup_established() argument
338 return __inet_lookup_established(net, hashinfo, saddr, sport, daddr, in inet_lookup_established()
342 static inline struct sock *__inet_lookup(struct net *net, in __inet_lookup() argument
349 struct sock *sk = __inet_lookup_established(net, hashinfo, in __inet_lookup()
352 return sk ? : __inet_lookup_listener(net, hashinfo, saddr, sport, in __inet_lookup()
356 static inline struct sock *inet_lookup(struct net *net, in inet_lookup() argument
365 sk = __inet_lookup(net, hashinfo, saddr, sport, daddr, dport, dif); in inet_lookup()
388 u32 inet6_ehashfn(const struct net *net,