| /f-stack/freebsd/kern/ |
| H A D | subr_unit.c | 364 uh = Malloc(sizeof *uh); in new_unrhdr() 396 init_unrhdr(uh, uh->low, uh->high, uh->mtx); in clear_unrhdr() 611 x = uh->low + uh->first; in alloc_unrl() 670 if (item < uh->low + uh->first || item > uh->high) in alloc_unr_specificl() 683 i = item - uh->low - uh->first; in alloc_unr_specificl() 694 uh->last = uh->high - uh->low - i; in alloc_unr_specificl() 754 last = uh->high - uh->low - (item - uh->low); in alloc_unr_specificl() 798 KASSERT(item >= uh->low && item <= uh->high, in free_unrl() 800 item, uh->low, uh->high)); in free_unrl() 959 uh, uh->low, uh->high, uh->first, uh->last, uh->busy, uh->alloc); in print_unrhdr() [all …]
|
| H A D | kern_umtx.c | 593 return (uh); in umtxq_queue_lookup() 609 if (uh != NULL) { in umtxq_insert_queue() 613 uh->key = uq->uq_key; in umtxq_insert_queue() 627 uh->length++; in umtxq_insert_queue() 629 uq->uq_cur_queue = uh; in umtxq_insert_queue() 644 uh->length--; in umtxq_remove_queue() 673 if (uh != NULL) in umtxq_count() 674 return (uh->length); in umtxq_count() 690 if (uh != NULL) { in umtxq_count_pi() 692 return (uh->length); in umtxq_count_pi() [all …]
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | undefined.c | 134 struct undef_handler *uh; in install_undef_handler() local 136 uh = malloc(sizeof(*uh), M_UNDEF, M_WAITOK); in install_undef_handler() 137 uh->uh_handler = func; in install_undef_handler() 138 LIST_INSERT_HEAD(&undef_handlers[user ? 0 : 1], uh, uh_link); in install_undef_handler() 140 return (uh); in install_undef_handler() 146 struct undef_handler *uh; in remove_undef_handler() local 148 uh = handle; in remove_undef_handler() 149 LIST_REMOVE(uh, uh_link); in remove_undef_handler() 156 struct undef_handler *uh; in undef_insn() local 170 LIST_FOREACH(uh, &undef_handlers[el], uh_link) { in undef_insn() [all …]
|
| /f-stack/freebsd/arm/arm/ |
| H A D | undefined.c | 111 struct undefined_handler *uh; in install_coproc_handler() local 117 uh = malloc(sizeof(*uh), M_TEMP, M_WAITOK); in install_coproc_handler() 118 uh->uh_handler = handler; in install_coproc_handler() 119 install_coproc_handler_static(coproc, uh); in install_coproc_handler() 120 return uh; in install_coproc_handler() 127 LIST_INSERT_HEAD(&undefined_handlers[coproc], uh, uh_link); in install_coproc_handler_static() 133 struct undefined_handler *uh = cookie; in remove_coproc_handler() local 135 LIST_REMOVE(uh, uh_link); in remove_coproc_handler() 136 free(uh, M_TEMP); in remove_coproc_handler() 211 struct undefined_handler *uh; in undefinedinstruction() local [all …]
|
| /f-stack/freebsd/netinet6/ |
| H A D | udp6_usrreq.c | 216 struct udphdr *uh; in udp6_input() local 248 if (uh->uh_dport == 0) in udp6_input() 266 if (uh->uh_sum == 0) { in udp6_input() 275 if (uh->uh_sum == 0) { in udp6_input() 408 ip6, last, uh); in udp6_input() 470 uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input() 489 uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input() 500 ntohs(uh->uh_dport), in udp6_input() 549 struct udphdr uh; in udp6_common_ctlinput() local 600 bzero(&uh, sizeof(uh)); in udp6_common_ctlinput() [all …]
|
| H A D | in6_rss.c | 221 const struct udphdr *uh; in rss_mbuf_software_hash_v6() local 365 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6() 367 uh->uh_sport, in rss_mbuf_software_hash_v6() 368 uh->uh_dport, in rss_mbuf_software_hash_v6()
|
| /f-stack/freebsd/netinet/ |
| H A D | udp_usrreq.c | 396 struct udphdr *uh; in udp_input() local 439 if (uh->uh_dport == 0) in udp_input() 449 udp_in[0].sin_port = uh->uh_sport; in udp_input() 453 udp_in[1].sin_port = uh->uh_dport; in udp_input() 460 len = ntohs((u_short)uh->uh_ulen); in udp_input() 489 if (uh->uh_sum) { in udp_input() 507 uh->uh_ulen : htons(ip_len); in udp_input() 607 last, uh); in udp_input() 610 uh); in udp_input() 784 struct udphdr *uh; in udp_common_ctlinput() local [all …]
|
| H A D | in_rss.c | 217 const struct udphdr *uh; in rss_mbuf_software_hash_v4() local 338 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4() 344 uh->uh_sport, in rss_mbuf_software_hash_v4() 345 uh->uh_dport, in rss_mbuf_software_hash_v4()
|
| /f-stack/freebsd/netinet/libalias/ |
| H A D | alias_nbt.c | 342 struct udphdr *uh; in AliasHandleUdpNbt() local 354 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbt() 355 pmax = (char *)uh + ntohs(uh->uh_ulen); in AliasHandleUdpNbt() 357 ndh = (NbtDataHeader *)udp_next(uh); in AliasHandleUdpNbt() 388 if (uh->uh_sum != 0) { in AliasHandleUdpNbt() 400 ADJUST_CHECKSUM(acc, uh->uh_sum); in AliasHandleUdpNbt() 787 struct udphdr *uh; in AliasHandleUdpNbtNS() local 803 uh = (struct udphdr *)ip_next(pip); in AliasHandleUdpNbtNS() 804 nbtarg.uh_sum = &(uh->uh_sum); in AliasHandleUdpNbtNS() 805 nsh = (NbtNSHeader *)udp_next(uh); in AliasHandleUdpNbtNS() [all …]
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_checksum.c | 376 struct udphdr *uh; in checksum_ipv4() local 379 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4() 381 uh->uh_sum = in_pseudo(ip4->ip_src.s_addr, in checksum_ipv4() 385 uh->uh_sum = in_cksum_skip(m, in checksum_ipv4() 388 if (uh->uh_sum == 0) in checksum_ipv4() 389 uh->uh_sum = 0xffff; in checksum_ipv4() 501 struct udphdr *uh; in checksum_ipv6() local 504 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6() 509 uh->uh_sum = in_cksum_skip(m, in checksum_ipv6() 512 if (uh->uh_sum == 0) in checksum_ipv6() [all …]
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | dn_sched_fq_codel.c | 220 struct udphdr *uh; in fq_codel_classify_flow() local 245 uh = (struct udphdr *)(ip6 + 1); in fq_codel_classify_flow() 246 *((uint16_t *) &tuple[37]) = uh->uh_dport; in fq_codel_classify_flow() 247 *((uint16_t *) &tuple[39]) = uh->uh_sport; in fq_codel_classify_flow() 272 uh = (struct udphdr *)(ip + 1); in fq_codel_classify_flow() 273 *((uint16_t *) &tuple[13]) = uh->uh_dport; in fq_codel_classify_flow() 274 *((uint16_t *) &tuple[15]) = uh->uh_sport; in fq_codel_classify_flow()
|
| H A D | dn_sched_fq_pie.c | 789 struct udphdr *uh; in fq_pie_classify_flow() local 814 uh = (struct udphdr *)(ip6 + 1); in fq_pie_classify_flow() 815 *((uint16_t *) &tuple[37]) = uh->uh_dport; in fq_pie_classify_flow() 816 *((uint16_t *) &tuple[39]) = uh->uh_sport; in fq_pie_classify_flow() 841 uh = (struct udphdr *)(ip + 1); in fq_pie_classify_flow() 842 *((uint16_t *) &tuple[13]) = uh->uh_dport; in fq_pie_classify_flow() 843 *((uint16_t *) &tuple[15]) = uh->uh_sport; in fq_pie_classify_flow()
|
| /f-stack/freebsd/sys/ |
| H A D | systm.h | 579 void init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex); 580 void delete_unrhdr(struct unrhdr *uh); 581 void clear_unrhdr(struct unrhdr *uh); 582 void clean_unrhdr(struct unrhdr *uh); 583 void clean_unrhdrl(struct unrhdr *uh); 584 int alloc_unr(struct unrhdr *uh); 585 int alloc_unr_specific(struct unrhdr *uh, u_int item); 586 int alloc_unrl(struct unrhdr *uh); 587 void free_unr(struct unrhdr *uh, u_int item);
|
| /f-stack/freebsd/net/ |
| H A D | if_gre.c | 696 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,
|
| /f-stack/freebsd/netipsec/ |
| H A D | ipsec.c | 520 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() 681 struct udphdr uh; in ipsec6_get_ulp() local 715 m_copydata(m, off, sizeof(uh), (caddr_t)&uh); in ipsec6_get_ulp() 716 spidx->src.sin6.sin6_port = uh.uh_sport; in ipsec6_get_ulp() 717 spidx->dst.sin6.sin6_port = uh.uh_dport; in ipsec6_get_ulp()
|
| /f-stack/freebsd/netpfil/pf/ |
| H A D | pf.c | 4684 m_copyback(m, off, sizeof(*uh), (caddr_t)uh); in pf_test_state_udp() 5067 struct udphdr uh; in pf_test_state_icmp() local 5069 if (!pf_pull_hdr(m, off2, &uh, sizeof(uh), in pf_test_state_icmp() 5128 m_copyback(m, off2, sizeof(uh), (caddr_t)&uh); in pf_test_state_icmp() 6020 struct udphdr uh; in pf_test() local 6022 pd.hdr.udp = &uh; in pf_test() 6023 if (!pf_pull_hdr(m, off, &uh, sizeof(uh), in pf_test() 6028 if (uh.uh_dport == 0 || in pf_test() 6462 struct udphdr uh; in pf_test6() local 6464 pd.hdr.udp = &uh; in pf_test6() [all …]
|
| /f-stack/freebsd/contrib/device-tree/Bindings/pci/ |
| H A D | rcar-pci-ep.yaml | 12 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
| /f-stack/freebsd/contrib/device-tree/Bindings/usb/ |
| H A D | renesas,usb3-peri.yaml | 10 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
| H A D | renesas,usb-xhci.yaml | 11 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
| H A D | renesas,usbhs.yaml | 10 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
| /f-stack/freebsd/contrib/device-tree/Bindings/phy/ |
| H A D | renesas,usb3-phy.yaml | 10 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
| H A D | renesas,usb2-phy.yaml | 10 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
| /f-stack/freebsd/contrib/device-tree/Bindings/pwm/ |
| H A D | renesas,pwm-rcar.yaml | 10 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
| /f-stack/freebsd/contrib/device-tree/Bindings/dma/ |
| H A D | renesas,usb-dmac.yaml | 10 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
| /f-stack/freebsd/contrib/ipfilter/netinet/ |
| H A D | ip_nat6.c | 2885 udphdr_t *uh; local 2899 uh = (udphdr_t *)(ip6 + 1); 2900 uh->uh_ulen = htons(fin->fin_plen); 3285 udphdr_t *uh; local 3298 uh = (udphdr_t *)(ip6 + 1); 3299 uh->uh_ulen = ntohs(fin->fin_plen); 3722 udphdr_t *uh; local 3753 uh->uh_sum = 0; 3754 uh->uh_ulen = 8; 3755 uh->uh_sport = htons(np->in_spnext); [all …]
|