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

12

/freebsd-12-stable/sys/kern/
H A Dsubr_unit.c238 check_unrhdr(struct unrhdr *uh, int line) argument
245 y = uh->first;
247 TAILQ_FOREACH(up, &uh->head, list) {
249 if (up->ptr != uh && up->ptr != NULL) {
261 KASSERT (y == uh->busy,
263 uh->busy, y, line));
264 KASSERT (z == uh->alloc,
266 uh->alloc, z, line));
272 check_unrhdr(struct unrhdr *uh __unused, int line __unused)
286 new_unr(struct unrhdr *uh, voi argument
304 delete_unr(struct unrhdr *uh, void *ptr) argument
314 clean_unrhdrl(struct unrhdr *uh) argument
329 clean_unrhdr(struct unrhdr *uh) argument
338 init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex) argument
365 struct unrhdr *uh; local
373 delete_unrhdr(struct unrhdr *uh) argument
385 clear_unrhdr(struct unrhdr *uh) argument
405 is_bitmap(struct unrhdr *uh, struct unr *up) argument
420 optimize_unr(struct unrhdr *uh) argument
533 collapse_unr(struct unrhdr *uh, struct unr *up) argument
605 alloc_unrl(struct unrhdr *uh) argument
653 alloc_unr(struct unrhdr *uh) argument
665 alloc_unr_specificl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument
767 alloc_unr_specific(struct unrhdr *uh, u_int item) argument
795 free_unrl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument
903 free_unr(struct unrhdr *uh, u_int item) argument
931 print_unr(struct unrhdr *uh, struct unr *up) argument
955 print_unrhdr(struct unrhdr *uh) argument
975 test_alloc_unr(struct unrhdr *uh, u_int i, char a[]) argument
995 test_alloc_unr_specific(struct unrhdr *uh, u_int i, char a[]) argument
1019 struct unrhdr *uh; local
[all...]
H A Dkern_umtx.c581 struct umtxq_queue *uh; local
586 LIST_FOREACH(uh, &uc->uc_queue[q], link) {
587 if (umtx_key_match(&uh->key, key))
588 return (uh);
597 struct umtxq_queue *uh; local
603 uh = umtxq_queue_lookup(&uq->uq_key, q);
604 if (uh != NULL) {
607 uh = uq->uq_spare_queue;
608 uh->key = uq->uq_key;
609 LIST_INSERT_HEAD(&uc->uc_queue[q], uh, lin
632 struct umtxq_queue *uh; local
664 struct umtxq_queue *uh; local
680 struct umtxq_queue *uh; local
699 struct umtxq_queue *uh; local
[all...]
/freebsd-12-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-12-stable/sys/arm64/arm64/
H A Dundefined.c99 struct undef_handler *uh; local
101 uh = malloc(sizeof(*uh), M_UNDEF, M_WAITOK);
102 uh->uh_handler = func;
103 LIST_INSERT_HEAD(&undef_handlers[user ? 0 : 1], uh, uh_link);
105 return (uh);
111 struct undef_handler *uh; local
113 uh = handle;
114 LIST_REMOVE(uh, uh_link);
121 struct undef_handler *uh; local
[all...]
/freebsd-12-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-12-stable/sys/arm/arm/
H A Dundefined.c113 struct undefined_handler *uh; local
119 uh = malloc(sizeof(*uh), M_TEMP, M_WAITOK);
120 uh->uh_handler = handler;
121 install_coproc_handler_static(coproc, uh);
122 return uh;
126 install_coproc_handler_static(int coproc, struct undefined_handler *uh) argument
129 LIST_INSERT_HEAD(&undefined_handlers[coproc], uh, uh_link);
135 struct undefined_handler *uh = cookie; local
137 LIST_REMOVE(uh, uh_lin
215 struct undefined_handler *uh; local
[all...]
/freebsd-12-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-12-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-12-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-12-stable/sys/netinet6/
H A Dudp6_usrreq.c210 struct udphdr *uh; local
234 uh = (struct udphdr *)((caddr_t)ip6 + off);
241 if (uh->uh_dport == 0)
245 ulen = ntohs((u_short)uh->uh_ulen);
259 if (uh->uh_sum == 0) {
268 if (uh->uh_sum == 0) {
294 fromsa[0].sin6_port = uh->uh_sport;
296 fromsa[1].sin6_port = uh->uh_dport;
325 if (inp->inp_lport != uh->uh_dport)
328 inp->inp_fport != uh
545 struct udphdr uh; local
[all...]
H A Din6_rss.c177 const struct udphdr *uh; local
321 uh = (const struct udphdr *)((c_caddr_t)ip6 + off);
323 uh->uh_sport,
324 uh->uh_dport,
/freebsd-12-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-12-stable/sys/netinet/
H A Dudp_usrreq.c393 struct udphdr *uh; local
431 uh = (struct udphdr *)((caddr_t)ip + iphlen);
437 if (uh->uh_dport == 0)
447 udp_in[0].sin_port = uh->uh_sport;
451 udp_in[1].sin_port = uh->uh_dport;
458 len = ntohs((u_short)uh->uh_ulen);
487 if (uh->uh_sum) {
505 uh->uh_ulen : htons(ip_len);
535 if (inp->inp_lport != uh->uh_dport)
548 inp->inp_fport != uh
783 struct udphdr *uh; local
[all...]
H A Din_rss.c175 const struct udphdr *uh; local
296 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen);
302 uh->uh_sport,
303 uh->uh_dport,
/freebsd-12-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-12-stable/sys/netgraph/
H A Dng_checksum.c377 struct udphdr *uh; local
380 uh = (struct udphdr *) mtodo(m, l3_offset + hlen);
382 uh->uh_sum = in_pseudo(ip4->ip_src.s_addr,
386 uh->uh_sum = in_cksum_skip(m,
389 if (uh->uh_sum == 0)
390 uh->uh_sum = 0xffff;
502 struct udphdr *uh; local
505 uh = (struct udphdr *) mtodo(m, l3_offset + hlen);
507 uh->uh_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0);
510 uh
[all...]
/freebsd-12-stable/sys/sys/
H A Dsystm.h527 void init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex);
528 void delete_unrhdr(struct unrhdr *uh);
529 void clear_unrhdr(struct unrhdr *uh);
530 void clean_unrhdr(struct unrhdr *uh);
531 void clean_unrhdrl(struct unrhdr *uh);
532 int alloc_unr(struct unrhdr *uh);
533 int alloc_unr_specific(struct unrhdr *uh, u_int item);
534 int alloc_unrl(struct unrhdr *uh);
535 void free_unr(struct unrhdr *uh, u_int item);
/freebsd-12-stable/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel.c216 struct udphdr *uh; local
241 uh = (struct udphdr *)(ip6 + 1);
242 *((uint16_t *) &tuple[37]) = uh->uh_dport;
243 *((uint16_t *) &tuple[39]) = uh->uh_sport;
269 uh = (struct udphdr *)(ip + 1);
270 *((uint16_t *) &tuple[13]) = uh->uh_dport;
271 *((uint16_t *) &tuple[15]) = uh->uh_sport;
H A Ddn_sched_fq_pie.c794 struct udphdr *uh; local
819 uh = (struct udphdr *)(ip6 + 1);
820 *((uint16_t *) &tuple[37]) = uh->uh_dport;
821 *((uint16_t *) &tuple[39]) = uh->uh_sport;
846 uh = (struct udphdr *)(ip + 1);
847 *((uint16_t *) &tuple[13]) = uh->uh_dport;
848 *((uint16_t *) &tuple[15]) = uh->uh_sport;
/freebsd-12-stable/sys/fs/tmpfs/
H A Dtmpfs_subr.c169 RB_PROTOTYPE_STATIC(tmpfs_dir, tmpfs_dirent, uh.td_entries, tmpfs_dirtree_cmp);
868 dc->tdc_current = LIST_NEXT(dc->tdc_current, uh.td_dup.entries);
913 uh.td_dup.index_entries) {
976 LIST_FOREACH(de, duphead, uh.td_dup.entries) {
1011 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries);
1012 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
1023 de = LIST_NEXT(de, uh.td_dup.index_entries);
1030 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries);
1031 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
1042 uh
[all...]
/freebsd-12-stable/sys/netipsec/
H A Dipsec.c523 struct udphdr uh; local
542 m_copydata(m, off, sizeof (uh), (caddr_t) &uh);
543 spidx->src.sin.sin_port = uh.uh_sport;
544 spidx->dst.sin.sin_port = uh.uh_dport;
684 struct udphdr uh; local
718 m_copydata(m, off, sizeof(uh), (caddr_t)&uh);
719 spidx->src.sin6.sin6_port = uh.uh_sport;
720 spidx->dst.sin6.sin6_port = uh
[all...]
/freebsd-12-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,

Completed in 302 milliseconds

12