Home
last modified time | relevance | path

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

/net/unix/
Daf_unix.c1115 static void unix_state_double_lock(struct sock *sk1, struct sock *sk2) in unix_state_double_lock() argument
1117 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_lock()
1118 unix_state_lock(sk1); in unix_state_double_lock()
1121 if (sk1 > sk2) in unix_state_double_lock()
1122 swap(sk1, sk2); in unix_state_double_lock()
1124 unix_state_lock(sk1); in unix_state_double_lock()
1128 static void unix_state_double_unlock(struct sock *sk1, struct sock *sk2) in unix_state_double_unlock() argument
1130 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_unlock()
1131 unix_state_unlock(sk1); in unix_state_double_unlock()
1134 unix_state_unlock(sk1); in unix_state_double_unlock()
/net/bluetooth/rfcomm/
Dsock.c132 struct sock *sk = NULL, *sk1 = NULL; in rfcomm_get_sock_by_channel() local
147 sk1 = sk; in rfcomm_get_sock_by_channel()
153 return sk ? sk : sk1; in rfcomm_get_sock_by_channel()
/net/bluetooth/
Dsco.c342 struct sock *sk = NULL, *sk1 = NULL; in sco_get_sock_listen() local
356 sk1 = sk; in sco_get_sock_listen()
361 return sk ? sk : sk1; in sco_get_sock_listen()
/net/ipv6/
Dtcp_ipv6.c951 struct sock *sk1 = NULL; in tcp_v6_send_reset() local
981 sk1 = inet6_lookup_listener(net, in tcp_v6_send_reset()
988 if (!sk1) in tcp_v6_send_reset()
991 key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr); in tcp_v6_send_reset()
/net/ipv4/
Daf_inet.c736 struct sock *sk1 = sock->sk; in inet_accept() local
738 struct sock *sk2 = sk1->sk_prot->accept(sk1, flags, &err, kern); in inet_accept()
Dtcp_ipv4.c668 struct sock *sk1 = NULL; in tcp_v4_send_reset() local
718 sk1 = __inet_lookup_listener(net, &tcp_hashinfo, NULL, 0, in tcp_v4_send_reset()
724 if (!sk1) in tcp_v4_send_reset()
727 key = tcp_md5_do_lookup(sk1, (union tcp_md5_addr *) in tcp_v4_send_reset()