Lines Matching defs:sk
35 struct sock *sk = ax25->sk;
37 if (sk)
38 bh_lock_sock(sk);
44 if (!sk || sock_flag(sk, SOCK_DESTROY) ||
45 (sk->sk_state == TCP_LISTEN &&
46 sock_flag(sk, SOCK_DEAD))) {
47 if (sk) {
48 sock_hold(sk);
50 bh_unlock_sock(sk);
51 sock_put(sk);
63 if (sk != NULL) {
64 if (atomic_read(&sk->sk_rmem_alloc) <
65 (sk->sk_rcvbuf >> 1) &&
75 if (sk)
76 bh_unlock_sock(sk);
109 if (ax25->sk != NULL) {
110 bh_lock_sock(ax25->sk);
111 ax25->sk->sk_state = TCP_CLOSE;
112 ax25->sk->sk_err = 0;
113 ax25->sk->sk_shutdown |= SEND_SHUTDOWN;
114 if (!sock_flag(ax25->sk, SOCK_DEAD)) {
115 ax25->sk->sk_state_change(ax25->sk);
116 sock_set_flag(ax25->sk, SOCK_DEAD);
118 bh_unlock_sock(ax25->sk);