Home
last modified time | relevance | path

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

123

/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libmlrpc/common/
H A Dndr_svc.c199 ndr_handle_t *hd; in ndr_hdalloc() local
202 if ((hd = malloc(sizeof (ndr_handle_t))) == NULL) in ndr_hdalloc()
214 bcopy(&id, &hd->nh_id, sizeof (ndr_hdid_t)); in ndr_hdalloc()
215 hd->nh_pipe = xa->pipe; in ndr_hdalloc()
216 hd->nh_svc = xa->binding->service; in ndr_hdalloc()
217 hd->nh_data = (void *)data; in ndr_hdalloc()
218 hd->nh_data_free = NULL; in ndr_hdalloc()
221 hd->nh_next = ndr_handle_list; in ndr_hdalloc()
222 ndr_handle_list = hd; in ndr_hdalloc()
225 return (&hd->nh_id); in ndr_hdalloc()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/fp/
H A D_D_cplx_div_ix.c101 int hb, hc, hd, hw, i, j; in _D_cplx_div_ix() local
118 hd = dd.i[0] & ~0x80000000; in _D_cplx_div_ix()
119 hw = (hc > hd)? hc : hd; in _D_cplx_div_ix()
146 hd = dd.i[0] & ~0x80000000; in _D_cplx_div_ix()
147 hw = (hc > hd)? hc : hd; in _D_cplx_div_ix()
185 hd = (hd - 0x38000000) >> 28; in _D_cplx_div_ix()
186 d = (d * scl[hd + 4].d) * b; in _D_cplx_div_ix()
187 hd += hb; in _D_cplx_div_ix()
199 if (hd < 0) { in _D_cplx_div_ix()
200 hd = -hd; in _D_cplx_div_ix()
[all …]
H A D_D_cplx_div_rx.c101 int ha, hc, hd, hw, i, j; in _D_cplx_div_rx() local
118 hd = dd.i[0] & ~0x80000000; in _D_cplx_div_rx()
119 hw = (hc > hd)? hc : hd; in _D_cplx_div_rx()
146 hd = dd.i[0] & ~0x80000000; in _D_cplx_div_rx()
147 hw = (hc > hd)? hc : hd; in _D_cplx_div_rx()
185 hd = (hd - 0x38000000) >> 28; in _D_cplx_div_rx()
186 d = -(d * scl[hd + 4].d) * a; in _D_cplx_div_rx()
187 hd += ha; in _D_cplx_div_rx()
199 if (hd < 0) { in _D_cplx_div_rx()
200 hd = -hd; in _D_cplx_div_rx()
[all …]
H A D_Q_cplx_div_ix.c93 int hb, hc, hd, hw, i, j; local
112 hd = dd.i[0] & ~0x80000000;
113 hw = (hc > hd)? hc : hd;
169 hd = (hd - 0x3fff0000) >> 16;
170 _Q_scl(&d, -hd);
172 hd += hb;
176 _Q_scle(&d, hd);
H A D_Q_cplx_div_rx.c93 int ha, hc, hd, hw, i, j; local
112 hd = dd.i[0] & ~0x80000000;
113 hw = (hc > hd)? hc : hd;
169 hd = (hd - 0x3fff0000) >> 16;
170 _Q_scl(&d, -hd);
172 hd += ha;
176 _Q_scle(&d, hd);
H A D_D_cplx_div.c91 int ha, hb, hc, hd, hz, hw, hs, i, j; in _D_cplx_div() local
114 hd = dd.i[0] & ~0x80000000; in _D_cplx_div()
115 hw = (hc > hd)? hc : hd; in _D_cplx_div()
151 hd = dd.i[0] & ~0x80000000; in _D_cplx_div()
152 hw = (hc > hd)? hc : hd; in _D_cplx_div()
/illumos-gate/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.c192 ndr_handle_t *hd; in logr_hdlookup() local
195 if ((hd = ndr_hdlookup(mxa, id)) == NULL) in logr_hdlookup()
198 if ((ctx = (logr_context_t *)hd->nh_data) == NULL) in logr_hdlookup()
204 return (hd); in logr_hdlookup()
269 ndr_handle_t *hd; in logr_s_EventLogClose() local
271 if ((hd = ndr_hdlookup(mxa, id)) == NULL) { in logr_s_EventLogClose()
276 logr_context_data_free(hd->nh_data); in logr_s_EventLogClose()
296 ndr_handle_t *hd; in logr_s_EventLogOpen() local
315 if (id && ((hd = logr_hdlookup(mxa, id)) != NULL)) { in logr_s_EventLogOpen()
316 hd->nh_data_free = logr_context_data_free; in logr_s_EventLogOpen()
[all …]
H A Dsamr_svc.c159 ndr_handle_t *hd; in samr_hdalloc() local
175 if ((hd = ndr_hdlookup(mxa, id)) != NULL) in samr_hdalloc()
176 hd->nh_data_free = free; in samr_hdalloc()
187 ndr_handle_t *hd; in samr_hdfree() local
189 if ((hd = ndr_hdlookup(mxa, id)) != NULL) { in samr_hdfree()
190 free(hd->nh_data); in samr_hdfree()
191 hd->nh_data = NULL; in samr_hdfree()
202 ndr_handle_t *hd; in samr_hdlookup() local
205 if ((hd = ndr_hdlookup(mxa, id)) == NULL) in samr_hdlookup()
208 if ((data = (samr_keydata_t *)hd->nh_data) == NULL) in samr_hdlookup()
[all …]
H A Dwinreg_svc.c360 ndr_handle_t *hd; in winreg_alloc_id() local
372 if ((hd = ndr_hdlookup(mxa, id)) != NULL) in winreg_alloc_id()
373 hd->nh_data_free = free; in winreg_alloc_id()
381 ndr_handle_t *hd; in winreg_dealloc_id() local
383 if ((hd = ndr_hdlookup(mxa, id)) != NULL) { in winreg_dealloc_id()
384 free(hd->nh_data); in winreg_dealloc_id()
385 hd->nh_data = NULL; in winreg_dealloc_id()
399 ndr_handle_t *hd; in winreg_s_CreateKey() local
414 hd = ndr_hdlookup(mxa, id); in winreg_s_CreateKey()
415 if (hd == NULL) { in winreg_s_CreateKey()
[all …]
/illumos-gate/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 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 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 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.c191 mnt_register(rcm_handle_t *hd) in mnt_register() argument
193 assert(hd != NULL); in mnt_register()
200 if (cache_sync(hd, &mnt_cache) < 0) { in mnt_register()
223 mnt_unregister(rcm_handle_t *hd) in mnt_unregister() argument
228 assert(hd != NULL); in mnt_unregister()
239 unregister_rsrc(hd, entry->special); in mnt_unregister()
263 mnt_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in mnt_offline() argument
271 assert(hd != NULL); in mnt_offline()
340 mnt_online(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flag, char **errorp, in mnt_online() argument
343 assert(hd != NULL); in mnt_online()
[all …]
H A Dip_rcm.c309 ip_register(rcm_handle_t *hd) in ip_register() argument
314 assert(hd != NULL); in ip_register()
316 if (update_cache(hd) < 0) in ip_register()
324 if (rcm_register_event(hd, RCM_RESOURCE_LINK_NEW, 0, NULL) in ip_register()
344 ip_unregister(rcm_handle_t *hd) in ip_unregister() argument
351 assert(hd != NULL); in ip_unregister()
357 if (rcm_unregister_interest(hd, probe->ip_resource, 0) in ip_unregister()
373 if (rcm_unregister_event(hd, RCM_RESOURCE_LINK_NEW, 0) in ip_unregister()
393 ip_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in ip_offline() argument
405 assert(hd != NULL); in ip_offline()
[all …]
/illumos-gate/usr/src/boot/efi/libefi/
H A Defipart.c591 efipart_hdinfo_add_node(pdinfo_t *hd, EFI_DEVICE_PATH *node) in efipart_hdinfo_add_node() argument
598 parent = hd->pd_parent; in efipart_hdinfo_add_node()
607 hd->pd_unit = ptr->pd_unit + 1; in efipart_hdinfo_add_node()
609 hd->pd_unit = 0; in efipart_hdinfo_add_node()
611 hd->pd_unit = ((HARDDRIVE_DEVICE_PATH *)node)->PartitionNumber; in efipart_hdinfo_add_node()
614 hd->pd_devsw = &efipart_hddev; in efipart_hdinfo_add_node()
615 STAILQ_INSERT_TAIL(&parent->pd_part, hd, pd_link); in efipart_hdinfo_add_node()
625 efipart_hdinfo_add_filepath(pdinfo_t *hd, FILEPATH_DEVICE_PATH *node) in efipart_hdinfo_add_filepath() argument
633 hd->pd_unit = last->pd_unit + 1; in efipart_hdinfo_add_filepath()
635 hd->pd_unit = 0; in efipart_hdinfo_add_filepath()
[all …]
H A Defizfs.c95 pdinfo_t *hd, *pd = NULL; in efi_zfs_probe() local
108 STAILQ_FOREACH(hd, hdi, pd_link) { in efi_zfs_probe()
109 STAILQ_FOREACH(pd, &hd->pd_part, pd_link) { in efi_zfs_probe()
112 efipart_hddev.dv_name, hd->pd_unit, pd->pd_unit); in efi_zfs_probe()
/illumos-gate/usr/src/lib/libc/port/fp/
H A D__flt_decim.c266 int i, is, esum, eround, hd; in __fast_double_to_decimal() local
320 hd = *(1+(int *)dd); in __fast_double_to_decimal()
322 hd = *(int *)dd; in __fast_double_to_decimal()
324 hd = (hd >> 20) & 0x7ff; in __fast_double_to_decimal()
325 if (hd >= 0x400) { in __fast_double_to_decimal()
326 if (hd > 0x4e0) in __fast_double_to_decimal()
329 i = TBL_DECADE_MAX - ((0x4e0 - hd) >> 2); in __fast_double_to_decimal()
331 if (hd < 0x358) in __fast_double_to_decimal()
334 i = TBL_DECADE_OFFSET - ((0x3ff - hd) >> 2); in __fast_double_to_decimal()
/illumos-gate/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 …]
/illumos-gate/usr/src/test/os-tests/tests/hexdump/
H A Dhexdump_basic.c196 hexdump_t hd; in run() local
200 hexdump_init(&hd); in run()
202 hexdump_set_width(&hd, t->width); in run()
204 hexdump_set_grouping(&hd, t->grouping); in run()
206 hexdump_set_addr(&hd, t->addr); in run()
208 hexdump_set_indent(&hd, t->indent); in run()
210 hexdump_set_marker(&hd, t->marker); in run()
212 VERIFY0(hexdumph(&hd, data, len, t->flags, cb, (void *)i)); in run()
214 hexdump_fini(&hd); in run()
/illumos-gate/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()

123