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

1234567891011>>

/illumos-gate/usr/src/lib/libslp/clib/
H A DSLPOpen.c39 slp_handle_impl_t *hp; local
46 if (!(hp = malloc(sizeof (*hp)))) {
52 hp->pending_outcall = SLP_FALSE;
53 (void) mutex_init(&(hp->outcall_lock), NULL, NULL);
54 (void) cond_init(&(hp->outcall_cv), NULL, NULL);
55 hp->close_on_end = SLP_FALSE;
56 hp->consumer_tid = 0;
59 if (!(hp->locale = SLPGetProperty(SLP_CONFIG_LOCALE))) {
60 hp
98 slp_cleanup_handle(slp_handle_impl_t *hp) argument
111 slp_handle_impl_t *hp = (slp_handle_impl_t *)hSLP; local
[all...]
H A Dslp_ua_common.c39 slp_handle_impl_t *hp; member in struct:thr_call_args
53 slp_handle_impl_t *hp; local
61 hp = (slp_handle_impl_t *)hSLP;
64 if ((err = slp_new_target_list(hp, scopes, &targets)) != SLP_OK)
66 if ((err = check_message_fit(hp, targets)) != SLP_OK) {
78 args->hp = hp;
88 hp->q = q;
98 hp->producer_tid = tid;
100 if (hp
125 slp_handle_impl_t *hp; local
237 check_message_fit(slp_handle_impl_t *hp, slp_target_list_t *targets) argument
[all...]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprinthashdata.c18 void printhashdata(hp, opts)
19 iphtable_t *hp;
24 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON)
26 switch (hp->iph_type & ~IPHASH_ANON)
33 if (hp->iph_flags & FR_INQUE)
35 else if (hp->iph_flags & FR_OUTQUE)
41 PRINTF("%#x", hp->iph_type);
46 PRINTF("Hash Table Number: %s", hp->iph_name);
47 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON)
53 switch (hp
[all...]
H A Dhostname.c19 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));
H A Dprinthash_live.c20 iphtable_t *printhash_live(hp, fd, name, opts)
21 iphtable_t *hp;
31 if ((name != NULL) && strncmp(name, hp->iph_name, FR_GROUPLEN))
32 return hp->iph_next;
34 printhashdata(hp, opts);
48 iter.ili_unit = hp->iph_unit;
49 strncpy(iter.ili_name, hp->iph_name, FR_GROUPLEN);
66 (void) printhashnode(hp, node, bcopywrap, opts);
80 return hp->iph_next;
/illumos-gate/usr/src/common/ctf/
H A Dctf_hash.c35 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) argument
45 bzero(hp, sizeof (ctf_hash_t));
46 hp->h_buckets = (ushort_t *)_CTF_EMPTY;
47 hp->h_nbuckets = 1;
51 hp->h_nbuckets = 211; /* use a prime number of hash buckets */
52 hp->h_nelems = nelems + 1; /* we use index zero as a sentinel */
53 hp->h_free = 1; /* first free element is index 1 */
55 hp->h_buckets = ctf_alloc(sizeof (ushort_t) * hp->h_nbuckets);
56 hp
70 ctf_hash_size(const ctf_hash_t *hp) argument
95 ctf_hash_insert(ctf_hash_t *hp, ctf_file_t *fp, ushort_t type, uint_t name) argument
132 ctf_hash_define(ctf_hash_t *hp, ctf_file_t *fp, ushort_t type, uint_t name) argument
145 ctf_hash_lookup(ctf_hash_t *hp, ctf_file_t *fp, const char *key, size_t len) argument
167 ctf_hash_destroy(ctf_hash_t *hp) argument
[all...]
/illumos-gate/usr/src/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...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas_hash.c41 refhash_t *hp; local
44 hp = kmem_alloc(sizeof (refhash_t), km_flags);
45 if (hp == NULL)
47 hp->rh_buckets = kmem_zalloc(bucket_count * sizeof (list_t), km_flags);
48 if (hp->rh_buckets == NULL) {
49 kmem_free(hp, sizeof (refhash_t));
52 hp->rh_bucket_count = bucket_count;
55 list_create(&hp->rh_buckets[i], sizeof (refhash_link_t),
58 list_create(&hp->rh_objs, sizeof (refhash_link_t),
61 hp
72 refhash_destroy(refhash_t *hp) argument
81 refhash_insert(refhash_t *hp, void *op) argument
96 refhash_delete(refhash_t *hp, void *op) argument
108 refhash_remove(refhash_t *hp, void *op) argument
120 refhash_lookup(refhash_t *hp, const void *tp) argument
140 refhash_linear_search(refhash_t *hp, refhash_eval_f eval, void *arg) argument
156 refhash_hold(refhash_t *hp, void *op) argument
164 refhash_rele(refhash_t *hp, void *op) argument
175 refhash_first(refhash_t *hp) argument
189 refhash_next(refhash_t *hp, void *op) argument
209 refhash_obj_valid(refhash_t *hp, const void *op) argument
[all...]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dsbd.h82 int sbdp_assign_board(sbdp_handle_t *hp);
83 int sbdp_connect_board(sbdp_handle_t *hp);
84 int sbdp_disconnect_board(sbdp_handle_t *hp);
85 int sbdp_get_board_num(sbdp_handle_t *hp, dev_info_t *dip);
87 int sbdp_cancel_component_release(sbdp_handle_t *hp);
88 processorid_t sbdp_get_cpuid(sbdp_handle_t *hp, dev_info_t *dip);
92 int sbdp_get_mem_alignment(sbdp_handle_t *hp, dev_info_t *dip, uint64_t *align);
93 struct memlist *sbdp_get_memlist(sbdp_handle_t *hp, dev_info_t *dip);
94 int sbdp_del_memlist(sbdp_handle_t *hp, struct memlist *mlist);
95 int sbdp_get_unit_num(sbdp_handle_t *hp, dev_info_
[all...]
/illumos-gate/usr/src/lib/scsi/libscsi/common/
H A Dscsi_subr.c66 libscsi_set_errno(libscsi_hdl_t *hp, libscsi_errno_t err) argument
68 hp->lsh_errno = err;
69 hp->lsh_errmsg[0] = '\0';
81 libscsi_verror(libscsi_hdl_t *hp, libscsi_errno_t err, const char *fmt, argument
97 errmsg = alloca(sizeof (hp->lsh_errmsg));
98 (void) vsnprintf(errmsg, sizeof (hp->lsh_errmsg), fmt, ap);
99 (void) libscsi_set_errno(hp, err);
106 bcopy(errmsg, hp->lsh_errmsg, n + 1);
113 libscsi_error(libscsi_hdl_t *hp, libscsi_errno_t err, const char *fmt, ...) argument
118 return (libscsi_set_errno(hp, er
128 libscsi_errno(libscsi_hdl_t *hp) argument
134 libscsi_errmsg(libscsi_hdl_t *hp) argument
144 libscsi_alloc(libscsi_hdl_t *hp, size_t size) argument
160 libscsi_zalloc(libscsi_hdl_t *hp, size_t size) argument
173 libscsi_strdup(libscsi_hdl_t *hp, const char *str) argument
186 libscsi_free(libscsi_hdl_t *hp, void *ptr) argument
194 libscsi_hdl_t *hp; local
209 libscsi_fini(libscsi_hdl_t *hp) argument
228 libscsi_cmd_cdblen(libscsi_hdl_t *hp, uint8_t cmd) argument
269 libscsi_process_inquiry_string(libscsi_hdl_t *hp, const char *raw, size_t len) argument
291 libscsi_get_inquiry(libscsi_hdl_t *hp, libscsi_target_t *tp) argument
[all...]
/illumos-gate/usr/src/lib/libbc/libc/net/
H A Dgetrpcport.c38 struct hostent *hp; local
40 if ((hp = gethostbyname(host)) == NULL)
42 bcopy(hp->h_addr, (char *) &addr.sin_addr, hp->h_length);
/illumos-gate/usr/src/cmd/getent/
H A Ddogethost.c40 puthostent(const struct hostent *hp, FILE *fp) argument
45 if (hp == NULL) {
49 for (p = hp->h_addr_list; *p != 0; p++) {
55 inet_ntoa(in), hp->h_name) == EOF)
57 for (q = hp->h_aliases; *q != 0; q++) {
73 struct hostent *hp; local
77 while ((hp = gethostent()) != NULL)
78 (void) puthostent(hp, stdout);
84 hp = gethostbyaddr((char *)&addr,
87 hp
[all...]
H A Ddogetipnodes.c39 puthostent(const struct hostent *hp, FILE *fp) argument
45 if (hp == NULL) {
49 for (p = hp->h_addr_list; *p != 0; p++) {
56 if (hp->h_addrtype == AF_INET6) {
75 if (fprintf(fp, "%s\t%s", res, hp->h_name) == EOF)
77 for (q = hp->h_aliases; q && *q; q++) {
93 struct hostent *hp; local
116 hp = getipnodebyaddr(addr, len, af, &err_ret);
118 hp = getipnodebyname(
123 if (hp
[all...]
/illumos-gate/usr/src/cmd/fm/modules/SUNW,SPARC-Enterprise/event-transport/
H A Dex_dscp.c74 exs_hdl_t *hp; local
76 hp = fmd_hdl_zalloc(hdl, sizeof (exs_hdl_t), FMD_SLEEP);
78 hp->h_endpt_id = fmd_hdl_strdup(hdl, endpoint_id, FMD_SLEEP);
79 hp->h_dom = dom;
80 hp->h_client.c_sd = EXS_SD_FREE;
81 hp->h_server.c_sd = EXS_SD_FREE;
82 hp->h_tid = EXS_TID_FREE;
83 hp->h_destroy = 0;
84 hp->h_hdl = hdl;
85 hp
181 exs_prep_client(exs_hdl_t *hp) argument
262 exs_hdl_t *hp = (exs_hdl_t *)arg; local
309 exs_hdl_t *hp; local
491 exs_hdl_t *hp, *curr; local
540 exs_hdl_t *hp = (exs_hdl_t *)tlhdl; local
606 exs_hdl_t *hp = (exs_hdl_t *)tlhdl; local
[all...]
/illumos-gate/usr/src/lib/libshell/common/edit/
H A Dhistory.c71 #define hist_ind(hp,c) ((int)((c)&(hp)->histmask))
133 static int acctinit(History_t *hp) argument
136 Namval_t *np = nv_search("ACCTFILE",((Shell_t*)hp->histshell)->var_tree,0);
178 static int sh_checkaudit(History_t *hp, const char *name, char *logbuf, size_t len) argument
180 Shell_t *shp = (Shell_t*)hp->histshell;
232 register History_t *hp; local
252 if(hp=wasopen)
256 shp->hist_ptr = hist_ptr = hp;
257 if(strcmp(histname,hp
410 hist_close(register History_t *hp) argument
459 hist_trim(History_t *hp, int n) argument
555 hist_nearend(History_t *hp, Sfio_t *iop, register off_t size) argument
622 hist_eof(register History_t *hp) argument
718 hist_cancel(register History_t *hp) argument
735 hist_flush(register History_t *hp) argument
769 register History_t *hp = (History_t*)handle; local
870 hist_tell(register History_t *hp, int n) argument
878 hist_seek(register History_t *hp, int n) argument
889 hist_list(register History_t *hp,Sfio_t *outfile, off_t offset,int last, char *nl) argument
980 hist_match(register History_t *hp,off_t offset,char *string,int *coffset) argument
1028 register History_t *hp = sh_getinterp()->hist_ptr; local
1073 History_t *hp = hist_ptr; local
1108 hist_locate(History_t *hp,register int command,register int line,int lines) argument
1160 History_t *hp = (History_t*)handle; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dget_addrs.c58 struct hostent *hp; local
65 hp = gethostbyname(my_machine_name);
67 if (hp == (struct hostent *) 0) {
73 if (hp->h_addrtype != AF_INET) {
79 bcopy(hp->h_addr, (char *)&my_machine_addr, hp->h_length);
94 hp = gethostbyname(rem_machine_name);
96 if (hp == (struct hostent *) 0) {
102 if (hp->h_addrtype != AF_INET) {
108 bcopy(hp
[all...]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.hist.c32 struct Hist *hp, *np; local
54 for (hp = &Histlist; np = hp->Hnext;)
56 hp->Hnext = np->Hnext, hfree(np);
58 hp = np;
86 hfree(struct Hist *hp) argument
92 freelex(&hp->Hlex);
93 xfree( (tchar *)hp);
134 dohist1(struct Hist *hp, int *np, int rflg, int hflg) argument
141 if (hp
158 phist(struct Hist *hp, int hflg) argument
[all...]
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dgetrpcport.c40 struct hostent *hp; local
42 if ((hp = gethostbyname(host)) == NULL)
44 memcpy((char *) &addr.sin_addr, hp->h_addr, hp->h_length);
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_dispatch.c208 DB_TXNHEAD *hp; local
216 hp = (DB_TXNHEAD *)listp;
217 LIST_INSERT_HEAD(&hp->head, elp, links);
218 if (txnid > hp->maxid)
219 hp->maxid = txnid;
220 elp->generation = hp->generation;
237 DB_TXNHEAD *hp; local
240 if ((hp = (DB_TXNHEAD *)listp) == NULL)
243 for (p = hp->head.lh_first; p != NULL; p = p->links.le_next)
244 if (p->txnid == txnid && hp
260 DB_TXNHEAD *hp; local
282 DB_TXNHEAD *hp; local
307 DB_TXNHEAD *hp; local
[all...]
/illumos-gate/usr/src/tools/ctf/cvt/
H A Dstrtab.c69 strhash_t *hp, *hq; local
73 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) {
74 hq = hp->str_next;
75 free(hp);
107 strtab_compare(strtab_t *sp, strhash_t *hp, const char *str, size_t len) argument
109 ulong_t b = hp->str_buf;
110 const char *buf = hp->str_data;
157 strhash_t *hp; local
233 const strhash_t *hp; local
[all...]
/illumos-gate/usr/src/lib/scsi/plugins/scsi/engines/uscsi/
H A Duscsi.c50 uscsi_open(libscsi_hdl_t *hp, const void *target) argument
55 if ((dp = libscsi_zalloc(hp, sizeof (struct uscsi_dev))) == NULL)
58 if ((dp->dev = libscsi_strdup(hp, target_name)) == NULL) {
59 libscsi_free(hp, dp);
64 (void) libscsi_error(hp, ESCSI_BADTARGET, "failed to open %s "
66 libscsi_free(hp, dp->dev);
67 libscsi_free(hp, dp);
75 uscsi_close(libscsi_hdl_t *hp, void *private) argument
85 libscsi_free(hp, dp->dev);
86 libscsi_free(hp, d
90 xlate_flags(libscsi_hdl_t *hp, uint_t flags, int *uf) argument
131 uscsi_exec(libscsi_hdl_t *hp, void *private, libscsi_action_t *ap) argument
210 uscsi_target_name(libscsi_hdl_t *hp, void *private, char *buf, size_t len) argument
232 libscsi_uscsi_init(libscsi_hdl_t *hp) argument
[all...]
/illumos-gate/usr/src/cmd/tcpd/
H A Dscaffold.c44 static struct hostent *dup_hostent(hp)
45 struct hostent *hp;
56 for (count = 0; hp->h_addr_list[count] != 0; count++)
60 + (hp->h_length + sizeof(char *)) * count)) == 0) {
65 hb->host.h_addrtype = hp->h_addrtype;;
66 hb->host.h_length = hp->h_length;
71 for (count = 0; (addr = hp->h_addr_list[count]) != 0; count++) {
72 hb->host.h_addr_list[count] = data + hp->h_length * count;
73 memcpy(hb->host.h_addr_list[count], addr, hp->h_length);
84 struct hostent *hp; local
129 struct hostent *hp; local
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dis_local_host.c45 static int is_local_if(struct hostent *hp);
58 struct hostent *hp; local
62 if (hp = getipnodebyname((const char *) host, AF_INET, flags, &err))
63 if (is_local_if(hp))
65 if (hp = getipnodebyname((const char *) host, AF_INET6, flags, &err))
66 if (is_local_if(hp))
73 is_local_if(struct hostent *hp) argument
85 if ((s = socket(hp->h_addrtype, SOCK_DGRAM, 0)) == -1) {
90 lifn.lifn_family = hp->h_addrtype;
105 lifc.lifc_family = hp
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dbofi.c930 struct bofi_shadow *hp; local
1505 for (hp = hhashp->hnext; hp != hhashp; hp = hp->hnext) {
1506 if (!driver_under_test(hp->dip))
1508 if (ddi_name_to_major(ddi_get_name(hp->dip)) !=
1511 if (hp->instance != get_handles.instance)
1518 " %s %d %s ", hp->name, hp
1736 struct bofi_shadow *hp; local
1824 struct bofi_shadow *hp; local
2293 do_dma_corrupt(struct bofi_shadow *hp, struct bofi_errent *ep, uint_t synctype, off_t off, off_t length) argument
2407 do_pior_corrupt(struct bofi_shadow *hp, caddr_t addr, uint64_t (*func)(), size_t repcount, size_t accsize) argument
2525 do_piow_corrupt(struct bofi_shadow *hp, caddr_t addr, uint64_t *valuep, size_t size, size_t repcount) argument
2617 do_bofi_rd8(struct bofi_shadow *hp, caddr_t addr) argument
2639 struct bofi_shadow *hp; local
2654 do_bofi_rd16(struct bofi_shadow *hp, caddr_t addr) argument
2666 struct bofi_shadow *hp; local
2681 do_bofi_rd32(struct bofi_shadow *hp, caddr_t addr) argument
2693 struct bofi_shadow *hp; local
2708 do_bofi_rd64(struct bofi_shadow *hp, caddr_t addr) argument
2720 struct bofi_shadow *hp; local
2750 struct bofi_shadow *hp; local
2771 struct bofi_shadow *hp; local
2792 struct bofi_shadow *hp; local
2813 struct bofi_shadow *hp; local
2848 struct bofi_shadow *hp; local
2875 struct bofi_shadow *hp; local
2902 struct bofi_shadow *hp; local
2929 struct bofi_shadow *hp; local
2969 struct bofi_shadow *hp; local
3000 struct bofi_shadow *hp; local
3031 struct bofi_shadow *hp; local
3062 struct bofi_shadow *hp; local
3094 struct bofi_shadow *hp; local
3281 chain_on_errdefs(struct bofi_shadow *hp) argument
3345 struct bofi_shadow *hp, *xhp; local
3452 struct bofi_shadow *hp; local
3512 struct bofi_shadow *hp; local
3639 struct bofi_shadow *hp; local
3718 struct bofi_shadow *hp; local
3797 struct bofi_shadow *hp; local
3839 struct bofi_shadow *hp; local
3937 struct bofi_shadow *hp; local
4047 struct bofi_shadow *hp; local
4136 struct bofi_shadow *hp; local
4207 struct bofi_shadow *hp; local
4292 struct bofi_shadow *hp; local
4385 struct bofi_shadow *hp; local
4414 struct bofi_shadow *hp; local
4457 struct bofi_shadow *hp; local
4508 struct bofi_shadow *hp; local
4578 struct bofi_shadow *hp; local
[all...]
/illumos-gate/usr/src/lib/libshell/common/include/
H A Dhistory.h56 #define hist_min(hp) ((_Hist=((int)((hp)->histind-(hp)->histsize)))>=0?_Hist:0)
57 #define hist_max(hp) ((int)((hp)->histind))

Completed in 192 milliseconds

1234567891011>>