Lines Matching defs:sk
31 struct sock *sk = ax25->sk;
33 if (sk)
34 bh_lock_sock(sk);
41 if (!sk || sock_flag(sk, SOCK_DESTROY) ||
42 (sk->sk_state == TCP_LISTEN &&
43 sock_flag(sk, SOCK_DEAD))) {
44 if (sk) {
45 sock_hold(sk);
47 bh_unlock_sock(sk);
49 sock_put(sk);
61 if (sk != NULL) {
62 if (atomic_read(&sk->sk_rmem_alloc) <
63 (sk->sk_rcvbuf >> 1) &&
73 if (sk)
74 bh_unlock_sock(sk);
107 if (ax25->sk != NULL) {
108 bh_lock_sock(ax25->sk);
109 ax25->sk->sk_state = TCP_CLOSE;
110 ax25->sk->sk_err = 0;
111 ax25->sk->sk_shutdown |= SEND_SHUTDOWN;
112 if (!sock_flag(ax25->sk, SOCK_DEAD)) {
113 ax25->sk->sk_state_change(ax25->sk);
114 sock_set_flag(ax25->sk, SOCK_DEAD);
116 bh_unlock_sock(ax25->sk);
146 if (!sock_flag(ax25->sk, SOCK_DESTROY))