Home
last modified time | relevance | path

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

/net/unix/
Daf_unix.c1337 static void unix_state_double_lock(struct sock *sk1, struct sock *sk2) in unix_state_double_lock() argument
1339 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_lock()
1340 unix_state_lock(sk1); in unix_state_double_lock()
1343 if (sk1 > sk2) in unix_state_double_lock()
1344 swap(sk1, sk2); in unix_state_double_lock()
1346 unix_state_lock(sk1); in unix_state_double_lock()
1350 static void unix_state_double_unlock(struct sock *sk1, struct sock *sk2) in unix_state_double_unlock() argument
1352 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_unlock()
1353 unix_state_unlock(sk1); in unix_state_double_unlock()
1356 unix_state_unlock(sk1); in unix_state_double_unlock()
/net/bluetooth/rfcomm/
Dsock.c129 struct sock *sk = NULL, *sk1 = NULL; in rfcomm_get_sock_by_channel() local
144 sk1 = sk; in rfcomm_get_sock_by_channel()
150 return sk ? sk : sk1; in rfcomm_get_sock_by_channel()
/net/bluetooth/
Dsco.c371 struct sock *sk = NULL, *sk1 = NULL; in sco_get_sock_listen() local
385 sk1 = sk; in sco_get_sock_listen()
390 return sk ? sk : sk1; in sco_get_sock_listen()
Diso.c592 struct sock *sk = NULL, *sk1 = NULL; in iso_get_sock_listen() local
614 sk1 = sk; in iso_get_sock_listen()
619 return sk ? sk : sk1; in iso_get_sock_listen()
/net/ipv6/
Dtcp_ipv6.c985 struct sock *sk1 = NULL; in tcp_v6_send_reset() local
1026 sk1 = inet6_lookup_listener(net, net->ipv4.tcp_death_row.hashinfo, in tcp_v6_send_reset()
1030 if (!sk1) in tcp_v6_send_reset()
1038 key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr, l3index); in tcp_v6_send_reset()
/net/ipv4/
Daf_inet.c785 struct sock *sk1 = sock->sk, *sk2; in inet_accept() local
789 sk2 = READ_ONCE(sk1->sk_prot)->accept(sk1, flags, &err, kern); in inet_accept()
Dtcp_ipv4.c697 struct sock *sk1 = NULL; in tcp_v4_send_reset() local
760 sk1 = __inet_lookup_listener(net, net->ipv4.tcp_death_row.hashinfo, in tcp_v4_send_reset()
765 if (!sk1) in tcp_v4_send_reset()
773 key = tcp_md5_do_lookup(sk1, l3index, addr, AF_INET); in tcp_v4_send_reset()