Searched refs:ctrl_1 (Results 1 – 5 of 5) sorted by relevance
49 pdu->ctrl_1 |= (pdu->ctrl_1 & 0xEF) | (bit_value << 4); in llc_pdu_set_pf_bit()77 *pf_bit = (pdu->ctrl_1 & LLC_U_PF_BIT_MASK) >> 4; in llc_pdu_decode_pf_bit()93 pdu->ctrl_1 = LLC_PDU_TYPE_U; in llc_pdu_init_as_disc_cmd()94 pdu->ctrl_1 |= LLC_2_PDU_CMD_DISC; in llc_pdu_init_as_disc_cmd()95 pdu->ctrl_1 |= ((p_bit & 1) << 4) & LLC_U_PF_BIT_MASK; in llc_pdu_init_as_disc_cmd()111 pdu->ctrl_1 = LLC_PDU_TYPE_I; in llc_pdu_init_as_i_cmd()114 pdu->ctrl_1 |= (ns << 1) & 0xFE; /* set N(S) in bits 2..8 */ in llc_pdu_init_as_i_cmd()130 pdu->ctrl_1 = LLC_PDU_TYPE_S; in llc_pdu_init_as_rej_cmd()131 pdu->ctrl_1 |= LLC_2_PDU_CMD_REJ; in llc_pdu_init_as_rej_cmd()134 pdu->ctrl_1 &= 0x0F; /* setting bits 5..8 to zero(reserved) */ in llc_pdu_init_as_rej_cmd()[all …]
80 if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) != LLC_PDU_TYPE_U) in llc_pdu_type()120 if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) == LLC_PDU_TYPE_U) in llc_fixup_skb()
58 ((!(pdu->ctrl_1 & LLC_PDU_TYPE_I_MASK)) ? 1 : 0)61 (((pdu->ctrl_1 & LLC_PDU_TYPE_U_MASK) == LLC_PDU_TYPE_U) ? 1 : 0)64 (((pdu->ctrl_1 & LLC_PDU_TYPE_S_MASK) == LLC_PDU_TYPE_S) ? 1 : 0)68 #define LLC_U_PF_IS_1(pdu) ((pdu->ctrl_1 & LLC_U_PF_BIT_MASK) ? 1 : 0)69 #define LLC_U_PF_IS_0(pdu) ((!(pdu->ctrl_1 & LLC_U_PF_BIT_MASK)) ? 1 : 0)72 #define LLC_U_PDU_CMD(pdu) (pdu->ctrl_1 & LLC_U_PDU_CMD_MASK)73 #define LLC_U_PDU_RSP(pdu) (pdu->ctrl_1 & LLC_U_PDU_CMD_MASK)119 #define LLC_I_GET_NS(pdu) (u8)((pdu->ctrl_1 & 0xFE) >> 1)130 #define LLC_S_PDU_CMD(pdu) (pdu->ctrl_1 & LLC_S_PDU_CMD_MASK)131 #define LLC_S_PDU_RSP(pdu) (pdu->ctrl_1 & LLC_S_PDU_CMD_MASK)[all …]
96 __u8 ctrl_1; /* control byte #1 */ member
39 pdu->ctrl_1 != LLC_PDU_TYPE_U) in stp_pdu_rcv()