Home
last modified time | relevance | path

Searched refs:sk2 (Results 1 - 25 of 43) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/isdn/mISDN/
H A Ddsp_dtmf.c123 s32 sk, sk1, sk2; in dsp_dtmf_goertzel_decode() local
159 sk2 = (*hfccoeff++) >> 4; in dsp_dtmf_goertzel_decode()
161 if (sk > 32767 || sk < -32767 || sk2 > 32767 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()
191 sk = ((cos2pik_ * sk1) >> 15) - sk2 + (*buf++); in dsp_dtmf_goertzel_decode()
192 sk2 in dsp_dtmf_goertzel_decode()
[all...]
/kernel/linux/linux-6.6/drivers/isdn/mISDN/
H A Ddsp_dtmf.c123 s32 sk, sk1, sk2; in dsp_dtmf_goertzel_decode() local
159 sk2 = (*hfccoeff++) >> 4; in dsp_dtmf_goertzel_decode()
161 if (sk > 32767 || sk < -32767 || sk2 > 32767 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()
191 sk = ((cos2pik_ * sk1) >> 15) - sk2 + (*buf++); in dsp_dtmf_goertzel_decode()
192 sk2 in dsp_dtmf_goertzel_decode()
[all...]
/kernel/linux/linux-5.10/net/core/
H A Dsock_reuseport.c151 * @sk2: Socket belonging to the existing reuseport group.
156 int reuseport_add_sock(struct sock *sk, struct sock *sk2, bool bind_inany) in reuseport_add_sock() argument
160 if (!rcu_access_pointer(sk2->sk_reuseport_cb)) { in reuseport_add_sock()
161 int err = reuseport_alloc(sk2, bind_inany); in reuseport_add_sock()
168 reuse = rcu_dereference_protected(sk2->sk_reuseport_cb, in reuseport_add_sock()
280 struct sock *sk2 = NULL; in reuseport_select_sock() local
300 sk2 = bpf_run_sk_reuseport(reuse, sk, prog, skb, hash); in reuseport_select_sock()
302 sk2 = run_bpf_filter(reuse, socks, prog, skb, hdr_len); in reuseport_select_sock()
306 if (!sk2) { in reuseport_select_sock()
317 sk2 in reuseport_select_sock()
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dinet_connection_sock.c91 bool inet_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2, in inet_rcv_saddr_equal() argument
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()
105 return ipv4_rcv_saddr_equal(sk->sk_rcv_saddr, sk2->sk_rcv_saddr, in inet_rcv_saddr_equal()
106 ipv6_only_sock(sk2), match_wildcard, in inet_rcv_saddr_equal()
167 static bool inet_bind_conflict(const struct sock *sk, struct sock *sk2, in inet_bind_conflict() argument
173 if (sk == sk2) in inet_bind_conflict()
176 bound_dev_if2 = READ_ONCE(sk2->sk_bound_dev_if); in inet_bind_conflict()
180 if (sk->sk_reuse && sk2 in inet_bind_conflict()
197 __inet_bhash2_conflict(const struct sock *sk, struct sock *sk2, kuid_t sk_uid, bool relax, bool reuseport_cb_ok, bool reuseport_ok) __inet_bhash2_conflict() argument
215 struct sock *sk2; inet_bhash2_conflict() local
258 struct sock *sk2; inet_csk_bind_conflict() local
[all...]
H A Dinet_hashtables.c561 struct sock *sk2; in __inet_check_established() local
567 sk_nulls_for_each(sk2, node, &head->chain) { in __inet_check_established()
568 if (sk2->sk_hash != hash) in __inet_check_established()
571 if (likely(inet_match(net, sk2, acookie, ports, dif, sdif))) { in __inet_check_established()
572 if (sk2->sk_state == TCP_TIME_WAIT) { in __inet_check_established()
573 tw = inet_twsk(sk2); in __inet_check_established()
574 if (twsk_unique(sk, sk2, twp)) in __inet_check_established()
715 struct sock *sk2; in inet_reuseport_add_sock() local
718 sk_nulls_for_each_rcu(sk2, node, &ilb->nulls_head) { in inet_reuseport_add_sock()
719 if (sk2 ! in inet_reuseport_add_sock()
[all...]
H A Dudp.c146 struct sock *sk2; in udp_lib_lport_inuse() local
149 sk_for_each(sk2, &hslot->head) { in udp_lib_lport_inuse()
150 if (net_eq(sock_net(sk2), net) && in udp_lib_lport_inuse()
151 sk2 != sk && in udp_lib_lport_inuse()
152 (bitmap || udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse()
153 (!sk2->sk_reuse || !sk->sk_reuse) && in udp_lib_lport_inuse()
154 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || in udp_lib_lport_inuse()
155 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_lib_lport_inuse()
156 inet_rcv_saddr_equal(sk, sk2, true)) { in udp_lib_lport_inuse()
157 if (sk2 in udp_lib_lport_inuse()
181 struct sock *sk2; udp_lib_lport_inuse2() local
212 struct sock *sk2; udp_reuseport_add_sock() local
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dinet_hashtables.c465 struct sock *sk2; in __inet_check_established() local
471 sk_nulls_for_each(sk2, node, &head->chain) { in __inet_check_established()
472 if (sk2->sk_hash != hash) in __inet_check_established()
475 if (likely(INET_MATCH(net, sk2, acookie, ports, dif, sdif))) { in __inet_check_established()
476 if (sk2->sk_state == TCP_TIME_WAIT) { in __inet_check_established()
477 tw = inet_twsk(sk2); in __inet_check_established()
478 if (twsk_unique(sk, sk2, twp)) in __inet_check_established()
619 struct sock *sk2; in inet_reuseport_add_sock() local
622 sk_nulls_for_each_rcu(sk2, node, &ilb->nulls_head) { in inet_reuseport_add_sock()
623 if (sk2 ! in inet_reuseport_add_sock()
[all...]
H A Dinet_connection_sock.c91 bool inet_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2, in inet_rcv_saddr_equal() argument
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()
106 return ipv4_rcv_saddr_equal(sk->sk_rcv_saddr, sk2->sk_rcv_saddr, in inet_rcv_saddr_equal()
107 ipv6_only_sock(sk2), match_wildcard, in inet_rcv_saddr_equal()
138 struct sock *sk2; in inet_csk_bind_conflict() local
150 sk_for_each_bound(sk2, &tb->owners) { in inet_csk_bind_conflict()
153 if (sk == sk2) in inet_csk_bind_conflict()
155 bound_dev_if2 = READ_ONCE(sk2 in inet_csk_bind_conflict()
[all...]
H A Dudp.c137 struct sock *sk2; in udp_lib_lport_inuse() local
140 sk_for_each(sk2, &hslot->head) { in udp_lib_lport_inuse()
141 if (net_eq(sock_net(sk2), net) && in udp_lib_lport_inuse()
142 sk2 != sk && in udp_lib_lport_inuse()
143 (bitmap || udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse()
144 (!sk2->sk_reuse || !sk->sk_reuse) && in udp_lib_lport_inuse()
145 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || in udp_lib_lport_inuse()
146 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_lib_lport_inuse()
147 inet_rcv_saddr_equal(sk, sk2, true)) { in udp_lib_lport_inuse()
148 if (sk2 in udp_lib_lport_inuse()
172 struct sock *sk2; udp_lib_lport_inuse2() local
203 struct sock *sk2; udp_reuseport_add_sock() local
[all...]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c34 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()
/kernel/linux/linux-5.10/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c57 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()
/kernel/linux/linux-6.6/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c34 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()
/kernel/linux/linux-6.6/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c57 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()
/kernel/linux/linux-6.6/net/core/
H A Dsock_reuseport.c316 * @sk2: Socket belonging to the existing reuseport group.
321 int reuseport_add_sock(struct sock *sk, struct sock *sk2, bool bind_inany) in reuseport_add_sock() argument
325 if (!rcu_access_pointer(sk2->sk_reuseport_cb)) { in reuseport_add_sock()
326 int err = reuseport_alloc(sk2, bind_inany); in reuseport_add_sock()
333 reuse = rcu_dereference_protected(sk2->sk_reuseport_cb, in reuseport_add_sock()
405 * shutdown()ed, and then sk2 has listen()ed on the same port in reuseport_resurrect()
409 * sk2 listen()s on. in reuseport_resurrect()
576 struct sock *sk2 = NULL; in reuseport_select_sock() local
596 sk2 = bpf_run_sk_reuseport(reuse, sk, prog, skb, NULL, hash); in reuseport_select_sock()
598 sk2 in reuseport_select_sock()
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Dinet6_hashtables.c262 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(net, sk2, 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()
/kernel/linux/linux-6.6/net/ipv6/
H A Dinet6_hashtables.c280 struct sock *sk2; in __inet6_check_established() local
286 sk_nulls_for_each(sk2, node, &head->chain) { in __inet6_check_established()
287 if (sk2->sk_hash != hash) in __inet6_check_established()
290 if (likely(inet6_match(net, sk2, saddr, daddr, ports, in __inet6_check_established()
292 if (sk2->sk_state == TCP_TIME_WAIT) { in __inet6_check_established()
293 tw = inet_twsk(sk2); in __inet6_check_established()
294 if (twsk_unique(sk, sk2, twp)) in __inet6_check_established()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_sk_lookup.c319 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()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_sk_lookup.c327 struct bpf_sock *sk1 = NULL, *sk2 = NULL; in access_ctx_sk() local
360 sk2 = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_B); in access_ctx_sk()
361 if (!sk2) in access_ctx_sk()
363 err = bpf_sk_assign(ctx, sk2, BPF_SK_LOOKUP_F_REPLACE); in access_ctx_sk()
366 if (ctx->sk != sk2) in access_ctx_sk()
379 if (sk2) in access_ctx_sk()
380 bpf_sk_release(sk2); in access_ctx_sk()
/kernel/linux/linux-5.10/crypto/
H A Dalgif_hash.c238 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()
H A Daf_alg.c281 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) in af_alg_accept()
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dalgif_hash.c234 struct sock *sk2; in hash_accept() local
259 sk2 = newsock->sk; in hash_accept()
260 ask2 = alg_sk(sk2); in hash_accept()
269 sock_orphan(sk2); in hash_accept()
270 sock_put(sk2); in hash_accept()
H A Daf_alg.c414 struct sock *sk2; in af_alg_accept() local
425 sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto, kern); in af_alg_accept()
427 if (!sk2) in af_alg_accept()
430 sock_init_data(newsock, sk2); in af_alg_accept()
431 security_sock_graft(sk2, newsock); in af_alg_accept()
432 security_sk_clone(sk, sk2); in af_alg_accept()
439 err = type->accept(ask->private, sk2); in af_alg_accept()
443 err = type->accept_nokey(ask->private, sk2); in af_alg_accept()
452 atomic_set(&alg_sk(sk2)->nokey_refcnt, 1); in af_alg_accept()
454 alg_sk(sk2) in af_alg_accept()
[all...]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
H A Dninet_hashtables.c460 struct sock *sk2; in __ninet_check_established() local
465 sk_nulls_for_each(sk2, node, &head->chain) { in __ninet_check_established()
466 if (sk2->sk_hash != hash) in __ninet_check_established()
469 if (likely(ninet_match(sk2, net, in __ninet_check_established()
/kernel/linux/linux-5.10/include/net/
H A Dsock_reuseport.h31 extern int reuseport_add_sock(struct sock *sk, struct sock *sk2,
/kernel/linux/linux-6.6/include/net/
H A Dsock_reuseport.h33 extern int reuseport_add_sock(struct sock *sk, struct sock *sk2,

Completed in 21 milliseconds

12