Searched refs:uh (Results 1 - 25 of 48) sorted by relevance

12

/freebsd-13-stable/sys/kern/
H A Dsubr_unit.c236 check_unrhdr(struct unrhdr *uh, int line) argument
243 y = uh->first;
245 TAILQ_FOREACH(up, &uh->head, list) {
247 if (up->ptr != uh && up->ptr != NULL) {
259 KASSERT (y == uh->busy,
261 uh->busy, y, line));
262 KASSERT (z == uh->alloc,
264 uh->alloc, z, line));
270 check_unrhdr(struct unrhdr *uh __unused, int line __unused)
283 new_unr(struct unrhdr *uh, voi argument
301 delete_unr(struct unrhdr *uh, void *ptr) argument
311 clean_unrhdrl(struct unrhdr *uh) argument
326 clean_unrhdr(struct unrhdr *uh) argument
335 init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex) argument
362 struct unrhdr *uh; local
370 delete_unrhdr(struct unrhdr *uh) argument
382 clear_unrhdr(struct unrhdr *uh) argument
402 is_bitmap(struct unrhdr *uh, struct unr *up) argument
417 optimize_unr(struct unrhdr *uh) argument
530 collapse_unr(struct unrhdr *uh, struct unr *up) argument
602 alloc_unrl(struct unrhdr *uh) argument
650 alloc_unr(struct unrhdr *uh) argument
662 alloc_unr_specificl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument
764 alloc_unr_specific(struct unrhdr *uh, u_int item) argument
792 free_unrl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument
900 free_unr(struct unrhdr *uh, u_int item) argument
928 print_unr(struct unrhdr *uh, struct unr *up) argument
952 print_unrhdr(struct unrhdr *uh) argument
972 test_alloc_unr(struct unrhdr *uh, u_int i, char a[]) argument
992 test_alloc_unr_specific(struct unrhdr *uh, u_int i, char a[]) argument
1016 struct unrhdr *uh; local
[all...]
H A Dkern_umtx.c586 struct umtxq_queue *uh; local
591 LIST_FOREACH(uh, &uc->uc_queue[q], link) {
592 if (umtx_key_match(&uh->key, key))
593 return (uh);
602 struct umtxq_queue *uh; local
608 uh = umtxq_queue_lookup(&uq->uq_key, q);
609 if (uh != NULL) {
612 uh = uq->uq_spare_queue;
613 uh->key = uq->uq_key;
614 LIST_INSERT_HEAD(&uc->uc_queue[q], uh, lin
637 struct umtxq_queue *uh; local
669 struct umtxq_queue *uh; local
685 struct umtxq_queue *uh; local
704 struct umtxq_queue *uh; local
[all...]
/freebsd-13-stable/stand/libsa/
H A Dudp.c65 struct udphdr *uh; local
82 uh = (struct udphdr *)pkt - 1;
83 len += sizeof(*uh);
85 uh->uh_sport = d->myport;
86 uh->uh_dport = d->destport;
87 uh->uh_ulen = htons(len);
90 ui->ui_len = uh->uh_ulen;
95 uh->uh_sum = in_cksum(ui, len + sizeof (struct ip));
98 cc = sendip(d, uh, len, IPPROTO_UDP);
103 return (cc - sizeof(*uh));
113 struct udphdr *uh; local
[all...]
H A Dip.c188 struct udphdr *uh; local
202 if (n == -1 || n < sizeof(*ip) + sizeof(*uh)) {
276 uh = (struct udphdr *)((uintptr_t)ip + sizeof (*ip));
279 bcopy(((u_char *)ip) + hlen, uh, uh->uh_ulen - hlen);
H A Dtftp.c228 struct udphdr *uh; local
229 uh = (struct udphdr *)t - 1;
230 d->destport = uh->uh_sport;
250 struct udphdr *uh; local
266 uh = (struct udphdr *)t - 1;
267 d->destport = uh->uh_sport;
/freebsd-13-stable/sys/arm64/arm64/
H A Dundefined.c134 struct undef_handler *uh; local
136 uh = malloc(sizeof(*uh), M_UNDEF, M_WAITOK);
137 uh->uh_handler = func;
138 LIST_INSERT_HEAD(&undef_handlers[user ? 0 : 1], uh, uh_link);
140 return (uh);
146 struct undef_handler *uh; local
148 uh = handle;
149 LIST_REMOVE(uh, uh_link);
156 struct undef_handler *uh; local
[all...]
/freebsd-13-stable/contrib/tcpdump/
H A Dprint-usb.c84 usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh) argument
88 switch(uh->transfer_type)
106 switch(uh->event_type)
121 direction = get_direction(uh->transfer_type, uh->event_type);
126 ND_PRINT((ndo, " %d:%d:%d", uh->bus_id, uh->device_address, uh->endpoint_number & 0x7f));
H A Dprint-sctp.c257 struct sctpChunkDesc uh; member in struct:sctpUnifiedInit
288 struct sctpChunkDesc uh; member in struct:sctpUnifiedSack
324 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbort
329 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbortLight
334 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbortHeavy
347 struct sctpChunkDesc uh; member in struct:sctpUnifiedShutdown
361 struct sctpChunkDesc uh; member in struct:sctpUnifiedOpError
367 struct sctpChunkDesc uh; member in struct:sctpUnifiedStreamError
375 struct sctpChunkDesc uh; member in struct:staleCookieMsg
386 struct sctpChunkDesc uh; member in struct:sctpUnifiedSingleMsg
397 struct sctpChunkDesc uh; member in struct:sctpUnifiedDatagram
402 struct sctpChunkDesc uh; member in struct:sctpECN_echo
408 struct sctpChunkDesc uh; member in struct:sctpCWR
[all...]
/freebsd-13-stable/sys/arm/arm/
H A Dundefined.c111 struct undefined_handler *uh; local
117 uh = malloc(sizeof(*uh), M_TEMP, M_WAITOK);
118 uh->uh_handler = handler;
119 install_coproc_handler_static(coproc, uh);
120 return uh;
124 install_coproc_handler_static(int coproc, struct undefined_handler *uh) argument
127 LIST_INSERT_HEAD(&undefined_handlers[coproc], uh, uh_link);
133 struct undefined_handler *uh = cookie; local
135 LIST_REMOVE(uh, uh_lin
211 struct undefined_handler *uh; local
[all...]
/freebsd-13-stable/tools/tools/net80211/wesside/dics/
H A Ddics.c165 struct udphdr* uh;
171 uh = (struct udphdr*) ((char*)iph + 20);
173 if ( htons(uh->uh_dport) != DPORT)
181 *port = ntohs(uh->uh_sport);
232 struct udphdr* uh; local
258 uh = (struct udphdr*) ((char*)iph + 20);
259 uh->uh_sport = htons(DPORT);
260 uh->uh_dport = htons(port);
261 uh->uh_ulen = htons(8+dlen);
262 uh
[all...]
/freebsd-13-stable/sys/dev/ixgbe/
H A Dif_fdir.c87 struct udphdr *uh; local
120 uh = (struct udphdr *)((caddr_t)ip + ip_hlen);
122 common.port.dst ^= uh->uh_sport;
123 common.port.src ^= uh->uh_dport;
/freebsd-13-stable/usr.sbin/ppp/
H A Dip.c305 const struct udphdr *uh; local
355 uh = (const struct udphdr *)payload;
356 sport = ntohs(uh->uh_sport);
357 dport = ntohs(uh->uh_dport);
498 ip_LogDNS(const struct udphdr *uh, const char *direction) argument
506 ptr = (const char *)uh + sizeof *uh;
507 len = ntohs(uh->uh_ulen) - sizeof *uh;
569 const struct udphdr *uh; local
[all...]
/freebsd-13-stable/sys/netinet6/
H A Dudp6_usrreq.c216 struct udphdr *uh; local
241 uh = (struct udphdr *)((caddr_t)ip6 + off);
248 if (uh->uh_dport == 0)
252 ulen = ntohs((u_short)uh->uh_ulen);
266 if (uh->uh_sum == 0) {
275 if (uh->uh_sum == 0) {
281 if (ntohs(uh->uh_dport) == V_zero_checksum_port)
309 fromsa[0].sin6_port = uh->uh_sport;
311 fromsa[1].sin6_port = uh->uh_dport;
339 if (inp->inp_lport != uh
549 struct udphdr uh; local
[all...]
H A Din6_rss.c221 const struct udphdr *uh; local
365 uh = (const struct udphdr *)((c_caddr_t)ip6 + off);
367 uh->uh_sport,
368 uh->uh_dport,
/freebsd-13-stable/sys/netinet/libalias/
H A Dalias_nbt.c334 struct udphdr *uh; local
346 uh = (struct udphdr *)ip_next(pip);
347 pmax = (char *)uh + ntohs(uh->uh_ulen);
349 ndh = (NbtDataHeader *)udp_next(uh);
380 if (uh->uh_sum != 0) {
392 ADJUST_CHECKSUM(acc, uh->uh_sum);
762 struct udphdr *uh; local
778 uh = (struct udphdr *)ip_next(pip);
779 nbtarg.uh_sum = &(uh
[all...]
/freebsd-13-stable/sys/netinet/
H A Dudp_usrreq.c396 struct udphdr *uh; local
433 uh = (struct udphdr *)((caddr_t)ip + iphlen);
439 if (uh->uh_dport == 0)
449 udp_in[0].sin_port = uh->uh_sport;
453 udp_in[1].sin_port = uh->uh_dport;
460 len = ntohs((u_short)uh->uh_ulen);
489 if (uh->uh_sum) {
507 uh->uh_ulen : htons(ip_len);
538 if (inp->inp_lport != uh->uh_dport)
551 inp->inp_fport != uh
787 struct udphdr *uh; local
[all...]
H A Din_rss.c217 const struct udphdr *uh; local
338 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen);
344 uh->uh_sport,
345 uh->uh_dport,
H A Dtcp_subr.c536 struct udphdr *uh; local
554 uh = (struct udphdr *)((caddr_t)iph + off);
555 th = (struct tcphdr *)(uh + 1);
564 uh = (struct udphdr *)((caddr_t)iph + off);
565 th = (struct tcphdr *)(uh + 1);
568 m->m_pkthdr.tcp_tun_port = port = uh->uh_sport;
569 bcopy(th, uh, m->m_len - off);
1686 struct udphdr *uh = NULL; local
1750 uh = (struct udphdr *)nth;
1751 uh
[all...]
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_printf.c142 uint32_t ul, uh; local
163 uh = rand();
164 u.bits = (uint64_t)uh << 32 | ul;
/freebsd-13-stable/sys/netgraph/
H A Dng_checksum.c376 struct udphdr *uh; local
379 uh = (struct udphdr *) mtodo(m, l3_offset + hlen);
381 uh->uh_sum = in_pseudo(ip4->ip_src.s_addr,
385 uh->uh_sum = in_cksum_skip(m,
388 if (uh->uh_sum == 0)
389 uh->uh_sum = 0xffff;
501 struct udphdr *uh; local
504 uh = (struct udphdr *) mtodo(m, l3_offset + hlen);
506 uh->uh_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0);
509 uh
[all...]
/freebsd-13-stable/sys/sys/
H A Dsystm.h574 void init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex);
575 void delete_unrhdr(struct unrhdr *uh);
576 void clear_unrhdr(struct unrhdr *uh);
577 void clean_unrhdr(struct unrhdr *uh);
578 void clean_unrhdrl(struct unrhdr *uh);
579 int alloc_unr(struct unrhdr *uh);
580 int alloc_unr_specific(struct unrhdr *uh, u_int item);
581 int alloc_unrl(struct unrhdr *uh);
582 void free_unr(struct unrhdr *uh, u_int item);
/freebsd-13-stable/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel.c218 struct udphdr *uh; local
243 uh = (struct udphdr *)(ip6 + 1);
244 *((uint16_t *) &tuple[37]) = uh->uh_dport;
245 *((uint16_t *) &tuple[39]) = uh->uh_sport;
270 uh = (struct udphdr *)(ip + 1);
271 *((uint16_t *) &tuple[13]) = uh->uh_dport;
272 *((uint16_t *) &tuple[15]) = uh->uh_sport;
/freebsd-13-stable/sys/fs/tmpfs/
H A Dtmpfs_subr.c324 RB_PROTOTYPE_STATIC(tmpfs_dir, tmpfs_dirent, uh.td_entries, tmpfs_dirtree_cmp);
1086 dc->tdc_current = LIST_NEXT(dc->tdc_current, uh.td_dup.entries);
1131 uh.td_dup.index_entries) {
1194 LIST_FOREACH(de, duphead, uh.td_dup.entries) {
1229 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries);
1230 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
1241 de = LIST_NEXT(de, uh.td_dup.index_entries);
1248 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries);
1249 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
1260 uh
[all...]
/freebsd-13-stable/sys/net/
H A Dif_gre.c696 struct udphdr *uh;
767 uh = (struct udphdr *)mtodo(m, len);
768 uh->uh_sport |= htons(V_ipport_hifirstauto) |
770 uh->uh_sport = htons(ntohs(uh->uh_sport) %
772 uh->uh_ulen = htons(m->m_pkthdr.len - len);
773 uh->uh_sum = gre_cksum_add(uh->uh_sum,
/freebsd-13-stable/sys/netipsec/
H A Dipsec.c520 struct udphdr uh; local
539 m_copydata(m, off, sizeof (uh), (caddr_t) &uh);
540 spidx->src.sin.sin_port = uh.uh_sport;
541 spidx->dst.sin.sin_port = uh.uh_dport;
681 struct udphdr uh; local
715 m_copydata(m, off, sizeof(uh), (caddr_t)&uh);
716 spidx->src.sin6.sin6_port = uh.uh_sport;
717 spidx->dst.sin6.sin6_port = uh
[all...]

Completed in 219 milliseconds

12