Lines Matching refs:hc_ptr
846 static u8 lowpan_compress_ctx_addr(u8 **hc_ptr, const struct net_device *dev, in lowpan_compress_ctx_addr() argument
878 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[14], 2); in lowpan_compress_ctx_addr()
889 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[8], 8); in lowpan_compress_ctx_addr()
944 static u8 lowpan_compress_addr_64(u8 **hc_ptr, const struct net_device *dev, in lowpan_compress_addr_64() argument
970 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr16[7], 2); in lowpan_compress_addr_64()
973 *hc_ptr - 2, 2); in lowpan_compress_addr_64()
978 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr16[4], 8); in lowpan_compress_addr_64()
980 *hc_ptr - 8, 8); in lowpan_compress_addr_64()
1017 static u8 lowpan_iphc_tf_compress(u8 **hc_ptr, const struct ipv6hdr *hdr) in lowpan_iphc_tf_compress() argument
1037 lowpan_push_hc_data(hc_ptr, &tc, sizeof(tc)); in lowpan_iphc_tf_compress()
1057 lowpan_push_hc_data(hc_ptr, tf, 3); in lowpan_iphc_tf_compress()
1077 lowpan_push_hc_data(hc_ptr, tf, 4); in lowpan_iphc_tf_compress()
1085 static u8 lowpan_iphc_mcast_ctx_addr_compress(u8 **hc_ptr, in lowpan_iphc_mcast_ctx_addr_compress() argument
1095 lowpan_push_hc_data(hc_ptr, data, 6); in lowpan_iphc_mcast_ctx_addr_compress()
1100 static u8 lowpan_iphc_mcast_addr_compress(u8 **hc_ptr, in lowpan_iphc_mcast_addr_compress() argument
1108 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[15], 1); in lowpan_iphc_mcast_addr_compress()
1113 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[1], 1); in lowpan_iphc_mcast_addr_compress()
1114 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[13], 3); in lowpan_iphc_mcast_addr_compress()
1119 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[1], 1); in lowpan_iphc_mcast_addr_compress()
1120 lowpan_push_hc_data(hc_ptr, &ipaddr->s6_addr[11], 5); in lowpan_iphc_mcast_addr_compress()
1124 lowpan_push_hc_data(hc_ptr, ipaddr->s6_addr, 16); in lowpan_iphc_mcast_addr_compress()
1134 u8 iphc0, iphc1, *hc_ptr, cid = 0; in lowpan_header_compress() local
1144 hc_ptr = head + 2; in lowpan_header_compress()
1188 lowpan_push_hc_data(&hc_ptr, &cid, sizeof(cid)); in lowpan_header_compress()
1192 iphc0 |= lowpan_iphc_tf_compress(&hc_ptr, hdr); in lowpan_header_compress()
1199 ret = lowpan_nhc_check_compression(skb, hdr, &hc_ptr); in lowpan_header_compress()
1201 lowpan_push_hc_data(&hc_ptr, &hdr->nexthdr, in lowpan_header_compress()
1223 lowpan_push_hc_data(&hc_ptr, &hdr->hop_limit, in lowpan_header_compress()
1234 iphc1 |= lowpan_compress_ctx_addr(&hc_ptr, dev, in lowpan_header_compress()
1242 iphc1 |= lowpan_compress_addr_64(&hc_ptr, dev, in lowpan_header_compress()
1249 lowpan_push_hc_data(&hc_ptr, in lowpan_header_compress()
1260 iphc1 |= lowpan_iphc_mcast_ctx_addr_compress(&hc_ptr, in lowpan_header_compress()
1265 iphc1 |= lowpan_iphc_mcast_addr_compress(&hc_ptr, in lowpan_header_compress()
1270 iphc1 |= lowpan_compress_ctx_addr(&hc_ptr, dev, in lowpan_header_compress()
1278 iphc1 |= lowpan_compress_addr_64(&hc_ptr, dev, in lowpan_header_compress()
1286 lowpan_push_hc_data(&hc_ptr, in lowpan_header_compress()
1294 ret = lowpan_nhc_do_compression(skb, hdr, &hc_ptr); in lowpan_header_compress()
1304 memcpy(skb_push(skb, hc_ptr - head), head, hc_ptr - head); in lowpan_header_compress()
1307 pr_debug("header len %d skb %u\n", (int)(hc_ptr - head), skb->len); in lowpan_header_compress()