Home
last modified time | relevance | path

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

12345678910>>...18

/titanic_44/usr/src/lib/libslp/clib/
H A DSLPOpen.c39 slp_handle_impl_t *hp; in SLPOpen() local
46 if (!(hp = malloc(sizeof (*hp)))) { in SLPOpen()
52 hp->pending_outcall = SLP_FALSE; in SLPOpen()
53 (void) mutex_init(&(hp->outcall_lock), NULL, NULL); in SLPOpen()
54 (void) cond_init(&(hp->outcall_cv), NULL, NULL); in SLPOpen()
55 hp->close_on_end = SLP_FALSE; in SLPOpen()
56 hp->consumer_tid = 0; in SLPOpen()
59 if (!(hp->locale = SLPGetProperty(SLP_CONFIG_LOCALE))) { in SLPOpen()
60 hp->locale = pcLang; in SLPOpen()
63 if (!(hp->locale = strdup(hp->locale))) { in SLPOpen()
[all …]
H A Dslp_ua_common.c39 slp_handle_impl_t *hp; member
53 slp_handle_impl_t *hp; in slp_ua_common() local
61 hp = (slp_handle_impl_t *)hSLP; in slp_ua_common()
64 if ((err = slp_new_target_list(hp, scopes, &targets)) != SLP_OK) in slp_ua_common()
66 if ((err = check_message_fit(hp, targets)) != SLP_OK) { in slp_ua_common()
78 args->hp = hp; in slp_ua_common()
88 hp->q = q; in slp_ua_common()
98 hp->producer_tid = tid; in slp_ua_common()
100 if (hp->async) { in slp_ua_common()
110 hp->cancel = 1; in slp_ua_common()
[all …]
H A Dslp_net.c71 slp_handle_impl_t *hp; member
127 void slp_uc_tcp_send(slp_handle_impl_t *hp, slp_target_t *target, in slp_uc_tcp_send() argument
133 if (!hp->tcp_lock) { in slp_uc_tcp_send()
134 if (!(hp->tcp_lock = malloc(sizeof (*(hp->tcp_lock))))) { in slp_uc_tcp_send()
139 (void) mutex_init(hp->tcp_lock, NULL, NULL); in slp_uc_tcp_send()
141 if (!hp->tcp_wait) { in slp_uc_tcp_send()
142 if (!(hp->tcp_wait = malloc(sizeof (*(hp->tcp_wait))))) { in slp_uc_tcp_send()
147 (void) cond_init(hp->tcp_wait, NULL, NULL); in slp_uc_tcp_send()
149 (void) mutex_lock(hp->tcp_lock); in slp_uc_tcp_send()
150 (hp->tcp_ref_cnt)++; in slp_uc_tcp_send()
[all …]
/titanic_44/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas_hash.c41 refhash_t *hp; in refhash_create() local
44 hp = kmem_alloc(sizeof (refhash_t), km_flags); in refhash_create()
45 if (hp == NULL) in refhash_create()
47 hp->rh_buckets = kmem_zalloc(bucket_count * sizeof (list_t), km_flags); in refhash_create()
48 if (hp->rh_buckets == NULL) { in refhash_create()
49 kmem_free(hp, sizeof (refhash_t)); in refhash_create()
52 hp->rh_bucket_count = bucket_count; in refhash_create()
55 list_create(&hp->rh_buckets[i], sizeof (refhash_link_t), in refhash_create()
58 list_create(&hp->rh_objs, sizeof (refhash_link_t), in refhash_create()
61 hp->rh_obj_size = obj_size; in refhash_create()
[all …]
/titanic_44/usr/src/cmd/fm/modules/SUNW,SPARC-Enterprise/event-transport/
H A Dex_dscp.c74 exs_hdl_t *hp; in exs_hdl_alloc() local
76 hp = fmd_hdl_zalloc(hdl, sizeof (exs_hdl_t), FMD_SLEEP); in exs_hdl_alloc()
78 hp->h_endpt_id = fmd_hdl_strdup(hdl, endpoint_id, FMD_SLEEP); in exs_hdl_alloc()
79 hp->h_dom = dom; in exs_hdl_alloc()
80 hp->h_client.c_sd = EXS_SD_FREE; in exs_hdl_alloc()
81 hp->h_server.c_sd = EXS_SD_FREE; in exs_hdl_alloc()
82 hp->h_tid = EXS_TID_FREE; in exs_hdl_alloc()
83 hp->h_destroy = 0; in exs_hdl_alloc()
84 hp->h_hdl = hdl; in exs_hdl_alloc()
85 hp->h_cb_func = cb_func; in exs_hdl_alloc()
[all …]
/titanic_44/usr/src/common/ctf/
H A Dctf_hash.c35 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) in ctf_hash_create() argument
45 bzero(hp, sizeof (ctf_hash_t)); in ctf_hash_create()
46 hp->h_buckets = (ushort_t *)_CTF_EMPTY; in ctf_hash_create()
47 hp->h_nbuckets = 1; in ctf_hash_create()
51 hp->h_nbuckets = 211; /* use a prime number of hash buckets */ in ctf_hash_create()
52 hp->h_nelems = nelems + 1; /* we use index zero as a sentinel */ in ctf_hash_create()
53 hp->h_free = 1; /* first free element is index 1 */ in ctf_hash_create()
55 hp->h_buckets = ctf_alloc(sizeof (ushort_t) * hp->h_nbuckets); in ctf_hash_create()
56 hp->h_chains = ctf_alloc(sizeof (ctf_helem_t) * hp->h_nelems); in ctf_hash_create()
58 if (hp->h_buckets == NULL || hp->h_chains == NULL) { in ctf_hash_create()
[all …]
/titanic_44/usr/src/lib/libshell/common/edit/
H A Dhistory.c71 #define hist_ind(hp,c) ((int)((c)&(hp)->histmask)) argument
133 static int acctinit(History_t *hp) in acctinit() argument
136 Namval_t *np = nv_search("ACCTFILE",((Shell_t*)hp->histshell)->var_tree,0); in acctinit()
178 static int sh_checkaudit(History_t *hp, const char *name, char *logbuf, size_t len) in sh_checkaudit() argument
180 Shell_t *shp = (Shell_t*)hp->histshell; in sh_checkaudit()
232 register History_t *hp; in sh_histinit() local
252 if(hp=wasopen) in sh_histinit()
256 shp->hist_ptr = hist_ptr = hp; in sh_histinit()
257 if(strcmp(histname,hp->histname)==0) in sh_histinit()
310 if(!(hp=new_of(History_t,(--histmask)*sizeof(off_t)))) in sh_histinit()
[all …]
/titanic_44/usr/src/lib/libdtrace/common/
H A Ddt_inttab.c57 dt_inthash_t *hp, *np; in dt_inttab_destroy() local
59 for (hp = ip->int_head; hp != NULL; hp = np) { in dt_inttab_destroy()
60 np = hp->inh_next; in dt_inttab_destroy()
61 dt_free(ip->int_hdl, hp); in dt_inttab_destroy()
72 dt_inthash_t *hp; in dt_inttab_insert() local
75 for (hp = ip->int_hash[h]; hp != NULL; hp = hp->inh_hash) { in dt_inttab_insert()
76 if (hp->inh_value == value && hp->inh_flags == flags) in dt_inttab_insert()
77 return (hp->inh_index); in dt_inttab_insert()
81 if ((hp = dt_alloc(ip->int_hdl, sizeof (dt_inthash_t))) == NULL) in dt_inttab_insert()
84 hp->inh_hash = ip->int_hash[h]; in dt_inttab_insert()
[all …]
/titanic_44/usr/src/lib/scsi/libscsi/common/
H A Dscsi_subr.c66 libscsi_set_errno(libscsi_hdl_t *hp, libscsi_errno_t err) in libscsi_set_errno() argument
68 hp->lsh_errno = err; in libscsi_set_errno()
69 hp->lsh_errmsg[0] = '\0'; in libscsi_set_errno()
81 libscsi_verror(libscsi_hdl_t *hp, libscsi_errno_t err, const char *fmt, in libscsi_verror() argument
97 errmsg = alloca(sizeof (hp->lsh_errmsg)); in libscsi_verror()
98 (void) vsnprintf(errmsg, sizeof (hp->lsh_errmsg), fmt, ap); in libscsi_verror()
99 (void) libscsi_set_errno(hp, err); in libscsi_verror()
106 bcopy(errmsg, hp->lsh_errmsg, n + 1); in libscsi_verror()
113 libscsi_error(libscsi_hdl_t *hp, libscsi_errno_t err, const char *fmt, ...) in libscsi_error() argument
118 return (libscsi_set_errno(hp, err)); in libscsi_error()
[all …]
/titanic_44/usr/src/uts/common/io/
H A Dbofi.c930 struct bofi_shadow *hp; in bofi_ioctl() local
1505 for (hp = hhashp->hnext; hp != hhashp; hp = hp->hnext) { in bofi_ioctl()
1506 if (!driver_under_test(hp->dip)) in bofi_ioctl()
1508 if (ddi_name_to_major(ddi_get_name(hp->dip)) != in bofi_ioctl()
1511 if (hp->instance != get_handles.instance) in bofi_ioctl()
1518 " %s %d %s ", hp->name, hp->instance, in bofi_ioctl()
1519 (hp->type == BOFI_INT_HDL) ? "INTR" : in bofi_ioctl()
1520 (hp->type == BOFI_ACC_HDL) ? "PIO" : in bofi_ioctl()
1521 (hp->type == BOFI_DMA_HDL) ? "DMA" : in bofi_ioctl()
1522 (hp->hparrayp != NULL) ? "DVMA" : "DMA*"); in bofi_ioctl()
[all …]
/titanic_44/usr/src/cmd/ipf/lib/common/
H A Dprinthashdata.c18 void printhashdata(hp, opts) in printhashdata() argument
19 iphtable_t *hp; in printhashdata()
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->iph_unit)
[all …]
/titanic_44/usr/src/lib/libnwam/common/
H A Dlibnwam_object.c124 struct nwam_handle *hp; in nwam_create() local
128 if (nwam_read(type, dbname, name, 0, &hp) == NWAM_SUCCESS) { in nwam_create()
129 nwam_free(hp); in nwam_create()
137 nwam_get_name(struct nwam_handle *hp, char **namep) in nwam_get_name() argument
139 assert(hp != NULL && namep != NULL); in nwam_get_name()
141 if ((*namep = strdup(hp->nwh_name)) == NULL) { in nwam_get_name()
149 nwam_set_name(struct nwam_handle *hp, const char *name) in nwam_set_name() argument
151 assert(hp != NULL && name != NULL); in nwam_set_name()
153 if (hp->nwh_committed) in nwam_set_name()
156 if (strlen(name) >= sizeof (hp->nwh_name)) in nwam_set_name()
[all …]
/titanic_44/usr/src/uts/sun4u/ngdr/io/
H A Ddr.c361 static int dr_copyin_iocmd(dr_handle_t *hp);
362 static int dr_copyout_iocmd(dr_handle_t *hp);
363 static int dr_copyout_errs(dr_handle_t *hp);
364 static int dr_pre_op(dr_handle_t *hp);
365 static int dr_post_op(dr_handle_t *hp);
366 static int dr_exec_op(dr_handle_t *hp);
367 static void dr_assign_board(dr_handle_t *hp);
368 static void dr_unassign_board(dr_handle_t *hp);
369 static void dr_connect(dr_handle_t *hp);
370 static int dr_disconnect(dr_handle_t *hp);
[all …]
/titanic_44/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_t *dip);
[all …]
/titanic_44/usr/src/uts/i86pc/io/dr/
H A Ddr.c362 static int dr_copyin_iocmd(dr_handle_t *hp);
363 static int dr_copyout_iocmd(dr_handle_t *hp);
364 static int dr_copyout_errs(dr_handle_t *hp);
365 static int dr_pre_op(dr_handle_t *hp);
366 static int dr_post_op(dr_handle_t *hp, int rv);
367 static int dr_exec_op(dr_handle_t *hp);
368 static void dr_assign_board(dr_handle_t *hp);
369 static void dr_unassign_board(dr_handle_t *hp);
370 static void dr_connect(dr_handle_t *hp);
371 static int dr_disconnect(dr_handle_t *hp);
[all …]
/titanic_44/usr/src/uts/common/vm/
H A Dvm_seg.c285 seg_padd_abuck(struct seg_phash *hp) in seg_padd_abuck() argument
289 ASSERT(MUTEX_HELD(&hp->p_hmutex)); in seg_padd_abuck()
290 ASSERT((struct seg_phash *)hp->p_hnext != hp); in seg_padd_abuck()
291 ASSERT((struct seg_phash *)hp->p_hprev != hp); in seg_padd_abuck()
292 ASSERT(hp->p_hnext == hp->p_hprev); in seg_padd_abuck()
293 ASSERT(!IS_PCP_WIRED(hp->p_hnext)); in seg_padd_abuck()
294 ASSERT(hp->p_hnext->p_hnext == (struct seg_pcache *)hp); in seg_padd_abuck()
295 ASSERT(hp->p_hprev->p_hprev == (struct seg_pcache *)hp); in seg_padd_abuck()
296 ASSERT(hp >= seg_phashtab_win && in seg_padd_abuck()
297 hp < &seg_phashtab_win[seg_phashsize_win]); in seg_padd_abuck()
[all …]
/titanic_44/usr/src/tools/ctf/dump/
H A Ddump.c111 ref_to_str(uint_t name, const ctf_header_t *hp, const ctf_data_t *cd) in ref_to_str() argument
114 const char *s = cd->cd_ctfdata + hp->cth_stroff + offset; in ref_to_str()
119 if (offset >= hp->cth_strlen) in ref_to_str()
122 if (hp->cth_stroff + offset >= cd->cd_ctflen) in ref_to_str()
182 print_header(const ctf_header_t *hp, const ctf_data_t *cd) in print_header() argument
186 (void) printf(" cth_magic = 0x%04x\n", hp->cth_magic); in print_header()
187 (void) printf(" cth_version = %u\n", hp->cth_version); in print_header()
188 (void) printf(" cth_flags = 0x%02x\n", hp->cth_flags); in print_header()
190 ref_to_str(hp->cth_parlabel, hp, cd)); in print_header()
192 ref_to_str(hp->cth_parname, hp, cd)); in print_header()
[all …]
/titanic_44/usr/src/tools/ctf/cvt/
H A Dstrtab.c69 strhash_t *hp, *hq; in strtab_destroy() local
73 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in strtab_destroy()
74 hq = hp->str_next; in strtab_destroy()
75 free(hp); in strtab_destroy()
107 strtab_compare(strtab_t *sp, strhash_t *hp, const char *str, size_t len) in strtab_compare() argument
109 ulong_t b = hp->str_buf; in strtab_compare()
110 const char *buf = hp->str_data; in strtab_compare()
157 strhash_t *hp; in strtab_insert() local
170 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in strtab_insert()
171 if (strtab_compare(sp, hp, str, len + 1) == 0) in strtab_insert()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipaddr.c93 struct hostent *hp = NULL; in iplookup() local
117 hp = getipnodebyaddr((char *)&ipaddr, sizeof (int), in iplookup()
119 if (hp == NULL && inet_lnaof(ipaddr) == 0) { in iplookup()
129 hp ? hp->h_name : inet_ntoa(ipaddr), in iplookup()
130 hp ? hp->h_aliases : NULL); in iplookup()
131 if (hp != NULL) in iplookup()
132 freehostent(hp); in iplookup()
140 struct hostent *hp = NULL; in ip6lookup() local
163 hp = getipnodebyaddr(ip6addr, sizeof (struct in6_addr), in ip6lookup()
167 hp = NULL; in ip6lookup()
[all …]
/titanic_44/usr/src/uts/sun4u/io/
H A Dsbd.c82 static void sbd_exec_op(sbd_handle_t *hp);
83 static void sbd_dev_configure(sbd_handle_t *hp);
84 static int sbd_dev_release(sbd_handle_t *hp);
85 static int sbd_dev_unconfigure(sbd_handle_t *hp);
86 static void sbd_attach_cpu(sbd_handle_t *hp, sbderror_t *ep,
88 static void sbd_detach_cpu(sbd_handle_t *hp, sbderror_t *ep,
90 static int sbd_detach_mem(sbd_handle_t *hp, sbderror_t *ep, int unit);
91 static void sbd_cancel(sbd_handle_t *hp);
320 static void sbd_release_handle(sbd_handle_t *hp);
321 static int sbd_pre_op(sbd_handle_t *hp);
[all …]
/titanic_44/usr/src/cmd/mandoc/
H A Dtbl_term.c65 const struct tbl_head *hp; in term_tbl() local
128 for (hp = sp->head; hp; hp = hp->next) { in term_tbl()
141 if (NULL != hp->prev) in term_tbl()
142 tbl_vrule(tp, hp); in term_tbl()
144 col = &tp->tbl.cols[hp->ident]; in term_tbl()
198 tbl_rulewidth(struct termp *tp, const struct tbl_head *hp) in tbl_rulewidth() argument
202 width = tp->tbl.cols[hp->ident].width; in tbl_rulewidth()
205 if (hp->prev) in tbl_rulewidth()
206 width += 2 - hp->vert; in tbl_rulewidth()
221 const struct tbl_head *hp; in tbl_hrule() local
[all …]
/titanic_44/usr/src/uts/intel/ia32/os/
H A Dddi_i86.c151 ddi_acc_impl_t *hp; in impl_acc_hdl_alloc() local
159 if ((hp = kmem_zalloc(sizeof (ddi_acc_impl_t), sleepflag)) == NULL) in impl_acc_hdl_alloc()
161 if ((hp->ahi_err = (ndi_err_t *)kmem_zalloc( in impl_acc_hdl_alloc()
163 kmem_free(hp, sizeof (ddi_acc_impl_t)); in impl_acc_hdl_alloc()
168 kmem_free(hp->ahi_err, sizeof (ndi_err_t)); in impl_acc_hdl_alloc()
169 kmem_free(hp, sizeof (ddi_acc_impl_t)); in impl_acc_hdl_alloc()
172 hp->ahi_err->err_ontrap = otp; in impl_acc_hdl_alloc()
173 hp->ahi_common.ah_platform_private = (void *)hp; in impl_acc_hdl_alloc()
175 return ((ddi_acc_handle_t)hp); in impl_acc_hdl_alloc()
186 ddi_acc_impl_t *hp; in impl_acc_hdl_free() local
[all …]
/titanic_44/usr/src/lib/scsi/plugins/scsi/engines/uscsi/
H A Duscsi.c50 uscsi_open(libscsi_hdl_t *hp, const void *target) in uscsi_open() argument
55 if ((dp = libscsi_zalloc(hp, sizeof (struct uscsi_dev))) == NULL) in uscsi_open()
58 if ((dp->dev = libscsi_strdup(hp, target_name)) == NULL) { in uscsi_open()
59 libscsi_free(hp, dp); in uscsi_open()
64 (void) libscsi_error(hp, ESCSI_BADTARGET, "failed to open %s " in uscsi_open()
66 libscsi_free(hp, dp->dev); in uscsi_open()
67 libscsi_free(hp, dp); in uscsi_open()
75 uscsi_close(libscsi_hdl_t *hp, void *private) in uscsi_close() argument
85 libscsi_free(hp, dp->dev); in uscsi_close()
86 libscsi_free(hp, dp); in uscsi_close()
[all …]
/titanic_44/usr/src/uts/common/os/
H A Ddumpsubr.c560 helper_t *hp, *hpend; in dump_update_clevel() local
575 for (hp = old->helper; hp != hpend; hp++) { in dump_update_clevel()
576 if (hp->lzbuf != NULL) in dump_update_clevel()
577 kmem_free(hp->lzbuf, PAGESIZE); in dump_update_clevel()
578 if (hp->page != NULL) in dump_update_clevel()
579 kmem_free(hp->page, PAGESIZE); in dump_update_clevel()
652 for (hp = new->helper; hp != hpend; hp++) { in dump_update_clevel()
653 hp->tag = tag++; in dump_update_clevel()
654 if (hp < &new->helper[MINHELPERS]) { in dump_update_clevel()
655 hp->lzbuf = kmem_alloc(PAGESIZE, KM_SLEEP); in dump_update_clevel()
[all …]
/titanic_44/usr/src/cmd/mailx/
H A Dtty.c115 grabh(register struct header *hp, int gflags, int subjtop) in grabh() argument
132 hp->h_to = addto(NOSTR, readtty("To: ", hp->h_to)); in grabh()
133 if (hp->h_to != NOSTR) in grabh()
134 hp->h_seq++; in grabh()
137 hp->h_subject = readtty("Subject: ", hp->h_subject); in grabh()
138 if (hp->h_subject != NOSTR) in grabh()
139 hp->h_seq++; in grabh()
142 hp->h_cc = addto(NOSTR, readtty("Cc: ", hp->h_cc)); in grabh()
143 if (hp->h_cc != NOSTR) in grabh()
144 hp->h_seq++; in grabh()
[all …]

12345678910>>...18