/linux/drivers/isdn/mISDN/ |
A D | dsp_dtmf.c | 123 s32 sk, sk1, sk2; in dsp_dtmf_goertzel_decode() local 159 sk2 = (*hfccoeff++) >> 4; in dsp_dtmf_goertzel_decode() 162 || sk2 < -32767) in dsp_dtmf_goertzel_decode() 168 (((cos2pik[k] * sk) >> 15) * sk2) + in dsp_dtmf_goertzel_decode() 169 (sk2 * sk2); in dsp_dtmf_goertzel_decode() 187 sk2 = 0; in dsp_dtmf_goertzel_decode() 192 sk2 = sk1; in dsp_dtmf_goertzel_decode() 196 sk2 >>= 8; in dsp_dtmf_goertzel_decode() 197 if (sk > 32767 || sk < -32767 || sk2 > 32767 || sk2 < -32767) in dsp_dtmf_goertzel_decode() 202 (((cos2pik[k] * sk) >> 15) * sk2) + in dsp_dtmf_goertzel_decode() [all …]
|
/linux/net/ipv4/ |
A D | inet_connection_sock.c | 97 inet6_rcv_saddr(sk2), in inet_rcv_saddr_equal() 99 sk2->sk_rcv_saddr, in inet_rcv_saddr_equal() 101 ipv6_only_sock(sk2), in inet_rcv_saddr_equal() 137 struct sock *sk2; in inet_csk_bind_conflict() local 157 sk_for_each_bound(sk2, &tb->owners) { in inet_csk_bind_conflict() 158 if (sk != sk2 && in inet_csk_bind_conflict() 160 !sk2->sk_bound_dev_if || in inet_csk_bind_conflict() 162 if (reuse && sk2->sk_reuse && in inet_csk_bind_conflict() 163 sk2->sk_state != TCP_LISTEN) { in inet_csk_bind_conflict() 175 (sk2->sk_state != TCP_TIME_WAIT && in inet_csk_bind_conflict() [all …]
|
A D | inet_hashtables.c | 458 struct sock *sk2; in __inet_check_established() local 465 if (sk2->sk_hash != hash) in __inet_check_established() 468 if (likely(INET_MATCH(sk2, net, acookie, in __inet_check_established() 470 if (sk2->sk_state == TCP_TIME_WAIT) { in __inet_check_established() 471 tw = inet_twsk(sk2); in __inet_check_established() 472 if (twsk_unique(sk, sk2, twp)) in __inet_check_established() 615 struct sock *sk2; in inet_reuseport_add_sock() local 619 if (sk2 != sk && in inet_reuseport_add_sock() 620 sk2->sk_family == sk->sk_family && in inet_reuseport_add_sock() 624 sk2->sk_reuseport && uid_eq(uid, sock_i_uid(sk2)) && in inet_reuseport_add_sock() [all …]
|
A D | udp.c | 136 struct sock *sk2; in udp_lib_lport_inuse() local 139 sk_for_each(sk2, &hslot->head) { in udp_lib_lport_inuse() 140 if (net_eq(sock_net(sk2), net) && in udp_lib_lport_inuse() 141 sk2 != sk && in udp_lib_lport_inuse() 171 struct sock *sk2; in udp_lib_lport_inuse2() local 177 if (net_eq(sock_net(sk2), net) && in udp_lib_lport_inuse2() 178 sk2 != sk && in udp_lib_lport_inuse2() 202 struct sock *sk2; in udp_reuseport_add_sock() local 204 sk_for_each(sk2, &hslot->head) { in udp_reuseport_add_sock() 206 sk2 != sk && in udp_reuseport_add_sock() [all …]
|
A D | ping.c | 82 struct sock *sk2 = NULL; in ping_get_port() local 95 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port() 96 isk2 = inet_sk(sk2); in ping_get_port() 112 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port() 113 isk2 = inet_sk(sk2); in ping_get_port() 120 (sk2 != sk) && in ping_get_port() 121 (!sk2->sk_reuse || !sk->sk_reuse)) in ping_get_port()
|
A D | af_inet.c | 739 struct sock *sk2 = sk1->sk_prot->accept(sk1, flags, &err, kern); in inet_accept() local 741 if (!sk2) in inet_accept() 744 lock_sock(sk2); in inet_accept() 746 sock_rps_record_flow(sk2); in inet_accept() 747 WARN_ON(!((1 << sk2->sk_state) & in inet_accept() 751 sock_graft(sk2, newsock); in inet_accept() 755 release_sock(sk2); in inet_accept()
|
A D | tcp_ipv4.c | 2167 struct sock *sk2 = inet_lookup_listener(dev_net(skb->dev), in tcp_v4_rcv() local 2174 if (sk2) { in tcp_v4_rcv() 2176 sk = sk2; in tcp_v4_rcv()
|
/linux/net/core/ |
A D | sock_reuseport.c | 235 int reuseport_add_sock(struct sock *sk, struct sock *sk2, bool bind_inany) in reuseport_add_sock() argument 239 if (!rcu_access_pointer(sk2->sk_reuseport_cb)) { in reuseport_add_sock() 240 int err = reuseport_alloc(sk2, bind_inany); in reuseport_add_sock() 247 reuse = rcu_dereference_protected(sk2->sk_reuseport_cb, in reuseport_add_sock() 476 struct sock *sk2 = NULL; in reuseport_select_sock() local 496 sk2 = bpf_run_sk_reuseport(reuse, sk, prog, skb, NULL, hash); in reuseport_select_sock() 498 sk2 = run_bpf_filter(reuse, socks, prog, skb, hdr_len); in reuseport_select_sock() 502 if (!sk2) in reuseport_select_sock() 503 sk2 = reuseport_select_sock_by_hash(reuse, hash, socks); in reuseport_select_sock() 508 return sk2; in reuseport_select_sock()
|
/linux/net/ipv4/netfilter/ |
A D | nf_tproxy_ipv4.c | 34 struct sock *sk2; in nf_tproxy_handle_time_wait4() local 36 sk2 = nf_tproxy_get_sock_v4(net, skb, iph->protocol, in nf_tproxy_handle_time_wait4() 40 if (sk2) { in nf_tproxy_handle_time_wait4() 42 sk = sk2; in nf_tproxy_handle_time_wait4()
|
/linux/net/ipv6/ |
A D | inet6_hashtables.c | 262 struct sock *sk2; in __inet6_check_established() local 268 sk_nulls_for_each(sk2, node, &head->chain) { in __inet6_check_established() 269 if (sk2->sk_hash != hash) in __inet6_check_established() 272 if (likely(INET6_MATCH(sk2, net, saddr, daddr, ports, in __inet6_check_established() 274 if (sk2->sk_state == TCP_TIME_WAIT) { in __inet6_check_established() 275 tw = inet_twsk(sk2); in __inet6_check_established() 276 if (twsk_unique(sk, sk2, twp)) in __inet6_check_established()
|
A D | tcp_ipv6.c | 1820 struct sock *sk2; in tcp_v6_rcv() local 1822 sk2 = inet6_lookup_listener(dev_net(skb->dev), &tcp_hashinfo, in tcp_v6_rcv() 1829 if (sk2) { in tcp_v6_rcv() 1832 sk = sk2; in tcp_v6_rcv()
|
/linux/net/ipv6/netfilter/ |
A D | nf_tproxy_ipv6.c | 57 struct sock *sk2; in nf_tproxy_handle_time_wait6() local 59 sk2 = nf_tproxy_get_sock_v6(net, skb, thoff, tproto, in nf_tproxy_handle_time_wait6() 65 if (sk2) { in nf_tproxy_handle_time_wait6() 67 sk = sk2; in nf_tproxy_handle_time_wait6()
|
/linux/crypto/ |
A D | af_alg.c | 281 struct sock *sk2; in af_alg_accept() local 292 sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto, kern); in af_alg_accept() 294 if (!sk2) in af_alg_accept() 297 sock_init_data(newsock, sk2); in af_alg_accept() 298 security_sock_graft(sk2, newsock); in af_alg_accept() 299 security_sk_clone(sk, sk2); in af_alg_accept() 306 err = type->accept(ask->private, sk2); in af_alg_accept() 310 err = type->accept_nokey(ask->private, sk2); in af_alg_accept() 319 atomic_set(&alg_sk(sk2)->nokey_refcnt, 1); in af_alg_accept() 321 alg_sk(sk2)->parent = sk; in af_alg_accept() [all …]
|
A D | algif_hash.c | 238 struct sock *sk2; in hash_accept() local 256 sk2 = newsock->sk; in hash_accept() 257 ask2 = alg_sk(sk2); in hash_accept() 266 sock_orphan(sk2); in hash_accept() 267 sock_put(sk2); in hash_accept()
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_sk_lookup.c | 319 struct bpf_sock *sk1 = NULL, *sk2 = NULL; in access_ctx_sk() local 352 sk2 = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_B); in access_ctx_sk() 353 if (!sk2) in access_ctx_sk() 355 err = bpf_sk_assign(ctx, sk2, BPF_SK_LOOKUP_F_REPLACE); in access_ctx_sk() 358 if (ctx->sk != sk2) in access_ctx_sk() 371 if (sk2) in access_ctx_sk() 372 bpf_sk_release(sk2); in access_ctx_sk()
|
/linux/net/sctp/ |
A D | input.c | 765 struct sock *sk2 = epb2->sk; in __sctp_hash_endpoint() local 767 if (!net_eq(sock_net(sk2), net) || sk2 == sk || in __sctp_hash_endpoint() 768 !uid_eq(sock_i_uid(sk2), sock_i_uid(sk)) || in __sctp_hash_endpoint() 769 !sk2->sk_reuseport) in __sctp_hash_endpoint() 772 err = sctp_bind_addrs_check(sctp_sk(sk2), in __sctp_hash_endpoint() 775 err = reuseport_add_sock(sk, sk2, any); in __sctp_hash_endpoint()
|
A D | socket.c | 8384 struct sock *sk2; in sctp_get_port_local() local 8404 sk_for_each_bound(sk2, &pp->owner) { in sctp_get_port_local() 8405 struct sctp_sock *sp2 = sctp_sk(sk2); in sctp_get_port_local() 8408 if (sk == sk2 || in sctp_get_port_local() 8409 (reuse && (sk2->sk_reuse || sp2->reuse) && in sctp_get_port_local() 8410 sk2->sk_state != SCTP_SS_LISTENING) || in sctp_get_port_local() 8411 (sk->sk_reuseport && sk2->sk_reuseport && in sctp_get_port_local() 8412 uid_eq(uid, sock_i_uid(sk2)))) in sctp_get_port_local()
|
/linux/include/net/ |
A D | sock_reuseport.h | 32 extern int reuseport_add_sock(struct sock *sk, struct sock *sk2,
|
A D | addrconf.h | 114 bool inet_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2,
|
/linux/net/unix/ |
A D | af_unix.c | 1188 static void unix_state_double_lock(struct sock *sk1, struct sock *sk2) in unix_state_double_lock() argument 1190 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_lock() 1194 if (sk1 < sk2) { in unix_state_double_lock() 1196 unix_state_lock_nested(sk2); in unix_state_double_lock() 1198 unix_state_lock(sk2); in unix_state_double_lock() 1203 static void unix_state_double_unlock(struct sock *sk1, struct sock *sk2) in unix_state_double_unlock() argument 1205 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_unlock() 1210 unix_state_unlock(sk2); in unix_state_double_unlock()
|
/linux/net/decnet/ |
A D | dn_nsp_in.c | 710 static int dn_nsp_rx_packet(struct net *net, struct sock *sk2, in dn_nsp_rx_packet() argument
|