Lines Matching refs:hdr
34 struct sk_buff *skb, const struct ieee802154_hdr *hdr) in ieee802154_subif_frame() argument
47 if (hdr->source.mode != IEEE802154_ADDR_NONE) in ieee802154_subif_frame()
132 ieee802154_parse_frame_start(struct sk_buff *skb, struct ieee802154_hdr *hdr) in ieee802154_parse_frame_start() argument
139 hlen = ieee802154_hdr_pull(skb, hdr); in ieee802154_parse_frame_start()
145 pr_debug("fc: %04x dsn: %02x\n", le16_to_cpup((__le16 *)&hdr->fc), in ieee802154_parse_frame_start()
146 hdr->seq); in ieee802154_parse_frame_start()
148 cb->type = hdr->fc.type; in ieee802154_parse_frame_start()
149 cb->ackreq = hdr->fc.ack_request; in ieee802154_parse_frame_start()
150 cb->secen = hdr->fc.security_enabled; in ieee802154_parse_frame_start()
152 ieee802154_print_addr("destination", &hdr->dest); in ieee802154_parse_frame_start()
153 ieee802154_print_addr("source", &hdr->source); in ieee802154_parse_frame_start()
155 cb->source = hdr->source; in ieee802154_parse_frame_start()
156 cb->dest = hdr->dest; in ieee802154_parse_frame_start()
158 if (hdr->fc.security_enabled) { in ieee802154_parse_frame_start()
161 pr_debug("seclevel %i\n", hdr->sec.level); in ieee802154_parse_frame_start()
163 switch (hdr->sec.key_id_mode) { in ieee802154_parse_frame_start()
169 pr_debug("key %02x\n", hdr->sec.key_id); in ieee802154_parse_frame_start()
174 le32_to_cpu(hdr->sec.short_src) >> 16, in ieee802154_parse_frame_start()
175 le32_to_cpu(hdr->sec.short_src) & 0xffff, in ieee802154_parse_frame_start()
176 hdr->sec.key_id); in ieee802154_parse_frame_start()
180 key = swab64((__force u64)hdr->sec.extended_src); in ieee802154_parse_frame_start()
182 hdr->sec.key_id); in ieee802154_parse_frame_start()
196 struct ieee802154_hdr hdr; in __ieee802154_rx_handle_packet() local
198 ret = ieee802154_parse_frame_start(skb, &hdr); in __ieee802154_rx_handle_packet()
212 ieee802154_subif_frame(sdata, skb, &hdr); in __ieee802154_rx_handle_packet()