Lines Matching refs:inline_ptr
268 static uint8_t *compress_tfl(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_tfl() argument
288 inline_ptr -= sizeof(tcl); in compress_tfl()
289 *inline_ptr = tcl; in compress_tfl()
298 inline_ptr -= sizeof(ipv6->flow); in compress_tfl()
299 memmove(inline_ptr, &ipv6->flow, sizeof(ipv6->flow)); in compress_tfl()
301 inline_ptr -= sizeof(uint8_t); in compress_tfl()
302 *inline_ptr = (tcl & 0xC0) | (ipv6->tcflow & 0x0F); in compress_tfl()
309 inline_ptr -= sizeof(ipv6->flow); in compress_tfl()
310 memmove(inline_ptr, &ipv6->flow, sizeof(ipv6->flow)); in compress_tfl()
312 inline_ptr -= sizeof(uint8_t); in compress_tfl()
313 *inline_ptr = ipv6->tcflow & 0x0F; in compress_tfl()
314 inline_ptr -= sizeof(tcl); in compress_tfl()
315 *inline_ptr = tcl; in compress_tfl()
319 return inline_ptr; in compress_tfl()
323 static uint8_t *compress_hoplimit(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_hoplimit() argument
341 inline_ptr -= sizeof(ipv6->hop_limit); in compress_hoplimit()
342 *inline_ptr = ipv6->hop_limit; in compress_hoplimit()
346 return inline_ptr; in compress_hoplimit()
350 static uint8_t *compress_nh(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_nh() argument
357 inline_ptr -= sizeof(ipv6->nexthdr); in compress_nh()
358 *inline_ptr = ipv6->nexthdr; in compress_nh()
361 return inline_ptr; in compress_nh()
366 uint8_t *inline_ptr, uint16_t *iphc) in compress_sa() argument
376 return inline_ptr; in compress_sa()
384 inline_ptr -= sizeof(uint16_t); in compress_sa()
385 memmove(inline_ptr, &ipv6->src[14], sizeof(uint16_t)); in compress_sa()
387 return inline_ptr; in compress_sa()
394 inline_ptr -= 8U; in compress_sa()
395 memmove(inline_ptr, &ipv6->src[8], 8U); in compress_sa()
397 return inline_ptr; in compress_sa()
400 static uint8_t *set_sa_inline(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in set_sa_inline() argument
404 inline_ptr -= 16U; in set_sa_inline()
405 memmove(inline_ptr, &ipv6->src[0], 16U); in set_sa_inline()
406 return inline_ptr; in set_sa_inline()
410 static uint8_t *compress_sa_ctx(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_sa_ctx() argument
425 return inline_ptr; in compress_sa_ctx()
434 inline_ptr -= sizeof(uint16_t); in compress_sa_ctx()
435 memmove(inline_ptr, &ipv6->src[14], sizeof(uint16_t)); in compress_sa_ctx()
436 return inline_ptr; in compress_sa_ctx()
444 inline_ptr -= 8U; in compress_sa_ctx()
445 memmove(inline_ptr, &ipv6->src[8], 8U); in compress_sa_ctx()
447 return inline_ptr; in compress_sa_ctx()
452 static uint8_t *compress_da_mcast(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_da_mcast() argument
465 inline_ptr -= sizeof(uint8_t); in compress_da_mcast()
466 memmove(inline_ptr, &ipv6->dst[15], sizeof(uint8_t)); in compress_da_mcast()
468 return inline_ptr; in compress_da_mcast()
477 inline_ptr -= 3U; in compress_da_mcast()
478 memmove(inline_ptr, &ipv6->dst[13], 3U); in compress_da_mcast()
480 inline_ptr -= sizeof(uint8_t); in compress_da_mcast()
481 memmove(inline_ptr, &ipv6->dst[1], sizeof(uint8_t)); in compress_da_mcast()
483 return inline_ptr; in compress_da_mcast()
492 inline_ptr -= 5U; in compress_da_mcast()
493 memmove(inline_ptr, &ipv6->dst[11], 5U); in compress_da_mcast()
495 inline_ptr -= sizeof(uint8_t); in compress_da_mcast()
496 memmove(inline_ptr, &ipv6->dst[1], sizeof(uint8_t)); in compress_da_mcast()
498 return inline_ptr; in compress_da_mcast()
504 inline_ptr -= 16U; in compress_da_mcast()
505 memmove(inline_ptr, &ipv6->dst[0], 16U); in compress_da_mcast()
507 return inline_ptr; in compress_da_mcast()
511 uint8_t *inline_ptr, uint16_t *iphc) in compress_da() argument
521 return inline_ptr; in compress_da()
530 inline_ptr -= sizeof(uint16_t); in compress_da()
531 memmove(inline_ptr, &ipv6->dst[14], sizeof(uint16_t)); in compress_da()
532 return inline_ptr; in compress_da()
540 inline_ptr -= 8U; in compress_da()
541 memmove(inline_ptr, &ipv6->dst[8], 8U); in compress_da()
543 return inline_ptr; in compress_da()
546 static uint8_t *set_da_inline(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in set_da_inline() argument
550 inline_ptr -= 16U; in set_da_inline()
551 memmove(inline_ptr, &ipv6->dst[0], 16U); in set_da_inline()
552 return inline_ptr; in set_da_inline()
556 static uint8_t *compress_da_ctx(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_da_ctx() argument
567 return inline_ptr; in compress_da_ctx()
575 inline_ptr -= sizeof(uint16_t); in compress_da_ctx()
576 memmove(inline_ptr, &ipv6->dst[14], sizeof(uint16_t)); in compress_da_ctx()
577 return inline_ptr; in compress_da_ctx()
585 inline_ptr -= 8U; in compress_da_ctx()
586 memmove(inline_ptr, &ipv6->dst[8], 8U); in compress_da_ctx()
588 return inline_ptr; in compress_da_ctx()
593 static inline uint8_t *compress_nh_udp(struct net_udp_hdr *udp, uint8_t *inline_ptr, in compress_nh_udp() argument
597 uint8_t *inline_ptr_udp = inline_ptr; in compress_nh_udp()