Home
last modified time | relevance | path

Searched refs:sk2 (Results 1 – 19 of 19) sorted by relevance

/linux-4.4.14/drivers/isdn/mISDN/
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 = sk1; in dsp_dtmf_goertzel_decode()
196 sk2 >>= 8; in dsp_dtmf_goertzel_decode()
[all …]
/linux-4.4.14/net/ipv6/
Dinet6_connection_sock.c33 const struct sock *sk2; in inet6_csk_bind_conflict() local
43 sk_for_each_bound(sk2, &tb->owners) { in inet6_csk_bind_conflict()
44 if (sk != sk2 && in inet6_csk_bind_conflict()
46 !sk2->sk_bound_dev_if || in inet6_csk_bind_conflict()
47 sk->sk_bound_dev_if == sk2->sk_bound_dev_if)) { in inet6_csk_bind_conflict()
48 if ((!reuse || !sk2->sk_reuse || in inet6_csk_bind_conflict()
49 sk2->sk_state == TCP_LISTEN) && in inet6_csk_bind_conflict()
50 (!reuseport || !sk2->sk_reuseport || in inet6_csk_bind_conflict()
51 (sk2->sk_state != TCP_TIME_WAIT && in inet6_csk_bind_conflict()
53 sock_i_uid((struct sock *)sk2))))) { in inet6_csk_bind_conflict()
[all …]
Dinet6_hashtables.c209 struct sock *sk2; in __inet6_check_established() local
215 sk_nulls_for_each(sk2, node, &head->chain) { in __inet6_check_established()
216 if (sk2->sk_hash != hash) in __inet6_check_established()
219 if (likely(INET6_MATCH(sk2, net, saddr, daddr, ports, dif))) { in __inet6_check_established()
220 if (sk2->sk_state == TCP_TIME_WAIT) { in __inet6_check_established()
221 tw = inet_twsk(sk2); in __inet6_check_established()
222 if (twsk_unique(sk, sk2, twp)) in __inet6_check_established()
Dudp.c79 int ipv6_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2) in ipv6_rcv_saddr_equal() argument
81 const struct in6_addr *sk2_rcv_saddr6 = inet6_rcv_saddr(sk2); in ipv6_rcv_saddr_equal()
82 int sk2_ipv6only = inet_v6_ipv6only(sk2); in ipv6_rcv_saddr_equal()
89 (!sk->sk_rcv_saddr || !sk2->sk_rcv_saddr || in ipv6_rcv_saddr_equal()
90 sk->sk_rcv_saddr == sk2->sk_rcv_saddr)); in ipv6_rcv_saddr_equal()
Dtcp_ipv6.c1502 struct sock *sk2; in tcp_v6_rcv() local
1504 sk2 = inet6_lookup_listener(dev_net(skb->dev), &tcp_hashinfo, in tcp_v6_rcv()
1508 if (sk2) { in tcp_v6_rcv()
1511 sk = sk2; in tcp_v6_rcv()
/linux-4.4.14/crypto/
Daf_alg.c273 struct sock *sk2; in af_alg_accept() local
284 sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto, 0); in af_alg_accept()
286 if (!sk2) in af_alg_accept()
289 sock_init_data(newsock, sk2); in af_alg_accept()
290 sock_graft(sk2, newsock); in af_alg_accept()
291 security_sk_clone(sk, sk2); in af_alg_accept()
293 err = type->accept(ask->private, sk2); in af_alg_accept()
297 err = type->accept_nokey(ask->private, sk2); in af_alg_accept()
302 sk2->sk_family = PF_ALG; in af_alg_accept()
307 alg_sk(sk2)->parent = sk; in af_alg_accept()
[all …]
Dalgif_hash.c188 struct sock *sk2; in hash_accept() local
206 sk2 = newsock->sk; in hash_accept()
207 ask2 = alg_sk(sk2); in hash_accept()
216 sock_orphan(sk2); in hash_accept()
217 sock_put(sk2); in hash_accept()
/linux-4.4.14/drivers/isdn/i4l/
Disdn_audio.c452 sk2; in isdn_audio_goertzel() local
467 sk = sk1 = sk2 = 0; in isdn_audio_goertzel()
469 sk = sample[n] + ((cos2pik[k] * sk1) >> 15) - sk2; in isdn_audio_goertzel()
470 sk2 = sk1; in isdn_audio_goertzel()
475 sk2 >>= 1; in isdn_audio_goertzel()
482 if (sk2 < -32768 || sk2 > 32767) in isdn_audio_goertzel()
484 "isdn_audio: dtmf goertzel overflow, sk2=%d\n", sk2); in isdn_audio_goertzel()
487 ((((cos2pik[k] * sk) >> 15) * sk2) >> AMP_BITS) + in isdn_audio_goertzel()
488 ((sk2 * sk2) >> AMP_BITS); in isdn_audio_goertzel()
/linux-4.4.14/net/ipv4/
Dinet_connection_sock.c49 struct sock *sk2; in inet_csk_bind_conflict() local
61 sk_for_each_bound(sk2, &tb->owners) { in inet_csk_bind_conflict()
62 if (sk != sk2 && in inet_csk_bind_conflict()
63 !inet_v6_ipv6only(sk2) && in inet_csk_bind_conflict()
65 !sk2->sk_bound_dev_if || in inet_csk_bind_conflict()
66 sk->sk_bound_dev_if == sk2->sk_bound_dev_if)) { in inet_csk_bind_conflict()
67 if ((!reuse || !sk2->sk_reuse || in inet_csk_bind_conflict()
68 sk2->sk_state == TCP_LISTEN) && in inet_csk_bind_conflict()
69 (!reuseport || !sk2->sk_reuseport || in inet_csk_bind_conflict()
70 (sk2->sk_state != TCP_TIME_WAIT && in inet_csk_bind_conflict()
[all …]
Dudp.c140 const struct sock *sk2), in udp_lib_lport_inuse() argument
143 struct sock *sk2; in udp_lib_lport_inuse() local
147 sk_nulls_for_each(sk2, node, &hslot->head) { in udp_lib_lport_inuse()
148 if (net_eq(sock_net(sk2), net) && in udp_lib_lport_inuse()
149 sk2 != sk && in udp_lib_lport_inuse()
150 (bitmap || udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse()
151 (!sk2->sk_reuse || !sk->sk_reuse) && in udp_lib_lport_inuse()
152 (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if || in udp_lib_lport_inuse()
153 sk2->sk_bound_dev_if == sk->sk_bound_dev_if) && in udp_lib_lport_inuse()
154 (!sk2->sk_reuseport || !sk->sk_reuseport || in udp_lib_lport_inuse()
[all …]
Dinet_hashtables.c349 struct sock *sk2; in __inet_check_established() local
355 sk_nulls_for_each(sk2, node, &head->chain) { in __inet_check_established()
356 if (sk2->sk_hash != hash) in __inet_check_established()
359 if (likely(INET_MATCH(sk2, net, acookie, in __inet_check_established()
361 if (sk2->sk_state == TCP_TIME_WAIT) { in __inet_check_established()
362 tw = inet_twsk(sk2); in __inet_check_established()
363 if (twsk_unique(sk, sk2, twp)) in __inet_check_established()
Dping.c87 struct sock *sk2 = NULL; in ping_get_port() local
100 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port()
101 isk2 = inet_sk(sk2); in ping_get_port()
117 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port()
118 isk2 = inet_sk(sk2); in ping_get_port()
125 (sk2 != sk) && in ping_get_port()
126 (!sk2->sk_reuse || !sk->sk_reuse)) in ping_get_port()
Daf_inet.c671 struct sock *sk2 = sk1->sk_prot->accept(sk1, flags, &err); in inet_accept() local
673 if (!sk2) in inet_accept()
676 lock_sock(sk2); in inet_accept()
678 sock_rps_record_flow(sk2); in inet_accept()
679 WARN_ON(!((1 << sk2->sk_state) & in inet_accept()
683 sock_graft(sk2, newsock); in inet_accept()
687 release_sock(sk2); in inet_accept()
Dtcp_ipv4.c1700 struct sock *sk2 = inet_lookup_listener(dev_net(skb->dev), in tcp_v4_rcv() local
1705 if (sk2) { in tcp_v4_rcv()
1707 sk = sk2; in tcp_v4_rcv()
/linux-4.4.14/net/netfilter/
Dxt_TPROXY.c268 struct sock *sk2; in tproxy_handle_time_wait4() local
270 sk2 = nf_tproxy_get_sock_v4(net, iph->protocol, in tproxy_handle_time_wait4()
274 if (sk2) { in tproxy_handle_time_wait4()
276 sk = sk2; in tproxy_handle_time_wait4()
430 struct sock *sk2; in tproxy_handle_time_wait6() local
432 sk2 = nf_tproxy_get_sock_v6(par->net, tproto, in tproxy_handle_time_wait6()
438 if (sk2) { in tproxy_handle_time_wait6()
440 sk = sk2; in tproxy_handle_time_wait6()
/linux-4.4.14/net/unix/
Daf_unix.c1084 static void unix_state_double_lock(struct sock *sk1, struct sock *sk2) in unix_state_double_lock() argument
1086 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_lock()
1090 if (sk1 < sk2) { in unix_state_double_lock()
1092 unix_state_lock_nested(sk2); in unix_state_double_lock()
1094 unix_state_lock(sk2); in unix_state_double_lock()
1099 static void unix_state_double_unlock(struct sock *sk1, struct sock *sk2) in unix_state_double_unlock() argument
1101 if (unlikely(sk1 == sk2) || !sk2) { in unix_state_double_unlock()
1106 unix_state_unlock(sk2); in unix_state_double_unlock()
/linux-4.4.14/include/net/
Daddrconf.h90 int ipv6_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2);
/linux-4.4.14/net/sctp/
Dsocket.c6213 struct sock *sk2; in sctp_get_port_local() local
6231 sk_for_each_bound(sk2, &pp->owner) { in sctp_get_port_local()
6233 ep2 = sctp_sk(sk2)->ep; in sctp_get_port_local()
6235 if (sk == sk2 || in sctp_get_port_local()
6236 (reuse && sk2->sk_reuse && in sctp_get_port_local()
6237 sk2->sk_state != SCTP_SS_LISTENING)) in sctp_get_port_local()
6241 sctp_sk(sk2), sctp_sk(sk))) { in sctp_get_port_local()
6242 ret = (long)sk2; in sctp_get_port_local()
/linux-4.4.14/net/decnet/
Ddn_nsp_in.c717 static int dn_nsp_rx_packet(struct net *net, struct sock *sk2, in dn_nsp_rx_packet() argument