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

123

/netbsd-current/sys/lib/libsa/
H A Dudp.c70 struct udphdr *uh; local
84 uh = (struct udphdr *)pkt - 1;
85 len += sizeof(*uh);
87 (void)memset(uh, 0, sizeof(*uh));
89 uh->uh_sport = d->myport;
90 uh->uh_dport = d->destport;
91 uh->uh_ulen = htons(len);
93 cc = sendip(d, uh, len, IPPROTO_UDP);
98 return (cc - sizeof(*uh));
109 struct udphdr *uh; local
[all...]
/netbsd-current/external/lgpl3/gmp/dist/mpn/generic/
H A Ddiv_qr_1.c55 mp_limb_t uh; local
65 uh = up[--n];
67 q = (uh >= d);
69 uh -= (-q) & d;
78 udiv_qrnnd (qp[n], uh, uh, ul, d);
80 return uh >> cnt;
83 return mpn_div_qr_1n_pi1 (qp, up, n, uh, d, dinv);
93 uh = up[--n];
94 udiv_qrnnd (*qh, uh, CNST_LIM
[all...]
H A Dredc_2.c57 #define umul2low(ph, pl, uh, ul, vh, vl) \
67 : "f" (uh), "f" (ul), "f" (vh), "f" (vl)); \
72 #define umul2low(ph, pl, uh, ul, vh, vl) \
76 (ph) = _ph + (ul) * (vh) + (uh) * (vl); \
H A Drootrem.c212 mp_limb_t save, save2, cy, uh; local
223 uh = up[un - 1];
224 count_leading_zeros (ulz, uh);
245 uh = up[un - 2];
247 uh = (uh << ulz & GMP_NUMB_MASK) | up[un - 1 - (un != 1)] >> (GMP_NUMB_BITS - ulz);
250 xnb = logbased_root (rootp, uh, unb, k);
258 for (uh = (k - 1) / 2, logk = 3; (uh >>= 1) != 0; ++logk )
H A Dgcdext_lehmer.c281 mp_limb_t uh, vh; local
320 uh = mpn_mul_1 (up, u1, un, u);
323 if ( (uh | vh) > 0)
325 uh += vh;
326 up[un++] = uh;
327 if (uh < vh)
H A Ddiv_qr_1n_pi1.c161 /* Divides (uh B^n + {up, n}) by d, storing the quotient at {qp, n}.
162 Requires that uh < d. */
164 mpn_div_qr_1n_pi1 (mp_ptr qp, mp_srcptr up, mp_size_t n, mp_limb_t uh, argument
168 ASSERT (uh < d);
177 udiv_qrnnd_preinv (q, uh, uh, ul, d, dinv);
182 return uh;
H A Dgcd.c177 mp_limb_t uh, ul, vh, vl; local
185 uh = up[n-1]; ul = up[n-2];
193 uh = MPN_EXTRACT_NUMB (shift, up[n-1], up[n-2]);
200 if (mpn_hgcd2 (uh, ul, vh, vl, &M))
/netbsd-current/sys/dev/qbus/
H A Duba.c100 struct uba_softc *uh; local
103 uh = device_private(device_parent(uu->uu_dev));
106 SIMPLEQ_INSERT_TAIL(&uh->uh_resq, uu, uu_resq);
117 uba_done(struct uba_softc *uh) argument
121 while ((uu = SIMPLEQ_FIRST(&uh->uh_resq))) {
122 SIMPLEQ_REMOVE_HEAD(&uh->uh_resq, uu_resq);
124 SIMPLEQ_INSERT_HEAD(&uh->uh_resq, uu, uu_resq);
137 struct uba_softc *uh = device_private(device_parent(dev)); local
144 SIMPLEQ_INSERT_TAIL(&uh->uh_resetq, ur, ur_resetq);
151 uballoc(struct uba_softc *uh, struc argument
174 ubmemalloc(struct uba_softc *uh, struct ubinfo *ui, int flags) argument
195 ubfree(struct uba_softc *uh, struct ubinfo *ui) argument
202 ubmemfree(struct uba_softc *uh, struct ubinfo *ui) argument
215 ubareset(struct uba_softc *uh) argument
[all...]
H A Dif_uba.c74 if_ubaminit(struct ifubinfo *ifu, struct uba_softc *uh, int size, argument
86 ifu->iff_softc = uh;
94 if ((error = bus_dmamem_alloc(uh->uh_dmat, totsz, PAGE_SIZE, 0,
97 if ((error = bus_dmamem_map(uh->uh_dmat, &seg, rseg, totsz, &vaddr,
99 bus_dmamem_free(uh->uh_dmat, &seg, rseg);
109 if ((error = bus_dmamap_create(uh->uh_dmat, size, 1,
118 if ((error = bus_dmamap_create(uh->uh_dmat, size, 1,
135 bus_dmamap_load(uh->uh_dmat, ifr[i].ifrw_map,
145 bus_dmamap_load(uh->uh_dmat, ifw[i].ifw_map,
151 bus_dmamap_unload(uh
193 struct uba_softc *uh = ifu->iff_softc; local
216 struct uba_softc *uh = ifu->iff_softc; local
235 struct uba_softc *uh = ifu->iff_softc; local
[all...]
/netbsd-current/crypto/dist/ipsec-tools/src/racoon/
H A Ddump.c135 struct udphdr uh; local
176 sf_hdr.caplen += sizeof(af) + sizeof(uh) + msg->l;
177 sf_hdr.len += sizeof(af) + sizeof(uh) + msg->l;
194 ip.ip_len = htons(sizeof(ip) + sizeof(uh) + msg->l);
205 ip6.ip6_plen = htons(sizeof(uh) + msg->l);
212 memset(&uh, 0, sizeof(uh));
213 uh.uh_sport = htons(500);
214 uh.uh_dport = htons(500);
215 uh
[all...]
/netbsd-current/sys/arch/arm/arm/
H A Dundefined.c91 struct undefined_handler *uh; local
96 uh = kmem_alloc(sizeof(*uh), KM_SLEEP);
97 uh->uh_handler = handler;
98 install_coproc_handler_static(coproc, uh);
99 return uh;
110 install_coproc_handler_static(int coproc, struct undefined_handler *uh) argument
113 LIST_INSERT_HEAD(&undefined_handlers[coproc], uh, uh_link);
119 struct undefined_handler *uh = cookie; local
121 LIST_REMOVE(uh, uh_lin
311 struct undefined_handler *uh; local
[all...]
/netbsd-current/sys/arch/x86/x86/
H A Dcpu_ucode_intel.c182 struct intel1_ucode_header *uh; local
191 uh = (struct intel1_ucode_header *)sc->sc_blob;
193 error = cpu_ucode_intel_verify(sc, uh);
197 ucodetarget = uh->uh_rev;
203 uh =
205 memcpy(uh, sc->sc_blob, sc->sc_blobsize);
222 wrmsr(MSR_BIOS_UPDT_TRIG, (uintptr_t)uh + 48);
/netbsd-current/external/bsd/tcpdump/dist/
H A Dprint-usb.c191 usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh) argument
203 transfer_type = GET_U_1(uh->transfer_type);
222 event_type = GET_U_1(uh->event_type);
243 ND_PRINT(" %u:%u:%u", GET_HE_U_2(uh->bus_id),
244 GET_U_1(uh->device_address),
245 GET_U_1(uh->endpoint_number) & 0x7f);
H A Dprint-sctp.c245 struct sctpChunkDesc uh; member in struct:sctpUnifiedInit
276 struct sctpChunkDesc uh; member in struct:sctpUnifiedSack
285 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbort
290 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbortLight
295 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbortHeavy
308 struct sctpChunkDesc uh; member in struct:sctpUnifiedShutdown
322 struct sctpChunkDesc uh; member in struct:sctpUnifiedOpError
328 struct sctpChunkDesc uh; member in struct:sctpUnifiedStreamError
336 struct sctpChunkDesc uh; member in struct:staleCookieMsg
347 struct sctpChunkDesc uh; member in struct:sctpUnifiedSingleMsg
358 struct sctpChunkDesc uh; member in struct:sctpUnifiedDatagram
363 struct sctpChunkDesc uh; member in struct:sctpECN_echo
369 struct sctpChunkDesc uh; member in struct:sctpCWR
[all...]
/netbsd-current/sys/dev/pci/ixgbe/
H A Dif_fdir.c92 struct udphdr *uh; local
125 uh = (struct udphdr *)((caddr_t)ip + ip_hlen);
127 common.port.dst ^= uh->uh_sport;
128 common.port.src ^= uh->uh_dport;
/netbsd-current/sys/net/npf/
H A Dnpf_alg_icmp.c95 const struct udphdr *uh = npc->npc_l4.udp; local
96 dport = ntohs(uh->uh_dport);
265 struct udphdr uh; member in union:l4
280 l4.uh.uh_sport = enpc.npc_l4.udp->uh_dport;
281 l4.uh.uh_dport = enpc.npc_l4.udp->uh_sport;
282 enpc.npc_l4.udp = &l4.uh;
374 const struct udphdr *uh = enpc.npc_l4.udp; local
375 old_port = uh->uh_sport;
376 l4cksum = uh->uh_sum;
431 const struct udphdr *uh local
[all...]
H A Dnpf_inet.c714 struct udphdr *uh = npc->npc_l4.udp; local
715 oport = (which == NPF_SRC) ? &uh->uh_sport : &uh->uh_dport;
733 struct udphdr *uh; local
765 uh = npc->npc_l4.udp;
766 ocksum = &uh->uh_sum;
771 oport = (which == NPF_SRC) ? uh->uh_sport : uh->uh_dport;
/netbsd-current/sys/net/
H A Dether_sw_offload.c167 struct udphdr *uh; local
317 KASSERT(len >= sizeof(*uh));
318 if (m->m_len < l4offset + sizeof(*uh)) {
319 m = m_pullup(m, l4offset + sizeof(*uh));
323 uh = (void *)(mtod(m, char *) + l4offset);
324 osum = uh->uh_sum;
327 uh->uh_sum = sum;
342 uh->uh_sum = osum;
H A Drss_config.c148 struct udphdr *uh; local
150 uh = (struct udphdr *)(mtod(m, char *) + hlen);
155 &uh->uh_sport, sizeof(uh->uh_sport) * 2,
245 struct udphdr *uh; local
247 uh = (struct udphdr *)(mtod(m, char *) + hlen);
252 &uh->uh_sport, sizeof(uh->uh_sport) * 2,
/netbsd-current/sys/netinet/
H A Dudp_usrreq.c220 udp_input_checksum(int af, struct mbuf *m, const struct udphdr *uh, argument
227 return udp4_input_checksum(m, uh, iphlen, len);
231 return udp6_input_checksum(m, uh, iphlen, len);
247 udp4_input_checksum(struct mbuf *m, const struct udphdr *uh, argument
256 if (uh->uh_sum == 0)
315 struct udphdr *uh; local
328 M_REGION_GET(uh, struct udphdr *, m, iphlen, sizeof(struct udphdr));
329 if (uh == NULL) {
338 if (ACCESSIBLE_POINTER(uh, struct udphdr) == 0) {
345 uh
655 struct udphdr *uh; local
[all...]
/netbsd-current/sys/arch/i386/stand/pxeboot/
H A Dpxe.c157 struct udphdr *uh; local
160 uh = (struct udphdr *)pkt - 1;
161 ip = (struct ip *)uh - 1;
184 uh->uh_sport = ur->s_port;
185 uh->uh_dport = d->myport;
/netbsd-current/usr.sbin/npf/npftest/libnpftest/
H A Dnpf_nat_test.c188 const struct udphdr *uh = npc.npc_l4.udp; local
197 printf("src %s (%d) ", sbuf, ntohs(uh->uh_sport));
198 printf("dst %s (%d)\n", dbuf, ntohs(uh->uh_dport));
211 CHECK_TRUE(sport == ntohs(uh->uh_sport));
213 CHECK_TRUE(dport == ntohs(uh->uh_dport));
/netbsd-current/sys/netinet6/
H A Dudp6_usrreq.c188 struct udphdr uh; local
243 memset(&uh, 0, sizeof(uh));
244 m_copydata(m, off, sizeof(*uhp), (void *)&uh);
255 uh.uh_dport, (const struct in6_addr *)&sa6_src->sin6_addr,
256 uh.uh_sport, 0, 0))
267 uh.uh_dport, 0))
290 (void)in6pcb_notify(&udbtable, sa, uh.uh_dport,
291 sin6tocsa(sa6_src), uh.uh_sport, cmd, cmdarg,
581 udp6_input_checksum(struct mbuf *m, const struct udphdr *uh, in argument
639 struct udphdr *uh; local
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libgcc/config/xtensa/
H A Dlib1funcs.S772 #define uh a2 define
775 #define uh a3 define
788 src uh, uh, ul
793 sll uh, ul
809 src ul, uh, ul
810 sra uh, uh
814 sra ul, uh
815 srai uh, u
[all...]
/netbsd-current/external/gpl3/gcc/dist/libgcc/config/xtensa/
H A Dlib1funcs.S772 #define uh a2 define
775 #define uh a3 define
788 src uh, uh, ul
793 sll uh, ul
809 src ul, uh, ul
810 sra uh, uh
814 sra ul, uh
815 srai uh, u
[all...]

Completed in 201 milliseconds

123