/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | server_init.c | 57 static int check_handle(void *handle) in check_handle() argument 59 CHECK_HANDLE(handle); in check_handle() 63 static int dup_db_args(kadm5_server_handle_t handle, char **db_args) in dup_db_args() argument 70 handle->db_args = NULL; in dup_db_args() 74 handle->db_args = calloc(sizeof(char*), count+1); in dup_db_args() 75 if (handle->db_args == NULL) { in dup_db_args() 81 handle->db_args[count] = strdup(db_args[count]); in dup_db_args() 82 if (handle->db_args[count] == NULL) { in dup_db_args() 89 if (ret && handle->db_args) { in dup_db_args() 90 for (count=0; handle->db_args[count]; count++) in dup_db_args() [all …]
|
/illumos-gate/usr/src/lib/libshare/smbfs/ |
H A D | smbfs_scfutil.c | 67 smb_smf_scf_fini(smb_scfhandle_t *handle) in smb_smf_scf_fini() argument 69 if (handle != NULL) { in smb_smf_scf_fini() 71 if (handle->scf_pg_iter != NULL) { in smb_smf_scf_fini() 72 scf_iter_destroy(handle->scf_pg_iter); in smb_smf_scf_fini() 73 handle->scf_pg_iter = NULL; in smb_smf_scf_fini() 75 if (handle->scf_inst_iter != NULL) { in smb_smf_scf_fini() 76 scf_iter_destroy(handle->scf_inst_iter); in smb_smf_scf_fini() 77 handle->scf_inst_iter = NULL; in smb_smf_scf_fini() 79 if (handle->scf_scope != NULL) { in smb_smf_scf_fini() 81 scf_scope_destroy(handle->scf_scope); in smb_smf_scf_fini() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_scfutil.c | 65 smb_smf_create_service_pgroup(smb_scfhandle_t *handle, char *pgroup) in smb_smf_create_service_pgroup() argument 70 if (handle == NULL) in smb_smf_create_service_pgroup() 77 if (handle->scf_pg == NULL) in smb_smf_create_service_pgroup() 78 if ((handle->scf_pg = in smb_smf_create_service_pgroup() 79 scf_pg_create(handle->scf_handle)) == NULL) in smb_smf_create_service_pgroup() 86 if (scf_service_get_pg(handle->scf_service, in smb_smf_create_service_pgroup() 87 pgroup, handle->scf_pg) != 0) { in smb_smf_create_service_pgroup() 89 if (scf_service_add_pg(handle->scf_service, pgroup, in smb_smf_create_service_pgroup() 90 SCF_GROUP_APPLICATION, 0, handle->scf_pg) != 0) { in smb_smf_create_service_pgroup() 114 smb_smf_start_transaction(smb_scfhandle_t *handle) in smb_smf_start_transaction() argument [all …]
|
H A D | smb_ht.c | 52 static size_t ht_default_hash(HT_HANDLE *handle, const char *key); 131 ht_destroy_table(HT_HANDLE *handle) in ht_destroy_table() argument 136 if (handle == 0) in ht_destroy_table() 140 (void) ht_clean_table(handle); in ht_destroy_table() 141 while ((item = ht_findfirst(handle, &iterator)) != 0) in ht_destroy_table() 142 (void) ht_remove_item(handle, item->hi_key); in ht_destroy_table() 144 free(handle); in ht_destroy_table() 155 ht_get_total_items(HT_HANDLE *handle) in ht_get_total_items() argument 157 if (handle == 0) in ht_get_total_items() 160 return (handle->ht_total_items); in ht_get_total_items() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | model.h | 85 #define STRUCT_HANDLE(struct_type, handle) \ argument 92 } handle = { NULL, DATAMODEL_ILP32 } 94 #define STRUCT_DECL(struct_type, handle) \ argument 95 struct struct_type __##handle##_buf; \ 96 STRUCT_HANDLE(struct_type, handle) 98 #define STRUCT_SET_HANDLE(handle, umodel, addr) \ argument 99 (handle).model = (model_t)(umodel) & DATAMODEL_MASK; \ 101 ((handle).ptr.m64) = (addr) 103 #define STRUCT_INIT(handle, umodel) \ argument 104 STRUCT_SET_HANDLE(handle, umodel, &__##handle##_buf) [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_parse.c | 69 int ns_msg_getflag(ns_msg handle, int flag) { in ns_msg_getflag() argument 70 return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift); in ns_msg_getflag() 98 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in ns_initparse() argument 102 handle->_msg = msg; in ns_initparse() 103 handle->_eom = eom; in ns_initparse() 106 NS_GET16(handle->_id, msg); in ns_initparse() 109 NS_GET16(handle->_flags, msg); in ns_initparse() 113 NS_GET16(handle->_counts[i], msg); in ns_initparse() 116 if (handle->_counts[i] == 0) in ns_initparse() 117 handle->_sections[i] = NULL; in ns_initparse() [all …]
|
/illumos-gate/usr/src/lib/libndmp/common/ |
H A D | libndmp_prop.c | 112 ndmp_scfhandle_t *handle; in ndmp_get_prop() local 117 if ((handle = ndmp_smf_scf_init(NDMP_GROUP_FMRI_PREFIX)) == NULL) { in ndmp_get_prop() 120 if (ndmp_smf_get_pg_name(handle, prop, &pgname)) { in ndmp_get_prop() 121 ndmp_smf_scf_fini(handle); in ndmp_get_prop() 125 if (ndmp_smf_create_service_pgroup(handle, pgname)) { in ndmp_get_prop() 126 ndmp_smf_scf_fini(handle); in ndmp_get_prop() 130 ndmp_smf_scf_fini(handle); in ndmp_get_prop() 134 if (ndmp_smf_get_property(handle, prop, lval, NDMP_PROP_LEN) != 0) { in ndmp_get_prop() 135 ndmp_smf_scf_fini(handle); in ndmp_get_prop() 141 ndmp_smf_scf_fini(handle); in ndmp_get_prop() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/ |
H A D | mema_test.c | 87 if ((handle->max_errors != 0) &&\ 88 (handle->max_errors == total_errors)) {\ 89 mtest_message(handle, (END_MSG));\ 90 error_summary(handle, total_errors);\ 91 SET_CONDITION(handle, cond);\ 96 error_summary(mtest_handle_t handle, uint_t total_errors) in error_summary() argument 101 mtest_message(handle, msgbuf); in error_summary() 106 error_print(char *writebuf, char *readbuf, mtest_handle_t handle, long pageno, in error_print() argument 112 (void) sprintf(msgbuf, pg_header_msg, PAGE_SIZE(handle) * pageno); in error_print() 113 mtest_message(handle, msgbuf); in error_print() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/cpupm/ |
H A D | cpu_acpi.c | 77 cpu_acpi_cache_ctrl_regs(cpu_acpi_handle_t handle, cpu_acpi_obj_t objtype, in cpu_acpi_cache_ctrl_regs() argument 94 astatus = AcpiEvaluateObjectTyped(handle->cs_handle, in cpu_acpi_cache_ctrl_regs() 98 DTRACE_PROBE3(cpu_acpi__eval__err, int, handle->cs_id, in cpu_acpi_cache_ctrl_regs() 106 handle->cs_id); in cpu_acpi_cache_ctrl_regs() 114 obj->Package.Count, handle->cs_id); in cpu_acpi_cache_ctrl_regs() 126 handle->cs_id); in cpu_acpi_cache_ctrl_regs() 137 handle->cs_id); in cpu_acpi_cache_ctrl_regs() 145 handle->cs_id); in cpu_acpi_cache_ctrl_regs() 154 handle->cs_id); in cpu_acpi_cache_ctrl_regs() 184 cpu_acpi_cache_pct(cpu_acpi_handle_t handle) in cpu_acpi_cache_pct() argument [all …]
|
/illumos-gate/usr/src/lib/libsmedia/library/common/ |
H A D | l_misc.c | 82 is_server_running(rmedia_handle_t *handle) in is_server_running() argument 195 handle->sm_clnt = clnt; in is_server_running() 202 void *handle; in get_dev_library_handle() local 240 handle = dlopen(pathname, RTLD_LAZY); in get_dev_library_handle() 241 if (handle == NULL) { in get_dev_library_handle() 245 d_fcn_ptr = (int32_t (*)(ushort_t, ushort_t))dlsym(handle, in get_dev_library_handle() 249 (void) dlclose(handle); in get_dev_library_handle() 255 v_fcn_ptr = (int32_t (*)(void))dlsym(handle, in get_dev_library_handle() 259 (void) dlclose(handle); in get_dev_library_handle() 267 old_handle = handle; in get_dev_library_handle() [all …]
|
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_espc.c | 29 static int npi_vpd_read_prop(npi_handle_t handle, uint32_t ep, 33 npi_espc_pio_enable(npi_handle_t handle) in npi_espc_pio_enable() argument 35 NXGE_REG_WR64(handle, ESPC_REG_ADDR(ESPC_PIO_EN_REG), 0x1); in npi_espc_pio_enable() 40 npi_espc_pio_disable(npi_handle_t handle) in npi_espc_pio_disable() argument 42 NXGE_REG_WR64(handle, ESPC_REG_ADDR(ESPC_PIO_EN_REG), 0); in npi_espc_pio_disable() 47 npi_espc_eeprom_entry(npi_handle_t handle, io_op_t op, uint32_t addr, in npi_espc_eeprom_entry() argument 53 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_espc_eeprom_entry() 64 NXGE_REG_WR64(handle, ESPC_REG_ADDR(ESPC_PIO_STATUS_REG), val); in npi_espc_eeprom_entry() 65 EPC_WAIT_RW_COMP(handle, &val, EPC_WRITE_COMPLETE); in npi_espc_eeprom_entry() 67 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_espc_eeprom_entry() [all …]
|
H A D | npi_txdma.c | 33 static npi_status_t npi_txdma_control_reset_wait(npi_handle_t handle, 35 static npi_status_t npi_txdma_control_stop_wait(npi_handle_t handle, 37 static npi_status_t npi_txdma_control_resume_wait(npi_handle_t handle, 127 npi_txdma_dump_tdc_regs(npi_handle_t handle, uint8_t tdc) in npi_txdma_dump_tdc_regs() argument 135 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_dump_tdc_regs() 143 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_dump_tdc_regs() 149 TXDMA_REG_READ64(handle, tdc_dmc_offset[i], tdc, &value); in npi_txdma_dump_tdc_regs() 150 offset = NXGE_TXDMA_OFFSET(tdc_dmc_offset[i], handle.is_vraddr, in npi_txdma_dump_tdc_regs() 152 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, "0x%08llx " in npi_txdma_dump_tdc_regs() 158 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txdma_dump_tdc_regs() [all …]
|
H A D | npi_rxdma.c | 111 npi_rxdma_cfg_rdc_ctl(npi_handle_t handle, uint8_t rdc, uint8_t op); 113 npi_rxdma_cfg_rdc_rcr_ctl(npi_handle_t handle, uint8_t rdc, uint8_t op, 131 npi_rxdma_dump_rdc_regs(npi_handle_t handle, uint8_t rdc) in npi_rxdma_dump_rdc_regs() argument 142 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_rxdma_dump_rdc_regs() 152 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_rxdma_dump_rdc_regs() 156 RXDMA_REG_READ64(handle, rdc_dmc_offset[i], rdc, &value); in npi_rxdma_dump_rdc_regs() 157 offset = NXGE_RXDMA_OFFSET(rdc_dmc_offset[i], handle.is_vraddr, in npi_rxdma_dump_rdc_regs() 159 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_rxdma_dump_rdc_regs() 164 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_rxdma_dump_rdc_regs() 184 npi_rxdma_dump_fzc_regs(npi_handle_t handle) in npi_rxdma_dump_fzc_regs() argument [all …]
|
H A D | npi_ipp.c | 109 npi_ipp_dump_regs(npi_handle_t handle, uint8_t port) in npi_ipp_dump_regs() argument 116 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_ipp_dump_regs() 122 NXGE_REG_RD64(handle, offset, &value); in npi_ipp_dump_regs() 123 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, "0x%08llx " in npi_ipp_dump_regs() 128 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_ipp_dump_regs() 135 npi_ipp_read_regs(npi_handle_t handle, uint8_t port) in npi_ipp_read_regs() argument 142 NPI_DEBUG_MSG((handle.function, NPI_IPP_CTL, in npi_ipp_read_regs() 148 NXGE_REG_RD64(handle, offset, &value); in npi_ipp_read_regs() 157 npi_ipp_reset(npi_handle_t handle, uint8_t portn) in npi_ipp_reset() argument 164 IPP_REG_RD(handle, portn, IPP_CONFIG_REG, &val); in npi_ipp_reset() [all …]
|
H A D | npi_txc.c | 141 npi_txc_dump_tdc_fzc_regs(npi_handle_t handle, uint8_t tdc) in npi_txc_dump_tdc_fzc_regs() argument 148 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txc_dump_tdc_fzc_regs() 155 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txc_dump_tdc_fzc_regs() 162 NXGE_REG_RD64(handle, offset, &value); in npi_txc_dump_tdc_fzc_regs() 163 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, "0x%08llx " in npi_txc_dump_tdc_fzc_regs() 168 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txc_dump_tdc_fzc_regs() 185 npi_txc_dump_fzc_regs(npi_handle_t handle) in npi_txc_dump_fzc_regs() argument 191 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_txc_dump_fzc_regs() 196 NXGE_REG_RD64(handle, txc_fzc_offset[i], &value); in npi_txc_dump_fzc_regs() 197 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, "0x%08llx " in npi_txc_dump_fzc_regs() [all …]
|
H A D | npi_vir.c | 108 npi_vir_dump_pio_fzc_regs_one(npi_handle_t handle) in npi_vir_dump_pio_fzc_regs_one() argument 113 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_vir_dump_pio_fzc_regs_one() 119 NXGE_REG_RD64(handle, pio_offset[i], &value); in npi_vir_dump_pio_fzc_regs_one() 120 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, "0x%08llx " in npi_vir_dump_pio_fzc_regs_one() 128 NXGE_REG_RD64(handle, fzc_pio_offset[i], &value); in npi_vir_dump_pio_fzc_regs_one() 129 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, "0x%08llx " in npi_vir_dump_pio_fzc_regs_one() 135 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_vir_dump_pio_fzc_regs_one() 141 npi_vir_dump_ldgnum(npi_handle_t handle) in npi_vir_dump_ldgnum() argument 146 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_vir_dump_ldgnum() 154 NXGE_REG_RD64(handle, offset, &value); in npi_vir_dump_ldgnum() [all …]
|
H A D | npi_mac.c | 36 #define XMAC_WAIT_REG(handle, portn, reg, val) {\ argument 40 XMAC_REG_RD(handle, portn, reg, &val);\ 45 #define BMAC_WAIT_REG(handle, portn, reg, val) {\ argument 49 BMAC_REG_RD(handle, portn, reg, &val);\ 54 #define MIF_WAIT_REG(handle, m_frame, t_delay, interval, max_delay) { \ argument 57 MIF_REG_RD(handle, MIF_OUTPUT_FRAME_REG, &m_frame.value); \ 503 npi_mac_dump_regs(npi_handle_t handle, uint8_t port) in npi_mac_dump_regs() argument 515 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_mac_dump_regs() 519 XMAC_REG_RD(handle, port, xmac_offset[i], &value); in npi_mac_dump_regs() 520 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_mac_dump_regs() [all …]
|
H A D | npi_fflp.c | 44 #define GET_HASHTBL_PART_OFFSET(handle, partid, reg) \ argument 45 (handle.is_vraddr ? \ 143 npi_fflp_dump_regs(npi_handle_t handle) in npi_fflp_dump_regs() argument 150 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs() 153 REG_PIO_READ64(handle, fflp_fzc_offset[i], &value); in npi_fflp_dump_regs() 154 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs() 160 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs() 165 REG_PIO_READ64(handle, fflp_reg_offset[i], &value); in npi_fflp_dump_regs() 166 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs() 172 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs() [all …]
|
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/ |
H A D | client_init.c | 302 _kadm5_initialize_rpcsec_gss_handle(kadm5_server_handle_t handle, in _kadm5_initialize_rpcsec_gss_handle() argument 329 char *server = handle->params.admin_server; in _kadm5_initialize_rpcsec_gss_handle() 337 if (handle->params.kpasswd_server != NULL) in _kadm5_initialize_rpcsec_gss_handle() 338 server = handle->params.kpasswd_server; in _kadm5_initialize_rpcsec_gss_handle() 352 addr.sin_port = htons((ushort_t)handle->params.kadmind_port); in _kadm5_initialize_rpcsec_gss_handle() 355 printf("kadmin_port %d\n", handle->params.kadmind_port); in _kadm5_initialize_rpcsec_gss_handle() 417 handle->clnt = clnt_tli_create(fd, nconf, NULL, in _kadm5_initialize_rpcsec_gss_handle() 421 handle->clnt = clnt_tli_create(fd, nconf, NULL, in _kadm5_initialize_rpcsec_gss_handle() 427 if (handle->clnt == NULL) { in _kadm5_initialize_rpcsec_gss_handle() 438 if (clnt_control(handle->clnt, CLSET_FD_CLOSE, NULL) != TRUE) { in _kadm5_initialize_rpcsec_gss_handle() [all …]
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hpi_pfc.c | 35 hpi_pfc_tcam_check_completion(hpi_handle_t handle, tcam_op_t op_type) in hpi_pfc_tcam_check_completion() argument 44 READ_TCAM_REG_CTL(handle, &tctl.value); in hpi_pfc_tcam_check_completion() 49 READ_TCAM_REG_CTL(handle, &tctl.value); in hpi_pfc_tcam_check_completion() 53 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_pfc_tcam_check_completion() 62 READ_TCAM_REG_CTL(handle, &tctl.value); in hpi_pfc_tcam_check_completion() 68 READ_TCAM_REG_CTL(handle, &tctl.value); in hpi_pfc_tcam_check_completion() 72 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_pfc_tcam_check_completion() 78 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_pfc_tcam_check_completion() 87 hpi_pfc_tcam_entry_read(hpi_handle_t handle, uint32_t location, in hpi_pfc_tcam_entry_read() argument 96 WRITE_TCAM_REG_MASK0(handle, tcam_ptr->mask0); in hpi_pfc_tcam_entry_read() [all …]
|
H A D | hpi_txdma.c | 32 static hpi_status_t hpi_txdma_control_reset_wait(hpi_handle_t handle, 36 hpi_txdma_log_page_handle_set(hpi_handle_t handle, uint8_t channel, in hpi_txdma_log_page_handle_set() argument 42 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_txdma_log_page_handle_set() 48 TXDMA_REG_WRITE64(handle, TDC_PAGE_HANDLE, channel, hdl_p->value); in hpi_txdma_log_page_handle_set() 54 hpi_txdma_channel_reset(hpi_handle_t handle, uint8_t channel) in hpi_txdma_channel_reset() argument 56 HPI_DEBUG_MSG((handle.function, HPI_TDC_CTL, in hpi_txdma_channel_reset() 58 return (hpi_txdma_channel_control(handle, TXDMA_RESET, channel)); in hpi_txdma_channel_reset() 62 hpi_txdma_channel_init_enable(hpi_handle_t handle, uint8_t channel) in hpi_txdma_channel_init_enable() argument 64 return (hpi_txdma_channel_control(handle, TXDMA_INIT_START, channel)); in hpi_txdma_channel_init_enable() 68 hpi_txdma_channel_enable(hpi_handle_t handle, uint8_t channel) in hpi_txdma_channel_enable() argument [all …]
|
H A D | hpi_rxdma.c | 42 hpi_rxdma_cfg_logical_page_handle(hpi_handle_t handle, uint8_t rdc, in hpi_rxdma_cfg_logical_page_handle() argument 48 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_logical_page_handle() 55 page_hdl.bits.handle = (uint32_t)page_handle; in hpi_rxdma_cfg_logical_page_handle() 57 RXDMA_REG_WRITE64(handle, RDC_PAGE_HANDLE, rdc, page_hdl.value); in hpi_rxdma_cfg_logical_page_handle() 63 hpi_rxdma_cfg_rdc_wait_for_qst(hpi_handle_t handle, uint8_t rdc) in hpi_rxdma_cfg_rdc_wait_for_qst() argument 69 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_wait_for_qst() 73 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_wait_for_qst() 84 hpi_rxdma_cfg_rdc_ctl(hpi_handle_t handle, uint8_t rdc, uint8_t op) in hpi_rxdma_cfg_rdc_ctl() argument 92 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ctl() 99 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_ctl() [all …]
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | scfutil.c | 70 sa_scf_fini(scfutilhandle_t *handle) in sa_scf_fini() argument 72 if (handle != NULL) { in sa_scf_fini() 74 if (handle->scope != NULL) { in sa_scf_fini() 76 scf_scope_destroy(handle->scope); in sa_scf_fini() 78 if (handle->instance != NULL) in sa_scf_fini() 79 scf_instance_destroy(handle->instance); in sa_scf_fini() 80 if (handle->service != NULL) in sa_scf_fini() 81 scf_service_destroy(handle->service); in sa_scf_fini() 82 if (handle->pg != NULL) in sa_scf_fini() 83 scf_pg_destroy(handle->pg); in sa_scf_fini() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_finddev.c | 100 struct finddevhdl *handle; in finddev_readdir_alt() local 110 handle = calloc(1, sizeof (struct finddevhdl)); in finddev_readdir_alt() 111 if (handle == NULL) { in finddev_readdir_alt() 116 handle->npaths = 0; in finddev_readdir_alt() 117 handle->curpath = 0; in finddev_readdir_alt() 118 handle->paths = NULL; in finddev_readdir_alt() 129 handle->npaths = n; in finddev_readdir_alt() 130 handle->paths = calloc(n, sizeof (char *)); in finddev_readdir_alt() 131 if (handle->paths == NULL) { in finddev_readdir_alt() 132 free(handle); in finddev_readdir_alt() [all …]
|
/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_debug.c | 41 ddi_acc_handle_t handle; in pci_dump() local 57 handle = igb->osdep.cfg_handle; in pci_dump() 63 pci_config_get16(handle, PCI_CONF_VENID)); in pci_dump() 66 pci_config_get16(handle, PCI_CONF_DEVID)); in pci_dump() 69 pci_config_get16(handle, PCI_CONF_COMM)); in pci_dump() 72 pci_config_get16(handle, PCI_CONF_STAT)); in pci_dump() 75 pci_config_get8(handle, PCI_CONF_REVID)); in pci_dump() 78 pci_config_get8(handle, PCI_CONF_PROGCLASS)); in pci_dump() 81 pci_config_get8(handle, PCI_CONF_SUBCLASS)); in pci_dump() 84 pci_config_get8(handle, PCI_CONF_BASCLASS)); in pci_dump() [all …]
|