Lines Matching refs:sk

39 void x25_clear_queues(struct sock *sk)  in x25_clear_queues()  argument
41 struct x25_sock *x25 = x25_sk(sk); in x25_clear_queues()
43 skb_queue_purge(&sk->sk_write_queue); in x25_clear_queues()
56 void x25_frames_acked(struct sock *sk, unsigned short nr) in x25_frames_acked() argument
59 struct x25_sock *x25 = x25_sk(sk); in x25_frames_acked()
73 void x25_requeue_frames(struct sock *sk) in x25_requeue_frames() argument
82 while ((skb = skb_dequeue(&x25_sk(sk)->ack_queue)) != NULL) { in x25_requeue_frames()
84 skb_queue_head(&sk->sk_write_queue, skb); in x25_requeue_frames()
86 skb_append(skb_prev, skb, &sk->sk_write_queue); in x25_requeue_frames()
95 int x25_validate_nr(struct sock *sk, unsigned short nr) in x25_validate_nr() argument
97 struct x25_sock *x25 = x25_sk(sk); in x25_validate_nr()
114 void x25_write_internal(struct sock *sk, int frametype) in x25_write_internal() argument
116 struct x25_sock *x25 = x25_sk(sk); in x25_write_internal()
270 int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q, in x25_decode() argument
273 struct x25_sock *x25 = x25_sk(sk); in x25_decode()
349 void x25_disconnect(struct sock *sk, int reason, unsigned char cause, in x25_disconnect() argument
352 struct x25_sock *x25 = x25_sk(sk); in x25_disconnect()
354 x25_clear_queues(sk); in x25_disconnect()
355 x25_stop_timer(sk); in x25_disconnect()
363 sk->sk_state = TCP_CLOSE; in x25_disconnect()
364 sk->sk_err = reason; in x25_disconnect()
365 sk->sk_shutdown |= SEND_SHUTDOWN; in x25_disconnect()
367 if (!sock_flag(sk, SOCK_DEAD)) { in x25_disconnect()
368 sk->sk_state_change(sk); in x25_disconnect()
369 sock_set_flag(sk, SOCK_DEAD); in x25_disconnect()
377 void x25_check_rbuf(struct sock *sk) in x25_check_rbuf() argument
379 struct x25_sock *x25 = x25_sk(sk); in x25_check_rbuf()
381 if (atomic_read(&sk->sk_rmem_alloc) < (sk->sk_rcvbuf >> 1) && in x25_check_rbuf()
386 x25_write_internal(sk, X25_RR); in x25_check_rbuf()
387 x25_stop_timer(sk); in x25_check_rbuf()