• Home
  • Raw
  • Download

Lines Matching refs:buf

15 ieee802154_hdr_push_addr(u8 *buf, const struct ieee802154_addr *addr,  in ieee802154_hdr_push_addr()  argument
24 memcpy(buf + pos, &addr->pan_id, 2); in ieee802154_hdr_push_addr()
30 memcpy(buf + pos, &addr->short_addr, 2); in ieee802154_hdr_push_addr()
35 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_addr()
47 ieee802154_hdr_push_sechdr(u8 *buf, const struct ieee802154_sechdr *hdr) in ieee802154_hdr_push_sechdr() argument
51 memcpy(buf, hdr, 1); in ieee802154_hdr_push_sechdr()
52 memcpy(buf + 1, &hdr->frame_counter, 4); in ieee802154_hdr_push_sechdr()
62 memcpy(buf + pos, &hdr->short_src, 4); in ieee802154_hdr_push_sechdr()
67 memcpy(buf + pos, &hdr->extended_src, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_sechdr()
72 buf[pos++] = hdr->key_id; in ieee802154_hdr_push_sechdr()
80 u8 buf[IEEE802154_MAX_HEADER_LEN]; in ieee802154_hdr_push() local
85 buf[pos++] = hdr->seq; in ieee802154_hdr_push()
89 rc = ieee802154_hdr_push_addr(buf + pos, &hdr->dest, false); in ieee802154_hdr_push()
100 rc = ieee802154_hdr_push_addr(buf + pos, &hdr->source, fc->intra_pan); in ieee802154_hdr_push()
108 rc = ieee802154_hdr_push_sechdr(buf + pos, &hdr->sec); in ieee802154_hdr_push()
115 memcpy(buf, fc, 2); in ieee802154_hdr_push()
117 memcpy(skb_push(skb, pos), buf, pos); in ieee802154_hdr_push()
124 ieee802154_hdr_get_addr(const u8 *buf, int mode, bool omit_pan, in ieee802154_hdr_get_addr() argument
135 memcpy(&addr->pan_id, buf + pos, 2); in ieee802154_hdr_get_addr()
140 memcpy(&addr->short_addr, buf + pos, 2); in ieee802154_hdr_get_addr()
143 memcpy(&addr->extended_addr, buf + pos, IEEE802154_ADDR_LEN); in ieee802154_hdr_get_addr()
161 ieee802154_hdr_get_sechdr(const u8 *buf, struct ieee802154_sechdr *hdr) in ieee802154_hdr_get_sechdr() argument
165 memcpy(hdr, buf, 1); in ieee802154_hdr_get_sechdr()
166 memcpy(&hdr->frame_counter, buf + 1, 4); in ieee802154_hdr_get_sechdr()
176 memcpy(&hdr->short_src, buf + pos, 4); in ieee802154_hdr_get_sechdr()
181 memcpy(&hdr->extended_src, buf + pos, IEEE802154_ADDR_LEN); in ieee802154_hdr_get_sechdr()
186 hdr->key_id = buf[pos++]; in ieee802154_hdr_get_sechdr()
218 ieee802154_hdr_get_addrs(const u8 *buf, struct ieee802154_hdr *hdr) in ieee802154_hdr_get_addrs() argument
222 pos += ieee802154_hdr_get_addr(buf + pos, hdr->fc.dest_addr_mode, in ieee802154_hdr_get_addrs()
224 pos += ieee802154_hdr_get_addr(buf + pos, hdr->fc.source_addr_mode, in ieee802154_hdr_get_addrs()
266 const u8 *buf = skb_mac_header(skb); in ieee802154_hdr_peek_addrs() local
269 if (buf + 3 > skb_tail_pointer(skb)) in ieee802154_hdr_peek_addrs()
272 memcpy(hdr, buf, 3); in ieee802154_hdr_peek_addrs()
275 if (rc < 0 || buf + rc > skb_tail_pointer(skb)) in ieee802154_hdr_peek_addrs()
278 pos += ieee802154_hdr_get_addrs(buf + pos, hdr); in ieee802154_hdr_peek_addrs()
286 const u8 *buf = skb_mac_header(skb); in ieee802154_hdr_peek() local
294 u8 key_id_mode = IEEE802154_SCF_KEY_ID_MODE(*(buf + pos)); in ieee802154_hdr_peek()
297 if (buf + want > skb_tail_pointer(skb)) in ieee802154_hdr_peek()
300 pos += ieee802154_hdr_get_sechdr(buf + pos, &hdr->sec); in ieee802154_hdr_peek()