Lines Matching +full:8 +full:bits
53 static const uint8_t sa_inline_size_table[] = {16, 8, 2, 0, 0, 8, 2, 0};
59 16, 8, 2, 0, 0, 8, 2, 0, 16, 6, 4, 1, 6
86 if (((iphc >> 8) & NET_6LO_DISPATCH_IPHC_MASK) != in get_ihpc_inlined_size()
244 !memcmp(ctx_6co[i].prefix.s6_addr, addr->s6_addr, 8)) { in get_6lo_context_by_addr()
258 * version: 4 bits, Traffic Class: 8 bits, Flow label: 20 bits
259 * The Traffic Class field in the IPv6 header comprises 6 bits of
260 * Diffserv extension [RFC2474] and 2 bits of Explicit Congestion
379 /* Following 64 bits are 0000:00ff:fe00:XXXX */ in compress_sa()
390 NET_DBG("SAM_01 src 64 bits are inlined"); in compress_sa()
391 /* Remaining 64 bits are in-line */ in compress_sa()
394 inline_ptr -= 8U; in compress_sa()
395 memmove(inline_ptr, &ipv6->src[8], 8U); in compress_sa()
428 /* Following 64 bits are 0000:00ff:fe00:XXXX */ in compress_sa_ctx()
439 NET_DBG("SAM_01 src remaining 64 bits are inlined"); in compress_sa_ctx()
441 /* Remaining 64 bits are in-line */ in compress_sa_ctx()
444 inline_ptr -= 8U; in compress_sa_ctx()
445 memmove(inline_ptr, &ipv6->src[8], 8U); in compress_sa_ctx()
460 NET_DBG("DAM_11 dst maddr 8 bit compressible"); in compress_da_mcast()
524 /* Following 64 bits are 0000:00ff:fe00:XXXX */ in compress_da()
535 NET_DBG("DAM_01 remaining 64 bits are inlined"); in compress_da()
537 /* Remaining 64 bits are in-line */ in compress_da()
540 inline_ptr -= 8U; in compress_da()
541 memmove(inline_ptr, &ipv6->dst[8], 8U); in compress_da()
570 /* Following 64 bits are 0000:00ff:fe00:XXXX */ in compress_da_ctx()
580 NET_DBG("DAM_01 remaining 64 bits are inlined"); in compress_da_ctx()
582 /* Remaining 64 bits are in-line */ in compress_da_ctx()
585 inline_ptr -= 8U; in compress_da_ctx()
586 memmove(inline_ptr, &ipv6->dst[8], 8U); in compress_da_ctx()
608 * 00: All 16 bits for src and dst are inlined. in compress_nh_udp()
609 * 01: All 16 bits for src port inlined. First 8 bits of dst port is in compress_nh_udp()
610 * 0xf0 and elided. The remaining 8 bits of dst port inlined. in compress_nh_udp()
611 * 10: First 8 bits of src port 0xf0 and elided. The remaining 8 bits in compress_nh_udp()
612 * of src port inlined. All 16 bits of dst port inlined. in compress_nh_udp()
613 * 11: First 12 bits of both src and dst are 0xf0b and elided. The in compress_nh_udp()
614 * remaining 4 bits for each are inlined. in compress_nh_udp()
629 NET_DBG("UDP ports src and dst 4 bits inlined"); in compress_nh_udp()
630 /** src: first 16 bits elided, next 4 bits inlined in compress_nh_udp()
631 * dst: first 16 bits elided, next 4 bits inlined in compress_nh_udp()
642 } else if (((htons(udp->dst_port) >> 8) & 0xFF) == in compress_nh_udp()
645 NET_DBG("UDP ports src full, dst 8 bits inlined"); in compress_nh_udp()
646 /* dst: first 8 bits elided, next 8 bits inlined in compress_nh_udp()
657 } else if (((htons(udp->src_port) >> 8) & 0xFF) == in compress_nh_udp()
660 NET_DBG("UDP ports src 8bits, dst full inlined"); in compress_nh_udp()
661 /* src: first 8 bits elided, next 8 bits inlined in compress_nh_udp()
723 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
735 uint16_t iphc = (NET_6LO_DISPATCH_IPHC << 8); in compress_IPHC_header()
946 NET_DBG("SAM_01 last 64 bits are inlined"); in uncompress_sa()
948 memmove(&src_ip.s6_addr[8], cursor, 8); in uncompress_sa()
949 cursor += 8U; in uncompress_sa()
998 NET_DBG("SAM_01 last 64 bits are inlined"); in uncompress_sa_ctx()
1000 /* First 8 bytes are from context */ in uncompress_sa_ctx()
1001 memmove(&src_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_sa_ctx()
1004 memmove(&src_ip.s6_addr[8], cursor, 8); in uncompress_sa_ctx()
1005 cursor += 8U; in uncompress_sa_ctx()
1015 /* First 8 bytes are from context */ in uncompress_sa_ctx()
1016 memmove(&src_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_sa_ctx()
1034 /* net_ipv6_addr_create_iid will copy first 8 bytes in uncompress_sa_ctx()
1036 * Overwrite first 8 bytes from context prefix here. in uncompress_sa_ctx()
1038 memmove(&src_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_sa_ctx()
1064 * 00: 128 bits, The full address is carried in-line. in uncompress_da_mcast()
1065 * 01: 48 bits, The address takes the form ffXX::00XX:XXXX:XXXX. in uncompress_da_mcast()
1066 * 10: 32 bits, The address takes the form ffXX::00XX:XXXX. in uncompress_da_mcast()
1067 * 11: 8 bits, The address takes the form ff02::00XX. in uncompress_da_mcast()
1111 NET_DBG("DAM_11 8 bit compressed"); in uncompress_da_mcast()
1153 NET_DBG("DAM_01 last 64 bits are inlined"); in uncompress_da()
1155 memmove(&dst_ip.s6_addr[8], cursor, 8); in uncompress_da()
1156 cursor += 8U; in uncompress_da()
1207 NET_DBG("DAM_01 last 64 bits are inlined"); in uncompress_da_ctx()
1209 /* Last 8 bytes carried in-line */ in uncompress_da_ctx()
1210 memmove(&dst_ip.s6_addr[8], cursor, 8); in uncompress_da_ctx()
1211 cursor += 8U; in uncompress_da_ctx()
1213 /* First 8 bytes are from context */ in uncompress_da_ctx()
1214 memmove(&dst_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_da_ctx()
1224 /* First 8 bytes are from context */ in uncompress_da_ctx()
1225 memmove(&dst_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_da_ctx()
1243 /* net_ipv6_addr_create_iid will copy first 8 bytes in uncompress_da_ctx()
1245 * Overwrite first 8 bytes from context prefix here. in uncompress_da_ctx()
1247 memmove(&dst_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_da_ctx()
1264 * 00: All 16 bits for src and dst are inlined in uncompress_nh_udp()
1265 * 01: src, 16 bits are lined, dst(0xf0) 8 bits are inlined in uncompress_nh_udp()
1266 * 10: dst, 16 bits are lined, src(0xf0) 8 bits are inlined in uncompress_nh_udp()
1267 * 11: src, dst (0xf0b) 4 bits are inlined in uncompress_nh_udp()
1282 NET_DBG("src full, dst 8 bits inlined"); in uncompress_nh_udp()
1286 udp->dst_port = htons(((uint16_t)NET_6LO_NHC_UDP_8_BIT_PORT << 8) | in uncompress_nh_udp()
1292 NET_DBG("src 8 bits, dst full inlined"); in uncompress_nh_udp()
1294 udp->src_port = htons(((uint16_t)NET_6LO_NHC_UDP_8_BIT_PORT << 8) | in uncompress_nh_udp()
1302 NET_DBG("src and dst 4 bits inlined"); in uncompress_nh_udp()