Home
last modified time | relevance | path

Searched refs:sk1 (Results 1 – 7 of 7) sorted by relevance

/net/unix/
Daf_unix.c1048 static void unix_state_double_lock(struct sock *sk1, struct sock *sk2) in unix_state_double_lock() argument
1050 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_lock()
1051 unix_state_lock(sk1); in unix_state_double_lock()
1054 if (sk1 < sk2) { in unix_state_double_lock()
1055 unix_state_lock(sk1); in unix_state_double_lock()
1059 unix_state_lock_nested(sk1); in unix_state_double_lock()
1063 static void unix_state_double_unlock(struct sock *sk1, struct sock *sk2) in unix_state_double_unlock() argument
1065 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_unlock()
1066 unix_state_unlock(sk1); in unix_state_double_unlock()
1069 unix_state_unlock(sk1); in unix_state_double_unlock()
/net/ipv6/
Dtcp_ipv6.c833 struct sock *sk1 = NULL; in tcp_v6_send_reset() local
852 sk1 = inet6_lookup_listener(dev_net(skb_dst(skb)->dev), in tcp_v6_send_reset()
856 if (!sk1) in tcp_v6_send_reset()
860 key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr); in tcp_v6_send_reset()
882 if (sk1) { in tcp_v6_send_reset()
884 sock_put(sk1); in tcp_v6_send_reset()
/net/bluetooth/rfcomm/
Dsock.c125 struct sock *sk = NULL, *sk1 = NULL; in rfcomm_get_sock_by_channel() local
140 sk1 = sk; in rfcomm_get_sock_by_channel()
146 return sk ? sk : sk1; in rfcomm_get_sock_by_channel()
/net/bluetooth/
Dsco.c283 struct sock *sk = NULL, *sk1 = NULL; in sco_get_sock_listen() local
297 sk1 = sk; in sco_get_sock_listen()
302 return sk ? sk : sk1; in sco_get_sock_listen()
/net/ipv4/
Dtcp_ipv4.c619 struct sock *sk1 = NULL; in tcp_v4_send_reset() local
660 sk1 = __inet_lookup_listener(net, in tcp_v4_send_reset()
665 if (!sk1) in tcp_v4_send_reset()
668 key = tcp_md5_do_lookup(sk1, (union tcp_md5_addr *) in tcp_v4_send_reset()
719 if (sk1) { in tcp_v4_send_reset()
721 sock_put(sk1); in tcp_v4_send_reset()
Dudp.c136 int (*saddr_comp)(const struct sock *sk1, in udp_lib_lport_inuse() argument
170 int (*saddr_comp)(const struct sock *sk1, in udp_lib_lport_inuse2() argument
206 int (*saddr_comp)(const struct sock *sk1, in udp_lib_get_port() argument
309 static int ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2) in ipv4_rcv_saddr_equal() argument
311 struct inet_sock *inet1 = inet_sk(sk1), *inet2 = inet_sk(sk2); in ipv4_rcv_saddr_equal()
Daf_inet.c723 struct sock *sk1 = sock->sk; in inet_accept() local
725 struct sock *sk2 = sk1->sk_prot->accept(sk1, flags, &err); in inet_accept()