/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | sd.c | 361 libscsi_hdl_t *handle; in fw_writefw() local 388 libscsi_fini(handle); in fw_writefw() 472 if (handle != NULL) in fw_writefw() 473 libscsi_fini(handle); in fw_writefw() 506 libscsi_hdl_t *handle; in fw_identify() local 556 libscsi_fini(handle); in fw_identify() 566 libscsi_fini(handle); in fw_identify() 577 libscsi_fini(handle); in fw_identify() 588 libscsi_fini(handle); in fw_identify() 614 libscsi_fini(handle); in fw_identify() [all …]
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | linkprop.c | 1605 status = pdp->pd_check(handle, pdp, linkid, in dladm_get_linkprop_values() 2588 status = i_dladm_macprop(handle, dip, B_TRUE); in set_resource() 3264 status = i_dladm_macprop(handle, dip, B_TRUE); in set_secondary_macs() 3787 status = dladm_write_conf(handle, conf); in i_dladm_set_linkprop_db() 3801 status = dladm_write_conf(handle, conf); in i_dladm_set_linkprop_db() 3804 dladm_destroy_conf(handle, conf); in i_dladm_set_linkprop_db() 3838 dladm_destroy_conf(handle, conf); in i_dladm_get_linkprop_db() 3867 if (func(handle, linkid, attr, arg) == in i_dladm_walk_linkprop_priv_db() 3874 dladm_destroy_conf(handle, conf); in i_dladm_walk_linkprop_priv_db() 4035 if (ioctl(dladm_dld_fd(handle), in i_dladm_macprop() [all …]
|
H A D | libdlvlan.c | 41 dladm_vlan_info(dladm_handle_t handle, datalink_id_t vlanid, in dladm_vlan_info() argument 47 if ((status = dladm_vnic_info(handle, vlanid, vnic, flags)) != in dladm_vlan_info() 61 dladm_vlan_create(dladm_handle_t handle, const char *vlan, datalink_id_t linkid, in dladm_vlan_create() argument 65 return (dladm_vnic_create(handle, vlan, linkid, in dladm_vlan_create() 74 dladm_vlan_delete(dladm_handle_t handle, datalink_id_t vlanid, uint32_t flags) in dladm_vlan_delete() argument 76 return (dladm_vnic_delete(handle, vlanid, flags | DLADM_OPT_VLAN)); in dladm_vlan_delete() 80 dladm_vlan_up(dladm_handle_t handle, datalink_id_t linkid) in dladm_vlan_up() argument 82 return (dladm_vnic_up(handle, linkid, DLADM_OPT_VLAN)); in dladm_vlan_up()
|
H A D | flowprop.c | 89 dladm_set_flowprop(dladm_handle_t handle, const char *flow, in dladm_set_flowprop() argument 100 status = i_dladm_set_prop_temp(handle, flow, prop_name, in dladm_set_flowprop() 160 #define FLOWPROP_RW_DB(handle, statep, writeop) \ argument 161 (i_dladm_rw_db(handle, "/etc/dladm/flowprop.conf", \ 178 return (FLOWPROP_RW_DB(handle, &state, B_TRUE)); in i_dladm_set_flowprop_db() 194 return (FLOWPROP_RW_DB(handle, &state, B_FALSE)); in i_dladm_get_flowprop_db() 198 i_dladm_init_flowprop_db(dladm_handle_t handle) in i_dladm_init_flowprop_db() argument 209 return (FLOWPROP_RW_DB(handle, &state, B_FALSE)); in i_dladm_init_flowprop_db() 215 dladm_flow_info(dladm_handle_t handle, const char *flow, in dladm_flow_info() argument 273 status = dladm_flow_info(handle, flow, &fa); in do_get_maxbw() [all …]
|
H A D | libdlbridge.c | 534 if ((entry = scf_entry_create(handle)) == NULL) in set_count_property() 537 if ((value = scf_value_create(handle)) == NULL) in set_count_property() 636 status = dladm_write_conf(handle, conf); in dladm_bridge_persist_conf() 637 dladm_destroy_conf(handle, conf); in dladm_bridge_persist_conf() 1016 (void) dladm_remove_conf(handle, linkid); in dladm_bridge_configure() 1085 status = dladm_write_conf(handle, conf); in dladm_bridge_setlink() 1088 dladm_destroy_conf(handle, conf); in dladm_bridge_setlink() 1116 dladm_destroy_conf(handle, conf); in dladm_bridge_getlink() 1154 dladm_destroy_conf(handle, conf); in i_dladm_bridge_is_held() 1157 dladm_destroy_conf(handle, conf); in i_dladm_bridge_is_held() [all …]
|
/illumos-gate/usr/src/lib/hbaapi/common/ |
H A D | hbaapi-sun.h | 81 HBA_HANDLE *handle, 86 HBA_HANDLE handle, 91 HBA_HANDLE handle, 97 HBA_HANDLE handle, 102 HBA_HANDLE handle, 109 HBA_HANDLE handle, 115 HBA_HANDLE handle, 124 HBA_HANDLE handle, 138 HBA_HANDLE handle, 144 HBA_HANDLE handle,
|
/illumos-gate/usr/src/lib/libfru/libfruraw/ |
H A D | fruraw.c | 45 treehdl_to_rawlist(fru_treehdl_t handle) in treehdl_to_rawlist() argument 52 treehdl_to_conthdl(fru_treehdl_t handle) in treehdl_to_conthdl() argument 56 ptr = treehdl_to_rawlist(handle); in treehdl_to_conthdl() 184 frt_get_name_from_hdl(fru_treehdl_t handle, char **name) in frt_get_name_from_hdl() argument 259 cont = treehdl_to_conthdl(handle); in frt_get_seg_list() 347 cont = treehdl_to_conthdl(handle); in find_segment() 407 frt_add_seg(fru_treehdl_t handle, fru_segdef_t *def) in frt_add_seg() argument 465 acc_err = fru_get_segments(sects[cnt].handle, segs, in frt_for_each_segment() 542 acc_err = fru_get_segments(sects[cnt].handle, segs, in frt_get_segment_name() 551 if (segs[each_seg].handle == node) { in frt_get_segment_name() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | obj_mgr.c | 529 *handle = map_node->handle; in object_mgr_add_to_map() 1037 if (map->handle == handle) { in object_mgr_find_in_map_nocache() 1078 if (map->handle == handle) { in object_mgr_find_in_map1() 1111 if (! obj || ! handle) { in object_mgr_find_in_map2() 1122 h = map->handle; in object_mgr_find_in_map2() 1135 *handle = h; in object_mgr_find_in_map2() 1141 *handle = h; in object_mgr_find_in_map2() 1278 &handle); in object_mgr_find_build_list() 1424 if (map->handle == handle) { in object_mgr_invalidate_handle1() 1516 &handle); in object_mgr_purge_session_objects() [all …]
|
/illumos-gate/usr/src/uts/i86xpv/io/psm/ |
H A D | xpv_intr.c | 245 ddi_acc_handle_t handle = i_ddi_get_pci_config_handle(dip); in apic_pci_msi_enable_vector() local 251 ASSERT((handle != NULL) && (cap_ptr != 0)); in apic_pci_msi_enable_vector() 270 pci_config_put16(handle, cap_ptr + PCI_MSI_CTRL, msi_ctrl); in apic_pci_msi_enable_vector() 283 ddi_acc_handle_t handle = i_ddi_get_pci_config_handle(rdip); in apic_pci_msi_disable_mode() local 285 ASSERT((handle != NULL) && (cap_ptr != 0)); in apic_pci_msi_disable_mode() 293 pci_config_put16(handle, cap_ptr + PCI_MSI_CTRL, msi_ctrl); in apic_pci_msi_disable_mode() 299 pci_config_put16(handle, cap_ptr + PCI_MSIX_CTRL, in apic_pci_msi_disable_mode() 314 ddi_acc_handle_t handle = i_ddi_get_pci_config_handle(rdip); in apic_pci_msi_enable_mode() local 316 ASSERT((handle != NULL) && (cap_ptr != 0)); in apic_pci_msi_enable_mode() 324 pci_config_put16(handle, cap_ptr + PCI_MSI_CTRL, msi_ctrl); in apic_pci_msi_enable_mode() [all …]
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_common_impl.h | 184 #define HXGE_REG_RD64(handle, offset, val_p) { \ argument 186 *(val_p) = HXGE_HPI_PIO_READ64(handle, offset); \ 187 MUTEX_EXIT(&((hxge_t *)handle.hxgep)->pio_lock); \ 189 #define HXGE_REG_RD32(handle, offset, val_p) { \ argument 191 *(val_p) = HXGE_HPI_PIO_READ32(handle, offset); \ 210 #define HXGE_REG_RD64(handle, offset, val_p) { \ argument 213 #define HXGE_REG_RD32(handle, offset, val_p) { \ argument 219 #define HXGE_REG_WR64(handle, offset, val) { \ argument 220 HXGE_HPI_PIO_WRITE64(handle, (offset), (val)); \ 222 #define HXGE_REG_WR32(handle, offset, val) { \ argument [all …]
|
H A D | hpi_vir.h | 93 hpi_status_t hpi_fzc_ldg_num_set(hpi_handle_t handle, uint8_t ld, uint8_t ldg); 94 hpi_status_t hpi_ldsv_ldfs_get(hpi_handle_t handle, uint8_t ldg, 96 hpi_status_t hpi_ldsv_get(hpi_handle_t handle, uint8_t ldg, ldsv_type_t vector, 98 hpi_status_t hpi_intr_mask_set(hpi_handle_t handle, uint8_t ld, 100 hpi_status_t hpi_intr_ldg_mgmt_set(hpi_handle_t handle, uint8_t ldg, 102 hpi_status_t hpi_fzc_ldg_timer_res_set(hpi_handle_t handle, uint32_t res); 103 hpi_status_t hpi_fzc_sid_set(hpi_handle_t handle, fzc_sid_t sid); 104 hpi_status_t hpi_fzc_sys_err_mask_set(hpi_handle_t handle, boolean_t mask); 105 hpi_status_t hpi_fzc_sys_err_stat_get(hpi_handle_t handle,
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddifm.c | 901 if (handle == NULL) in ddi_fm_acc_err_get() 905 ddi_fm_acc_err_get_fail(handle); in ddi_fm_acc_err_get() 909 errp = ((ddi_acc_impl_t *)handle)->ahi_err; in ddi_fm_acc_err_get() 918 de->fme_acc_handle = handle; in ddi_fm_acc_err_get() 934 if (handle == NULL) in ddi_fm_dma_err_get() 938 ddi_fm_dma_err_get_fail(handle); in ddi_fm_dma_err_get() 952 de->fme_dma_handle = handle; in ddi_fm_dma_err_get() 969 if (handle == NULL) in ddi_fm_acc_err_clear() 973 ddi_fm_acc_err_clear_fail(handle); in ddi_fm_acc_err_clear() 996 if (handle == NULL) in ddi_fm_dma_err_clear() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | samr_clnt.c | 180 (void) memcpy(&samr_handle->handle, &arg.handle, in samr_connect2() 221 (void) memcpy(&samr_handle->handle, &arg.handle, in samr_connect4() 273 (void) memcpy(&samr_handle->handle, &arg.handle, in samr_connect5() 303 (void) memcpy(&arg.handle, &samr_handle->handle, sizeof (ndr_hdid_t)); in samr_close_handle() 336 (void) memcpy(&arg.handle, &samr_handle->handle, sizeof (ndr_hdid_t)); in samr_open_domain() 385 (void) memcpy(&arg.handle, &domain_handle->handle, in samr_open_user() 466 (void) memcpy(&arg.handle, &domain_handle->handle, in samr_open_group() 524 (void) memcpy(&arg.handle, &domain_handle->handle, in samr_create_user() 582 (void) memcpy(&arg.handle, &samr_handle->handle, in samr_lookup_domain() 619 (void) memcpy(&arg.handle, &samr_handle->handle, in samr_enum_local_domains() [all …]
|
/illumos-gate/usr/src/lib/krb5/kadm5/ |
H A D | misc_free.c | 35 kadm5_server_handle_t handle = server_handle; in kadm5_free_policy_ent() local 42 if (handle->api_version == KADM5_API_VERSION_1) in kadm5_free_policy_ent() 80 kadm5_server_handle_t handle = server_handle; in kadm5_free_key_data() local 89 krb5_free_key_data_contents(handle->context, &key_data[i]); in kadm5_free_key_data() 98 kadm5_server_handle_t handle = server_handle; in kadm5_free_principal_ent() local 105 krb5_free_principal(handle->context, val->principal); in kadm5_free_principal_ent() 107 krb5_free_principal(handle->context, val->mod_name); in kadm5_free_principal_ent() 110 if (handle->api_version > KADM5_API_VERSION_1) { in kadm5_free_principal_ent() 113 krb5_free_key_data_contents(handle->context, in kadm5_free_principal_ent() 129 if (handle->api_version == KADM5_API_VERSION_1) in kadm5_free_principal_ent()
|
/illumos-gate/usr/src/lib/libfru/libfrupicl/ |
H A D | frupicl.c | 82 update_data_nodes(picl_nodehdl_t handle) in update_data_nodes() argument 87 if ((picl_err = picl_set_propval_by_name(handle, in update_data_nodes() 136 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(node); in fpt_get_name_from_hdl() local 258 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(sibling); in fpt_get_peer() local 261 rc = picl_get_propval_by_name(handle, PICL_PROP_PEER, in fpt_get_peer() 273 fpt_get_child(fru_treehdl_t handle, fru_treehdl_t *child) in fpt_get_child() argument 294 if (TREEHDL_TO_PICLHDL(handle) == picl_root_node) { in fpt_get_parent() 314 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(node); in fpt_get_node_type() local 329 if (picl_get_prop_by_name(handle, in fpt_get_node_type() 407 if ((err = update_data_nodes(handle)) != FRU_SUCCESS) { in get_segment_node() [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiots/ |
H A D | audiots.h | 487 #define OR_SET_BYTE(handle, addr, val) \ argument 488 ddi_put8((handle), (uint8_t *)(addr), \ 491 #define OR_SET_SHORT(handle, addr, val) \ argument 492 ddi_put16((handle), (uint16_t *)(addr), \ 495 #define OR_SET_WORD(handle, addr, val) \ argument 496 ddi_put32((handle), (uint32_t *)(addr), \ 499 #define AND_SET_BYTE(handle, addr, val) \ argument 500 ddi_put8((handle), (uint8_t *)(addr), \ 503 #define AND_SET_SHORT(handle, addr, val) \ argument 504 ddi_put16((handle), (uint16_t *)(addr), \ [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pcix.c | 44 ddi_acc_handle_t handle; in pcix_set_cmd_reg() local 46 if (pci_config_setup(child, &handle) != DDI_SUCCESS) in pcix_set_cmd_reg() 52 if ((pci_config_get8(handle, PCI_CONF_HEADER) & PCI_HEADER_TYPE_M) in pcix_set_cmd_reg() 56 if (PCI_CAP_LOCATE(handle, PCI_CAP_ID_PCIX, &pcix_cap_ptr) == in pcix_set_cmd_reg() 66 if ((pcix_cmd = PCI_CAP_GET16(handle, 0, pcix_cap_ptr, 2)) in pcix_set_cmd_reg() 79 PCI_CAP_PUT16(handle, 0, pcix_cap_ptr, 2, pcix_cmd); in pcix_set_cmd_reg() 82 pci_config_teardown(&handle); in pcix_set_cmd_reg()
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_irm.c | 277 if (handle->ih_type == DDI_INTR_TYPE_FIXED) in apix_irm_intr_ops() 278 return (apix_irm_alloc_fixed(dip, handle, result)); in apix_irm_intr_ops() 282 if (handle->ih_type == DDI_INTR_TYPE_FIXED) in apix_irm_intr_ops() 283 return (apix_irm_free_fixed(dip, handle, result)); in apix_irm_intr_ops() 291 return ((*psm_intr_ops_saved)(dip, handle, op, result)); in apix_irm_intr_ops() 328 return ((*psm_intr_ops_saved)(dip, handle, in apix_irm_alloc_fixed() 339 return ((*psm_intr_ops_saved)(dip, handle, in apix_irm_alloc_fixed() 357 return ((*psm_intr_ops_saved)(dip, handle, in apix_irm_alloc_fixed() 383 ret = (*psm_intr_ops_saved)(dip, handle, in apix_irm_free_fixed() 390 return ((*psm_intr_ops_saved)(dip, handle, in apix_irm_free_fixed() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | config.c | 59 scf_handle_t *handle = NULL; in load_config() local 72 handle = scf_handle_create(SCF_VERSION); in load_config() 75 sc = scf_scope_create(handle); in load_config() 76 svc = scf_service_create(handle); in load_config() 77 pg = scf_pg_create(handle); in load_config() 78 prop = scf_property_create(handle); in load_config() 79 value = scf_value_create(handle); in load_config() 80 value_iter = scf_iter_create(handle); in load_config() 91 if (scf_handle_bind(handle) == -1) { in load_config() 279 if (handle != NULL) { in load_config() [all …]
|
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_rx_rd64.h | 221 npi_handle_t handle, in RXDMA_REG_READ64() argument 229 if (handle.is_vraddr) { in RXDMA_REG_READ64() 237 *value = ddi_get64(handle.regh, in RXDMA_REG_READ64() 238 (uint64_t *)(handle.regp + (uint32_t)offset)); in RXDMA_REG_READ64() 240 *value = ddi_get64(handle.regh, (uint64_t *)(handle.regp + offset)); in RXDMA_REG_READ64() 244 npi_trace_update(handle, B_FALSE, &npi_rtracebuf, in RXDMA_REG_READ64()
|
H A D | npi_rx_wr64.h | 199 npi_handle_t handle, in RXDMA_REG_WRITE64() argument 207 if (handle.is_vraddr) { in RXDMA_REG_WRITE64() 215 ddi_put64(handle.regh, in RXDMA_REG_WRITE64() 216 (uint64_t *)(handle.regp + (uint32_t)offset), value); in RXDMA_REG_WRITE64() 218 ddi_put64(handle.regh, in RXDMA_REG_WRITE64() 219 (uint64_t *)(handle.regp + offset), value); in RXDMA_REG_WRITE64() 223 npi_trace_update(handle, B_TRUE, &npi_rtracebuf, in RXDMA_REG_WRITE64()
|
H A D | npi_tx_rd64.h | 121 npi_handle_t handle, in TXDMA_REG_READ64() argument 129 if (handle.is_vraddr) { in TXDMA_REG_READ64() 137 *value = ddi_get64(handle.regh, in TXDMA_REG_READ64() 138 (uint64_t *)(handle.regp + (uint32_t)offset)); in TXDMA_REG_READ64() 140 *value = ddi_get64(handle.regh, (uint64_t *)(handle.regp + offset)); in TXDMA_REG_READ64() 144 npi_trace_update(handle, B_FALSE, &npi_rtracebuf, in TXDMA_REG_READ64()
|
H A D | npi_tx_wr64.h | 121 npi_handle_t handle, in TXDMA_REG_WRITE64() argument 129 if (handle.is_vraddr) { in TXDMA_REG_WRITE64() 137 ddi_put64(handle.regh, in TXDMA_REG_WRITE64() 138 (uint64_t *)(handle.regp + (uint32_t)offset), value); in TXDMA_REG_WRITE64() 140 ddi_put64(handle.regh, in TXDMA_REG_WRITE64() 141 (uint64_t *)(handle.regp + offset), value); in TXDMA_REG_WRITE64() 145 npi_trace_update(handle, B_TRUE, &npi_rtracebuf, in TXDMA_REG_WRITE64()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_fflp.c | 92 npi_handle_t handle; in nxge_tcam_dump_entry() local 163 npi_handle_t handle; in nxge_fflp_vlan_tbl_clear_all() local 197 npi_handle_t handle; in nxge_fflp_tcam_init() local 259 npi_handle_t handle; in nxge_fflp_tcam_invalidate_all() local 302 npi_handle_t handle; in nxge_fflp_fcram_invalidate_all() local 363 npi_handle_t handle; in nxge_fflp_fcram_init() local 419 npi_handle_t handle; in nxge_logical_mac_assign_rdc_table() local 451 npi_handle_t handle; in nxge_main_mac_assign_rdc_table() local 501 npi_handle_t handle; in nxge_alt_mcast_mac_assign_rdc_table() local 545 npi_handle_t handle; in nxge_fflp_hw_reset() local [all …]
|
/illumos-gate/usr/src/lib/libfru/libfrupicltree/ |
H A D | frupicltree.c | 86 update_data_nodes(picl_nodehdl_t handle) in update_data_nodes() argument 91 if ((picl_err = ptree_update_propval_by_name(handle, in update_data_nodes() 148 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(node); in fpt_get_name_from_hdl() local 269 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(sibling); in fpt_get_peer() local 272 rc = ptree_get_propval_by_name(handle, PICL_PROP_PEER, in fpt_get_peer() 284 fpt_get_child(fru_treehdl_t handle, fru_treehdl_t *child) in fpt_get_child() argument 305 if (TREEHDL_TO_PICLHDL(handle) == picl_root_node) { in fpt_get_parent() 325 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(node); in fpt_get_node_type() local 340 if (ptree_get_prop_by_name(handle, in fpt_get_node_type() 418 if ((err = update_data_nodes(handle)) != FRU_SUCCESS) { in get_segment_node() [all …]
|