Lines Matching refs:sk
52 int x25_output(struct sock *sk, struct sk_buff *skb) in x25_output() argument
58 struct x25_sock *x25 = x25_sk(sk); in x25_output()
71 release_sock(sk); in x25_output()
72 skbn = sock_alloc_send_skb(sk, frontlen + max_len, in x25_output()
74 lock_sock(sk); in x25_output()
80 SOCK_DEBUG(sk, "x25_output: fragment alloc" in x25_output()
105 skb_queue_tail(&sk->sk_write_queue, skbn); in x25_output()
111 skb_queue_tail(&sk->sk_write_queue, skb); in x25_output()
121 static void x25_send_iframe(struct sock *sk, struct sk_buff *skb) in x25_send_iframe() argument
123 struct x25_sock *x25 = x25_sk(sk); in x25_send_iframe()
141 void x25_kick(struct sock *sk) in x25_kick() argument
146 struct x25_sock *x25 = x25_sk(sk); in x25_kick()
164 if (!skb_peek(&sk->sk_write_queue)) in x25_kick()
182 skb = skb_dequeue(&sk->sk_write_queue); in x25_kick()
186 skb_queue_head(&sk->sk_write_queue, skb); in x25_kick()
190 skb_set_owner_w(skbn, sk); in x25_kick()
195 x25_send_iframe(sk, skbn); in x25_kick()
205 (skb = skb_dequeue(&sk->sk_write_queue)) != NULL); in x25_kick()
210 x25_stop_timer(sk); in x25_kick()
218 void x25_enquiry_response(struct sock *sk) in x25_enquiry_response() argument
220 struct x25_sock *x25 = x25_sk(sk); in x25_enquiry_response()
223 x25_write_internal(sk, X25_RNR); in x25_enquiry_response()
225 x25_write_internal(sk, X25_RR); in x25_enquiry_response()
230 x25_stop_timer(sk); in x25_enquiry_response()