Home
last modified time | relevance | path

Searched refs:ctrl_1 (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/net/llc/
Dllc_pdu.c49 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 …]
Dllc_input.c80 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()
/Linux-v5.4/include/net/
Dllc_pdu.h58 ((!(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 …]
/Linux-v5.4/include/uapi/linux/
Dif_fddi.h96 __u8 ctrl_1; /* control byte #1 */ member
/Linux-v5.4/net/802/
Dstp.c39 pdu->ctrl_1 != LLC_PDU_TYPE_U) in stp_pdu_rcv()