Lines Matching refs:skb
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);
36 static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb);
39 struct sk_buff *skb);
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
51 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); 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
63 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_conn_ind()
69 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_conn_confirm() argument
71 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_conn_confirm()
77 static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_data_confirm() argument
79 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_data_confirm()
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
93 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_disc_ind()
98 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ac_disc_ind()
119 int llc_conn_ac_disc_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_disc_confirm() argument
121 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_disc_confirm()
128 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_rst_ind() argument
132 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_rst_ind()
133 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); 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
169 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_rst_confirm()
177 struct sk_buff *skb) in llc_conn_ac_clear_remote_busy_if_f_eq_1() argument
179 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); 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()
189 struct sk_buff *skb) in llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2() argument
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
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
233 llc_pdu_decode_pf_bit(skb, &f_bit); 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
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
278 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_ac_send_frmr_rsp_f_set_x()
283 llc_pdu_decode_pf_bit(skb, &f_bit); 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
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
341 llc_pdu_decode_pf_bit(skb, &f_bit); in llc_conn_ac_resend_frmr_rsp_f_set_p()
346 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); 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
370 llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap, in llc_conn_ac_send_i_cmd_p_set_1()
372 llc_pdu_init_as_i_cmd(skb, 1, llc->vS, llc->vR); in llc_conn_ac_send_i_cmd_p_set_1()
373 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); 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
387 llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap, in llc_conn_ac_send_i_cmd_p_set_0()
389 llc_pdu_init_as_i_cmd(skb, 0, llc->vS, llc->vR); in llc_conn_ac_send_i_cmd_p_set_0()
390 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); 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
404 llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap, in llc_conn_ac_send_i_xxx_x_set_0()
406 llc_pdu_init_as_i_cmd(skb, 0, llc->vS, llc->vR); in llc_conn_ac_send_i_xxx_x_set_0()
407 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); 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
417 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_ac_resend_i_xxx_x_set_0()
425 struct sk_buff *skb) in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() argument
428 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
443 kfree_skb(skb); 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
455 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); 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
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
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
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
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
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
606 int llc_conn_ac_set_remote_busy(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_remote_busy() argument
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
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
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
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
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
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
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
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
808 llc_pdu_decode_pf_bit(skb, &f_bit); 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
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
840 int llc_conn_ac_start_p_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_start_p_timer() argument
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
865 llc_pdu_decode_pf_bit(skb, &pf_bit); 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
908 struct sk_buff *skb) in llc_conn_ac_send_i_rsp_f_set_ackpf() argument
914 llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap, in llc_conn_ac_send_i_rsp_f_set_ackpf()
916 llc_pdu_init_as_i_cmd(skb, llc->ack_pf, llc->vS, llc->vR); in llc_conn_ac_send_i_rsp_f_set_ackpf()
917 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); 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
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()
959 struct sk_buff *skb) in llc_conn_ac_send_rr_rsp_f_set_ackpf() argument
993 static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_inc_npta_value() argument
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
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
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
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
1097 int llc_conn_ac_stop_all_timers(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_all_timers() argument
1110 int llc_conn_ac_stop_other_timers(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_other_timers() argument
1122 int llc_conn_ac_start_ack_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_start_ack_timer() argument
1130 int llc_conn_ac_start_rej_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_start_rej_timer() argument
1140 struct sk_buff *skb) in llc_conn_ac_start_ack_tmr_if_not_running() argument
1150 int llc_conn_ac_stop_ack_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_ack_timer() argument
1156 int llc_conn_ac_stop_p_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_p_timer() argument
1165 int llc_conn_ac_stop_rej_timer(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_stop_rej_timer() argument
1171 int llc_conn_ac_upd_nr_received(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_upd_nr_received() argument
1175 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_ac_upd_nr_received()
1190 llc_conn_ac_data_confirm(sk, skb); in llc_conn_ac_upd_nr_received()
1198 llc_pdu_decode_pf_bit(skb, &f_bit); 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
1209 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_ac_upd_p_flag()
1214 llc_pdu_decode_pf_bit(skb, &f_bit); 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
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
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
1242 struct sk_buff *skb) in llc_conn_ac_set_data_flag_1_if_data_flag_eq_0() argument
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
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
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
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
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
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
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
1291 int llc_conn_ac_set_vr_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_vr_0() argument
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
1303 int llc_conn_ac_set_vs_0(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_vs_0() argument
1309 int llc_conn_ac_set_vs_nr(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_set_vs_nr() argument
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
1324 struct sk_buff *skb = alloc_skb(0, GFP_ATOMIC); in llc_conn_tmr_common_cb() local
1327 if (skb) { in llc_conn_tmr_common_cb()
1328 struct llc_conn_state_ev *ev = llc_conn_ev(skb); 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()
1357 int llc_conn_ac_rst_vs(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_rst_vs() argument
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
1366 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); 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
1430 static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb) in llc_process_tmr_ev() argument
1435 kfree_skb(skb); in llc_process_tmr_ev()
1438 llc_conn_state_process(sk, skb); in llc_process_tmr_ev()
1440 llc_set_backlog_type(skb, LLC_EVENT); in llc_process_tmr_ev()
1441 __sk_add_backlog(sk, skb); in llc_process_tmr_ev()