• Home
  • Raw
  • Download

Lines Matching refs:hdr

157 	struct br_mrp_tlv_hdr *hdr;  in br_mrp_skb_tlv()  local
159 hdr = skb_put(skb, sizeof(*hdr)); in br_mrp_skb_tlv()
160 hdr->type = type; in br_mrp_skb_tlv()
161 hdr->length = length; in br_mrp_skb_tlv()
166 struct br_mrp_common_hdr *hdr; in br_mrp_skb_common() local
168 br_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_COMMON, sizeof(*hdr)); in br_mrp_skb_common()
170 hdr = skb_put(skb, sizeof(*hdr)); in br_mrp_skb_common()
171 hdr->seq_id = cpu_to_be16(br_mrp_next_seq(mrp)); in br_mrp_skb_common()
172 memset(hdr->domain, 0xff, MRP_DOMAIN_UUID_LENGTH); in br_mrp_skb_common()
179 struct br_mrp_ring_test_hdr *hdr = NULL; in br_mrp_alloc_test_skb() local
189 br_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_RING_TEST, sizeof(*hdr)); in br_mrp_alloc_test_skb()
190 hdr = skb_put(skb, sizeof(*hdr)); in br_mrp_alloc_test_skb()
192 hdr->prio = cpu_to_be16(mrp->prio); in br_mrp_alloc_test_skb()
193 ether_addr_copy(hdr->sa, p->br->dev->dev_addr); in br_mrp_alloc_test_skb()
194 hdr->port_role = cpu_to_be16(port_role); in br_mrp_alloc_test_skb()
195 hdr->state = cpu_to_be16(mrp->ring_state); in br_mrp_alloc_test_skb()
196 hdr->transitions = cpu_to_be16(mrp->ring_transitions); in br_mrp_alloc_test_skb()
197 hdr->timestamp = cpu_to_be32(jiffies_to_msecs(jiffies)); in br_mrp_alloc_test_skb()
209 struct br_mrp_in_test_hdr *hdr = NULL; in br_mrp_alloc_in_test_skb() local
219 br_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_IN_TEST, sizeof(*hdr)); in br_mrp_alloc_in_test_skb()
220 hdr = skb_put(skb, sizeof(*hdr)); in br_mrp_alloc_in_test_skb()
222 hdr->id = cpu_to_be16(mrp->in_id); in br_mrp_alloc_in_test_skb()
223 ether_addr_copy(hdr->sa, p->br->dev->dev_addr); in br_mrp_alloc_in_test_skb()
224 hdr->port_role = cpu_to_be16(port_role); in br_mrp_alloc_in_test_skb()
225 hdr->state = cpu_to_be16(mrp->in_state); in br_mrp_alloc_in_test_skb()
226 hdr->transitions = cpu_to_be16(mrp->in_transitions); in br_mrp_alloc_in_test_skb()
227 hdr->timestamp = cpu_to_be32(jiffies_to_msecs(jiffies)); in br_mrp_alloc_in_test_skb()
819 const struct br_mrp_tlv_hdr *hdr; in br_mrp_ring_frame() local
822 hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr); in br_mrp_ring_frame()
823 if (!hdr) in br_mrp_ring_frame()
826 if (hdr->type == BR_MRP_TLV_HEADER_RING_TEST || in br_mrp_ring_frame()
827 hdr->type == BR_MRP_TLV_HEADER_RING_TOPO || in br_mrp_ring_frame()
828 hdr->type == BR_MRP_TLV_HEADER_RING_LINK_DOWN || in br_mrp_ring_frame()
829 hdr->type == BR_MRP_TLV_HEADER_RING_LINK_UP || in br_mrp_ring_frame()
830 hdr->type == BR_MRP_TLV_HEADER_OPTION) in br_mrp_ring_frame()
839 const struct br_mrp_tlv_hdr *hdr; in br_mrp_in_frame() local
842 hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr); in br_mrp_in_frame()
843 if (!hdr) in br_mrp_in_frame()
846 if (hdr->type == BR_MRP_TLV_HEADER_IN_TEST || in br_mrp_in_frame()
847 hdr->type == BR_MRP_TLV_HEADER_IN_TOPO || in br_mrp_in_frame()
848 hdr->type == BR_MRP_TLV_HEADER_IN_LINK_DOWN || in br_mrp_in_frame()
849 hdr->type == BR_MRP_TLV_HEADER_IN_LINK_UP) in br_mrp_in_frame()
862 const struct br_mrp_tlv_hdr *hdr; in br_mrp_mrm_process() local
868 hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr); in br_mrp_mrm_process()
869 if (!hdr) in br_mrp_mrm_process()
872 if (hdr->type != BR_MRP_TLV_HEADER_RING_TEST) in br_mrp_mrm_process()
887 const struct br_mrp_ring_test_hdr *hdr) in br_mrp_test_better_than_own() argument
889 u16 prio = be16_to_cpu(hdr->prio); in br_mrp_test_better_than_own()
893 ether_addr_to_u64(hdr->sa) < ether_addr_to_u64(br->dev->dev_addr))) in br_mrp_test_better_than_own()
909 const struct br_mrp_tlv_hdr *hdr; in br_mrp_mra_process() local
915 hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr); in br_mrp_mra_process()
916 if (!hdr) in br_mrp_mra_process()
919 if (hdr->type != BR_MRP_TLV_HEADER_RING_TEST) in br_mrp_mra_process()
944 const struct br_mrp_tlv_hdr *hdr; in br_mrp_mim_process() local
950 hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr); in br_mrp_mim_process()
951 if (!hdr) in br_mrp_mim_process()
980 const struct br_mrp_tlv_hdr *hdr; in br_mrp_get_frame_type() local
986 hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr); in br_mrp_get_frame_type()
987 if (!hdr) in br_mrp_get_frame_type()
990 return hdr->type; in br_mrp_get_frame_type()