/illumos-gate/usr/src/uts/i86pc/cpu/amd_opteron/ |
H A D | ao_main.c | 57 ao_ms_init(cmi_hdl_t hdl, void **datap) in ao_ms_init() argument 59 uint_t chipid = cmi_hdl_chipid(hdl); in ao_ms_init() 64 if (ao_ms_support_disable || cmi_hdl_model(hdl) >= ao_model_limit) in ao_ms_init() 70 if (cmi_hdl_rdmsr(hdl, IA32_MSR_MCG_CAP, &cap) != CMI_SUCCESS) in ao_ms_init() 79 "this CPU", chipid, cmi_hdl_coreid(hdl), in ao_ms_init() 86 cmi_hdl_hold(hdl); /* release in fini */ in ao_ms_init() 87 ao->ao_ms_hdl = hdl; in ao_ms_init() 97 sp->aos_chiprev = cmi_hdl_chiprev(hdl); in ao_ms_init() 113 ao_ms_post_mpstartup(cmi_hdl_t hdl) in ao_ms_post_mpstartup() argument
|
/illumos-gate/usr/src/uts/intel/io/coretemp/ |
H A D | coretemp.c | 137 id_t cpu = cmi_hdl_logical_id(hdl); in coretemp_rdmsr() 221 e = coretemp_rdmsr(ct, hdl, MSR_TEMPERATURE_TARGET, &val); in coretemp_calculate_tjmax() 273 cmi_hdl_t hdl; in coretemp_read() local 280 ret = coretemp_update(ct, sensor, hdl); in coretemp_read() 281 cmi_hdl_rele(hdl); in coretemp_read() 359 sensor->cs_class = cmi_hdl_class(hdl); in coretemp_create_sensor() 360 sensor->cs_chip = cmi_hdl_chipid(hdl); in coretemp_create_sensor() 361 sensor->cs_core = cmi_hdl_coreid(hdl); in coretemp_create_sensor() 413 if (cmi_hdl_strandid(hdl) != 0) { in coretemp_walk() 420 cmi_hdl_coreid(hdl), err); in coretemp_walk() [all …]
|
/illumos-gate/usr/src/cmd/fwflash/plugins/vendor/ |
H A D | sd-GENERIC.c | 56 libscsi_hdl_t *hdl = NULL; in vendorvrfy() local 66 if ((hdl = libscsi_init(LIBSCSI_VERSION, &serr)) == NULL) { in vendorvrfy() 73 if ((targ = libscsi_open(hdl, NULL, dvp->access_devname)) == in vendorvrfy() 81 if ((act = libscsi_action_alloc(hdl, SPC3_CMD_READ_BUFFER, in vendorvrfy() 84 verifier->vendor, libscsi_errmsg(hdl)); in vendorvrfy() 107 libscsi_errmsg(hdl)); in vendorvrfy() 145 libscsi_close(hdl, targ); in vendorvrfy() 146 if (hdl != NULL) in vendorvrfy() 147 libscsi_fini(hdl); in vendorvrfy()
|
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
H A D | cma_cpu_arch.c | 40 cma_cpu_blacklist(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, in cma_cpu_blacklist() argument 61 fmd_hdl_debug(hdl, "failed to get the fault class name\n"); in cma_cpu_blacklist() 70 (fmribuf = fmd_hdl_alloc(hdl, fmrisz, FMD_SLEEP)) == NULL) { in cma_cpu_blacklist() 77 fmd_hdl_free(hdl, fmribuf, fmrisz); in cma_cpu_blacklist() 89 fmd_hdl_free(hdl, fmribuf, fmrisz); in cma_cpu_blacklist() 102 cma_cpu_statechange(fmd_hdl_t *hdl, nvlist_t *asru, const char *uuid, in cma_cpu_statechange() argument 109 fmd_hdl_debug(hdl, "missing '%s'\n", FM_FMRI_CPU_ID); in cma_cpu_statechange() 118 fmd_hdl_debug(hdl, "changed cpu %u state from \"%s\" " in cma_cpu_statechange() 129 fmd_hdl_debug(hdl, "failed to changed cpu %u state to \"%s\": %s\n", in cma_cpu_statechange()
|
/illumos-gate/usr/src/lib/libds/common/ |
H A D | libds.h | 66 void (*ds_reg_cb)(ds_hdl_t hdl, ds_cb_arg_t arg, ds_ver_t *ver, 68 void (*ds_unreg_cb)(ds_hdl_t hdl, ds_cb_arg_t arg); 69 void (*ds_data_cb)(ds_hdl_t hdl, ds_cb_arg_t arg, void *buf, 79 extern int ds_domain_lookup(ds_hdl_t hdl, ds_domain_hdl_t *dhdlp); 80 extern int ds_unreg_hdl(ds_hdl_t hdl); 81 extern int ds_send_msg(ds_hdl_t hdl, void *buf, size_t buflen); 82 extern int ds_recv_msg(ds_hdl_t hdl, void *buf, size_t buflen, 84 extern int ds_isready(ds_hdl_t hdl, boolean_t *is_ready);
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_crypto.c | 195 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 202 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 211 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 218 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 236 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 243 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 352 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in get_key_interactive() 390 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in get_key_interactive() 480 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in get_key_material_file() 542 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in get_key_material() [all …]
|
H A D | libzfs_import.c | 78 if (zpool_open_silent(hdl, name, &zhp) != 0) in pool_active() 96 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) in refresh_config() argument 102 if (zcmd_write_conf_nvlist(hdl, &zc, config) != 0) in refresh_config() 112 while ((err = zfs_ioctl(hdl, ZFS_IOC_POOL_TRYIMPORT, in refresh_config() 114 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) { in refresh_config() 125 if (zcmd_read_dst_nvlist(hdl, &zc, &nvl) != 0) { in refresh_config() 339 (void) no_memory(hdl); in zpool_in_use() 389 if (pool_active(hdl, name, guid, &isactive) != 0) { in zpool_in_use() 449 if (zpool_iter(hdl, find_aux, &cb) == 1) { in zpool_in_use() 465 if (zpool_iter(hdl, find_aux, &cb) == 1) { in zpool_in_use() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did_hash.c | 43 did_hash_init(topo_mod_t *hdl) in did_hash_init() argument 45 did_hash_t *dh = did_hash_create(hdl); in did_hash_init() 48 topo_mod_setspecific(hdl, (void *) dh); in did_hash_init() 87 did_hash_create(topo_mod_t *hdl) in did_hash_create() argument 89 did_hash_t *r = topo_mod_zalloc(hdl, sizeof (did_hash_t)); in did_hash_create() 92 (void) topo_mod_seterrno(hdl, EMOD_NOMEM); in did_hash_create() 95 r->dph_mod = hdl; in did_hash_create() 97 r->dph_hash = topo_mod_zalloc(hdl, in did_hash_create() 100 topo_mod_free(hdl, r, sizeof (did_hash_t)); in did_hash_create() 101 (void) topo_mod_seterrno(hdl, EMOD_NOMEM); in did_hash_create()
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | cluster_rcm.c | 105 cluster_register(rcm_handle_t *hdl) in cluster_register() argument 121 if (rcm_register_interest(hdl, SUNW_OS, 0, NULL) != in cluster_register() 137 cluster_unregister(rcm_handle_t *hdl) in cluster_unregister() argument 141 if (rcm_unregister_interest(hdl, SUNW_OS, 0) != in cluster_unregister() 153 cluster_getinfo(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, in cluster_getinfo() argument 167 cluster_suspend(rcm_handle_t *hdl, char *rsrcname, id_t id, in cluster_suspend() argument 179 cluster_resume(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, in cluster_resume() argument 191 cluster_offline(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, in cluster_offline() argument 202 cluster_online(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, in cluster_online() argument 210 cluster_remove(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, in cluster_remove() argument
|
H A D | mpxio_rcm.c | 189 mpxio_register(rcm_handle_t *hdl) in mpxio_register() argument 227 refresh_regs(hdl); in mpxio_register() 241 mpxio_unregister(rcm_handle_t *hdl) in mpxio_unregister() argument 250 (void) rcm_unregister_interest(hdl, reg->phci.path, 0); in mpxio_unregister() 303 if (get_affected_clients(hdl, rsrc, CMD_GETINFO, flags, in mpxio_getinfo() 310 rv = rcm_get_info_list(hdl, clients, flags, infop); in mpxio_getinfo() 401 rv = rcm_notify_online_list(hdl, clients, flags, infop); in mpxio_online() 434 rv = rcm_notify_remove_list(hdl, clients, flags, infop); in mpxio_remove() 650 refresh_regs(rcm_handle_t *hdl) in refresh_regs() argument 719 (void) rcm_unregister_interest(hdl, reg->phci.path, 0); in refresh_regs() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cpu_event.c | 901 if (hdl == NULL) { in cpu_idle_prop_destroy_property() 969 if (hdl == NULL) { in cpu_idle_prop_destroy_handle() 977 if (prop == hdl) { in cpu_idle_prop_destroy_handle() 993 ASSERT(hdl != NULL); in cpu_idle_prop_get_type() 1000 ASSERT(hdl != NULL); in cpu_idle_prop_get_name() 1040 ASSERT(hdl != NULL); in cpu_idle_prop_get_uint32() 1053 ASSERT(hdl != NULL); in cpu_idle_prop_get_uint64() 1066 ASSERT(hdl != NULL); in cpu_idle_prop_get_intptr() 1079 ASSERT(hdl != NULL); in cpu_idle_prop_get_hrtime() 1092 ASSERT(hdl != NULL); in cpu_idle_prop_set_value() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/ |
H A D | swde_main.c | 56 _fmd_init(fmd_hdl_t *hdl) in _fmd_init() argument 58 if (sw_fmd_init(hdl, &swde_info, &subde)) in _fmd_init() 59 swde_case_init(hdl); in _fmd_init() 63 _fmd_fini(fmd_hdl_t *hdl) in _fmd_fini() argument 65 swde_case_fini(hdl); in _fmd_fini() 66 sw_fmd_fini(hdl); in _fmd_fini()
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | fme.c | 359 fmd_case_close(hdl, fmcase); in newfme() 419 Nfmep->hdl = hdl; in newfme() 661 fmd_buf_read(fmep->hdl, in reconstitute_observations() 721 fmep->hdl = hdl; in fme_restart() 828 fmd_buf_read(hdl, in fme_restart() 1268 newentp->hdl = hdl; in serd_eval() 2673 fme_serd_load(fmd_hdl_t *hdl) in fme_serd_load() argument 2701 newentp->hdl = hdl; in fme_serd_load() 3198 if (fmep->hdl == hdl && fmep->fmcase == fmcase) in fme_close_case() 3453 nfmep->hdl = fmep->hdl; in fme_eval() [all …]
|
H A D | fme.h | 93 void fme_receive_external_report(fmd_hdl_t *hdl, fmd_event_t *ffep, 96 void fme_receive_repair_list(fmd_hdl_t *hdl, fmd_event_t *ffep, 98 void fme_restart(fmd_hdl_t *hdl, fmd_case_t *inprogress); 99 void fme_istat_load(fmd_hdl_t *hdl); 100 void fme_serd_load(fmd_hdl_t *hdl); 101 void fme_close_case(fmd_hdl_t *hdl, fmd_case_t *fmcase); 118 fmd_hdl_t *hdl; member
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ds_common.c | 434 port->ldc.hdl = 0; in ds_ldc_fini() 1129 svc->hdl); in ds_handle_reg_req() 2266 hdl = DS_ALLOC_HDL(DS_HDL2IDX(svc->hdl), DS_HDL2COUNT(svc->hdl)); in ds_svc_unregister() 2270 svc->hdl = hdl; in ds_svc_unregister() 2374 newsvc->hdl = DS_ALLOC_HDL(idx, DS_HDL2COUNT(newsvc->hdl)); in ds_alloc_svc() 2420 if (svc->hdl != hdl) in ds_get_svc() 2598 hdl = svc->hdl; in ds_ucap_init() 2621 *hdlp = hdl; in ds_ucap_init() 3180 (u_longlong_t)hdl, (uint_t)DS_HDL2IDX(svc->hdl)); in ds_find_clnt_svc_by_hdl_port() 3201 hdl = newsvc->hdl | DS_HDL_ISCLIENT_BIT; in ds_svc_clone() [all …]
|
H A D | vlds.c | 591 ds_svc_hdl_t hdl; in vlds_ioctl() local 631 minor, &hdl); in vlds_ioctl() 641 hdl_arg = hdl; in vlds_ioctl() 649 __func__, hdl); in vlds_ioctl() 679 __func__, hdl); in vlds_ioctl() 896 ds_svc_hdl_t hdl; in vlds_ioctl() local 1362 hdl); in vlds_user_reg_cb() 1402 ds_svc_hdl_t hdl; in vlds_user_unreg_cb() local 1424 hdl); in vlds_user_unreg_cb() 1444 ds_svc_hdl_t hdl; in vlds_user_data_cb() local [all …]
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_cmds.c | 184 cmd_run_send(const inj_mode_ops_t *mode, void *hdl, inj_defn_t *ev) in cmd_run_send() argument 204 mode->mo_send(hdl, ev->defn_nvl); in cmd_run_send() 211 cmd_run_random(const inj_mode_ops_t *mode, void *hdl, inj_cmd_t *cmd) in cmd_run_random() argument 221 cmd_run_send(mode, hdl, cmd->cmd_rand[i - 1]->re_event); in cmd_run_random() 225 cmd_run(const inj_mode_ops_t *mode, void *hdl, inj_cmd_t *cmd) in cmd_run() argument 229 cmd_run_send(mode, hdl, cmd->cmd_event); in cmd_run() 241 cmd_run_random(mode, hdl, cmd); in cmd_run() 252 void *hdl = mode->mo_open(mode_arg); in inj_program_run() local 263 cmd_run(mode, hdl, cmd->cmd_subcmd); in inj_program_run() 266 cmd_run(mode, hdl, cmd); in inj_program_run() [all …]
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | ds_impl.h | 177 ldc_handle_t hdl; /* LDC handle */ member 294 ds_svc_hdl_t hdl; /* handle assigned by DS */ member 335 #define DS_HDL2IDX(hdl) (hdl >> DS_IDX_SHIFT) argument 336 #define DS_HDL2COUNT(hdl) (hdl & DS_COUNT_MASK) argument 337 #define DS_HDL_ISCLIENT(hdl) ((hdl) & DS_HDL_ISCLIENT_BIT) argument 338 #define DS_HDL_SET_ISCLIENT(hdl) ((hdl) |= DS_HDL_ISCLIENT_BIT) argument 446 int ds_hdl_get_cbarg(ds_svc_hdl_t hdl, ds_cb_arg_t *cbargp); 448 int ds_is_my_hdl(ds_svc_hdl_t hdl, int instance); 471 ds_svc_t *ds_get_svc(ds_svc_hdl_t hdl); 490 int ds_unreg_hdl(ds_svc_hdl_t hdl); [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/acpi/acpidev/ |
H A D | acpidev_cpu.c | 318 ACPI_HANDLE hdl; in acpidev_cpu_get_procid() local 328 hdl = infop->awi_hdl; in acpidev_cpu_get_procid() 336 (void) acpidev_walk_apic(NULL, hdl, ACPIDEV_METHOD_NAME_MAT, in acpidev_cpu_get_procid() 383 ASSERT(hdl != NULL); in acpidev_cpu_get_proximity_id() 387 if (ACPI_SUCCESS(acpidev_eval_pxm(hdl, pxmidp))) { in acpidev_cpu_get_proximity_id() 624 ACPI_HANDLE hdl; in acpidev_cpu_init() local 635 hdl = infop->awi_hdl; in acpidev_cpu_init() 729 rc = acpica_get_procid_by_object(hdl, &procid); in acpidev_cpu_fini() 748 ACPI_HANDLE hdl; in acpidev_cpu_lookup_dip() local 757 ASSERT(hdl != NULL); in acpidev_cpu_lookup_dip() [all …]
|
/illumos-gate/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_subr.c | 320 mcamd_get_numprops(mcamd_hdl_t *hdl, ...) in mcamd_get_numprops() argument 327 va_start(ap, hdl); in mcamd_get_numprops() 378 mcamd_get_cfgregs(mcamd_hdl_t *hdl, ...) in mcamd_get_cfgregs() argument 385 va_start(ap, hdl); in mcamd_get_cfgregs() 424 mcamd_mkhdl(mcamd_hdl_t *hdl) in mcamd_mkhdl() argument 426 hdl->mcamd_errno = 0; in mcamd_mkhdl() 427 hdl->mcamd_debug = mcamd_debug; in mcamd_mkhdl() 431 mcamd_cmierr(int err, mcamd_hdl_t *hdl) in mcamd_cmierr() argument 436 switch (mcamd_errno(hdl)) { in mcamd_cmierr() 718 mcamd_mc_register(cmi_hdl_t hdl, mc_t *mc) in mcamd_mc_register() argument [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | svc.c | 121 if (hdl != NULL) in svc_get_handle() 122 return (hdl); in svc_get_handle() 129 if (scf_handle_bind(hdl) != 0) { in svc_get_handle() 130 scf_handle_destroy(hdl); in svc_get_handle() 135 topo_mod_setspecific(mod, hdl); in svc_get_handle() 137 return (hdl); in svc_get_handle() 163 if (hdl != NULL) in svc_fini() 164 scf_handle_destroy(hdl); in svc_fini() 241 scf_handle_t *hdl; in svc_enum() local 254 if ((hdl = svc_get_handle(mod)) == NULL) in svc_enum() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/ |
H A D | fmevt_inbound.c | 169 ns = fmd_hdl_alloc(hdl, len + 1, FMD_SLEEP); in fmevt_rs_burst() 186 fmevt_rs_init(fmd_hdl_t *hdl) in fmevt_rs_init() argument 562 fmevt_init_inbound(fmd_hdl_t *hdl) in fmevt_init_inbound() argument 568 if (!fmevt_rs_init(hdl)) in fmevt_init_inbound() 569 fmd_hdl_abort(hdl, "error in fmevt_rs_init\n"); in fmevt_init_inbound() 577 fmd_hdl_abort(hdl, "getzonenamebyid failed"); in fmevt_init_inbound() 586 sidpfx = fmd_prop_get_string(hdl, "sidprefix"); in fmevt_init_inbound() 616 fmd_prop_free_string(hdl, channel); in fmevt_init_inbound() 619 fmd_prop_free_string(hdl, sidpfx); in fmevt_init_inbound() 623 fmevt_fini_inbound(fmd_hdl_t *hdl) in fmevt_fini_inbound() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_rsrc.c | 121 tavor_rsrc_t *hdl); 127 tavor_rsrc_t *hdl); 132 tavor_rsrc_t *hdl); 137 tavor_rsrc_t *hdl); 186 ASSERT(hdl != NULL); in tavor_rsrc_alloc() 312 *hdl = tmp_rsrc_hdl; in tavor_rsrc_alloc() 328 ASSERT(hdl != NULL); in tavor_rsrc_free() 381 *hdl = NULL; in tavor_rsrc_free() 2086 ASSERT(hdl != NULL); in tavor_rsrc_mbox_alloc() 2155 ASSERT(hdl != NULL); in tavor_rsrc_mbox_free() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip_serial.c | 65 ipmi_handle_t *hdl; in ipmi_serial_lookup() local 70 if ((hdl = topo_mod_ipmi_hold(mod)) == NULL) { in ipmi_serial_lookup() 76 if ((fru_loc = ipmi_sdr_lookup_fru(hdl, (const char *)ipmi_tag)) in ipmi_serial_lookup() 79 ipmi_errmsg(hdl)); in ipmi_serial_lookup() 86 if (ipmi_fru_read(hdl, fru_loc, &fru_data) < 0) { in ipmi_serial_lookup() 88 ipmi_errmsg(hdl)); in ipmi_serial_lookup() 94 if (ipmi_fru_parse_product(hdl, fru_data, &prod_info) < 0) { in ipmi_serial_lookup() 96 ipmi_errmsg(hdl)); in ipmi_serial_lookup()
|
H A D | chip_subr.c | 373 fmd_agent_hdl_t *hdl; in fmri_replaced() local 382 fmd_agent_close(hdl); in fmri_replaced() 521 fmd_agent_hdl_t *hdl; member 735 fmd_agent_hdl_t *hdl; in ntv_page_retire() local 743 fmd_agent_close(hdl); in ntv_page_retire() 755 fmd_agent_hdl_t *hdl; in ntv_page_unretire() local 763 fmd_agent_close(hdl); in ntv_page_unretire() 775 fmd_agent_hdl_t *hdl; in ntv_page_service_state() local 783 fmd_agent_close(hdl); in ntv_page_service_state() 802 fmd_agent_hdl_t *hdl; in ntv_page_unusable() local [all …]
|