Home
last modified time | relevance | path

Searched refs:hp (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/openbsd/sys/dev/sdmmc/
H A Dsdhc.c78 (bus_space_read_4((hp)->iot, (hp)->ioh, (reg)))
86 HWRITE1((hp), (reg), HREAD1((hp), (reg)) & ~(bits))
88 HWRITE2((hp), (reg), HREAD2((hp), (reg)) & ~(bits))
90 HWRITE1((hp), (reg), HREAD1((hp), (reg)) | (bits))
92 HWRITE2((hp), (reg), HREAD2((hp), (reg)) | (bits))
219 (hp->block_count << 16) | hp->block_size); in sdhc_write_2()
265 hp->version = HREAD2(hp, SDHC_HOST_CTL_VERSION); in sdhc_host_found()
446 free(hp, M_DEVBUF, sizeof *hp); in sdhc_host_found()
467 hp->regs[i] = HREAD1(hp, i); in sdhc_activate()
476 HWRITE1(hp, i, hp->regs[i]); in sdhc_activate()
[all …]
/openbsd/gnu/usr.bin/perl/t/porting/
H A Dheader_parser.t29 my $hp= HeaderParser->new();
30 $hp->parse_text(<<~'EOF');
44 my $normal= $hp->lines_as_str();
45 my $lines= $hp->lines();
284 $hp->parse_text(<<~'EOF');
314 $hp->parse_text(<<~'EOF');
344 $hp->parse_text(<<~'EOF');
371 $hp->parse_text(<<~'EOF');
405 $hp->parse_text(<<~'EOF');
449 $hp->parse_text(<<~'EOF');
[all …]
/openbsd/usr.sbin/tcpdump/
H A Dprint-hsrp.c103 TCHECK(hp->hsrp_version); in hsrp_print()
105 if (hp->hsrp_version != 0) in hsrp_print()
107 TCHECK(hp->hsrp_op_code); in hsrp_print()
114 TCHECK(hp->hsrp_state); in hsrp_print()
116 TCHECK(hp->hsrp_group); in hsrp_print()
118 TCHECK(hp->hsrp_reserved); in hsrp_print()
119 if (hp->hsrp_reserved != 0) { in hsrp_print()
122 TCHECK2(hp->hsrp_virtaddr, sizeof(hp->hsrp_virtaddr)); in hsrp_print()
126 relts_print(hp->hsrp_hellotime); in hsrp_print()
128 relts_print(hp->hsrp_holdtime); in hsrp_print()
[all …]
/openbsd/usr.sbin/config/
H A Dhash.c137 hp = emalloc(sizeof(*hp)); in newhashent()
138 hp->h_name = name; in newhashent()
139 hp->h_hash = h; in newhashent()
141 return (hp); in newhashent()
180 for (; (hp = *hpp) != NULL; hpp = &hp->h_next) in intern()
181 if (hp->h_hash == h && strcmp(hp->h_name, s) == 0) in intern()
213 while (hp && hp->h_name == nam) { in ht_remove()
222 for (thp = hp->h_next; thp != NULL; thp = hp->h_next) { in ht_remove()
227 hp = thp; in ht_remove()
244 for (; (hp = *hpp) != NULL; hpp = &hp->h_next) { in ht_insrep()
[all …]
/openbsd/bin/csh/
H A Dhist.c47 struct Hist *hp, *np; in savehist() local
66 for (hp = &Histlist; (np = hp->Hnext) != NULL;) in savehist()
70 hp = np; in savehist()
96 hfree(struct Hist *hp) in hfree() argument
99 freelex(&hp->Hlex); in hfree()
100 free(hp); in hfree()
147 for (; hp != 0; hp = hp->Hnext) { in dohist1()
149 hp->Href++; in dohist1()
153 phist(hp, hflg); in dohist1()
157 phist(hp, hflg); in dohist1()
[all …]
H A Dlex.c139 hp->next = hp->prev = hp; in lex()
150 wdp = hp; in lex()
190 wdp = hp; in copylex()
646 for (ip = hp->next->next; ip != hp->prev; ip = ip->next) in getexcl()
681 hp = hp->next; in getexcl()
684 hp = getsub(hp); in getexcl()
828 wdp = hp; in dosub()
1156 if (hp) in gethent()
1182 if (hp) in gethent()
1187 for (hp = Histlist.Hnext; hp; hp = hp->Hnext) in gethent()
[all …]
/openbsd/bin/ksh/
H A Dhistory.c147 if (!hp) in c_fc()
202 hp >= hfirst && hp <= hlast; hp += rflag ? -1 : 1) { in c_fc()
223 hp >= hfirst && hp <= hlast; hp += rflag ? -1 : 1) in c_fc()
391 hp = NULL; in hist_get()
404 return hp; in hist_get()
450 char **hp; in histreset() local
452 for (hp = history; hp <= histptr; hp++) in histreset()
490 char **hp; in findhist() local
499 for (; hp >= history && hp <= histptr; hp += incr) in findhist()
564 for (hp = history; hp < histptr - offset; hp++) in sethistsize()
[all …]
/openbsd/usr.sbin/dhcpd/
H A Dbootp.c99 if (hp) in bootp()
109 if (hp) in bootp()
110 for (; hp; hp = hp->n_ipaddr) in bootp()
111 if (!hp->fixed_addr) { in bootp()
112 host = hp; in bootp()
222 if (hp && (!hp->group->allow_booting)) { in bootp()
228 if (hp && (!hp->group->allow_bootp)) { in bootp()
243 (!hp || !hp->group->always_reply_rfc1048)) { in bootp()
301 if (hp && hp->group->next_server.len) in bootp()
311 if (hp->group->server_name) in bootp()
[all …]
/openbsd/usr.bin/mail/
H A Dsend.c339 if (hp->h_subject == NULL || *hp->h_subject == '\0') in mail1()
350 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); in mail1()
365 fixhead(hp, to); in mail1()
377 cp = hp->h_from ? hp->h_from : value("from"); in mail1()
445 hp->h_to = NULL; in fixhead()
446 hp->h_cc = NULL; in fixhead()
447 hp->h_bcc = NULL; in fixhead()
450 hp->h_to = in fixhead()
453 hp->h_cc = in fixhead()
456 hp->h_bcc = in fixhead()
[all …]
H A Dcollect.c57 collect(struct header *hp, int printheaders) in collect() argument
96 puthead(hp, stdout, t); in collect()
211 grabh(hp, GTO|GSUBJECT|GCC|GBCC); in collect()
217 hp->h_to = cat(hp->h_to, extract(&linebuf[2], GTO)); in collect()
226 hp->h_subject = savestr(cp); in collect()
232 hp->h_cc = cat(hp->h_cc, extract(&linebuf[2], GCC)); in collect()
238 hp->h_bcc = cat(hp->h_bcc, extract(&linebuf[2], GBCC)); in collect()
359 if (gethfromtty(hp, GCC) == -1) in collect()
363 if (gethfromtty(hp, GBCC) == -1) in collect()
600 gethfromtty(struct header *hp, int gflags) in gethfromtty() argument
[all …]
/openbsd/usr.bin/talk/
H A Dget_addrs.c44 struct hostent *hp; in get_addrs() local
49 hp = gethostbyname(my_machine_name); in get_addrs()
50 if (hp == NULL) in get_addrs()
52 bcopy(hp->h_addr, &my_machine_addr, hp->h_length); in get_addrs()
58 hp = gethostbyname(his_machine_name); in get_addrs()
59 if (hp == NULL) in get_addrs()
61 bcopy(hp->h_addr, &his_machine_addr, hp->h_length); in get_addrs()
/openbsd/lib/libm/src/
H A De_remainder.c33 int32_t hx,hp; in remainder() local
38 EXTRACT_WORDS(hp,lp,p); in remainder()
40 hp &= 0x7fffffff; in remainder()
44 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */ in remainder()
46 ((hp>=0x7ff00000)&& /* p is NaN */ in remainder()
47 (((hp-0x7ff00000)|lp)!=0))) in remainder()
51 if (hp<=0x7fdfffff) x = fmod(x,p+p); /* now x < 2p */ in remainder()
52 if (((hx-hp)|(lx-lp))==0) return zero*x; in remainder()
55 if (hp<0x00200000) { in remainder()
H A De_remainderf.c24 int32_t hx,hp; in remainderf() local
29 GET_FLOAT_WORD(hp,p); in remainderf()
31 hp &= 0x7fffffff; in remainderf()
35 if(hp==0) return (x*p)/(x*p); /* p = 0 */ in remainderf()
37 ((hp>0x7f800000))) /* p is NaN */ in remainderf()
41 if (hp<=0x7effffff) x = fmodf(x,p+p); /* now x < 2p */ in remainderf()
42 if ((hx-hp)==0) return zero*x; in remainderf()
45 if (hp<0x01000000) { in remainderf()
/openbsd/usr.sbin/rpc.statd/
H A Dprocs.c89 HostInfo *hp, h; in sm_mon_1_svc() local
114 memset(hp = &h, 0, sizeof(h)); in sm_mon_1_svc()
128 lp->next = hp->monList; in sm_mon_1_svc()
129 hp->monList = lp; in sm_mon_1_svc()
154 lp = hp->monList; in do_unmon()
165 hp->monList = next; in do_unmon()
188 HostInfo *hp, h; in sm_unmon_1_svc() local
200 change_host(arg->mon_name, hp); in sm_unmon_1_svc()
296 HostInfo *hp, h; in sm_notify_1_svc() local
304 if (!hp) { in sm_notify_1_svc()
[all …]
/openbsd/usr.bin/rup/
H A Drup.c62 struct host_list *hp; in search_host() local
67 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host()
68 if (hp->addr.s_addr == addr.s_addr) in search_host()
77 struct host_list *hp; in remember_host() local
79 if (!(hp = malloc(sizeof(struct host_list)))) { in remember_host()
83 hp->addr.s_addr = addr.s_addr; in remember_host()
84 hp->next = hosts; in remember_host()
85 hosts = hp; in remember_host()
154 struct hostent *hp; in rstat_reply() local
161 if (hp) in rstat_reply()
[all …]
/openbsd/gnu/lib/libiberty/src/testsuite/
H A Ddemangle-expected2049 --format=hp
2053 --format=hp
2057 --format=hp
2061 --format=hp
2065 --format=hp
2069 --format=hp
2073 --format=hp
2077 --format=hp
2081 --format=hp
2085 --format=hp
[all …]
/openbsd/gnu/usr.bin/cvs/src/
H A Dhardlink.c54 Node *hp, *p; local
84 hp = findnode (hardlist, inodestr);
85 if (hp == NULL)
87 hp = getnode ();
88 hp->type = NT_UNKNOWN;
89 hp->key = inodestr;
90 hp->data = (char *) getlist();
91 hp->delproc = dellist;
92 (void) addnode (hardlist, hp);
99 p = findnode ((List *) hp->data, filepath);
[all …]
/openbsd/sbin/umount/
H A Dumount.c146 struct hostent *hp; in umountfs() local
200 hp = gethostbyname(hostp); in umountfs()
205 hp = gethostbyname(hostp); in umountfs()
209 hp = NULL; in umountfs()
210 if (!namematch(hp)) in umountfs()
231 memmove(&saddr.sin_addr, hp->h_addr, hp->h_length); in umountfs()
339 namematch(struct hostent *hp) in namematch() argument
343 if ((hp == NULL) || (nfshost == NULL)) in namematch()
346 if (strcasecmp(nfshost, hp->h_name) == 0) in namematch()
351 if (strcasecmp(nfshost, hp->h_name) == 0) in namematch()
[all …]
/openbsd/sbin/mountd/
H A Dmountd.c825 if (hp) in mntsrv()
858 if (hp) in mntsrv()
870 if (hp) in mntsrv()
1000 while (hp) { in put_exlist()
1017 hp = hp->ht_next; in put_exlist()
1615 while (hp) { in chk_host()
1637 hp = hp->ht_next; in chk_host()
1877 while (hp) { in free_host()
1878 hp2 = hp; in free_host()
1879 hp = hp->ht_next; in free_host()
[all …]
/openbsd/usr.bin/dig/lib/dns/rdata/generic/
H A Dloc_29.c42 unsigned char size, hp, vp; in totext_loc() local
67 hp = sr.base[2]; in totext_loc()
68 INSIST((hp&0x0f) < 10 && (hp>>4) < 10); in totext_loc()
69 if ((hp&0x0f)> 1) { in totext_loc()
71 "%lum", (hp>>4) * poweroften[(hp&0x0f)-2]); in totext_loc()
74 "0.%02lum", (hp>>4) * poweroften[(hp&0x0f)]); in totext_loc()
/openbsd/lib/libpcap/
H A Dsavefile.c91 swap_hdr(struct pcap_file_header *hp) in swap_hdr() argument
93 hp->version_major = SWAPSHORT(hp->version_major); in swap_hdr()
94 hp->version_minor = SWAPSHORT(hp->version_minor); in swap_hdr()
95 hp->thiszone = SWAPLONG(hp->thiszone); in swap_hdr()
96 hp->sigfigs = SWAPLONG(hp->sigfigs); in swap_hdr()
97 hp->snaplen = SWAPLONG(hp->snaplen); in swap_hdr()
98 hp->linktype = SWAPLONG(hp->linktype); in swap_hdr()
/openbsd/gnu/lib/libiberty/src/
H A Dalloca.c176 register header *hp; /* Traverses linked list. */ in C_alloca() local
178 for (hp = last_alloca_header; hp != NULL;) in C_alloca()
179 if ((STACK_DIR > 0 && hp->h.deep > depth) in C_alloca()
180 || (STACK_DIR < 0 && hp->h.deep < depth)) in C_alloca()
182 register header *np = hp->h.next; in C_alloca()
184 free ((PTR) hp); /* Collect garbage. */ in C_alloca()
186 hp = np; /* -> next header. */ in C_alloca()
191 last_alloca_header = hp; /* -> last valid storage. */ in C_alloca()
/openbsd/gnu/usr.bin/texinfo/lib/
H A Dalloca.c167 register header *hp; /* Traverses linked list. */ in alloca() local
173 for (hp = last_alloca_header; hp != NULL;) in alloca()
174 if ((STACK_DIR > 0 && hp->h.deep > depth) in alloca()
175 || (STACK_DIR < 0 && hp->h.deep < depth)) in alloca()
177 register header *np = hp->h.next; in alloca()
179 free (hp); /* Collect garbage. */ in alloca()
181 hp = np; /* -> next header. */ in alloca()
186 last_alloca_header = hp; /* -> last valid storage. */ in alloca()
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/unsorted/
H A Dforgetcc.c1 foo (hp, p, a) in foo() argument
2 short *hp; in foo()
6 hp[10] = a;
8 if (hp[10] > 0)
/openbsd/usr.sbin/mrinfo/
H A Dmrinfo.c283 struct hostent *hp, bogus; in main() local
349 hp = &bogus; in main()
350 hp->h_length = sizeof(target_addr); in main()
351 if (!(hp->h_addr_list = calloc(2, sizeof(char *)))) in main()
353 if (!(hp->h_addr_list[0] = malloc(hp->h_length))) in main()
355 memcpy(hp->h_addr_list[0], &target_addr, hp->h_length); in main()
356 hp->h_addr_list[1] = 0; in main()
358 hp = gethostbyname(host); in main()
360 if (hp == NULL || hp->h_length != sizeof(target_addr)) { in main()
368 for (curaddr = 0; hp->h_addr_list[curaddr] != NULL; curaddr++) { in main()
[all …]

12345678910>>...17