Home
last modified time | relevance | path

Searched refs:hd (Results 1 – 25 of 74) sorted by relevance

123

/titanic_50/usr/src/lib/librcm/
H A Dlibrcm.c55 rcm_handle_t *hd; in rcm_alloc_handle() local
69 if ((hd = calloc(1, sizeof (*hd))) == NULL) { in rcm_alloc_handle()
77 if ((hd->modname = strdup(namebuf)) == NULL) { in rcm_alloc_handle()
78 free(hd); in rcm_alloc_handle()
83 free(hd->modname); in rcm_alloc_handle()
84 free(hd); in rcm_alloc_handle()
93 hd->pid = (pid_t)0; in rcm_alloc_handle()
95 hd->pid = (pid_t)getpid(); in rcm_alloc_handle()
98 *hdp = hd; in rcm_alloc_handle()
104 rcm_free_handle(rcm_handle_t *hd) in rcm_free_handle() argument
[all …]
/titanic_50/usr/src/lib/smbsrv/libmlrpc/common/
H A Dndr_svc.c200 ndr_handle_t *hd; in ndr_hdalloc() local
203 if ((hd = malloc(sizeof (ndr_handle_t))) == NULL) in ndr_hdalloc()
215 bcopy(&id, &hd->nh_id, sizeof (ndr_hdid_t)); in ndr_hdalloc()
216 hd->nh_pipe = xa->pipe; in ndr_hdalloc()
217 hd->nh_svc = xa->binding->service; in ndr_hdalloc()
218 hd->nh_data = (void *)data; in ndr_hdalloc()
219 hd->nh_data_free = NULL; in ndr_hdalloc()
222 hd->nh_next = ndr_handle_list; in ndr_hdalloc()
223 ndr_handle_list = hd; in ndr_hdalloc()
226 return (&hd->nh_id); in ndr_hdalloc()
[all …]
/titanic_50/usr/src/tools/ctf/cvt/
H A Dhash.c151 hash_find_list_cb(void *node, struct hash_data *hd) in hash_find_list_cb() argument
156 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_list_cb()
157 if ((cbrc = hd->hd_fun(node, hd->hd_private)) < 0) in hash_find_list_cb()
170 struct hash_data hd; in hash_find_iter() local
172 hd.hd_hash = hash; in hash_find_iter()
173 hd.hd_fun = fun; in hash_find_iter()
174 hd.hd_key = key; in hash_find_iter()
175 hd.hd_private = private; in hash_find_iter()
178 &hd)); in hash_find_iter()
183 hash_find_first_cb(void *node, struct hash_data *hd) in hash_find_first_cb() argument
[all …]
/titanic_50/usr/src/lib/libc/sparc/fp/
H A D_D_cplx_div_ix.c103 int hb, hc, hd, hw, i, j; in _D_cplx_div_ix() local
120 hd = dd.i[0] & ~0x80000000; in _D_cplx_div_ix()
121 hw = (hc > hd)? hc : hd; in _D_cplx_div_ix()
148 hd = dd.i[0] & ~0x80000000; in _D_cplx_div_ix()
149 hw = (hc > hd)? hc : hd; in _D_cplx_div_ix()
187 hd = (hd - 0x38000000) >> 28; in _D_cplx_div_ix()
188 d = (d * scl[hd + 4].d) * b; in _D_cplx_div_ix()
189 hd += hb; in _D_cplx_div_ix()
201 if (hd < 0) { in _D_cplx_div_ix()
202 hd = -hd; in _D_cplx_div_ix()
[all …]
H A D_D_cplx_div_rx.c103 int ha, hc, hd, hw, i, j; in _D_cplx_div_rx() local
120 hd = dd.i[0] & ~0x80000000; in _D_cplx_div_rx()
121 hw = (hc > hd)? hc : hd; in _D_cplx_div_rx()
148 hd = dd.i[0] & ~0x80000000; in _D_cplx_div_rx()
149 hw = (hc > hd)? hc : hd; in _D_cplx_div_rx()
187 hd = (hd - 0x38000000) >> 28; in _D_cplx_div_rx()
188 d = -(d * scl[hd + 4].d) * a; in _D_cplx_div_rx()
189 hd += ha; in _D_cplx_div_rx()
201 if (hd < 0) { in _D_cplx_div_rx()
202 hd = -hd; in _D_cplx_div_rx()
[all …]
H A D_Q_cplx_div_ix.c95 int hb, hc, hd, hw, i, j; local
114 hd = dd.i[0] & ~0x80000000;
115 hw = (hc > hd)? hc : hd;
171 hd = (hd - 0x3fff0000) >> 16;
172 _Q_scl(&d, -hd);
174 hd += hb;
178 _Q_scle(&d, hd);
H A D_Q_cplx_div_rx.c95 int ha, hc, hd, hw, i, j; local
114 hd = dd.i[0] & ~0x80000000;
115 hw = (hc > hd)? hc : hd;
171 hd = (hd - 0x3fff0000) >> 16;
172 _Q_scl(&d, -hd);
174 hd += ha;
178 _Q_scle(&d, hd);
H A D_D_cplx_div.c93 int ha, hb, hc, hd, hz, hw, hs, i, j; in _D_cplx_div() local
116 hd = dd.i[0] & ~0x80000000; in _D_cplx_div()
117 hw = (hc > hd)? hc : hd; in _D_cplx_div()
153 hd = dd.i[0] & ~0x80000000; in _D_cplx_div()
154 hw = (hc > hd)? hc : hd; in _D_cplx_div()
H A D_Q_cplx_div.c100 int ha, hb, hc, hd, hz, hw, hs, i, j; local
123 hd = dd.i[0] & ~0x80000000;
124 hw = (hc > hd)? hc : hd;
/titanic_50/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_svc.c152 ndr_handle_t *hd; in svcctl_hdlookup() local
155 if ((hd = ndr_hdlookup(mxa, id)) == NULL) in svcctl_hdlookup()
158 if ((ctx = (svcctl_context_t *)hd->nh_data) == NULL) in svcctl_hdlookup()
164 return (hd); in svcctl_hdlookup()
175 ndr_handle_t *hd; in svcctl_hdfree() local
180 if ((hd = ndr_hdlookup(mxa, id)) != NULL) { in svcctl_hdfree()
181 ctx = (svcctl_context_t *)hd->nh_data; in svcctl_hdfree()
254 ndr_handle_t *hd; in svcctl_get_mgr_ctx() local
257 hd = svcctl_hdlookup(mxa, mgr_id, SVCCTL_MANAGER_CONTEXT); in svcctl_get_mgr_ctx()
258 if (hd == NULL) in svcctl_get_mgr_ctx()
[all …]
H A Deventlog_svc.c191 ndr_handle_t *hd; in logr_hdlookup() local
194 if ((hd = ndr_hdlookup(mxa, id)) == NULL) in logr_hdlookup()
197 if ((ctx = (logr_context_t *)hd->nh_data) == NULL) in logr_hdlookup()
203 return (hd); in logr_hdlookup()
268 ndr_handle_t *hd; in logr_s_EventLogClose() local
270 if ((hd = ndr_hdlookup(mxa, id)) == NULL) { in logr_s_EventLogClose()
275 logr_context_data_free(hd->nh_data); in logr_s_EventLogClose()
295 ndr_handle_t *hd; in logr_s_EventLogOpen() local
314 if (id && ((hd = logr_hdlookup(mxa, id)) != NULL)) { in logr_s_EventLogOpen()
315 hd->nh_data_free = logr_context_data_free; in logr_s_EventLogOpen()
[all …]
H A Dsamr_svc.c158 ndr_handle_t *hd; in samr_hdalloc() local
174 if ((hd = ndr_hdlookup(mxa, id)) != NULL) in samr_hdalloc()
175 hd->nh_data_free = free; in samr_hdalloc()
186 ndr_handle_t *hd; in samr_hdfree() local
188 if ((hd = ndr_hdlookup(mxa, id)) != NULL) { in samr_hdfree()
189 free(hd->nh_data); in samr_hdfree()
190 hd->nh_data = NULL; in samr_hdfree()
201 ndr_handle_t *hd; in samr_hdlookup() local
204 if ((hd = ndr_hdlookup(mxa, id)) == NULL) in samr_hdlookup()
207 if ((data = (samr_keydata_t *)hd->nh_data) == NULL) in samr_hdlookup()
[all …]
H A Dwinreg_svc.c359 ndr_handle_t *hd; in winreg_alloc_id() local
371 if ((hd = ndr_hdlookup(mxa, id)) != NULL) in winreg_alloc_id()
372 hd->nh_data_free = free; in winreg_alloc_id()
380 ndr_handle_t *hd; in winreg_dealloc_id() local
382 if ((hd = ndr_hdlookup(mxa, id)) != NULL) { in winreg_dealloc_id()
383 free(hd->nh_data); in winreg_dealloc_id()
384 hd->nh_data = NULL; in winreg_dealloc_id()
398 ndr_handle_t *hd; in winreg_s_CreateKey() local
413 hd = ndr_hdlookup(mxa, id); in winreg_s_CreateKey()
414 if (hd == NULL) { in winreg_s_CreateKey()
[all …]
/titanic_50/usr/src/cmd/rcm_daemon/common/
H A Dnetwork_rcm.c100 static void update_cache(rcm_handle_t *hd);
194 net_register(rcm_handle_t *hd) in net_register() argument
196 update_cache(hd); in net_register()
202 if (rcm_register_event(hd, RCM_RESOURCE_PHYSLINK_NEW, 0, NULL) in net_register()
227 net_unregister(rcm_handle_t *hd) in net_unregister() argument
231 assert(hd != NULL); in net_unregister()
237 (void) rcm_unregister_interest(hd, probe->resource, 0); in net_unregister()
248 if (rcm_unregister_event(hd, RCM_RESOURCE_PHYSLINK_NEW, 0) in net_unregister()
270 net_passthru(rcm_handle_t *hd, int op, const char *rsrc, uint_t flag, in net_passthru() argument
317 rv = rcm_request_suspend(hd, exported, flag, in net_passthru()
[all …]
H A Dvlan_rcm.c224 vlan_register(rcm_handle_t *hd) in vlan_register() argument
228 if (cache_update(hd) < 0) in vlan_register()
236 if (rcm_register_event(hd, RCM_RESOURCE_LINK_NEW, 0, NULL) in vlan_register()
256 vlan_unregister(rcm_handle_t *hd) in vlan_unregister() argument
266 if (rcm_unregister_interest(hd, node->vc_resource, 0) in vlan_unregister()
284 if (rcm_unregister_event(hd, RCM_RESOURCE_LINK_NEW, 0) in vlan_unregister()
304 vlan_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in vlan_offline() argument
313 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in vlan_offline()
325 if (vlan_consumer_offline(hd, node, errorp, flags, info) == in vlan_offline()
362 vlan_undo_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in vlan_undo_offline() argument
[all …]
H A Dbridge_rcm.c201 bridge_register(rcm_handle_t *hd) in bridge_register() argument
207 if ((retv = cache_update(hd)) != RCM_SUCCESS) in bridge_register()
215 retv = rcm_register_event(hd, RCM_RESOURCE_LINK_NEW, 0, NULL); in bridge_register()
234 bridge_unregister(rcm_handle_t *hd) in bridge_unregister() argument
245 retv = rcm_unregister_interest(hd, node->vc_resource, 0); in bridge_unregister()
263 retv = rcm_unregister_event(hd, RCM_RESOURCE_LINK_NEW, 0); in bridge_unregister()
282 bridge_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in bridge_offline() argument
292 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in bridge_offline()
329 bridge_undo_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in bridge_undo_offline() argument
339 node = cache_lookup(hd, rsrc, CACHE_NO_REFRESH); in bridge_undo_offline()
[all …]
H A Dibpart_rcm.c224 ibpart_register(rcm_handle_t *hd) in ibpart_register() argument
228 if (cache_update(hd) < 0) in ibpart_register()
236 if (rcm_register_event(hd, RCM_RESOURCE_LINK_NEW, 0, NULL) in ibpart_register()
256 ibpart_unregister(rcm_handle_t *hd) in ibpart_unregister() argument
266 if (rcm_unregister_interest(hd, node->pc_resource, 0) in ibpart_unregister()
284 if (rcm_unregister_event(hd, RCM_RESOURCE_LINK_NEW, 0) in ibpart_unregister()
304 ibpart_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in ibpart_offline() argument
313 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in ibpart_offline()
325 if (ibpart_consumer_offline(hd, node, errorp, flags, info) == in ibpart_offline()
362 ibpart_undo_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in ibpart_undo_offline() argument
[all …]
H A Dvnic_rcm.c224 vnic_register(rcm_handle_t *hd) in vnic_register() argument
228 if (cache_update(hd) < 0) in vnic_register()
236 if (rcm_register_event(hd, RCM_RESOURCE_LINK_NEW, 0, NULL) in vnic_register()
256 vnic_unregister(rcm_handle_t *hd) in vnic_unregister() argument
266 if (rcm_unregister_interest(hd, node->vc_resource, 0) in vnic_unregister()
284 if (rcm_unregister_event(hd, RCM_RESOURCE_LINK_NEW, 0) in vnic_unregister()
304 vnic_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in vnic_offline() argument
313 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in vnic_offline()
325 if (vnic_consumer_offline(hd, node, errorp, flags, info) == in vnic_offline()
362 vnic_undo_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in vnic_undo_offline() argument
[all …]
H A Daggr_rcm.c291 aggr_register(rcm_handle_t *hd) in aggr_register() argument
295 if (cache_update(hd) < 0) in aggr_register()
303 if (rcm_register_event(hd, RCM_RESOURCE_LINK_NEW, 0, NULL) in aggr_register()
323 aggr_unregister(rcm_handle_t *hd) in aggr_unregister() argument
333 if (rcm_unregister_interest(hd, node->vc_resource, 0) in aggr_unregister()
354 if (rcm_unregister_event(hd, RCM_RESOURCE_LINK_NEW, 0) in aggr_unregister()
374 aggr_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in aggr_offline() argument
383 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in aggr_offline()
397 if (aggr_consumer_offline(hd, node, errorp, flags, in aggr_offline()
433 aggr_undo_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in aggr_undo_offline() argument
[all …]
H A Dfilesys_rcm.c193 mnt_register(rcm_handle_t *hd) in mnt_register() argument
195 assert(hd != NULL); in mnt_register()
202 if (cache_sync(hd, &mnt_cache) < 0) { in mnt_register()
225 mnt_unregister(rcm_handle_t *hd) in mnt_unregister() argument
230 assert(hd != NULL); in mnt_unregister()
241 unregister_rsrc(hd, entry->special); in mnt_unregister()
265 mnt_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in mnt_offline() argument
273 assert(hd != NULL); in mnt_offline()
342 mnt_online(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flag, char **errorp, in mnt_online() argument
345 assert(hd != NULL); in mnt_online()
[all …]
H A Dip_rcm.c308 ip_register(rcm_handle_t *hd) in ip_register() argument
313 assert(hd != NULL); in ip_register()
315 if (update_cache(hd) < 0) in ip_register()
323 if (rcm_register_event(hd, RCM_RESOURCE_LINK_NEW, 0, NULL) in ip_register()
343 ip_unregister(rcm_handle_t *hd) in ip_unregister() argument
350 assert(hd != NULL); in ip_unregister()
356 if (rcm_unregister_interest(hd, probe->ip_resource, 0) in ip_unregister()
372 if (rcm_unregister_event(hd, RCM_RESOURCE_LINK_NEW, 0) in ip_unregister()
392 ip_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in ip_offline() argument
404 assert(hd != NULL); in ip_offline()
[all …]
/titanic_50/usr/src/lib/libc/port/fp/
H A D__flt_decim.c268 int i, is, esum, eround, hd; in __fast_double_to_decimal() local
322 hd = *(1+(int *)dd); in __fast_double_to_decimal()
324 hd = *(int *)dd; in __fast_double_to_decimal()
326 hd = (hd >> 20) & 0x7ff; in __fast_double_to_decimal()
327 if (hd >= 0x400) { in __fast_double_to_decimal()
328 if (hd > 0x4e0) in __fast_double_to_decimal()
331 i = TBL_DECADE_MAX - ((0x4e0 - hd) >> 2); in __fast_double_to_decimal()
333 if (hd < 0x358) in __fast_double_to_decimal()
336 i = TBL_DECADE_OFFSET - ((0x3ff - hd) >> 2); in __fast_double_to_decimal()
/titanic_50/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_rcm.c67 rcm_handle_t *hd; member
401 (*rcm->alloc_handle)(NULL, RCM_NOPID, NULL, &rcm->hd) in ap_rcm_init()
479 if (rcm->hd) in ap_rcm_fini()
480 (*rcm->free_handle)(rcm->hd); in ap_rcm_fini()
645 ap_rcm_cap_cpu(apd_t *a, rcmd_t *rcm, rcm_handle_t *hd, uint_t flags, in ap_rcm_cap_cpu() argument
792 rv = (*rcm->request_capacity_change)(hd, "SUNW_cpu", in ap_rcm_cap_cpu()
795 rv = (*rcm->notify_capacity_change)(hd, "SUNW_cpu", in ap_rcm_cap_cpu()
807 ap_rcm_cap_mem(apd_t *a, rcmd_t *rcm, rcm_handle_t *hd, uint_t flags, in ap_rcm_cap_mem() argument
868 rv = (*rcm->request_capacity_change)(hd, "SUNW_memory", in ap_rcm_cap_mem()
871 rv = (*rcm->notify_capacity_change)(hd, "SUNW_memory", in ap_rcm_cap_mem()
[all …]
/titanic_50/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_nicmon.c122 smb_scfhandle_t *hd; in smbd_nicmon_run_check() local
128 if ((hd = smb_smf_scf_init(SMBD_FMRI_PREFIX)) == NULL) { in smbd_nicmon_run_check()
134 rc = smb_smf_create_service_pgroup(hd, SMBD_PG_NAME); in smbd_nicmon_run_check()
136 smb_smf_scf_fini(hd); in smbd_nicmon_run_check()
142 rc = smb_smf_get_boolean_property(hd, SMBD_NICMON_ENABLE, &status); in smbd_nicmon_run_check()
146 smb_smf_scf_fini(hd); in smbd_nicmon_run_check()
/titanic_50/usr/src/lib/libsmedia/plugins/floppy/common/
H A Df_format.c74 int32_t cyl, hd; in format_floppy() local
416 for (hd = start_head; hd < end_head; hd++) { in format_floppy()
420 *p++ = (uchar_t)hd; in format_floppy()
428 fdr_form.fdr_cmd[1] = hd << 2; in format_floppy()
441 cyl, hd); in format_floppy()
465 cyl, hd); in format_floppy()

123