/illumos-gate/usr/src/uts/common/os/ |
H A D | devcfg.c | 7647 struct mt_config_handle *hdl = kmem_alloc(sizeof (*hdl), KM_SLEEP); in mt_config_init() local 7657 hdl->mtc_op = op; in mt_config_init() 7658 hdl->mtc_error = 0; in mt_config_init() 7663 hdl->total_time = 0; in mt_config_init() 7666 return (hdl); in mt_config_init() 7698 cv_wait(&hdl->mtc_cv, &hdl->mtc_lock); in mt_config_fini() 7715 kmem_free(hdl, sizeof (*hdl)); in mt_config_fini() 7785 if (hdl->mtc_fdip && *hdl->mtc_fdip == NULL) { in mt_config_thread() 7821 hdl->total_time += time_diff_in_msec(hdl->start_time, end_time); in mt_config_children() 7827 if (hdl->mtc_op == MT_UNCONFIG_OP && hdl->mtc_brevqp && in mt_config_children() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | snmplib.c | 214 snmp_fini(picl_snmphdl_t hdl) in snmp_fini() argument 216 struct picl_snmphdl *smd = (struct picl_snmphdl *)hdl; in snmp_fini() 227 snmp_reinit(picl_snmphdl_t hdl, int clr_linkreset) in snmp_reinit() argument 229 struct picl_snmphdl *smd = (struct picl_snmphdl *)hdl; in snmp_reinit() 261 struct picl_snmphdl *smd = (struct picl_snmphdl *)hdl; in snmp_register_group() 317 snmp_get_int(picl_snmphdl_t hdl, char *prefix, int row, int *val, in snmp_get_int() argument 320 struct picl_snmphdl *smd = (struct picl_snmphdl *)hdl; in snmp_get_int() 371 snmp_get_str(picl_snmphdl_t hdl, char *prefix, int row, char **strp, in snmp_get_str() argument 374 struct picl_snmphdl *smd = (struct picl_snmphdl *)hdl; in snmp_get_str() 438 struct picl_snmphdl *smd = (struct picl_snmphdl *)hdl; in snmp_get_bitstr() [all …]
|
/illumos-gate/usr/src/cmd/ramdiskadm/ |
H A D | main.c | 79 di_devlink_handle_t hdl; in wait_until_dev_complete() local 81 hdl = di_devlink_init(RD_DRIVER_NAME, DI_MAKE_LINK); in wait_until_dev_complete() 82 if (hdl == NULL) { in wait_until_dev_complete() 85 (void) di_devlink_fini(&hdl); in wait_until_dev_complete()
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | sd.c | 160 sdfw_read_descriptor(struct devicelist *flashdev, libscsi_hdl_t *hdl, in sdfw_read_descriptor() argument 169 VERIFY3P(hdl, !=, NULL); in sdfw_read_descriptor() 173 if ((action = libscsi_action_alloc(hdl, SPC3_CMD_READ_BUFFER, in sdfw_read_descriptor() 177 flashdev->drvname, libscsi_errmsg(hdl)); in sdfw_read_descriptor() 200 flashdev->drvname, libscsi_errmsg(hdl)); in sdfw_read_descriptor() 227 flashdev->drvname, libscsi_errmsg(hdl)); in sdfw_read_descriptor() 905 di_devlink_handle_t hdl; in sdfw_find_link() local 924 hdl = di_devlink_init(di_devfs_minor_path(devminor), DI_MAKE_LINK); in sdfw_find_link() 925 if (hdl == NULL) { in sdfw_find_link() 940 if (di_devlink_walk(hdl, linkname, acc_devname + strlen(sdfw_devprefix), in sdfw_find_link() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fksmb_preauth_pkcs.c | 29 CK_SESSION_HANDLE hdl; in getmech_sha512() local 32 rv = SUNW_C_GetMechSession(mid, &hdl); in getmech_sha512() 38 (void) C_CloseSession(hdl); in getmech_sha512()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_znode.c | 714 if (hdl == NULL) in zfs_znode_alloc() 1183 sa_handle_t *hdl; in zfs_zget() local 1205 hdl = dmu_buf_get_user(db); in zfs_zget() 1206 if (hdl != NULL) { in zfs_zget() 1207 zp = sa_get_userdata(hdl); in zfs_zget() 2034 sa_handle_destroy(hdl); in zfs_release_sa_handle() 2129 sa_hdl = hdl; in zfs_obj_to_path_impl() 2177 if (sa_hdl != hdl) { in zfs_obj_to_path_impl() 2204 sa_handle_t *hdl; in zfs_obj_to_path() local 2218 zfs_release_sa_handle(hdl, db, FTAG); in zfs_obj_to_path() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | topo_gather.c | 100 dm_fmri_to_diskmon(fmd_hdl_t *hdl, nvlist_t *fmri) in dm_fmri_to_diskmon() argument 115 thdl = fmd_hdl_topo_hold(hdl, TOPO_VERSION); in dm_fmri_to_diskmon() 117 fmd_hdl_topo_rele(hdl, thdl); in dm_fmri_to_diskmon() 121 fmd_hdl_topo_rele(hdl, thdl); in dm_fmri_to_diskmon() 743 update_configuration_from_topo(fmd_hdl_t *hdl, diskmon_t *diskp) in update_configuration_from_topo() argument 750 if ((thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION)) == NULL) { in update_configuration_from_topo() 758 fmd_hdl_topo_rele(hdl, thp); in update_configuration_from_topo() 768 fmd_hdl_topo_rele(hdl, thp); in update_configuration_from_topo() 773 fmd_hdl_topo_rele(hdl, thp); in update_configuration_from_topo()
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | HBAPort.cc | 150 di_devlink_handle_t hdl; in convertToShortNames() local 154 if ((hdl = di_devlink_init(NULL, 0)) == NULL) { in convertToShortNames() 187 (void) di_devlink_walk(hdl, NULL, minor_path, DI_PRIMARY_LINK, in convertToShortNames() 199 di_devlink_fini(&hdl); in convertToShortNames()
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | ds.h | 96 void (*ds_reg_cb)(ds_cb_arg_t arg, ds_ver_t *ver, ds_svc_hdl_t hdl); 107 extern int ds_cap_send(ds_svc_hdl_t hdl, void *buf, size_t buflen);
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor.c | 90 ddi_acc_handle_t hdl); 92 ddi_acc_handle_t hdl, uint_t offset); 96 ddi_acc_handle_t hdl, uint_t offset); 2325 tavor_pci_capability_list(state, hdl); in tavor_sw_reset() 2578 data = pci_config_get16(hdl, 0x6); in tavor_pci_capability_list() 2590 offset = pci_config_get8(hdl, 0x34); in tavor_pci_capability_list() 2592 data = pci_config_get8(hdl, offset); in tavor_pci_capability_list() 2616 offset = pci_config_get8(hdl, offset + 1); in tavor_pci_capability_list() 2644 val = pci_config_get16(hdl, vpd_addr); in tavor_pci_read_vpd() 2646 *data = pci_config_get32(hdl, vpd_data); in tavor_pci_read_vpd() [all …]
|
/illumos-gate/usr/src/uts/sun4u/lw8/io/ |
H A D | sgfru.c | 771 f, sinfo.hdl, sinfo.cnt); in sgfru_readsegment() 1014 f, pinfo.hdl, pinfo.cnt); in sgfru_getpayload() 1139 datap = (caddr_t)&fru_info.hdl; in sgfru_delete() 1161 fru_hdl_t hdl = fru->hdl; in sgfru_mbox() local 1194 reqp->msg_buf = (caddr_t)&hdl; in sgfru_mbox() 1203 reqp->msg_buf = (caddr_t)&hdl; in sgfru_mbox() 1212 reqp->msg_buf = (caddr_t)&hdl; in sgfru_mbox() 1221 reqp->msg_buf = (caddr_t)&hdl; in sgfru_mbox() 1278 resp->msg_buf = (caddr_t)&hdl; in sgfru_mbox() 1305 resp->msg_buf = (caddr_t)&hdl; in sgfru_mbox() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | fault_iso.c | 72 static void fi_reg_handler(ds_cb_arg_t arg, ds_ver_t *ver, ds_svc_hdl_t hdl); 430 fi_reg_handler(ds_cb_arg_t arg, ds_ver_t *ver, ds_svc_hdl_t hdl) in fi_reg_handler() argument 433 arg, ver->major, ver->minor, hdl); in fi_reg_handler() 436 cpu_handle = hdl; in fi_reg_handler() 438 mem_handle = hdl; in fi_reg_handler()
|
/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 77 devctl_release(devctl_hdl_t hdl) in devctl_release() argument 82 if (hdl == NULL) in devctl_release() 85 if (DCP(hdl)->fd != -1) in devctl_release() 86 (void) close(DCP(hdl)->fd); in devctl_release() 88 if (DCP(hdl)->opath != NULL) in devctl_release() 89 free(DCP(hdl)->opath); in devctl_release() 91 if (DCP(hdl)->nodename != NULL) in devctl_release() 92 free(DCP(hdl)->nodename); in devctl_release() 94 if (DCP(hdl)->unitaddr != NULL) in devctl_release() 95 free(DCP(hdl)->unitaddr); in devctl_release() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_utils.c | 952 devctl_hdl_t hdl = NULL; in devctl_cmd() local 1012 hdl = devctl_bus_acquire(path, 0); in devctl_cmd() 1014 hdl = devctl_device_acquire(path, 0); in devctl_cmd() 1020 if (hdl == NULL) { in devctl_cmd() 1027 rv = func(hdl); in devctl_cmd() 1030 rv = state_func(hdl, statep); in devctl_cmd() 1037 devctl_release(hdl); in devctl_cmd() 1125 di_devlink_handle_t hdl; in physpath_to_devlink() local 1128 if ((hdl = di_devlink_init(NULL, 0)) == NULL) { in physpath_to_devlink() 1144 (void) di_devlink_walk(hdl, NULL, minor_path, DI_PRIMARY_LINK, in physpath_to_devlink() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/acpi/acpidev/ |
H A D | acpidev_drv.c | 813 ACPI_HANDLE hdl; in acpidev_process_object() local 831 hdl = infop->awi_hdl; in acpidev_process_object() 835 if (hdl == NULL || datap == NULL || adip == NULL || clsp == NULL || in acpidev_process_object() 886 datap->aod_status = acpidev_query_device_status(hdl); in acpidev_process_object() 957 ACPI_FAILURE(acpica_tag_devinfo(dip, hdl))) { in acpidev_process_object() 974 (void) acpica_untag_devinfo(dip, hdl); in acpidev_process_object() 1066 acpidev_filter_default(acpidev_walk_info_t *infop, ACPI_HANDLE hdl, in acpidev_filter_default() argument 1069 _NOTE(ARGUNUSED(hdl)); in acpidev_filter_default() 1090 acpidev_filter_device(acpidev_walk_info_t *infop, ACPI_HANDLE hdl, in acpidev_filter_device() argument 1099 res = afrp->adf_filter_func(infop, hdl, afrp, in acpidev_filter_device() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | pshot.c | 3538 ndi_event_hdl_t hdl; in pshot_event_test() local 3550 rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP); in pshot_event_test() 3555 rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP); in pshot_event_test() 3568 rval = ndi_event_bind_set(hdl, &events, NDI_SLEEP); in pshot_event_test() 3687 rval = ndi_event_add_callback(hdl, pshot->dip, in pshot_event_test() 3688 ndi_event_tag_to_cookie(hdl, in pshot_event_test() 3702 (void *)hdl); in pshot_event_test() 3714 rval = ndi_event_run_callbacks(hdl, in pshot_event_test() 3715 pshot->dip, cookie, (void *)hdl); in pshot_event_test() 3726 (void) ndi_event_remove_callback(hdl, in pshot_event_test() [all …]
|
/illumos-gate/usr/src/cmd/ctwatch/ |
H A D | ctwatch.c | 189 ct_stathdl_t hdl; in contract_type() local 198 if (errno = ct_status_read(fd, CTD_COMMON, &hdl)) { in contract_type() 202 type = get_type(ct_status_get_type(hdl)); in contract_type() 203 ct_status_free(hdl); in contract_type()
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_fm.c | 924 ddi_acc_handle_t hdl; in hermon_init_failure() local 934 hdl = hermon_get_uarhdl(state); in hermon_init_failure() 936 ddi_fm_acc_err_get(hdl, &derr, DDI_FME_VERSION); in hermon_init_failure() 941 hdl = hermon_get_cmdhdl(state); in hermon_init_failure() 943 ddi_fm_acc_err_get(hdl, &derr, DDI_FME_VERSION); in hermon_init_failure() 1958 for (hdlp = hca_fm->hdl; hdlp != NULL; hdlp = hdlp->next) { in i_hca_get_acc_handle() 2026 for (last = hdlp = hca_fm->hdl; hdlp != NULL; hdlp = hdlp->next) { in i_hca_regs_map_setup() 2030 hca_fm->hdl = handlep; in i_hca_regs_map_setup() 2078 hca_fm->hdl = hdlp->next; in i_hca_regs_map_free() 2146 hca_fm->hdl = handlep; in i_hca_pci_config_setup() [all …]
|
H A D | hermon.c | 112 ddi_acc_handle_t hdl); 114 ddi_acc_handle_t hdl, uint_t offset); 1216 uint32_t idx, void *hdl) in hermon_icm_set_num_to_hdl() argument 1224 ASSERT((hdl == NULL) ^ in hermon_icm_set_num_to_hdl() 3902 pci_config_get32(hdl, 0)); in hermon_sw_reset() 4099 data = pci_config_get16(hdl, 0x06); in hermon_pci_capability_list() 4111 offset = pci_config_get8(hdl, 0x34); in hermon_pci_capability_list() 4113 data = pci_config_get8(hdl, offset); in hermon_pci_capability_list() 4147 data32 = pci_config_get32(hdl, in hermon_pci_capability_list() 4150 data32 = pci_config_get32(hdl, in hermon_pci_capability_list() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | platform.h | 51 void platform_restore_config(fmd_hdl_t *hdl, fmd_case_t *fmcase); 52 void platform_save_config(fmd_hdl_t *hdl, fmd_case_t *fmcase);
|
/illumos-gate/usr/src/lib/libpicltree/ |
H A D | picltree.c | 432 n->hdl = hdl_val; in hash_newobj() 446 n->hdl = picl_hdl; in hash_newhdl() 552 hash_val = HASH_VAL(hdl); in hash_lookup_obj() 556 if (tmp->hdl == hash_val) in hash_lookup_obj() 570 hash_val = HASH_VAL(hdl); in hash_lookup_hdl() 574 if (tmp->hdl == hash_val) in hash_lookup_hdl() 588 pid_t pid = GET_PID(hdl); in picl_hdl_error() 647 picl_hdl_t hdl; in alloc_ptreehdl() local 653 return (hdl); in alloc_ptreehdl() 665 picl_hdl_t hdl; in alloc_piclhdl() local [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fabric-xlate.h | 184 extern void fab_send_erpt(fmd_hdl_t *hdl, fab_data_t *data, fab_err_tbl_t *tbl); 193 extern char *fab_find_addr(fmd_hdl_t *hdl, nvlist_t *nvl, uint64_t addr); 194 extern char *fab_find_bdf(fmd_hdl_t *hdl, nvlist_t *nvl, pcie_req_id_t bdf);
|
/illumos-gate/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_drv.c | 192 cmi_hdl_t hdl = NULL; in mc_nvl_add_socket() local 196 (void *)&hdl, NULL); in mc_nvl_add_socket() 197 if (hdl == NULL) in mc_nvl_add_socket() 200 s = cmi_hdl_getsocketstr(hdl); in mc_nvl_add_socket() 204 if (hdl != NULL) in mc_nvl_add_socket() 205 cmi_hdl_rele(hdl); in mc_nvl_add_socket() 792 mcamd_hdl_t hdl; in mc_mkprops_dramctl() local 1338 cmi_hdl_t hdl = NULL; in mc_create() local 1349 if (hdl == NULL) in mc_create() 1360 mc->mc_revname = cmi_hdl_chiprevstr(hdl); in mc_create() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/ |
H A D | hermon_rsrc.h | 373 uint_t num, uint_t sleepflag, hermon_rsrc_t **hdl); 374 void hermon_rsrc_free(hermon_state_t *state, hermon_rsrc_t **hdl); 382 uint_t num, uint_t sleepflag, hermon_rsrc_t **hdl);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 99 void *hdl; in load_libzfs() local 104 if ((hdl = dlopen("libzfs.so", RTLD_LAZY)) != NULL) { in load_libzfs() 105 _libzfs_init = (libzfs_handle_t *(*)(void))dlsym(hdl, in load_libzfs() 107 _libzfs_fini = (void (*)())dlsym(hdl, "libzfs_fini"); in load_libzfs() 108 _zfs_open = (zfs_handle_t *(*)())dlsym(hdl, "zfs_open"); in load_libzfs() 109 _zfs_close = (void (*)())dlsym(hdl, "zfs_close"); in load_libzfs() 111 dlsym(hdl, "zfs_prop_get_userquota_int"); in load_libzfs()
|