Lines Matching refs:source
28 /* source 16bit inline, dest = 0xF0 + 8 bit inline */
30 /* source = 0xF0 + 8bit inline, dest = 16 bit inline */
32 /* source & dest = 0xF0B + 4bit inline */
49 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source));
53 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source));
59 uh.source = htons(val + LOWPAN_NHC_UDP_8BIT_PORT);
64 uh.source = htons(LOWPAN_NHC_UDP_4BIT_PORT + (val >> 4));
72 ntohs(uh.source), ntohs(uh.dest));
121 if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) ==
129 /* source and destination port */
131 ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4);
139 /* source port */
140 lowpan_push_hc_data(hc_ptr, &uh->source, sizeof(uh->source));
144 } else if ((ntohs(uh->source) & LOWPAN_NHC_UDP_8BIT_MASK) ==
146 pr_debug("UDP header: remove 8 bits of source\n");
150 /* source port */
151 tmp = ntohs(uh->source) - LOWPAN_NHC_UDP_8BIT_PORT;
160 /* source port */
161 lowpan_push_hc_data(hc_ptr, &uh->source, sizeof(uh->source));