Lines Matching refs:sk
32 static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb);
33 static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb);
34 static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *ev);
36 static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb);
38 static int llc_conn_ac_send_rr_rsp_f_set_ackpf(struct sock *sk,
41 static int llc_conn_ac_set_p_flag_1(struct sock *sk, struct sk_buff *skb);
45 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_clear_remote_busy() argument
47 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_clear_remote_busy()
56 llc_conn_resend_i_pdu_as_cmd(sk, nr, 0); in llc_conn_ac_clear_remote_busy()
61 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_conn_ind() argument
69 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_conn_confirm() argument
77 static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_data_confirm() argument
85 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_data_ind() argument
87 llc_conn_rtn_pdu(sk, skb); in llc_conn_ac_data_ind()
91 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_disc_ind() argument
119 int llc_conn_ac_disc_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_disc_confirm() argument
128 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_rst_ind() argument
134 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_rst_ind()
167 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_rst_confirm() argument
176 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk, in llc_conn_ac_clear_remote_busy_if_f_eq_1() argument
183 LLC_I_PF_IS_1(pdu) && llc_sk(sk)->ack_pf) in llc_conn_ac_clear_remote_busy_if_f_eq_1()
184 llc_conn_ac_clear_remote_busy(sk, skb); in llc_conn_ac_clear_remote_busy_if_f_eq_1()
188 int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk, in llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2() argument
191 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2()
198 int llc_conn_ac_send_disc_cmd_p_set_x(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_disc_cmd_p_set_x() argument
201 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_disc_cmd_p_set_x()
202 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_disc_cmd_p_set_x()
213 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_disc_cmd_p_set_x()
214 llc_conn_ac_set_p_flag_1(sk, skb); in llc_conn_ac_send_disc_cmd_p_set_x()
223 int llc_conn_ac_send_dm_rsp_f_set_p(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_dm_rsp_f_set_p() argument
226 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_dm_rsp_f_set_p()
227 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_dm_rsp_f_set_p()
240 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_dm_rsp_f_set_p()
249 int llc_conn_ac_send_dm_rsp_f_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_dm_rsp_f_set_1() argument
252 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_dm_rsp_f_set_1()
253 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_dm_rsp_f_set_1()
264 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_dm_rsp_f_set_1()
273 int llc_conn_ac_send_frmr_rsp_f_set_x(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_frmr_rsp_f_set_x() argument
279 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_frmr_rsp_f_set_x()
286 nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, in llc_conn_ac_send_frmr_rsp_f_set_x()
298 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_frmr_rsp_f_set_x()
307 int llc_conn_ac_resend_frmr_rsp_f_set_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_resend_frmr_rsp_f_set_0() argument
310 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_resend_frmr_rsp_f_set_0()
311 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, in llc_conn_ac_resend_frmr_rsp_f_set_0()
325 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_resend_frmr_rsp_f_set_0()
334 int llc_conn_ac_resend_frmr_rsp_f_set_p(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_resend_frmr_rsp_f_set_p() argument
339 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_resend_frmr_rsp_f_set_p()
342 nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, in llc_conn_ac_resend_frmr_rsp_f_set_p()
355 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_resend_frmr_rsp_f_set_p()
364 int llc_conn_ac_send_i_cmd_p_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_i_cmd_p_set_1() argument
367 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_i_cmd_p_set_1()
375 llc_conn_send_pdu(sk, skb); in llc_conn_ac_send_i_cmd_p_set_1()
376 llc_conn_ac_inc_vs_by_1(sk, skb); in llc_conn_ac_send_i_cmd_p_set_1()
381 static int llc_conn_ac_send_i_cmd_p_set_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_i_cmd_p_set_0() argument
384 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_i_cmd_p_set_0()
392 llc_conn_send_pdu(sk, skb); in llc_conn_ac_send_i_cmd_p_set_0()
393 llc_conn_ac_inc_vs_by_1(sk, skb); in llc_conn_ac_send_i_cmd_p_set_0()
398 int llc_conn_ac_send_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_i_xxx_x_set_0() argument
401 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_i_xxx_x_set_0()
409 llc_conn_send_pdu(sk, skb); in llc_conn_ac_send_i_xxx_x_set_0()
410 llc_conn_ac_inc_vs_by_1(sk, skb); in llc_conn_ac_send_i_xxx_x_set_0()
415 int llc_conn_ac_resend_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_resend_i_xxx_x_set_0() argument
420 llc_conn_resend_i_pdu_as_cmd(sk, nr, 0); in llc_conn_ac_resend_i_xxx_x_set_0()
424 int llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(struct sock *sk, in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() argument
430 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
431 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
441 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
448 llc_conn_resend_i_pdu_as_cmd(sk, nr, 0); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
453 int llc_conn_ac_resend_i_rsp_f_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_resend_i_rsp_f_set_1() argument
458 llc_conn_resend_i_pdu_as_rsp(sk, nr, 1); in llc_conn_ac_resend_i_rsp_f_set_1()
462 int llc_conn_ac_send_rej_cmd_p_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_rej_cmd_p_set_1() argument
465 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rej_cmd_p_set_1()
466 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rej_cmd_p_set_1()
477 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rej_cmd_p_set_1()
486 int llc_conn_ac_send_rej_rsp_f_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_rej_rsp_f_set_1() argument
489 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rej_rsp_f_set_1()
490 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rej_rsp_f_set_1()
501 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rej_rsp_f_set_1()
510 int llc_conn_ac_send_rej_xxx_x_set_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_rej_xxx_x_set_0() argument
513 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rej_xxx_x_set_0()
514 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rej_xxx_x_set_0()
525 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rej_xxx_x_set_0()
534 int llc_conn_ac_send_rnr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_rnr_cmd_p_set_1() argument
537 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rnr_cmd_p_set_1()
538 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rnr_cmd_p_set_1()
549 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rnr_cmd_p_set_1()
558 int llc_conn_ac_send_rnr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_rnr_rsp_f_set_1() argument
561 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rnr_rsp_f_set_1()
562 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rnr_rsp_f_set_1()
573 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rnr_rsp_f_set_1()
582 int llc_conn_ac_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_rnr_xxx_x_set_0() argument
585 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rnr_xxx_x_set_0()
586 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rnr_xxx_x_set_0()
597 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rnr_xxx_x_set_0()
606 int llc_conn_ac_set_remote_busy(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_remote_busy() argument
608 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_set_remote_busy()
618 int llc_conn_ac_opt_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_opt_send_rnr_xxx_x_set_0() argument
621 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_opt_send_rnr_xxx_x_set_0()
622 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_opt_send_rnr_xxx_x_set_0()
633 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_opt_send_rnr_xxx_x_set_0()
642 int llc_conn_ac_send_rr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_rr_cmd_p_set_1() argument
645 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rr_cmd_p_set_1()
646 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rr_cmd_p_set_1()
657 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rr_cmd_p_set_1()
666 int llc_conn_ac_send_rr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_rr_rsp_f_set_1() argument
669 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rr_rsp_f_set_1()
670 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rr_rsp_f_set_1()
682 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rr_rsp_f_set_1()
691 int llc_conn_ac_send_ack_rsp_f_set_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_ack_rsp_f_set_1() argument
694 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_ack_rsp_f_set_1()
695 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_ack_rsp_f_set_1()
706 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_ack_rsp_f_set_1()
715 int llc_conn_ac_send_rr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_rr_xxx_x_set_0() argument
718 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rr_xxx_x_set_0()
719 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rr_xxx_x_set_0()
730 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rr_xxx_x_set_0()
739 int llc_conn_ac_send_ack_xxx_x_set_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_ack_xxx_x_set_0() argument
742 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_ack_xxx_x_set_0()
743 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_ack_xxx_x_set_0()
754 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_ack_xxx_x_set_0()
763 void llc_conn_set_p_flag(struct sock *sk, u8 value) in llc_conn_set_p_flag() argument
765 int state_changed = llc_sk(sk)->p_flag && !value; in llc_conn_set_p_flag()
767 llc_sk(sk)->p_flag = value; in llc_conn_set_p_flag()
770 sk->sk_state_change(sk); in llc_conn_set_p_flag()
773 int llc_conn_ac_send_sabme_cmd_p_set_x(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_sabme_cmd_p_set_x() argument
776 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_sabme_cmd_p_set_x()
777 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_sabme_cmd_p_set_x()
791 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_sabme_cmd_p_set_x()
792 llc_conn_set_p_flag(sk, 1); in llc_conn_ac_send_sabme_cmd_p_set_x()
801 int llc_conn_ac_send_ua_rsp_f_set_p(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_ua_rsp_f_set_p() argument
805 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_ua_rsp_f_set_p()
806 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_ua_rsp_f_set_p()
819 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_ua_rsp_f_set_p()
828 int llc_conn_ac_set_s_flag_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_s_flag_0() argument
830 llc_sk(sk)->s_flag = 0; in llc_conn_ac_set_s_flag_0()
834 int llc_conn_ac_set_s_flag_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_s_flag_1() argument
836 llc_sk(sk)->s_flag = 1; in llc_conn_ac_set_s_flag_1()
840 int llc_conn_ac_start_p_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_start_p_timer() argument
842 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_start_p_timer()
844 llc_conn_set_p_flag(sk, 1); in llc_conn_ac_start_p_timer()
860 int llc_conn_ac_send_ack_if_needed(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_ack_if_needed() argument
863 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_ack_if_needed()
874 llc_conn_ac_send_rr_rsp_f_set_ackpf(sk, skb); in llc_conn_ac_send_ack_if_needed()
877 llc_conn_ac_inc_npta_value(sk, skb); in llc_conn_ac_send_ack_if_needed()
891 int llc_conn_ac_rst_sendack_flag(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_rst_sendack_flag() argument
893 llc_sk(sk)->ack_must_be_send = llc_sk(sk)->ack_pf = 0; in llc_conn_ac_rst_sendack_flag()
907 static int llc_conn_ac_send_i_rsp_f_set_ackpf(struct sock *sk, in llc_conn_ac_send_i_rsp_f_set_ackpf() argument
911 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_i_rsp_f_set_ackpf()
919 llc_conn_send_pdu(sk, skb); in llc_conn_ac_send_i_rsp_f_set_ackpf()
920 llc_conn_ac_inc_vs_by_1(sk, skb); in llc_conn_ac_send_i_rsp_f_set_ackpf()
935 int llc_conn_ac_send_i_as_ack(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_send_i_as_ack() argument
937 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_i_as_ack()
940 llc_conn_ac_send_i_rsp_f_set_ackpf(sk, skb); in llc_conn_ac_send_i_as_ack()
944 llc_conn_ac_send_i_cmd_p_set_0(sk, skb); in llc_conn_ac_send_i_as_ack()
958 static int llc_conn_ac_send_rr_rsp_f_set_ackpf(struct sock *sk, in llc_conn_ac_send_rr_rsp_f_set_ackpf() argument
962 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_send_rr_rsp_f_set_ackpf()
963 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rr_rsp_f_set_ackpf()
974 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rr_rsp_f_set_ackpf()
993 static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_inc_npta_value() argument
995 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_inc_npta_value()
1016 int llc_conn_ac_adjust_npta_by_rr(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_adjust_npta_by_rr() argument
1018 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_adjust_npta_by_rr()
1042 int llc_conn_ac_adjust_npta_by_rnr(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_adjust_npta_by_rnr() argument
1044 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_adjust_npta_by_rnr()
1067 int llc_conn_ac_dec_tx_win_size(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_dec_tx_win_size() argument
1069 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_dec_tx_win_size()
1087 int llc_conn_ac_inc_tx_win_size(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_inc_tx_win_size() argument
1089 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_inc_tx_win_size()
1097 int llc_conn_ac_stop_all_timers(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_all_timers() argument
1099 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_stop_all_timers()
1110 int llc_conn_ac_stop_other_timers(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_other_timers() argument
1112 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_stop_other_timers()
1122 int llc_conn_ac_start_ack_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_start_ack_timer() argument
1124 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_start_ack_timer()
1130 int llc_conn_ac_start_rej_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_start_rej_timer() argument
1132 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_start_rej_timer()
1139 int llc_conn_ac_start_ack_tmr_if_not_running(struct sock *sk, in llc_conn_ac_start_ack_tmr_if_not_running() argument
1142 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_start_ack_tmr_if_not_running()
1150 int llc_conn_ac_stop_ack_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_ack_timer() argument
1152 del_timer(&llc_sk(sk)->ack_timer.timer); in llc_conn_ac_stop_ack_timer()
1156 int llc_conn_ac_stop_p_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_p_timer() argument
1158 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_stop_p_timer()
1161 llc_conn_set_p_flag(sk, 0); in llc_conn_ac_stop_p_timer()
1165 int llc_conn_ac_stop_rej_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_rej_timer() argument
1167 del_timer(&llc_sk(sk)->rej_sent_timer.timer); in llc_conn_ac_stop_rej_timer()
1171 int llc_conn_ac_upd_nr_received(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_upd_nr_received() argument
1176 struct llc_sock *llc = llc_sk(sk); in llc_conn_ac_upd_nr_received()
1179 acked = llc_conn_remove_acked_pdus(sk, llc->last_nr, &unacked); in llc_conn_ac_upd_nr_received()
1190 llc_conn_ac_data_confirm(sk, skb); in llc_conn_ac_upd_nr_received()
1201 llc_conn_ac_data_confirm(sk, skb); in llc_conn_ac_upd_nr_received()
1207 int llc_conn_ac_upd_p_flag(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_upd_p_flag() argument
1216 llc_conn_set_p_flag(sk, 0); in llc_conn_ac_upd_p_flag()
1217 llc_conn_ac_stop_p_timer(sk, skb); in llc_conn_ac_upd_p_flag()
1223 int llc_conn_ac_set_data_flag_2(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_data_flag_2() argument
1225 llc_sk(sk)->data_flag = 2; in llc_conn_ac_set_data_flag_2()
1229 int llc_conn_ac_set_data_flag_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_data_flag_0() argument
1231 llc_sk(sk)->data_flag = 0; in llc_conn_ac_set_data_flag_0()
1235 int llc_conn_ac_set_data_flag_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_data_flag_1() argument
1237 llc_sk(sk)->data_flag = 1; in llc_conn_ac_set_data_flag_1()
1241 int llc_conn_ac_set_data_flag_1_if_data_flag_eq_0(struct sock *sk, in llc_conn_ac_set_data_flag_1_if_data_flag_eq_0() argument
1244 if (!llc_sk(sk)->data_flag) in llc_conn_ac_set_data_flag_1_if_data_flag_eq_0()
1245 llc_sk(sk)->data_flag = 1; in llc_conn_ac_set_data_flag_1_if_data_flag_eq_0()
1249 int llc_conn_ac_set_p_flag_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_p_flag_0() argument
1251 llc_conn_set_p_flag(sk, 0); in llc_conn_ac_set_p_flag_0()
1255 static int llc_conn_ac_set_p_flag_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_p_flag_1() argument
1257 llc_conn_set_p_flag(sk, 1); in llc_conn_ac_set_p_flag_1()
1261 int llc_conn_ac_set_remote_busy_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_remote_busy_0() argument
1263 llc_sk(sk)->remote_busy_flag = 0; in llc_conn_ac_set_remote_busy_0()
1267 int llc_conn_ac_set_cause_flag_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_cause_flag_0() argument
1269 llc_sk(sk)->cause_flag = 0; in llc_conn_ac_set_cause_flag_0()
1273 int llc_conn_ac_set_cause_flag_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_cause_flag_1() argument
1275 llc_sk(sk)->cause_flag = 1; in llc_conn_ac_set_cause_flag_1()
1279 int llc_conn_ac_set_retry_cnt_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_retry_cnt_0() argument
1281 llc_sk(sk)->retry_count = 0; in llc_conn_ac_set_retry_cnt_0()
1285 int llc_conn_ac_inc_retry_cnt_by_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_inc_retry_cnt_by_1() argument
1287 llc_sk(sk)->retry_count++; in llc_conn_ac_inc_retry_cnt_by_1()
1291 int llc_conn_ac_set_vr_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_vr_0() argument
1293 llc_sk(sk)->vR = 0; in llc_conn_ac_set_vr_0()
1297 int llc_conn_ac_inc_vr_by_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_inc_vr_by_1() argument
1299 llc_sk(sk)->vR = PDU_GET_NEXT_Vr(llc_sk(sk)->vR); in llc_conn_ac_inc_vr_by_1()
1303 int llc_conn_ac_set_vs_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_vs_0() argument
1305 llc_sk(sk)->vS = 0; in llc_conn_ac_set_vs_0()
1309 int llc_conn_ac_set_vs_nr(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_vs_nr() argument
1311 llc_sk(sk)->vS = llc_sk(sk)->last_nr; in llc_conn_ac_set_vs_nr()
1315 static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_inc_vs_by_1() argument
1317 llc_sk(sk)->vS = (llc_sk(sk)->vS + 1) % LLC_2_SEQ_NBR_MODULO; in llc_conn_ac_inc_vs_by_1()
1323 struct sock *sk = (struct sock *)timeout_data; in llc_conn_tmr_common_cb() local
1326 bh_lock_sock(sk); in llc_conn_tmr_common_cb()
1330 skb_set_owner_r(skb, sk); in llc_conn_tmr_common_cb()
1332 llc_process_tmr_ev(sk, skb); in llc_conn_tmr_common_cb()
1334 bh_unlock_sock(sk); in llc_conn_tmr_common_cb()
1357 int llc_conn_ac_rst_vs(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_rst_vs() argument
1359 llc_sk(sk)->X = llc_sk(sk)->vS; in llc_conn_ac_rst_vs()
1360 llc_conn_ac_set_vs_nr(sk, skb); in llc_conn_ac_rst_vs()
1364 int llc_conn_ac_upd_vs(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_upd_vs() argument
1369 if (llc_circular_between(llc_sk(sk)->vS, nr, llc_sk(sk)->X)) in llc_conn_ac_upd_vs()
1370 llc_conn_ac_set_vs_nr(sk, skb); in llc_conn_ac_upd_vs()
1383 int llc_conn_disc(struct sock *sk, struct sk_buff *skb) in llc_conn_disc() argument
1396 int llc_conn_reset(struct sock *sk, struct sk_buff *skb) in llc_conn_reset() argument
1398 llc_sk_reset(sk); in llc_conn_reset()
1430 static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb) in llc_process_tmr_ev() argument
1432 if (llc_sk(sk)->state == LLC_CONN_OUT_OF_SVC) { in llc_process_tmr_ev()
1437 if (!sock_owned_by_user(sk)) in llc_process_tmr_ev()
1438 llc_conn_state_process(sk, skb); in llc_process_tmr_ev()
1441 __sk_add_backlog(sk, skb); in llc_process_tmr_ev()