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

12

/freebsd-10.0-release/sys/kern/
H A Dsubr_unit.c199 check_unrhdr(struct unrhdr *uh, int line) argument
205 y = uh->first;
207 TAILQ_FOREACH(up, &uh->head, list) {
209 if (up->ptr != uh && up->ptr != NULL) {
226 KASSERT (y == uh->busy,
228 uh->busy, y, line));
229 KASSERT (z == uh->alloc,
231 uh->alloc, z, line));
237 check_unrhdr(struct unrhdr *uh, int line) argument
251 new_unr(struct unrhdr *uh, voi argument
269 delete_unr(struct unrhdr *uh, void *ptr) argument
279 clean_unrhdrl(struct unrhdr *uh) argument
294 clean_unrhdr(struct unrhdr *uh) argument
303 init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex) argument
330 struct unrhdr *uh; local
338 delete_unrhdr(struct unrhdr *uh) argument
350 is_bitmap(struct unrhdr *uh, struct unr *up) argument
365 optimize_unr(struct unrhdr *uh) argument
489 collapse_unr(struct unrhdr *uh, struct unr *up) argument
561 alloc_unrl(struct unrhdr *uh) argument
611 alloc_unr(struct unrhdr *uh) argument
623 alloc_unr_specificl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument
726 alloc_unr_specific(struct unrhdr *uh, u_int item) argument
754 free_unrl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument
863 free_unr(struct unrhdr *uh, u_int item) argument
887 print_unr(struct unrhdr *uh, struct unr *up) argument
911 print_unrhdr(struct unrhdr *uh) argument
931 test_alloc_unr(struct unrhdr *uh, u_int i, char a[]) argument
951 test_alloc_unr_specific(struct unrhdr *uh, u_int i, char a[]) argument
972 struct unrhdr *uh; local
[all...]
H A Dkern_umtx.c516 struct umtxq_queue *uh; local
521 LIST_FOREACH(uh, &uc->uc_queue[q], link) {
522 if (umtx_key_match(&uh->key, key))
523 return (uh);
532 struct umtxq_queue *uh; local
538 uh = umtxq_queue_lookup(&uq->uq_key, q);
539 if (uh != NULL) {
542 uh = uq->uq_spare_queue;
543 uh->key = uq->uq_key;
544 LIST_INSERT_HEAD(&uc->uc_queue[q], uh, lin
567 struct umtxq_queue *uh; local
600 struct umtxq_queue *uh; local
618 struct umtxq_queue *uh; local
665 struct umtxq_queue *uh; local
[all...]
/freebsd-10.0-release/contrib/tcpdump/
H A Dprint-usb.c84 usb_header_print(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 printf(" %d:%d:%d", uh->bus_id, uh->device_address, uh->endpoint_number & 0x7f);
H A DsctpHeader.h164 struct sctpChunkDesc uh; member in struct:sctpUnifiedInit
195 struct sctpChunkDesc uh; member in struct:sctpUnifiedSack
231 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbort
236 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbortLight
241 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbortHeavy
254 struct sctpChunkDesc uh; member in struct:sctpUnifiedShutdown
268 struct sctpChunkDesc uh; member in struct:sctpUnifiedOpError
274 struct sctpChunkDesc uh; member in struct:sctpUnifiedStreamError
282 struct sctpChunkDesc uh; member in struct:staleCookieMsg
293 struct sctpChunkDesc uh; member in struct:sctpUnifiedSingleMsg
304 struct sctpChunkDesc uh; member in struct:sctpUnifiedDatagram
309 struct sctpChunkDesc uh; member in struct:sctpECN_echo
315 struct sctpChunkDesc uh; member in struct:sctpCWR
[all...]
H A Dprint-icmp6.c599 struct udphdr *uh; local
621 uh = (struct udphdr *)bp;
622 if (TTEST(uh->uh_dport)) {
624 return(uh);
/freebsd-10.0-release/lib/libstand/
H A Dudp.c69 struct udphdr *uh; local
84 uh = (struct udphdr *)pkt - 1;
85 ip = (struct ip *)uh - 1;
86 len += sizeof(*ip) + sizeof(*uh);
88 bzero(ip, sizeof(*ip) + sizeof(*uh));
99 uh->uh_sport = d->myport;
100 uh->uh_dport = d->destport;
101 uh->uh_ulen = htons(len - sizeof(*ip));
112 ui->ui_len = uh->uh_ulen;
113 uh
146 struct udphdr *uh; local
[all...]
H A Dtftp.c213 struct udphdr *uh; local
214 uh = (struct udphdr *) pkt - 1;
215 d->destport = uh->uh_sport;
232 struct udphdr *uh; local
247 uh = (struct udphdr *) pkt - 1;
248 d->destport = uh->uh_sport;
/freebsd-10.0-release/sys/arm/arm/
H A Dundefined.c96 struct undefined_handler *uh; local
102 uh = malloc(sizeof(*uh), M_TEMP, M_WAITOK);
103 uh->uh_handler = handler;
104 install_coproc_handler_static(coproc, uh);
105 return uh;
109 install_coproc_handler_static(int coproc, struct undefined_handler *uh) argument
112 LIST_INSERT_HEAD(&undefined_handlers[coproc], uh, uh_link);
118 struct undefined_handler *uh = cookie; local
120 LIST_REMOVE(uh, uh_lin
176 struct undefined_handler *uh; local
[all...]
/freebsd-10.0-release/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-10.0-release/sys/netinet6/
H A Dudp6_usrreq.c182 struct udphdr *uh; local
203 uh = (struct udphdr *)((caddr_t)ip6 + off);
205 IP6_EXTHDR_GET(uh, struct udphdr *, m, off, sizeof(*uh));
206 if (!uh)
215 if (uh->uh_dport == 0)
219 ulen = ntohs((u_short)uh->uh_ulen);
229 if (uh->uh_sum == 0) {
253 fromsa.sin6_port = uh->uh_sport;
279 if (inp->inp_lport != uh
486 struct udphdr uh; local
[all...]
/freebsd-10.0-release/usr.sbin/ppp/
H A Dip.c303 const struct udphdr *uh; local
353 uh = (const struct udphdr *)payload;
354 sport = ntohs(uh->uh_sport);
355 dport = ntohs(uh->uh_dport);
496 ip_LogDNS(const struct udphdr *uh, const char *direction) argument
504 ptr = (const char *)uh + sizeof *uh;
505 len = ntohs(uh->uh_ulen) - sizeof *uh;
567 const struct udphdr *uh; local
[all...]
/freebsd-10.0-release/sys/netinet/libalias/
H A Dalias_nbt.c343 struct udphdr *uh; local
352 uh = (struct udphdr *)ip_next(pip);
353 pmax = (char *)uh + ntohs(uh->uh_ulen);
355 ndh = (NbtDataHeader *)udp_next(uh);
385 if (uh->uh_sum != 0) {
397 ADJUST_CHECKSUM(acc, uh->uh_sum);
772 struct udphdr *uh; local
788 uh = (struct udphdr *)ip_next(pip);
789 nbtarg.uh_sum = &(uh
[all...]
/freebsd-10.0-release/sys/sys/
H A Dsystm.h404 void init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex);
405 void delete_unrhdr(struct unrhdr *uh);
406 void clean_unrhdr(struct unrhdr *uh);
407 void clean_unrhdrl(struct unrhdr *uh);
408 int alloc_unr(struct unrhdr *uh);
409 int alloc_unr_specific(struct unrhdr *uh, u_int item);
410 int alloc_unrl(struct unrhdr *uh);
411 void free_unr(struct unrhdr *uh, u_int item);
/freebsd-10.0-release/sys/netinet/
H A Dudp_usrreq.c345 struct udphdr *uh; local
377 uh = (struct udphdr *)((caddr_t)ip + iphlen);
382 if (uh->uh_dport == 0)
392 udp_in.sin_port = uh->uh_sport;
399 len = ntohs((u_short)uh->uh_ulen);
421 if (uh->uh_sum) {
437 ((struct ipovly *)ip)->ih_len = uh->uh_ulen;
457 if (inp->inp_lport != uh->uh_dport)
470 inp->inp_fport != uh->uh_sport)
568 inp = in_pcblookup_mbuf(&V_udbinfo, ip->ip_src, uh
660 struct udphdr *uh; local
[all...]
/freebsd-10.0-release/sys/fs/tmpfs/
H A Dtmpfs_subr.c100 RB_PROTOTYPE_STATIC(tmpfs_dir, tmpfs_dirent, uh.td_entries, tmpfs_dirtree_cmp);
754 dc->tdc_current = LIST_NEXT(dc->tdc_current, uh.td_dup.entries);
799 uh.td_dup.index_entries) {
859 LIST_FOREACH(de, duphead, uh.td_dup.entries) {
894 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries);
895 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
906 de = LIST_NEXT(de, uh.td_dup.index_entries);
913 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries);
914 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries);
925 uh
[all...]
H A Dtmpfs.h83 } uh; member in struct:tmpfs_dirent
/freebsd-10.0-release/sys/netipsec/
H A Dipsec.c633 struct udphdr uh; local
652 m_copydata(m, off, sizeof (uh), (caddr_t) &uh);
653 spidx->src.sin.sin_port = uh.uh_sport;
654 spidx->dst.sin.sin_port = uh.uh_dport;
716 struct udphdr uh; local
753 m_copydata(m, off, sizeof(uh), (caddr_t)&uh);
754 ((struct sockaddr_in6 *)&spidx->src)->sin6_port = uh.uh_sport;
755 ((struct sockaddr_in6 *)&spidx->dst)->sin6_port = uh
[all...]
/freebsd-10.0-release/tools/tools/net80211/wesside/wesside/
H A Dwesside.c780 struct udphdr* uh; local
803 uh = (struct udphdr*) ((char*)ih + 20);
804 uh->uh_sport = htons(floodport);
805 uh->uh_dport = htons(floodsport);
806 uh->uh_ulen = htons(8+PRGA_LEN);
807 uh->uh_sum = 0;
808 uh->uh_sum = udp_checksum((unsigned char*)uh, 8+PRGA_LEN,
1851 struct udphdr* uh; local
1910 uh
[all...]
/freebsd-10.0-release/sys/netpfil/pf/
H A Dpf.c4289 struct udphdr *uh = pd->hdr.udp; local
4297 key.port[0] = uh->uh_sport;
4298 key.port[1] = uh->uh_dport;
4302 key.port[1] = uh->uh_sport;
4303 key.port[0] = uh->uh_dport;
4334 nk->port[pd->sidx] != uh->uh_sport)
4335 pf_change_ap(pd->src, &uh->uh_sport, pd->ip_sum,
4336 &uh->uh_sum, &nk->addr[pd->sidx],
4340 nk->port[pd->didx] != uh->uh_dport)
4341 pf_change_ap(pd->dst, &uh
4710 struct udphdr uh; local
5746 struct udphdr uh; local
6159 struct udphdr uh; local
[all...]
/freebsd-10.0-release/sys/boot/i386/libi386/
H A Dpxe.c670 struct udphdr *uh = NULL; local
672 uh = (struct udphdr *) pkt - 1;
694 uh->uh_sport = udpread_p->s_port;
/freebsd-10.0-release/sys/netpfil/ipfw/
H A Dip_fw_nat.c345 struct udphdr *uh; local
365 uh = (struct udphdr *)(ip + 1);
366 uh->uh_sum = cksum;
/freebsd-10.0-release/contrib/llvm/lib/Support/
H A Dregengine.inc236 /* uh-oh... we couldn't find a subexpression-level match */
469 default: /* uh oh */
668 default: /* uh oh */
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_nat6.c2891 udphdr_t *uh; local
2905 uh = (udphdr_t *)(ip6 + 1);
2906 uh->uh_ulen = htons(fin->fin_plen);
3291 udphdr_t *uh; local
3304 uh = (udphdr_t *)(ip6 + 1);
3305 uh->uh_ulen = ntohs(fin->fin_plen);
3728 udphdr_t *uh; local
3758 uh = (udphdr_t *)((u_char *)ip6 + sizeof(*ip6));
3759 uh->uh_sum = 0;
3760 uh
[all...]
H A Dip_nat.c5211 udphdr_t *uh; local
5232 uh = (udphdr_t *)(ip + 1);
5233 uh->uh_ulen += fin->fin_plen;
5234 uh->uh_ulen = htons(uh->uh_ulen);
5656 udphdr_t *uh; local
5673 uh = (udphdr_t *)(ip + 1);
5674 uh->uh_ulen += fin->fin_plen;
5675 uh->uh_ulen = htons(uh
7352 udphdr_t *uh; local
[all...]
/freebsd-10.0-release/sys/dev/mly/
H A Dmly.c128 static int mly_user_health(struct mly_softc *sc, struct mly_user_health *uh);
2833 struct mly_user_health *uh = (struct mly_user_health *)addr; local
2839 return(mly_user_health(sc, uh));
2931 mly_user_health(struct mly_softc *sc, struct mly_user_health *uh) argument
2937 if ((error = copyin(uh->HealthStatusBuffer, &mh, sizeof(mh))) != 0)
2948 error = copyout(&sc->mly_mmbox->mmm_health.status, uh->HealthStatusBuffer,
2949 sizeof(uh->HealthStatusBuffer));

Completed in 200 milliseconds

12