Lines Matching refs:ifh_hdr
31 u8 *ifh_hdr = ifh; in __ifh_encode_bitfield() local
40 ifh_hdr[byte] |= (u8)((encode & 0xFF)); in __ifh_encode_bitfield()
43 ifh_hdr[byte - 1] |= (u8)((encode & 0xFF00) >> 8); in __ifh_encode_bitfield()
46 ifh_hdr[byte - 2] |= (u8)((encode & 0xFF0000) >> 16); in __ifh_encode_bitfield()
49 ifh_hdr[byte - 3] |= (u8)((encode & 0xFF000000) >> 24); in __ifh_encode_bitfield()
52 ifh_hdr[byte - 4] |= (u8)((encode & 0xFF00000000) >> 32); in __ifh_encode_bitfield()
55 ifh_hdr[byte - 5] |= (u8)((encode & 0xFF0000000000) >> 40); in __ifh_encode_bitfield()
58 void sparx5_set_port_ifh(void *ifh_hdr, u16 portno) in sparx5_set_port_ifh() argument
61 ifh_encode_bitfield(ifh_hdr, 1, VSTAX + 79, 1); in sparx5_set_port_ifh()
63 ifh_encode_bitfield(ifh_hdr, 1, VSTAX + 55, 1); in sparx5_set_port_ifh()
65 ifh_encode_bitfield(ifh_hdr, portno, 29, 8); in sparx5_set_port_ifh()
67 ifh_encode_bitfield(ifh_hdr, 16, 37, 5); in sparx5_set_port_ifh()
69 ifh_encode_bitfield(ifh_hdr, 1, 42, 3); in sparx5_set_port_ifh()
71 ifh_encode_bitfield(ifh_hdr, SPX5_PORT_CPU, 46, 7); in sparx5_set_port_ifh()
73 ifh_encode_bitfield(ifh_hdr, 124, 57, 7); in sparx5_set_port_ifh()
75 ifh_encode_bitfield(ifh_hdr, 1, 67, 1); in sparx5_set_port_ifh()
78 void sparx5_set_port_ifh_rew_op(void *ifh_hdr, u32 rew_op) in sparx5_set_port_ifh_rew_op() argument
80 ifh_encode_bitfield(ifh_hdr, rew_op, VSTAX + 32, 10); in sparx5_set_port_ifh_rew_op()
83 void sparx5_set_port_ifh_pdu_type(void *ifh_hdr, u32 pdu_type) in sparx5_set_port_ifh_pdu_type() argument
85 ifh_encode_bitfield(ifh_hdr, pdu_type, 191, 4); in sparx5_set_port_ifh_pdu_type()
88 void sparx5_set_port_ifh_pdu_w16_offset(void *ifh_hdr, u32 pdu_w16_offset) in sparx5_set_port_ifh_pdu_w16_offset() argument
90 ifh_encode_bitfield(ifh_hdr, pdu_w16_offset, 195, 6); in sparx5_set_port_ifh_pdu_w16_offset()
93 void sparx5_set_port_ifh_timestamp(void *ifh_hdr, u64 timestamp) in sparx5_set_port_ifh_timestamp() argument
95 ifh_encode_bitfield(ifh_hdr, timestamp, 232, 40); in sparx5_set_port_ifh_timestamp()