Home
last modified time | relevance | path

Searched refs:uh (Results 1 – 25 of 54) sorted by relevance

123

/freebsd/sys/kern/
H A Dsubr_unit.c202 is_bitmap(struct unrhdr *uh, struct unr *up) in is_bitmap() argument
204 return (up->ptr != uh && up->ptr != NULL); in is_bitmap()
231 struct unrhdr *uh; member
238 create_iter_unr(struct unrhdr *uh) in create_iter_unr() argument
244 iter->uh = uh; in create_iter_unr()
251 next_iter_unrl(struct unrhdr *uh, struct unrhdr_iter *iter) in next_iter_unrl() argument
259 if (iter->upos == uh) in next_iter_unrl()
261 y = uh->low - 1; in next_iter_unrl()
262 if (uh->first == 0) { in next_iter_unrl()
263 up = TAILQ_FIRST(&uh->head); in next_iter_unrl()
[all …]
H A Dkern_umtx.c455 struct umtxq_queue *uh; in umtxq_queue_lookup() local
460 LIST_FOREACH(uh, &uc->uc_queue[q], link) { in umtxq_queue_lookup()
461 if (umtx_key_match(&uh->key, key)) in umtxq_queue_lookup()
462 return (uh); in umtxq_queue_lookup()
471 struct umtxq_queue *uh; in umtxq_insert_queue() local
477 uh = umtxq_queue_lookup(&uq->uq_key, q); in umtxq_insert_queue()
478 if (uh != NULL) { in umtxq_insert_queue()
481 uh = uq->uq_spare_queue; in umtxq_insert_queue()
482 uh->key = uq->uq_key; in umtxq_insert_queue()
483 LIST_INSERT_HEAD(&uc->uc_queue[q], uh, link); in umtxq_insert_queue()
[all …]
/freebsd/stand/libsa/
H A Dudp.c60 struct udphdr *uh; in sendudp() local
77 uh = (struct udphdr *)pkt - 1; in sendudp()
78 len += sizeof(*uh); in sendudp()
80 uh->uh_sport = d->myport; in sendudp()
81 uh->uh_dport = d->destport; in sendudp()
82 uh->uh_ulen = htons(len); in sendudp()
85 ui->ui_len = uh->uh_ulen; in sendudp()
90 uh->uh_sum = in_cksum(ui, len + sizeof (struct ip)); in sendudp()
93 cc = sendip(d, uh, len, IPPROTO_UDP); in sendudp()
98 return (cc - sizeof(*uh)); in sendudp()
[all …]
H A Dip.c185 struct udphdr *uh; in readipv4() local
199 if (n == -1 || n < sizeof(*ip) + sizeof(*uh)) { in readipv4()
273 uh = (struct udphdr *)((uintptr_t)ip + sizeof (*ip)); in readipv4()
276 bcopy(((u_char *)ip) + hlen, uh, uh->uh_ulen - hlen); in readipv4()
H A Dtftp.c229 struct udphdr *uh; in recvtftp() local
230 uh = (struct udphdr *)t - 1; in recvtftp()
231 d->destport = uh->uh_sport; in recvtftp()
255 struct udphdr *uh; in recvtftp() local
271 uh = (struct udphdr *)t - 1; in recvtftp()
272 d->destport = uh->uh_sport; in recvtftp()
/freebsd/sys/arm/arm/
H A Dundefined.c120 struct undefined_handler *uh; in install_coproc_handler() local
126 uh = malloc(sizeof(*uh), M_TEMP, M_WAITOK); in install_coproc_handler()
127 uh->uh_handler = handler; in install_coproc_handler()
128 install_coproc_handler_static(coproc, uh); in install_coproc_handler()
129 return uh; in install_coproc_handler()
133 install_coproc_handler_static(int coproc, struct undefined_handler *uh) in install_coproc_handler_static() argument
136 LIST_INSERT_HEAD(&undefined_handlers[coproc], uh, uh_link); in install_coproc_handler_static()
142 struct undefined_handler *uh = cookie; in remove_coproc_handler() local
144 LIST_REMOVE(uh, uh_link); in remove_coproc_handler()
145 free(uh, M_TEMP); in remove_coproc_handler()
[all …]
/freebsd/sys/arm64/arm64/
H A Dundefined.c295 struct undef_handler *uh; in install_undef_handler() local
297 uh = malloc(sizeof(*uh), M_UNDEF, M_WAITOK); in install_undef_handler()
298 uh->uh_handler = func; in install_undef_handler()
299 LIST_INSERT_HEAD(&undef_handlers[user ? 0 : 1], uh, uh_link); in install_undef_handler()
301 return (uh); in install_undef_handler()
307 struct undef_handler *uh; in remove_undef_handler() local
309 uh = handle; in remove_undef_handler()
310 LIST_REMOVE(uh, uh_link); in remove_undef_handler()
317 struct undef_handler *uh; in undef_insn() local
331 LIST_FOREACH(uh, &undef_handlers[el], uh_link) { in undef_insn()
[all …]
/freebsd/sys/netinet6/
H A Dudp6_usrreq.c220 struct udphdr *uh; member
230 if (inp->inp_lport != ctx->uh->uh_dport) in udp6_multi_match()
232 if (inp->inp_fport != 0 && inp->inp_fport != ctx->uh->uh_sport) in udp6_multi_match()
239 inp->inp_fport != ctx->uh->uh_sport)) in udp6_multi_match()
273 ctx.uh = (struct udphdr *)((char *)ctx.ip6 + off); in udp6_multi_input()
310 inp, ctx.uh); in udp6_multi_input()
313 ctx.uh); in udp6_multi_input()
353 struct udphdr *uh; in udp6_input() local
376 uh = (struct udphdr *)((caddr_t)ip6 + off); in udp6_input()
383 if (uh->uh_dport == 0) in udp6_input()
[all …]
H A Din6_rss.c213 const struct udphdr *uh; in rss_mbuf_software_hash_v6() local
357 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
359 uh->uh_sport, in rss_mbuf_software_hash_v6()
360 uh->uh_dport, in rss_mbuf_software_hash_v6()
/freebsd/usr.sbin/ppp/
H A Dip.c303 const struct udphdr *uh; in FilterCheck() local
353 uh = (const struct udphdr *)payload; in FilterCheck()
354 sport = ntohs(uh->uh_sport); in FilterCheck()
355 dport = ntohs(uh->uh_dport); in FilterCheck()
496 ip_LogDNS(const struct udphdr *uh, const char *direction) in ip_LogDNS() argument
504 ptr = (const char *)uh + sizeof *uh; in ip_LogDNS()
505 len = ntohs(uh->uh_ulen) - sizeof *uh; in ip_LogDNS()
567 const struct udphdr *uh; in PacketCheck() local
608 uh = NULL; in PacketCheck()
650 uh = (const struct udphdr *)payload; in PacketCheck()
[all …]
/freebsd/tools/tools/net80211/wesside/dics/
H A Ddics.c163 struct udphdr* uh;
169 uh = (struct udphdr*) ((char*)iph + 20);
171 if ( htons(uh->uh_dport) != DPORT)
179 *port = ntohs(uh->uh_sport);
230 struct udphdr* uh; in send_stuff() local
256 uh = (struct udphdr*) ((char*)iph + 20); in send_stuff()
257 uh->uh_sport = htons(DPORT); in send_stuff()
258 uh->uh_dport = htons(port); in send_stuff()
259 uh->uh_ulen = htons(8+dlen); in send_stuff()
260 uh->uh_sum = 0; in send_stuff()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-sctp.c238 struct sctpChunkDesc uh; member
269 struct sctpChunkDesc uh; member
278 struct sctpChunkDesc uh; member
283 struct sctpChunkDesc uh; member
288 struct sctpChunkDesc uh; member
301 struct sctpChunkDesc uh; member
315 struct sctpChunkDesc uh; member
321 struct sctpChunkDesc uh; member
329 struct sctpChunkDesc uh; member
340 struct sctpChunkDesc uh; member
[all …]
H A Dprint-usb.c182 usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh) in usb_header_print() argument
194 transfer_type = GET_U_1(uh->transfer_type); in usb_header_print()
212 event_type = GET_U_1(uh->event_type); in usb_header_print()
232 ND_PRINT(" %u:%u:%u", GET_HE_U_2(uh->bus_id), in usb_header_print()
233 GET_U_1(uh->device_address), in usb_header_print()
234 GET_U_1(uh->endpoint_number) & 0x7f); in usb_header_print()
/freebsd/sys/netinet/
H A Dudp_usrreq.c330 struct udphdr *uh = (struct udphdr *)(ip + 1); in udp_multi_match() local
332 if (inp->inp_lport != uh->uh_dport) in udp_multi_match()
345 inp->inp_fport != uh->uh_sport) in udp_multi_match()
358 struct udphdr *uh = (struct udphdr *)(ip + 1); in udp_multi_input() local
404 UDPLITE_PROBE(receive, NULL, inp, ip, inp, uh); in udp_multi_input()
406 UDP_PROBE(receive, NULL, inp, ip, inp, uh); in udp_multi_input()
448 struct udphdr *uh; in udp_input() local
484 uh = (struct udphdr *)((caddr_t)ip + iphlen); in udp_input()
490 if (uh->uh_dport == 0) in udp_input()
500 udp_in[0].sin_port = uh->uh_sport; in udp_input()
[all …]
H A Din_rss.c209 const struct udphdr *uh; in rss_mbuf_software_hash_v4() local
328 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4()
334 uh->uh_sport, in rss_mbuf_software_hash_v4()
335 uh->uh_dport, in rss_mbuf_software_hash_v4()
/freebsd/sys/netinet/libalias/
H A Dalias_nbt.c334 struct udphdr *uh; in AliasHandleUdpNbt() local
346 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbt()
347 pmax = (char *)uh + ntohs(uh->uh_ulen); in AliasHandleUdpNbt()
349 ndh = (NbtDataHeader *)udp_next(uh); in AliasHandleUdpNbt()
380 if (uh->uh_sum != 0) { in AliasHandleUdpNbt()
392 ADJUST_CHECKSUM(acc, uh->uh_sum); in AliasHandleUdpNbt()
762 struct udphdr *uh; in AliasHandleUdpNbtNS() local
778 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbtNS()
779 nbtarg.uh_sum = &(uh->uh_sum); in AliasHandleUdpNbtNS()
780 nsh = (NbtNSHeader *)udp_next(uh); in AliasHandleUdpNbtNS()
[all …]
/freebsd/sys/netgraph/
H A Dng_checksum.c374 struct udphdr *uh; in checksum_ipv4() local
377 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4()
379 uh->uh_sum = in_pseudo(ip4->ip_src.s_addr, in checksum_ipv4()
383 uh->uh_sum = in_cksum_skip(m, in checksum_ipv4()
386 if (uh->uh_sum == 0) in checksum_ipv4()
387 uh->uh_sum = 0xffff; in checksum_ipv4()
499 struct udphdr *uh; in checksum_ipv6() local
502 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6()
504 uh->uh_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); in checksum_ipv6()
507 uh->uh_sum = in_cksum_skip(m, in checksum_ipv6()
[all …]
/freebsd/sys/dev/ixgbe/
H A Dif_fdir.c86 struct udphdr *uh; in ixgbe_atr() local
119 uh = (struct udphdr *)((caddr_t)ip + ip_hlen); in ixgbe_atr()
121 common.port.dst ^= uh->uh_sport; in ixgbe_atr()
122 common.port.src ^= uh->uh_dport; in ixgbe_atr()
/freebsd/sys/sys/
H A Dsystm.h531 void init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex);
532 void delete_unrhdr(struct unrhdr *uh);
533 void clear_unrhdr(struct unrhdr *uh);
534 void clean_unrhdr(struct unrhdr *uh);
535 void clean_unrhdrl(struct unrhdr *uh);
536 int alloc_unr(struct unrhdr *uh);
537 int alloc_unr_specific(struct unrhdr *uh, u_int item);
538 int alloc_unrl(struct unrhdr *uh);
539 void free_unr(struct unrhdr *uh, u_int item);
540 void *create_iter_unr(struct unrhdr *uh);
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dhexagon_types.h156 unsigned short uh[4]; \
159 _HEXAGON_V64_internal_union.uh[0]; \
165 unsigned short uh[4]; \
168 _HEXAGON_V64_internal_union.uh[1]; \
174 unsigned short uh[4]; \
177 _HEXAGON_V64_internal_union.uh[2]; \
183 unsigned short uh[4]; \
186 _HEXAGON_V64_internal_union.uh[3]; \
839 unsigned short uh[2]; \
842 _HEXAGON_V32_internal_union.uh[0]; \
[all …]
/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel.c219 struct udphdr *uh; in fq_codel_classify_flow() local
244 uh = (struct udphdr *)(ip6 + 1); in fq_codel_classify_flow()
245 *((uint16_t *) &tuple[37]) = uh->uh_dport; in fq_codel_classify_flow()
246 *((uint16_t *) &tuple[39]) = uh->uh_sport; in fq_codel_classify_flow()
271 uh = (struct udphdr *)(ip + 1); in fq_codel_classify_flow()
272 *((uint16_t *) &tuple[13]) = uh->uh_dport; in fq_codel_classify_flow()
273 *((uint16_t *) &tuple[15]) = uh->uh_sport; in fq_codel_classify_flow()
/freebsd/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_printf.c142 uint32_t ul, uh; in ATF_TC_BODY() local
163 uh = rand(); in ATF_TC_BODY()
164 u.bits = (uint64_t)uh << 32 | ul; in ATF_TC_BODY()
/freebsd/sys/net/
H A Dif_gre.c687 struct udphdr *uh;
758 uh = (struct udphdr *)mtodo(m, len);
759 uh->uh_sport |= htons(V_ipport_hifirstauto) |
761 uh->uh_sport = htons(ntohs(uh->uh_sport) %
763 uh->uh_ulen = htons(m->m_pkthdr.len - len);
764 uh->uh_sum = gre_cksum_add(uh->uh_sum,
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_subr.c452 RB_PROTOTYPE_STATIC(tmpfs_dir, tmpfs_dirent, uh.td_entries, tmpfs_dirtree_cmp);
1290 dc->tdc_current = LIST_NEXT(dc->tdc_current, uh.td_dup.entries); in tmpfs_dir_next()
1335 uh.td_dup.index_entries) { in tmpfs_dir_lookup_cookie()
1398 LIST_FOREACH(de, duphead, uh.td_dup.entries) { in tmpfs_dir_lookup()
1433 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1434 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1445 de = LIST_NEXT(de, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1452 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1453 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1464 uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
[all …]
/freebsd/sys/netipsec/
H A Dipsec.c520 struct udphdr uh; in ipsec4_get_ulp() local
539 m_copydata(m, off, sizeof (uh), (caddr_t) &uh); in ipsec4_get_ulp()
540 spidx->src.sin.sin_port = uh.uh_sport; in ipsec4_get_ulp()
541 spidx->dst.sin.sin_port = uh.uh_dport; in ipsec4_get_ulp()
686 struct udphdr uh; in ipsec6_get_ulp() local
720 m_copydata(m, off, sizeof(uh), (caddr_t)&uh); in ipsec6_get_ulp()
721 spidx->src.sin6.sin6_port = uh.uh_sport; in ipsec6_get_ulp()
722 spidx->dst.sin6.sin6_port = uh.uh_dport; in ipsec6_get_ulp()

123