Home
last modified time | relevance | path

Searched refs:pdu (Results 1 – 17 of 17) sorted by relevance

/net/llc/
Dllc_pdu.c19 static u8 llc_pdu_get_pf_bit(struct llc_pdu_sn *pdu);
38 struct llc_pdu_sn *pdu; in llc_pdu_set_pf_bit() local
41 pdu = llc_pdu_sn_hdr(skb); in llc_pdu_set_pf_bit()
46 pdu->ctrl_2 = (pdu->ctrl_2 & 0xFE) | bit_value; in llc_pdu_set_pf_bit()
49 pdu->ctrl_1 |= (pdu->ctrl_1 & 0xEF) | (bit_value << 4); in llc_pdu_set_pf_bit()
66 struct llc_pdu_sn *pdu; in llc_pdu_decode_pf_bit() local
69 pdu = llc_pdu_sn_hdr(skb); in llc_pdu_decode_pf_bit()
74 *pf_bit = pdu->ctrl_2 & LLC_S_PF_BIT_MASK; in llc_pdu_decode_pf_bit()
77 *pf_bit = (pdu->ctrl_1 & LLC_U_PF_BIT_MASK) >> 4; in llc_pdu_decode_pf_bit()
91 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_pdu_init_as_disc_cmd() local
[all …]
Dllc_c_ev.c79 struct llc_pdu_sn *pdu; in llc_util_nr_inside_tx_window() local
89 pdu = llc_pdu_sn_hdr(skb); in llc_util_nr_inside_tx_window()
90 nr1 = LLC_I_GET_NS(pdu); in llc_util_nr_inside_tx_window()
92 pdu = llc_pdu_sn_hdr(skb); in llc_util_nr_inside_tx_window()
93 nr2 = LLC_I_GET_NS(pdu); in llc_util_nr_inside_tx_window()
154 const struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ev_rx_disc_cmd_pbit_set_x() local
156 return LLC_PDU_IS_CMD(pdu) && LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ev_rx_disc_cmd_pbit_set_x()
157 LLC_U_PDU_CMD(pdu) == LLC_2_PDU_CMD_DISC ? 0 : 1; in llc_conn_ev_rx_disc_cmd_pbit_set_x()
162 const struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ev_rx_dm_rsp_fbit_set_x() local
164 return LLC_PDU_IS_RSP(pdu) && LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ev_rx_dm_rsp_fbit_set_x()
[all …]
Dllc_s_ev.c34 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_ui() local
36 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_ui()
37 LLC_PDU_TYPE_IS_U(pdu) && in llc_sap_ev_rx_ui()
38 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_UI ? 0 : 1; in llc_sap_ev_rx_ui()
63 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_xid_c() local
65 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_xid_c()
66 LLC_PDU_TYPE_IS_U(pdu) && in llc_sap_ev_rx_xid_c()
67 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_XID ? 0 : 1; in llc_sap_ev_rx_xid_c()
73 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_xid_r() local
75 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_RSP(pdu) && in llc_sap_ev_rx_xid_r()
[all …]
Dllc_station.c30 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_stat_ev_rx_null_dsap_xid_c() local
32 return LLC_PDU_IS_CMD(pdu) && /* command PDU */ in llc_stat_ev_rx_null_dsap_xid_c()
33 LLC_PDU_TYPE_IS_U(pdu) && /* U type PDU */ in llc_stat_ev_rx_null_dsap_xid_c()
34 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_XID && in llc_stat_ev_rx_null_dsap_xid_c()
35 !pdu->dsap; /* NULL DSAP value */ in llc_stat_ev_rx_null_dsap_xid_c()
40 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_stat_ev_rx_null_dsap_test_c() local
42 return LLC_PDU_IS_CMD(pdu) && /* command PDU */ in llc_stat_ev_rx_null_dsap_test_c()
43 LLC_PDU_TYPE_IS_U(pdu) && /* U type PDU */ in llc_stat_ev_rx_null_dsap_test_c()
44 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_TEST && in llc_stat_ev_rx_null_dsap_test_c()
45 !pdu->dsap; /* NULL DSAP */ in llc_stat_ev_rx_null_dsap_test_c()
Dllc_input.c78 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_pdu_type() local
80 if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) != LLC_PDU_TYPE_U) in llc_pdu_type()
82 switch (LLC_U_PDU_CMD(pdu)) { in llc_pdu_type()
114 struct llc_pdu_un *pdu; in llc_fixup_skb() local
116 if (unlikely(!pskb_may_pull(skb, sizeof(*pdu)))) in llc_fixup_skb()
119 pdu = (struct llc_pdu_un *)skb->data; in llc_fixup_skb()
120 if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) == LLC_PDU_TYPE_U) in llc_fixup_skb()
158 struct llc_pdu_sn *pdu; in llc_rcv() local
181 pdu = llc_pdu_sn_hdr(skb); in llc_rcv()
182 if (unlikely(!pdu->dsap)) /* NULL DSAP, refer to station */ in llc_rcv()
[all …]
Dllc_c_ac.c51 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_ac_clear_remote_busy() local
55 nr = LLC_I_GET_NR(pdu); in llc_conn_ac_clear_remote_busy()
98 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ac_disc_ind() local
100 if (LLC_PDU_IS_RSP(pdu) && in llc_conn_ac_disc_ind()
101 LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ac_disc_ind()
102 LLC_U_PDU_RSP(pdu) == LLC_2_PDU_RSP_DM) in llc_conn_ac_disc_ind()
104 else if (LLC_PDU_IS_CMD(pdu) && in llc_conn_ac_disc_ind()
105 LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ac_disc_ind()
106 LLC_U_PDU_CMD(pdu) == LLC_2_PDU_CMD_DISC) in llc_conn_ac_disc_ind()
133 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ac_rst_ind() local
[all …]
Dllc_conn.c213 struct llc_pdu_sn *pdu; in llc_conn_resend_i_pdu_as_cmd() local
228 pdu = llc_pdu_sn_hdr(skb); in llc_conn_resend_i_pdu_as_cmd()
233 llc->vS = LLC_I_GET_NS(pdu); in llc_conn_resend_i_pdu_as_cmd()
268 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_resend_i_pdu_as_rsp() local
274 llc->vS = LLC_I_GET_NS(pdu); in llc_conn_resend_i_pdu_as_rsp()
297 struct llc_pdu_sn *pdu; in llc_conn_remove_acked_pdus() local
305 pdu = llc_pdu_sn_hdr(skb); in llc_conn_remove_acked_pdus()
309 (int)LLC_I_GET_NS(pdu)) % LLC_2_SEQ_NBR_MODULO; in llc_conn_remove_acked_pdus()
332 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_send_pdus() local
334 if (LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_send_pdus()
Dllc_sap.c94 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_rtn_pdu() local
96 switch (LLC_U_PDU_RSP(pdu)) { in llc_sap_rtn_pdu()
/net/9p/
Dprotocol.c44 p9pdu_writef(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
61 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size) in pdu_read() argument
63 size_t len = min(pdu->size - pdu->offset, size); in pdu_read()
64 memcpy(data, &pdu->sdata[pdu->offset], len); in pdu_read()
65 pdu->offset += len; in pdu_read()
69 static size_t pdu_write(struct p9_fcall *pdu, const void *data, size_t size) in pdu_write() argument
71 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write()
72 memcpy(&pdu->sdata[pdu->size], data, len); in pdu_write()
73 pdu->size += len; in pdu_write()
78 pdu_write_u(struct p9_fcall *pdu, struct iov_iter *from, size_t size) in pdu_write_u() argument
[all …]
Dprotocol.h28 int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt,
30 int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...);
31 int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type);
32 int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu);
33 void p9pdu_reset(struct p9_fcall *pdu);
34 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size);
Dclient.c451 p9_parse_header(struct p9_fcall *pdu, int32_t *size, int8_t *type, int16_t *tag, in p9_parse_header() argument
457 int offset = pdu->offset; in p9_parse_header()
460 pdu->offset = 0; in p9_parse_header()
461 if (pdu->size == 0) in p9_parse_header()
462 pdu->size = 7; in p9_parse_header()
464 err = p9pdu_readf(pdu, 0, "dbw", &r_size, &r_type, &r_tag); in p9_parse_header()
468 pdu->size = r_size; in p9_parse_header()
469 pdu->id = r_type; in p9_parse_header()
470 pdu->tag = r_tag; in p9_parse_header()
473 pdu->size, pdu->id, pdu->tag); in p9_parse_header()
[all …]
/net/802/
Dmrp.c330 app->pdu = skb; in mrp_pdu_init()
338 if (skb_tailroom(app->pdu) < sizeof(*endmark)) in mrp_pdu_append_end_mark()
340 endmark = (__be16 *)__skb_put(app->pdu, sizeof(*endmark)); in mrp_pdu_append_end_mark()
347 if (!app->pdu) in mrp_pdu_queue()
350 if (mrp_cb(app->pdu)->mh) in mrp_pdu_queue()
354 dev_hard_header(app->pdu, app->dev, ntohs(app->app->pkttype.type), in mrp_pdu_queue()
356 app->pdu->len); in mrp_pdu_queue()
358 skb_queue_tail(&app->queue, app->pdu); in mrp_pdu_queue()
359 app->pdu = NULL; in mrp_pdu_queue()
375 if (mrp_cb(app->pdu)->mh) { in mrp_pdu_append_msg_hdr()
[all …]
Dgarp.c240 app->pdu = skb; in garp_pdu_init()
246 if (skb_tailroom(app->pdu) < sizeof(u8)) in garp_pdu_append_end_mark()
248 *(u8 *)__skb_put(app->pdu, sizeof(u8)) = GARP_END_MARK; in garp_pdu_append_end_mark()
254 if (!app->pdu) in garp_pdu_queue()
260 llc_pdu_header_init(app->pdu, LLC_PDU_TYPE_U, LLC_SAP_BSPAN, in garp_pdu_queue()
262 llc_pdu_init_as_ui_cmd(app->pdu); in garp_pdu_queue()
263 llc_mac_hdr_init(app->pdu, app->dev->dev_addr, in garp_pdu_queue()
266 skb_queue_tail(&app->queue, app->pdu); in garp_pdu_queue()
267 app->pdu = NULL; in garp_pdu_queue()
282 if (skb_tailroom(app->pdu) < sizeof(*gm)) in garp_pdu_append_msg()
[all …]
Dstp.c37 const struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in stp_pdu_rcv() local
40 if (pdu->ssap != LLC_SAP_BSPAN || in stp_pdu_rcv()
41 pdu->dsap != LLC_SAP_BSPAN || in stp_pdu_rcv()
42 pdu->ctrl_1 != LLC_PDU_TYPE_U) in stp_pdu_rcv()
/net/nfc/
Dllcp_commands.c293 static struct sk_buff *llcp_add_header(struct sk_buff *pdu, in llcp_add_header() argument
305 memcpy(skb_put(pdu, LLCP_HEADER_SIZE), header, LLCP_HEADER_SIZE); in llcp_add_header()
307 return pdu; in llcp_add_header()
310 static struct sk_buff *llcp_add_tlv(struct sk_buff *pdu, u8 *tlv, in llcp_add_tlv() argument
318 memcpy(skb_put(pdu, tlv_length), tlv, tlv_length); in llcp_add_tlv()
320 return pdu; in llcp_add_tlv()
660 struct sk_buff *pdu; in nfc_llcp_send_i_frame() local
711 pdu = llcp_allocate_pdu(sock, LLCP_PDU_I, in nfc_llcp_send_i_frame()
713 if (pdu == NULL) { in nfc_llcp_send_i_frame()
718 skb_put(pdu, LLCP_SEQUENCE_SIZE); in nfc_llcp_send_i_frame()
[all …]
Dllcp_core.c654 static u8 nfc_llcp_dsap(struct sk_buff *pdu) in nfc_llcp_dsap() argument
656 return (pdu->data[0] & 0xfc) >> 2; in nfc_llcp_dsap()
659 static u8 nfc_llcp_ptype(struct sk_buff *pdu) in nfc_llcp_ptype() argument
661 return ((pdu->data[0] & 0x03) << 2) | ((pdu->data[1] & 0xc0) >> 6); in nfc_llcp_ptype()
664 static u8 nfc_llcp_ssap(struct sk_buff *pdu) in nfc_llcp_ssap() argument
666 return pdu->data[1] & 0x3f; in nfc_llcp_ssap()
669 static u8 nfc_llcp_ns(struct sk_buff *pdu) in nfc_llcp_ns() argument
671 return pdu->data[2] >> 4; in nfc_llcp_ns()
674 static u8 nfc_llcp_nr(struct sk_buff *pdu) in nfc_llcp_nr() argument
676 return pdu->data[2] & 0xf; in nfc_llcp_nr()
[all …]
/net/netfilter/
Dnf_conntrack_h323_main.c1105 H323_UU_PDU *pdu = &q931->UUIE.h323_uu_pdu; in process_q931() local
1109 switch (pdu->h323_message_body.choice) { in process_q931()
1112 &pdu->h323_message_body.setup); in process_q931()
1117 &pdu->h323_message_body. in process_q931()
1122 &pdu->h323_message_body.connect); in process_q931()
1126 &pdu->h323_message_body.alerting); in process_q931()
1130 &pdu->h323_message_body.facility); in process_q931()
1134 &pdu->h323_message_body.progress); in process_q931()
1138 pdu->h323_message_body.choice); in process_q931()
1145 if (pdu->options & eH323_UU_PDU_h245Control) { in process_q931()
[all …]