Lines Matching refs:tf

350 static inline void lowpan_iphc_tf_set_ecn(struct ipv6hdr *hdr, const u8 *tf)  in lowpan_iphc_tf_set_ecn()  argument
353 u8 ecn = tf[0] & 0xc0; in lowpan_iphc_tf_set_ecn()
360 static inline void lowpan_iphc_tf_set_dscp(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_dscp() argument
363 u8 dscp = tf[0] & 0x3f; in lowpan_iphc_tf_set_dscp()
394 u8 tf[4]; in lowpan_iphc_tf_decompress() local
400 if (lowpan_fetch_skb(skb, tf, 4)) in lowpan_iphc_tf_decompress()
409 lowpan_iphc_tf_set_ecn(hdr, tf); in lowpan_iphc_tf_decompress()
410 lowpan_iphc_tf_set_dscp(hdr, tf); in lowpan_iphc_tf_decompress()
411 lowpan_iphc_tf_set_lbl(hdr, &tf[1]); in lowpan_iphc_tf_decompress()
415 if (lowpan_fetch_skb(skb, tf, 3)) in lowpan_iphc_tf_decompress()
424 lowpan_iphc_tf_set_ecn(hdr, tf); in lowpan_iphc_tf_decompress()
425 lowpan_iphc_tf_set_lbl(hdr, &tf[0]); in lowpan_iphc_tf_decompress()
429 if (lowpan_fetch_skb(skb, tf, 1)) in lowpan_iphc_tf_decompress()
437 lowpan_iphc_tf_set_ecn(hdr, tf); in lowpan_iphc_tf_decompress()
438 lowpan_iphc_tf_set_dscp(hdr, tf); in lowpan_iphc_tf_decompress()
646 u8 tc = lowpan_iphc_get_tc(hdr), tf[4], val; in lowpan_iphc_tf_compress() local
677 memcpy(&tf[0], &hdr->flow_lbl[0], 3); in lowpan_iphc_tf_compress()
679 tf[0] &= ~0xf0; in lowpan_iphc_tf_compress()
681 tf[0] |= (tc & 0xc0); in lowpan_iphc_tf_compress()
683 lowpan_push_hc_data(hc_ptr, tf, 3); in lowpan_iphc_tf_compress()
694 memcpy(&tf[0], &tc, sizeof(tc)); in lowpan_iphc_tf_compress()
699 memcpy(&tf[1], &hdr->flow_lbl[0], 3); in lowpan_iphc_tf_compress()
701 tf[1] &= ~0xf0; in lowpan_iphc_tf_compress()
703 lowpan_push_hc_data(hc_ptr, tf, 4); in lowpan_iphc_tf_compress()