Searched refs:hp (Results 1 - 25 of 604) sorted by relevance

1234567891011>>

/netbsd-current/external/bsd/ipf/dist/lib/
H A Dprinthashdata.c14 printhashdata(hp, opts)
15 iphtable_t *hp;
20 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON)
21 PRINTF("# 'anonymous' table refs %d\n", hp->iph_ref);
22 if ((hp->iph_flags & IPHASH_DELETE) == IPHASH_DELETE)
24 switch (hp->iph_type & ~IPHASH_ANON)
31 if (hp->iph_flags & FR_INQUE)
33 else if (hp->iph_flags & FR_OUTQUE)
39 PRINTF("%#x", hp->iph_type);
45 ISDIGIT(*hp
[all...]
H A Dprinthash_live.c15 printhash_live(hp, fd, name, opts, fields)
16 iphtable_t *hp;
27 if ((name != NULL) && strncmp(name, hp->iph_name, FR_GROUPLEN))
28 return hp->iph_next;
31 printhashdata(hp, opts);
33 if ((hp->iph_flags & IPHASH_DELETE) != 0)
48 iter.ili_unit = hp->iph_unit;
49 strncpy(iter.ili_name, hp->iph_name, FR_GROUPLEN);
60 (void) printhashnode(hp, &entry, bcopywrap, opts, fields);
71 return hp
[all...]
H A Dhostname.c17 struct hostent *hp; local
31 hp = gethostbyaddr(ip, 4, AF_INET);
32 if (hp != NULL && hp->h_name != NULL &&
33 *hp->h_name != '\0') {
34 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
/netbsd-current/external/cddl/osnet/dist/common/ctf/
H A Dctf_hash.c38 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) argument
48 bzero(hp, sizeof (ctf_hash_t));
49 hp->h_buckets = __UNCONST(_CTF_EMPTY);
50 hp->h_nbuckets = 1;
54 hp->h_nbuckets = 211; /* use a prime number of hash buckets */
55 hp->h_nelems = nelems + 1; /* we use index zero as a sentinel */
56 hp->h_free = 1; /* first free element is index 1 */
58 hp->h_buckets = ctf_alloc(sizeof (ushort_t) * hp->h_nbuckets);
59 hp
73 ctf_hash_size(const ctf_hash_t *hp) argument
98 ctf_hash_insert(ctf_hash_t *hp, ctf_file_t *fp, ushort_t type, uint_t name) argument
135 ctf_hash_define(ctf_hash_t *hp, ctf_file_t *fp, ushort_t type, uint_t name) argument
148 ctf_hash_lookup(ctf_hash_t *hp, ctf_file_t *fp, const char *key, size_t len) argument
170 ctf_hash_destroy(ctf_hash_t *hp) argument
[all...]
/netbsd-current/external/cddl/osnet/dist/lib/libdtrace/common/
H A Ddt_inttab.c57 dt_inthash_t *hp, *np; local
59 for (hp = ip->int_head; hp != NULL; hp = np) {
60 np = hp->inh_next;
61 dt_free(ip->int_hdl, hp);
72 dt_inthash_t *hp; local
75 for (hp = ip->int_hash[h]; hp != NULL; hp
111 const dt_inthash_t *hp; local
[all...]
/netbsd-current/sys/dev/sdmmc/
H A Dsdhc.c106 #define HDEVNAME(hp) (device_xname((hp)->sc->sc_dev))
109 hread1(struct sdhc_host *hp, bus_size_t reg) argument
112 if (!ISSET(hp->sc->sc_flags, SDHC_FLAG_32BIT_ACCESS))
113 return bus_space_read_1(hp->iot, hp->ioh, reg);
114 return bus_space_read_4(hp->iot, hp->ioh, reg & -4) >> (8 * (reg & 3));
118 hread2(struct sdhc_host *hp, bus_size_t reg) argument
121 if (!ISSET(hp
133 hwrite1(struct sdhc_host *hp, bus_size_t o, uint8_t val) argument
151 hwrite2(struct sdhc_host *hp, bus_size_t o, uint16_t val) argument
169 hwrite4(struct sdhc_host *hp, bus_size_t o, uint32_t val) argument
264 const struct sdhc_host * const hp = saa->saa_sch; local
287 struct sdhc_host *hp; local
675 struct sdhc_host *hp; local
724 struct sdhc_host *hp; local
756 struct sdhc_host *hp; local
790 struct sdhc_host *hp; local
807 struct sdhc_host *hp = (struct sdhc_host *)sch; local
865 struct sdhc_host *hp = (struct sdhc_host *)sch; local
878 struct sdhc_host *hp = (struct sdhc_host *)sch; local
886 struct sdhc_host *hp = (struct sdhc_host *)sch; local
897 struct sdhc_host *hp = (struct sdhc_host *)sch; local
917 struct sdhc_host *hp = (struct sdhc_host *)sch; local
935 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1028 sdhc_clock_divisor(struct sdhc_host *hp, u_int freq, u_int *divp) argument
1108 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1313 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1367 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1378 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1396 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1408 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1449 sdhc_execute_tuning1(struct sdhc_host *hp, int timing) argument
1545 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1557 struct sdhc_host *hp = arg; local
1565 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1573 sdhc_wait_state(struct sdhc_host *hp, uint32_t mask, uint32_t value) argument
1591 struct sdhc_host *hp = (struct sdhc_host *)sch; local
1710 sdhc_start_command(struct sdhc_host *hp, struct sdmmc_command *cmd) argument
1902 sdhc_transfer_data(struct sdhc_host *hp, struct sdmmc_command *cmd) argument
1944 sdhc_transfer_data_dma(struct sdhc_host *hp, struct sdmmc_command *cmd) argument
2007 sdhc_transfer_data_pio(struct sdhc_host *hp, struct sdmmc_command *cmd) argument
2081 sdhc_read_data_pio(struct sdhc_host *hp, uint8_t *data, u_int datalen) argument
2121 sdhc_write_data_pio(struct sdhc_host *hp, uint8_t *data, u_int datalen) argument
2161 esdhc_read_data_pio(struct sdhc_host *hp, uint8_t *data, u_int datalen) argument
2200 esdhc_write_data_pio(struct sdhc_host *hp, uint8_t *data, u_int datalen) argument
2233 sdhc_soft_reset(struct sdhc_host *hp, int mask) argument
2285 sdhc_wait_intr(struct sdhc_host *hp, int mask, int timo, bool probing) argument
2373 struct sdhc_host *hp; local
2495 sdhc_host_lock(struct sdhc_host *hp) argument
2501 sdhc_host_read_1(struct sdhc_host *hp, int reg) argument
2507 sdhc_host_read_2(struct sdhc_host *hp, int reg) argument
2513 sdhc_host_read_4(struct sdhc_host *hp, int reg) argument
2519 sdhc_host_write_1(struct sdhc_host *hp, int reg, uint8_t val) argument
2525 sdhc_host_write_2(struct sdhc_host *hp, int reg, uint16_t val) argument
2531 sdhc_host_write_4(struct sdhc_host *hp, int reg, uint32_t val) argument
2538 sdhc_dump_regs(struct sdhc_host *hp) argument
[all...]
/netbsd-current/usr.sbin/bootp/common/
H A Ddumptab.c51 struct host *hp; local
109 for (hp = (struct host *) hash_FirstEntry(nmhashtable); hp != NULL;
110 hp = (struct host *) hash_NextEntry(nmhashtable)) {
111 dump_host(fp, hp);
124 * Dump all the available information on the host pointed to by "hp".
129 dump_host(FILE *fp, struct host *hp)
132 if (hp) {
133 fprintf(fp, "%s:", (hp->hostname ?
134 hp
128 dump_host(FILE *fp, struct host *hp) argument
[all...]
H A Ddovend.c45 dovend_rfc1497(struct host *hp, byte *buf, int len) argument
57 hp->hostname->string, MSG); \
74 if (hp->flags.time_offset) {
78 insert_u_long(htonl(hp->time_offset), &vp); /* -4 bytes */
84 if (hp->flags.swap_server) {
89 insert_u_long(hp->swap_server.s_addr, &vp); /* -4 bytes */
92 if (hp->flags.root_path) {
97 len = strlen(hp->root_path->string);
101 bcopy(hp->root_path->string, vp, len);
105 if (hp
[all...]
/netbsd-current/sys/arch/sparc/dev/
H A Dsbusvar.h92 #define sbus_promaddr_to_handle(tag, promaddr, hp) sparc_promaddr_to_handle(tag, promaddr, hp)
95 sparc_promaddr_to_handle(bus_space_tag_t tag, u_int promaddr, bus_space_handle_t *hp) argument
97 *(hp) = (bus_space_handle_t)(promaddr);
/netbsd-current/usr.sbin/lpr/pac/
H A Dpac.c214 struct hent *hp; local
230 hp = lookup(cp);
231 if (hp == NULL) {
234 hp = enter(cp);
236 hp->h_feetpages += t;
238 hp->h_count += ic;
240 hp->h_count++;
252 struct hent *hp, **ap; local
256 hp = hashtab[0];
258 base = calloc(sizeof hp, hcoun
296 struct hent *hp; local
336 struct hent *hp; local
365 struct hent *hp; local
[all...]
/netbsd-current/external/bsd/tcpdump/dist/
H A Dprint-hsrp.c104 const struct hsrp *hp = (const struct hsrp *) bp; local
108 version = GET_U_1(hp->hsrp_version);
114 tok2strary(op_code_str, "unknown (%u)", GET_U_1(hp->hsrp_op_code)));
117 tok2str(states, "Unknown (%u)", GET_U_1(hp->hsrp_state)));
118 ND_PRINT("group=%u ", GET_U_1(hp->hsrp_group));
119 if (GET_U_1(hp->hsrp_reserved) != 0) {
120 ND_PRINT("[reserved=%u!] ", GET_U_1(hp->hsrp_reserved));
122 ND_PRINT("addr=%s", GET_IPADDR_STRING(hp->hsrp_virtaddr));
125 unsigned_relts_print(ndo, GET_U_1(hp->hsrp_hellotime));
127 unsigned_relts_print(ndo, GET_U_1(hp
[all...]
/netbsd-current/external/bsd/am-utils/dist/fsinfo/
H A Dwr_bparam.c70 write_boot_info(FILE *ef, host *hp) argument
74 fprintf(ef, "%s\troot=", hp->h_hostname);
75 errors += write_nfsname(ef, hp->h_netroot, hp->h_hostname);
77 errors += write_nfsname(ef, hp->h_netswap, hp->h_hostname);
95 host *hp; local
96 ITER(hp, host, q)
97 if (hp->h_netroot && hp
[all...]
/netbsd-current/usr.bin/talk/
H A Dget_addrs.c51 struct hostent *hp; local
61 hp = gethostbyname(my_machine_name);
62 if (hp == NULL)
65 memcpy(&my_machine_addr, hp->h_addr, sizeof(my_machine_addr));
66 hp = gethostbyname(his_machine_name);
67 if (hp == NULL)
70 memcpy(&his_machine_addr, hp->h_addr, sizeof(his_machine_addr));
/netbsd-current/external/ibm-public/postfix/dist/src/local/
H A Dbiff_notify.c60 struct hostent *hp; local
71 if ((hp = gethostbyname("localhost")) == 0) {
75 if ((int) hp->h_length > (int) sizeof(sin.sin_addr)) {
76 msg_warn("bad address size %d for localhost", hp->h_length);
79 sin.sin_family = hp->h_addrtype;
81 memcpy((void *) &sin.sin_addr, hp->h_addr_list[0], hp->h_length);
/netbsd-current/lib/libc/net/
H A Dsethostent.c119 struct hostent *hp; local
136 hp = _hf_gethtbyname2(name, AF_INET6, info);
138 hp = NULL;
139 if (hp == NULL)
140 hp = _hf_gethtbyname2(name, AF_INET, info);
144 hp = _hf_gethtbyname2(name, af, info);
146 if (hp == NULL) {
156 struct hostent *hp, hent; local
185 info->hp->h_addrtype = af;
186 info->hp
266 struct hostent *hp; local
[all...]
/netbsd-current/sys/dev/usb/
H A Duhso.c534 struct uhso_port *hp; local
543 hp = sc->sc_port[i];
544 if (hp != NULL)
545 (*hp->hp_abort)(hp);
571 hp = sc->sc_port[i];
572 if (hp != NULL)
573 (*hp->hp_detach)(hp);
733 struct uhso_port *hp; local
844 uhso_mux_abort(struct uhso_port *hp) argument
859 uhso_mux_detach(struct uhso_port *hp) argument
877 uhso_mux_init(struct uhso_port *hp) argument
905 uhso_mux_clean(struct uhso_port *hp) argument
916 uhso_mux_write(struct uhso_port *hp) argument
945 uhso_mux_read(struct uhso_port *hp) argument
983 uhso_mux_control(struct uhso_port *hp) argument
995 struct uhso_port *hp; local
1043 struct uhso_port *hp; local
1112 uhso_bulk_abort(struct uhso_port *hp) argument
1121 uhso_bulk_detach(struct uhso_port *hp) argument
1132 uhso_bulk_init(struct uhso_port *hp) argument
1182 uhso_bulk_clean(struct uhso_port *hp) argument
1232 uhso_bulk_write(struct uhso_port *hp) argument
1253 uhso_bulk_read(struct uhso_port *hp) argument
1274 uhso_bulk_control(struct uhso_port *hp) argument
1316 struct uhso_port *hp = p; local
1369 uhso_tty_attach(struct uhso_port *hp) argument
1384 uhso_tty_detach(struct uhso_port *hp) argument
1399 struct uhso_port *hp = p; local
1432 struct uhso_port *hp = p; local
1483 struct uhso_port *hp; local
1527 uhso_tty_init(struct uhso_port *hp) argument
1585 struct uhso_port *hp = sc->sc_port[UHSOPORT(dev)]; local
1608 uhso_tty_clean(struct uhso_port *hp) argument
1636 struct uhso_port *hp = sc->sc_port[UHSOPORT(dev)]; local
1659 struct uhso_port *hp = sc->sc_port[UHSOPORT(dev)]; local
1682 struct uhso_port *hp = sc->sc_port[UHSOPORT(dev)]; local
1701 uhso_tty_do_ioctl(struct uhso_port *hp, u_long cmd, void *data, int flag, struct lwp *l) argument
1778 struct uhso_port *hp = sc->sc_port[UHSOPORT(dev)]; local
1787 struct uhso_port *hp = sc->sc_port[UHSOPORT(dev)]; local
1809 struct uhso_port *hp = sc->sc_port[UHSOPORT(tp->t_dev)]; local
1847 struct uhso_port *hp = sc->sc_port[UHSOPORT(tp->t_dev)]; local
1870 uhso_tty_control(struct uhso_port *hp, u_long cmd, int bits) argument
1908 struct uhso_port *hp; local
1979 uhso_ifnet_abort(struct uhso_port *hp) argument
1990 uhso_ifnet_detach(struct uhso_port *hp) argument
2008 struct uhso_port *hp = p; local
2049 struct uhso_port *hp = p; local
2192 struct uhso_port *hp = ifp->if_softc; local
2278 uhso_ifnet_init(struct uhso_port *hp) argument
2300 uhso_ifnet_clean(struct uhso_port *hp) argument
2312 struct uhso_port *hp = ifp->if_softc; local
[all...]
/netbsd-current/sys/kern/
H A Dvfs_hooks.c70 struct vfs_hooks *hp; local
74 LIST_FOREACH(hp, &vfs_hooks_head, vfs_hooks_list) {
75 if (hp == vfs_hooks) {
76 LIST_REMOVE(hp, vfs_hooks_list);
80 if (hp == NULL)
97 struct vfs_hooks *hp; \
102 LIST_FOREACH(hp, &vfs_hooks_head, vfs_hooks_list) { \
103 if (hp-> hook != NULL) { \
104 error = hp-> hook hargs; \
123 struct vfs_hooks *hp; \
[all...]
/netbsd-current/external/bsd/atf/dist/test-programs/
H A Dsrcdir_test.sh46 for hp in $(get_helpers); do
47 h=${hp##*/}
48 cp ${hp} tmp
51 atf_check -s eq:1 -o empty -e ignore "${hp}" -r res srcdir_exists
68 for hp in $(get_helpers c_helpers cpp_helpers); do
69 h=${hp##*/}
70 cp ${hp} tmp
71 cp ${hp} tmp/.libs
74 atf_check -s eq:1 -o empty -e ignore "${hp}" -r res srcdir_exists
78 for hp i
[all...]
/netbsd-current/lib/libc/db/hash/
H A Dndbm.c92 HTAB *hp; local
94 hp = db->internal;
95 return (hp->err);
101 HTAB *hp; local
103 hp = db->internal;
104 hp->err = 0;
111 HTAB *hp; local
113 hp = db->internal;
114 return hp->fp;
/netbsd-current/lib/libm/src/
H A De_remainder.c36 int32_t hx,hp; local
41 EXTRACT_WORDS(hp,lp,p);
43 hp &= 0x7fffffff;
47 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */
49 ((hp>=0x7ff00000)&& /* p is NaN */
50 (((hp-0x7ff00000)|lp)!=0)))
54 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */
55 if (((hx-hp)|(lx-lp))==0) return zero*x;
58 if (hp<0x00200000) {
/netbsd-current/external/gpl3/gcc/dist/libquadmath/math/
H A Dremainderq.c32 int64_t hx,hp; local
37 GET_FLT128_WORDS64(hp,lp,p);
39 hp &= 0x7fffffffffffffffLL;
43 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */
45 ((hp>=0x7fff000000000000LL)&& /* p is NaN */
46 (((hp-0x7fff000000000000LL)|lp)!=0)))
50 if (hp<=0x7ffdffffffffffffLL) x = fmodq(x,p+p); /* now x < 2p */
51 if (((hx-hp)|(lx-lp))==0) return zero*x;
54 if (hp<0x0002000000000000LL) {
/netbsd-current/external/gpl3/gcc.old/dist/libquadmath/math/
H A Dremainderq.c32 int64_t hx,hp; local
37 GET_FLT128_WORDS64(hp,lp,p);
39 hp &= 0x7fffffffffffffffLL;
43 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */
45 ((hp>=0x7fff000000000000LL)&& /* p is NaN */
46 (((hp-0x7fff000000000000LL)|lp)!=0)))
50 if (hp<=0x7ffdffffffffffffLL) x = fmodq(x,p+p); /* now x < 2p */
51 if (((hx-hp)|(lx-lp))==0) return zero*x;
54 if (hp<0x0002000000000000LL) {
/netbsd-current/bin/csh/
H A Dhist.c56 struct Hist *hp, *np; local
77 for (hp = &Histlist; (np = hp->Hnext) != NULL;)
79 hp->Hnext = np->Hnext, hfree(np);
81 hp = np;
87 loadhist(struct Hist *hp) { argument
90 if (hi == NULL || hp == NULL)
92 loadhist(hp->Hnext);
93 if (sprlex(&h, &hp->Hlex) != -1) {
131 hfree(struct Hist *hp) argument
181 dohist1(struct Hist *hp, int *np, int rflg, int hflg) argument
202 phist(struct Hist *hp, int hflg) argument
[all...]
/netbsd-current/external/ibm-public/postfix/dist/src/global/
H A Dheader_opts.c103 const HEADER_OPTS *hp; local
112 for (hp = header_opts; hp < header_opts + HEADER_OPTS_SIZE; hp++) {
114 for (cp = hp->name; *cp; cp++)
117 htable_enter(header_hash, vstring_str(header_key), (void *) hp);
128 HEADER_OPTS *hp; local
144 hp = (HEADER_OPTS *) mymalloc(sizeof(*hp));
145 hp
[all...]
/netbsd-current/external/cddl/osnet/dist/tools/ctf/cvt/
H A Dstrtab.c73 strhash_t *hp, *hq; local
77 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) {
78 hq = hp->str_next;
79 free(hp);
111 strtab_compare(strtab_t *sp, strhash_t *hp, const char *str, size_t len) argument
113 ulong_t b = hp->str_buf;
114 const char *buf = hp->str_data;
161 strhash_t *hp; local
237 const strhash_t *hp; local
[all...]

Completed in 400 milliseconds

1234567891011>>