Lines Matching refs:pdu

37 #define LLC_PDU_IS_GROUP_DSAP(pdu)      \  argument
38 ((pdu->dsap & LLC_PDU_GROUP_DSAP_MASK) ? 0 : 1)
39 #define LLC_PDU_IS_INDIV_DSAP(pdu) \ argument
40 (!(pdu->dsap & LLC_PDU_GROUP_DSAP_MASK) ? 0 : 1)
46 #define LLC_PDU_IS_CMD(pdu) ((pdu->ssap & LLC_PDU_RSP) ? 0 : 1) argument
47 #define LLC_PDU_IS_RSP(pdu) ((pdu->ssap & LLC_PDU_RSP) ? 1 : 0) argument
60 #define LLC_PDU_TYPE_IS_I(pdu) \ argument
61 ((!(pdu->ctrl_1 & LLC_PDU_TYPE_I_MASK)) ? 1 : 0)
63 #define LLC_PDU_TYPE_IS_U(pdu) \ argument
64 (((pdu->ctrl_1 & LLC_PDU_TYPE_U_MASK) == LLC_PDU_TYPE_U) ? 1 : 0)
66 #define LLC_PDU_TYPE_IS_S(pdu) \ argument
67 (((pdu->ctrl_1 & LLC_PDU_TYPE_S_MASK) == LLC_PDU_TYPE_S) ? 1 : 0)
71 #define LLC_U_PF_IS_1(pdu) ((pdu->ctrl_1 & LLC_U_PF_BIT_MASK) ? 1 : 0) argument
72 #define LLC_U_PF_IS_0(pdu) ((!(pdu->ctrl_1 & LLC_U_PF_BIT_MASK)) ? 1 : 0) argument
75 #define LLC_U_PDU_CMD(pdu) (pdu->ctrl_1 & LLC_U_PDU_CMD_MASK) argument
76 #define LLC_U_PDU_RSP(pdu) (pdu->ctrl_1 & LLC_U_PDU_CMD_MASK) argument
122 #define LLC_I_GET_NS(pdu) (u8)((pdu->ctrl_1 & 0xFE) >> 1) argument
123 #define LLC_I_GET_NR(pdu) (u8)((pdu->ctrl_2 & 0xFE) >> 1) argument
127 #define LLC_I_PF_IS_0(pdu) ((!(pdu->ctrl_2 & LLC_I_PF_BIT_MASK)) ? 1 : 0) argument
128 #define LLC_I_PF_IS_1(pdu) ((pdu->ctrl_2 & LLC_I_PF_BIT_MASK) ? 1 : 0) argument
133 #define LLC_S_PDU_CMD(pdu) (pdu->ctrl_1 & LLC_S_PDU_CMD_MASK) argument
134 #define LLC_S_PDU_RSP(pdu) (pdu->ctrl_1 & LLC_S_PDU_CMD_MASK) argument
144 #define LLC_S_PF_IS_0(pdu) ((!(pdu->ctrl_2 & LLC_S_PF_BIT_MASK)) ? 1 : 0) argument
145 #define LLC_S_PF_IS_1(pdu) ((pdu->ctrl_2 & LLC_S_PF_BIT_MASK) ? 1 : 0) argument
147 #define PDU_SUPV_GET_Nr(pdu) ((pdu->ctrl_2 & 0xFE) >> 1) argument
237 struct llc_pdu_un *pdu; in llc_pdu_header_init() local
250 pdu = llc_pdu_un_hdr(skb); in llc_pdu_header_init()
251 pdu->dsap = dsap; in llc_pdu_header_init()
252 pdu->ssap = ssap; in llc_pdu_header_init()
253 pdu->ssap |= cr; in llc_pdu_header_init()
316 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_pdu_init_as_ui_cmd() local
318 pdu->ctrl_1 = LLC_PDU_TYPE_U; in llc_pdu_init_as_ui_cmd()
319 pdu->ctrl_1 |= LLC_1_PDU_CMD_UI; in llc_pdu_init_as_ui_cmd()
330 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_pdu_init_as_test_cmd() local
332 pdu->ctrl_1 = LLC_PDU_TYPE_U; in llc_pdu_init_as_test_cmd()
333 pdu->ctrl_1 |= LLC_1_PDU_CMD_TEST; in llc_pdu_init_as_test_cmd()
334 pdu->ctrl_1 |= LLC_U_PF_BIT_MASK; in llc_pdu_init_as_test_cmd()
347 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_pdu_init_as_test_rsp() local
349 pdu->ctrl_1 = LLC_PDU_TYPE_U; in llc_pdu_init_as_test_rsp()
350 pdu->ctrl_1 |= LLC_1_PDU_CMD_TEST; in llc_pdu_init_as_test_rsp()
351 pdu->ctrl_1 |= LLC_U_PF_BIT_MASK; in llc_pdu_init_as_test_rsp()
357 memcpy(((u8 *)pdu) + 3, ((u8 *)ev_pdu) + 3, dsize); in llc_pdu_init_as_test_rsp()
380 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_pdu_init_as_xid_cmd() local
382 pdu->ctrl_1 = LLC_PDU_TYPE_U; in llc_pdu_init_as_xid_cmd()
383 pdu->ctrl_1 |= LLC_1_PDU_CMD_XID; in llc_pdu_init_as_xid_cmd()
384 pdu->ctrl_1 |= LLC_U_PF_BIT_MASK; in llc_pdu_init_as_xid_cmd()
385 xid_info = (struct llc_xid_info *)(((u8 *)&pdu->ctrl_1) + 1); in llc_pdu_init_as_xid_cmd()
407 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_pdu_init_as_xid_rsp() local
409 pdu->ctrl_1 = LLC_PDU_TYPE_U; in llc_pdu_init_as_xid_rsp()
410 pdu->ctrl_1 |= LLC_1_PDU_CMD_XID; in llc_pdu_init_as_xid_rsp()
411 pdu->ctrl_1 |= LLC_U_PF_BIT_MASK; in llc_pdu_init_as_xid_rsp()
413 xid_info = (struct llc_xid_info *)(((u8 *)&pdu->ctrl_1) + 1); in llc_pdu_init_as_xid_rsp()