Lines Matching refs:sock
230 void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb,
239 static inline int inet_sk_listen_hashfn(const struct sock *sk) in inet_sk_listen_hashfn()
245 int __inet_inherit_port(struct sock *sk, struct sock *child);
247 void inet_put_port(struct sock *sk);
251 int __inet_hash_nolisten(struct sock *sk, struct inet_timewait_sock *tw);
252 int __inet_hash(struct sock *sk, struct inet_timewait_sock *tw);
253 void inet_hash(struct sock *sk);
254 void inet_unhash(struct sock *sk);
256 struct sock *__inet_lookup_listener(struct net *net,
263 static inline struct sock *inet_lookup_listener(struct net *net, in inet_lookup_listener()
326 struct sock *__inet_lookup_established(struct net *net,
332 static inline struct sock *
342 static inline struct sock *__inet_lookup(struct net *net, in __inet_lookup()
349 struct sock *sk = __inet_lookup_established(net, hashinfo, in __inet_lookup()
356 static inline struct sock *inet_lookup(struct net *net, in inet_lookup()
362 struct sock *sk; in inet_lookup()
371 static inline struct sock *__inet_lookup_skb(struct inet_hashinfo *hashinfo, in __inet_lookup_skb()
376 struct sock *sk = skb_steal_sock(skb); in __inet_lookup_skb()
387 u32 sk_ehashfn(const struct sock *sk);
392 static inline void sk_daddr_set(struct sock *sk, __be32 addr) in sk_daddr_set()
400 static inline void sk_rcv_saddr_set(struct sock *sk, __be32 addr) in sk_rcv_saddr_set()
409 struct sock *sk, u32 port_offset,
411 struct sock *, __u16,
415 struct sock *sk);