/illumos-gate/usr/src/lib/librcm/ |
H A D | librcm.c | 55 rcm_handle_t *hd; in rcm_alloc_handle() local 69 if ((hd = calloc(1, sizeof (*hd))) == NULL) { in rcm_alloc_handle() 78 free(hd); in rcm_alloc_handle() 84 free(hd); in rcm_alloc_handle() 98 *hdp = hd; in rcm_alloc_handle() 106 if (hd == NULL) { in rcm_free_handle() 111 if (hd->modname) { in rcm_free_handle() 112 free(hd->modname); in rcm_free_handle() 115 free(hd); in rcm_free_handle() 1076 error = ops->librcm_regis(hd->modname, rsrcnames[0], hd->pid, in rcm_direct_call() [all …]
|
/illumos-gate/usr/src/lib/libmlrpc/common/ |
H A D | ndr_svc.c | 199 ndr_handle_t *hd; in ndr_hdalloc() local 235 ndr_handle_t *hd; in ndr_hdfree() local 244 hd = *pphd; in ndr_hdfree() 249 free(hd); in ndr_hdfree() 269 ndr_handle_t *hd; in ndr_hdlookup() local 275 while (hd) { in ndr_hdlookup() 280 return (hd); in ndr_hdlookup() 283 hd = hd->nh_next; in ndr_hdlookup() 303 hd = *pphd; in ndr_hdclose() 309 (*hd->nh_data_free)(hd->nh_data); in ndr_hdclose() [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/fp/ |
H A D | _D_cplx_div_rx.c | 101 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 | _D_cplx_div_ix.c | 101 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 | _Q_cplx_div_ix.c | 93 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.c | 93 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.c | 91 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 D | svcctl_svc.c | 152 ndr_handle_t *hd; in svcctl_hdlookup() local 164 return (hd); in svcctl_hdlookup() 175 ndr_handle_t *hd; in svcctl_hdfree() local 254 ndr_handle_t *hd; in svcctl_get_mgr_ctx() local 258 if (hd == NULL) in svcctl_get_mgr_ctx() 351 ndr_handle_t *hd; in svcctl_s_ControlService() local 357 if (hd == NULL) { in svcctl_s_ControlService() 416 ndr_handle_t *hd; in svcctl_s_DeleteService() local 419 if (hd == NULL) { in svcctl_s_DeleteService() 436 ndr_handle_t *hd; in svcctl_s_QueryServiceSecurity() local [all …]
|
H A D | eventlog_svc.c | 192 ndr_handle_t *hd; in logr_hdlookup() local 204 return (hd); in logr_hdlookup() 269 ndr_handle_t *hd; in logr_s_EventLogClose() local 276 logr_context_data_free(hd->nh_data); in logr_s_EventLogClose() 296 ndr_handle_t *hd; in logr_s_EventLogOpen() local 339 ndr_handle_t *hd; in logr_s_EventLogQueryCount() local 348 ctx = (logr_context_t *)hd->nh_data; in logr_s_EventLogQueryCount() 366 ndr_handle_t *hd; in logr_s_EventLogGetOldestRec() local 375 ctx = (logr_context_t *)hd->nh_data; in logr_s_EventLogGetOldestRec() 495 ndr_handle_t *hd; in logr_s_EventLogRead() local [all …]
|
H A D | samr_svc.c | 159 ndr_handle_t *hd; in samr_hdalloc() local 187 ndr_handle_t *hd; in samr_hdfree() local 190 free(hd->nh_data); in samr_hdfree() 202 ndr_handle_t *hd; in samr_hdlookup() local 214 return (hd); in samr_hdlookup() 224 ndr_handle_t *hd; in samr_hdlookup_any() local 232 return (hd); in samr_hdlookup_any() 500 ndr_handle_t *hd; in samr_s_QueryDomainInfo() local 618 ndr_handle_t *hd; in samr_s_LookupNames() local 702 ndr_handle_t *hd; in samr_s_OpenUser() local [all …]
|
H A D | winreg_svc.c | 360 ndr_handle_t *hd; in winreg_alloc_id() local 373 hd->nh_data_free = free; in winreg_alloc_id() 381 ndr_handle_t *hd; in winreg_dealloc_id() local 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 415 if (hd == NULL) { in winreg_s_CreateKey() 637 ndr_handle_t *hd; in winreg_s_EnumKey() local 644 name = hd->nh_data; in winreg_s_EnumKey() 816 ndr_handle_t *hd; in winreg_s_OpenKey() local [all …]
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | network_rcm.c | 194 net_register(rcm_handle_t *hd) in net_register() argument 196 update_cache(hd); in net_register() 227 net_unregister(rcm_handle_t *hd) in net_unregister() argument 231 assert(hd != NULL); in net_unregister() 373 assert(hd != NULL); in net_offline() 394 assert(hd != NULL); in net_online() 427 assert(hd != NULL); in net_getinfo() 501 assert(hd != NULL); in net_suspend() 526 assert(hd != NULL); in net_resume() 551 assert(hd != NULL); in net_remove() [all …]
|
H A D | vlan_rcm.c | 224 vlan_register(rcm_handle_t *hd) in vlan_register() argument 228 if (cache_update(hd) < 0) in vlan_register() 256 vlan_unregister(rcm_handle_t *hd) in vlan_unregister() argument 624 if (cache_update(hd) < 0) { in vlan_notify_event() 772 (void) cache_update(hd); in cache_lookup() 837 rcm_handle_t *hd; member 848 rcm_handle_t *hd = vlan_update_argp->hd; in vlan_update() local 945 vlan_update_all(rcm_handle_t *hd) in vlan_update_all() argument 952 arg.hd = hd; in vlan_update_all() 962 cache_update(rcm_handle_t *hd) in cache_update() argument [all …]
|
H A D | bridge_rcm.c | 201 bridge_register(rcm_handle_t *hd) in bridge_register() argument 207 if ((retv = cache_update(hd)) != RCM_SUCCESS) in bridge_register() 234 bridge_unregister(rcm_handle_t *hd) in bridge_unregister() argument 292 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in bridge_offline() 339 node = cache_lookup(hd, rsrc, CACHE_NO_REFRESH); in bridge_undo_offline() 389 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in bridge_get_info() 603 (void) cache_update(hd); in cache_lookup() 661 rcm_handle_t *hd; member 672 rcm_handle_t *hd = bua->hd; in bridge_update() local 738 cache_update(rcm_handle_t *hd) in cache_update() argument [all …]
|
H A D | ibpart_rcm.c | 224 ibpart_register(rcm_handle_t *hd) in ibpart_register() argument 228 if (cache_update(hd) < 0) in ibpart_register() 256 ibpart_unregister(rcm_handle_t *hd) in ibpart_unregister() argument 635 if (cache_update(hd) < 0) { in ibpart_notify_event() 788 (void) cache_update(hd); in cache_lookup() 853 rcm_handle_t *hd; member 864 rcm_handle_t *hd = ibpart_update_argp->hd; in ibpart_update() local 973 ibpart_update_all(rcm_handle_t *hd) in ibpart_update_all() argument 980 arg.hd = hd; in ibpart_update_all() 990 cache_update(rcm_handle_t *hd) in cache_update() argument [all …]
|
H A D | vnic_rcm.c | 224 vnic_register(rcm_handle_t *hd) in vnic_register() argument 228 if (cache_update(hd) < 0) in vnic_register() 256 vnic_unregister(rcm_handle_t *hd) in vnic_unregister() argument 627 if (cache_update(hd) < 0) { in vnic_notify_event() 775 (void) cache_update(hd); in cache_lookup() 840 rcm_handle_t *hd; member 851 rcm_handle_t *hd = vnic_update_argp->hd; in vnic_update() local 957 vnic_update_all(rcm_handle_t *hd) in vnic_update_all() argument 964 arg.hd = hd; in vnic_update_all() 974 cache_update(rcm_handle_t *hd) in cache_update() argument [all …]
|
H A D | aggr_rcm.c | 291 aggr_register(rcm_handle_t *hd) in aggr_register() argument 295 if (cache_update(hd) < 0) in aggr_register() 323 aggr_unregister(rcm_handle_t *hd) in aggr_unregister() argument 719 if (cache_update(hd) < 0) { in aggr_notify_event() 847 (void) cache_update(hd); in cache_lookup() 967 rcm_handle_t *hd; member 978 rcm_handle_t *hd = aggr_update_argp->hd; in aggr_update() local 1050 aggr_update_all(rcm_handle_t *hd) in aggr_update_all() argument 1057 arg.hd = hd; in aggr_update_all() 1067 cache_update(rcm_handle_t *hd) in cache_update() argument [all …]
|
H A D | filesys_rcm.c | 191 mnt_register(rcm_handle_t *hd) in mnt_register() argument 193 assert(hd != NULL); in mnt_register() 223 mnt_unregister(rcm_handle_t *hd) in mnt_unregister() argument 228 assert(hd != NULL); in mnt_unregister() 271 assert(hd != NULL); in mnt_offline() 343 assert(hd != NULL); in mnt_online() 366 assert(hd != NULL); in mnt_getinfo() 420 assert(hd != NULL); in mnt_suspend() 464 assert(hd != NULL); in mnt_resume() 656 assert(hd != NULL); in mnt_remove() [all …]
|
H A D | ip_rcm.c | 314 assert(hd != NULL); in ip_register() 316 if (update_cache(hd) < 0) in ip_register() 351 assert(hd != NULL); in ip_unregister() 405 assert(hd != NULL); in ip_offline() 547 assert(hd != NULL); in ip_undo_offline() 608 assert(hd != NULL); in ip_get_info() 661 assert(hd != NULL); in ip_suspend() 681 assert(hd != NULL); in ip_resume() 703 assert(hd != NULL); in ip_remove() 745 assert(hd != NULL); in ip_notify_event() [all …]
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efipart.c | 598 parent = hd->pd_parent; in efipart_hdinfo_add_node() 609 hd->pd_unit = 0; in efipart_hdinfo_add_node() 635 hd->pd_unit = 0; in efipart_hdinfo_add_filepath() 641 free(hd); in efipart_hdinfo_add_filepath() 664 free(hd); in efipart_hdinfo_add_filepath() 677 free(hd); in efipart_hdinfo_add_filepath() 681 hd->pd_parent = last; in efipart_hdinfo_add_filepath() 693 if (hd == NULL) in efipart_hdinfo_add() 696 parent = hd->pd_parent; in efipart_hdinfo_add() 730 hd->pd_unit = 0; in efipart_hdinfo_add() [all …]
|
H A D | efizfs.c | 95 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.c | 266 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 D | ap_rcm.c | 67 rcm_handle_t *hd; member 479 if (rcm->hd) in ap_rcm_fini() 480 (*rcm->free_handle)(rcm->hd); in ap_rcm_fini() 795 rv = (*rcm->notify_capacity_change)(hd, "SUNW_cpu", in ap_rcm_cap_cpu() 1131 *rv = ap_rcm_cap_cpu(a, rcm, hd, flags, rinfo, in ap_rcm_notify_cap() 1139 *rv = ap_rcm_cap_mem(a, rcm, hd, flags, rinfo, in ap_rcm_notify_cap() 1162 rcm_handle_t *hd; in ap_rcm_ctl() local 1173 hd = rcm->hd; in ap_rcm_ctl() 1274 rv = (*rcm->notify_online_list)(hd, rlist, in ap_rcm_ctl() 1277 rv = (*rcm->notify_remove_list)(hd, rlist, in ap_rcm_ctl() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_nicmon.c | 122 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()
|
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/ |
H A D | f_format.c | 72 int32_t cyl, hd; in format_floppy() local 414 for (hd = start_head; hd < end_head; hd++) { in format_floppy() 418 *p++ = (uchar_t)hd; in format_floppy() 426 fdr_form.fdr_cmd[1] = hd << 2; in format_floppy() 439 cyl, hd); in format_floppy() 463 cyl, hd); in format_floppy()
|