Lines Matching full:source
27 /* source 16bit inline, dest = 0xF0 + 8 bit inline */
29 /* source = 0xF0 + 8bit inline, dest = 16 bit inline */
31 /* source & dest = 0xF0B + 4bit inline */
48 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); in udp_uncompress()
52 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); in udp_uncompress()
58 uh.source = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); in udp_uncompress()
63 uh.source = htons(LOWPAN_NHC_UDP_4BIT_PORT + (val >> 4)); in udp_uncompress()
71 ntohs(uh.source), ntohs(uh.dest)); in udp_uncompress()
120 if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) == in udp_compress()
128 /* source and destination port */ in udp_compress()
130 ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4); in udp_compress()
138 /* source port */ in udp_compress()
139 lowpan_push_hc_data(hc_ptr, &uh->source, sizeof(uh->source)); in udp_compress()
143 } else if ((ntohs(uh->source) & LOWPAN_NHC_UDP_8BIT_MASK) == in udp_compress()
145 pr_debug("UDP header: remove 8 bits of source\n"); in udp_compress()
149 /* source port */ in udp_compress()
150 tmp = ntohs(uh->source) - LOWPAN_NHC_UDP_8BIT_PORT; in udp_compress()
159 /* source port */ in udp_compress()
160 lowpan_push_hc_data(hc_ptr, &uh->source, sizeof(uh->source)); in udp_compress()