Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 1038) sorted by relevance

12345678910>>...42

/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dserver_init.c93 free(handle->db_args), handle->db_args = NULL; in dup_db_args()
107 free(handle->db_args), handle->db_args = NULL; in free_db_args()
201 memset(handle, 0, sizeof(*handle)); in kadm5_init2()
205 free(handle); in kadm5_init2()
314 if (! (handle->lhandle = malloc(sizeof(*handle)))) { in kadm5_init2()
322 *handle->lhandle = *handle; in kadm5_init2()
325 handle->lhandle->lhandle = handle->lhandle; in kadm5_init2()
334 free(handle); in kadm5_init2()
362 ret = kdb_init_master(handle, handle->params.realm, in kadm5_init2()
382 ret = kdb_init_hist(handle, handle->params.realm); in kadm5_init2()
[all …]
/illumos-gate/usr/src/lib/libshare/smbfs/
H A Dsmbfs_scfutil.c105 free(handle); in smb_smf_scf_fini()
122 handle->scf_instance = scf_instance_create(handle->scf_handle); in smb_smf_instance_exists()
157 handle->scf_instance = scf_instance_create(handle->scf_handle); in smb_smf_instance_create()
187 handle->scf_instance = scf_instance_create(handle->scf_handle); in smb_smf_instance_delete()
223 handle->scf_handle, handle->scf_scope) != 0) in smb_smf_scf_init()
241 free(handle); in smb_smf_scf_init()
276 handle->scf_pg = scf_pg_create(handle->scf_handle); in smb_smf_create_service_pgroup()
323 handle->scf_pg = scf_pg_create(handle->scf_handle); in smb_smf_create_instance_pgroup()
372 handle->scf_pg = scf_pg_create(handle->scf_handle); in smb_smf_delete_service_pgroup()
423 handle->scf_pg = scf_pg_create(handle->scf_handle); in smb_smf_delete_instance_pgroup()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_scfutil.c69 if (handle == NULL) in smb_smf_create_service_pgroup()
117 if (!handle || (!handle->scf_pg)) in smb_smf_start_transaction()
160 if (handle == NULL) in smb_smf_end_transaction()
196 if (handle == NULL) in smb_smf_set_string_property()
260 if (handle == NULL) in smb_smf_get_string_property()
297 if (handle == NULL) in smb_smf_set_integer_property()
663 handle->scf_handle, handle->scf_scope) != 0) in smb_smf_scf_init()
688 free(handle); in smb_smf_scf_init()
689 handle = NULL; in smb_smf_scf_init()
694 return (handle); in smb_smf_scf_init()
[all …]
H A Dsmb_ht.c138 if (handle == 0) in ht_destroy_table()
146 free(handle); in ht_destroy_table()
159 if (handle == 0) in ht_get_total_items()
211 if (handle) in ht_set_cmpfn()
261 h_index = handle->ht_hash(handle, key); in ht_add_item()
323 h_index = handle->ht_hash(handle, key); in ht_remove_item()
386 h_index = handle->ht_hash(handle, key); in ht_find_item()
417 if (handle == 0) in ht_register_callback()
445 if (handle == 0) in ht_clean_table()
553 if (handle == 0 || iterator == 0 || handle->ht_total_items == 0) in ht_findfirst()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dmodel.h101 ((handle).ptr.m64) = (addr)
104 STRUCT_SET_HANDLE(handle, umodel, &__##handle##_buf)
125 (handle).ptr.m64->field)
142 #define STRUCT_BUF(handle) ((handle).ptr.m64) argument
169 (handle).ptr = (addr)
172 STRUCT_SET_HANDLE(handle, umodel, &__##handle##_buf)
174 #define STRUCT_SIZE(handle) (sizeof (*(handle).ptr)) argument
176 #define STRUCT_FADDR(handle, field) (&(handle).ptr->field) argument
178 #define STRUCT_FGET(handle, field) ((handle).ptr->field) argument
182 #define STRUCT_FSET(handle, field, val) ((handle).ptr->field = (val)) argument
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_parse.c153 b = ns_skiprr(handle->_msg_ptr, handle->_eom, section, in ns_parserr()
163 b = dn_expand(handle->_msg, handle->_eom, in ns_parserr()
168 if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom) in ns_parserr()
177 if (handle->_msg_ptr + NS_INT32SZ + NS_INT16SZ > handle->_eom) in ns_parserr()
181 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr()
186 if (++handle->_rrnum > handle->_counts[(int)section]) in ns_parserr()
215 b = ns_skiprr(handle->_msg_ptr, handle->_eom, section, in ns_parserr2()
225 b = ns_name_unpack2(handle->_msg, handle->_eom, handle->_msg_ptr, in ns_parserr2()
230 if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom) in ns_parserr2()
243 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr2()
[all …]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_prop.c112 ndmp_scfhandle_t *handle; in ndmp_get_prop() local
141 ndmp_smf_scf_fini(handle); in ndmp_get_prop()
148 ndmp_scfhandle_t *handle; in ndmp_set_prop() local
241 if (handle == NULL) in ndmp_smf_scf_fini()
250 free(handle); in ndmp_smf_scf_fini()
260 ndmp_scfhandle_t *handle; in ndmp_smf_scf_init() local
263 if (handle != NULL) { in ndmp_smf_scf_init()
284 if ((handle->scf_pg = in ndmp_smf_scf_init()
294 handle = NULL; in ndmp_smf_scf_init()
296 return (handle); in ndmp_smf_scf_init()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_test.c103 mtest_message(handle, msgbuf); in error_summary()
115 mtest_message(handle, msgbuf); in error_print()
133 mtest_handle_t handle) in memory_test_normal() argument
153 npages = BANK_SIZE(handle) / PAGE_SIZE(handle); in memory_test_normal()
281 SET_CONDITION(handle, cond); in memory_test_normal()
288 mtest_handle_t handle) in memory_test_quick() argument
308 npages = BANK_SIZE(handle) / PAGE_SIZE(handle); in memory_test_quick()
409 SET_CONDITION(handle, cond); in memory_test_quick()
417 mtest_handle_t handle) in memory_test_extended() argument
440 npages = BANK_SIZE(handle) / PAGE_SIZE(handle); in memory_test_extended()
[all …]
/illumos-gate/usr/src/lib/libsmedia/library/common/
H A Dl_misc.c202 void *handle; in get_dev_library_handle() local
327 (void) munmap(handle->sm_buf, handle->sm_bufsize); in release_handle()
334 free(handle); in release_handle()
367 free(handle); in get_handle_from_fd()
373 free(handle); in get_handle_from_fd()
391 free(handle); in get_handle_from_fd()
397 free(handle); in get_handle_from_fd()
420 free(handle); in get_handle_from_fd()
432 free(handle); in get_handle_from_fd()
451 free(handle); in get_handle_from_fd()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/cpupm/
H A Dcpu_acpi.c106 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()
249 handle->cs_id); in cpu_acpi_cache_state_dependencies()
272 handle->cs_id); in cpu_acpi_cache_state_dependencies()
280 handle->cs_id); in cpu_acpi_cache_state_dependencies()
448 handle->cs_id); in cpu_acpi_cache_supported_states()
1122 return (handle); in cpu_acpi_init()
[all …]
/illumos-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi_espc.c35 npi_espc_pio_enable(npi_handle_t handle) in npi_espc_pio_enable() argument
340 npi_espc_dump(npi_handle_t handle) in npi_espc_dump() argument
404 if (vpd_rd(handle, ep) != 0x55 || in npi_espc_vpd_info_get()
409 vpd_rd(handle, ep), vpd_rd(handle, ep + 1))); in npi_espc_vpd_info_get()
415 (vpd_rd(handle, ep + 1))); in npi_espc_vpd_info_get()
448 i = (vpd_rd(handle, base + 1) | in npi_espc_vpd_info_get()
519 if (vpd_rd(handle, ep) == 'M') { in npi_espc_vpd_info_get()
520 type = vpd_rd(handle, ep + 3); in npi_espc_vpd_info_get()
522 dlen = vpd_rd(handle, ep + 4); in npi_espc_vpd_info_get()
542 type = vpd_rd(handle, ep + 3); in npi_espc_vpd_info_get()
[all …]
H A Dnpi_txdma.c135 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txdma_dump_tdc_regs()
178 npi_txdma_dump_fzc_regs(npi_handle_t handle) in npi_txdma_dump_fzc_regs() argument
311 NPI_DEBUG_MSG((handle.function, NPI_TDC_CTL, in npi_txdma_log_page_set()
343 NPI_DEBUG_MSG((handle.function, NPI_REG_CTL, in npi_txdma_log_page_set()
584 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
588 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
596 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
600 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
608 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
612 TX_LOG_REG_WRITE64(handle, in npi_txdma_log_page_config()
[all …]
H A Dnpi_rxdma.c142 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_rxdma_dump_rdc_regs()
184 npi_rxdma_dump_fzc_regs(npi_handle_t handle) in npi_rxdma_dump_fzc_regs() argument
384 RXDMA_REG_WRITE64(handle, RXDMA_CFIG1_REG, in npi_rxdma_cfg_rdc_ctl()
432 RXDMA_REG_WRITE64(handle, in npi_rxdma_cfg_rdc_ctl()
519 NXGE_REG_WR64(handle, offset, cfg.value); in npi_rxdma_cfg_default_port_rdc()
920 NXGE_REG_RD64(handle, offset, &cnt.value); in npi_rxdma_red_discard_oflow_clear()
928 NXGE_REG_WR64(handle, offset, cnt.value); in npi_rxdma_red_discard_oflow_clear()
1256 handle.regp, handle.regh, clk_div.value)); in npi_rxdma_cfg_clock_div_set()
1469 npi_handle_t handle, in npi_rxdma_rdc_table_config() argument
1577 NXGE_REG_RD64(handle, offset, &value); in npi_rxdma_dump_rdc_table()
[all …]
H A Dnpi_ipp.c116 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()
128 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_ipp_dump_regs()
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()
175 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_ipp_reset()
201 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_ipp_config()
218 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_ipp_config()
232 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_ipp_config()
250 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_ipp_set_max_pktsize()
[all …]
H A Dnpi_txc.c148 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txc_dump_tdc_fzc_regs()
162 NXGE_REG_RD64(handle, offset, &value); in npi_txc_dump_tdc_fzc_regs()
185 npi_txc_dump_fzc_regs(npi_handle_t handle) in npi_txc_dump_fzc_regs() argument
234 NXGE_REG_RD64(handle, offset, &value); in npi_txc_dump_port_fzc_regs()
272 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txc_dma_max_burst()
287 TXC_FZC_REG_WRITE64(handle, in npi_txc_dma_max_burst()
292 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txc_dma_max_burst()
322 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_txc_dma_max_burst_set()
399 NXGE_REG_WR64(handle, TXC_CONTROL_REG, in npi_txc_control()
426 npi_txc_global_enable(npi_handle_t handle) in npi_txc_global_enable() argument
[all …]
H A Dnpi_vir.c141 npi_vir_dump_ldgnum(npi_handle_t handle) in npi_vir_dump_ldgnum() argument
170 npi_vir_dump_ldsv(npi_handle_t handle) in npi_vir_dump_ldsv() argument
199 npi_vir_dump_imask0(npi_handle_t handle) in npi_vir_dump_imask0() argument
212 NXGE_REG_RD64(handle, offset, in npi_vir_dump_imask0()
226 NXGE_REG_RD64(handle, offset, in npi_vir_dump_imask0()
243 npi_vir_dump_sid(npi_handle_t handle) in npi_vir_dump_sid() argument
256 NXGE_REG_RD64(handle, offset, in npi_vir_dump_sid()
798 NXGE_REG_WR64(handle, DMA_BIND_REG + in npi_fzc_dma_bind_set()
806 npi_handle_t handle, in npi_fzc_dma_bind_get() argument
1061 NXGE_REG_RD64(handle, offset, &sv); in npi_ldsv_ld_get()
[all …]
H A Dnpi_mac.c650 XMAC_REG_WR(handle, portn, in npi_mac_hashtab_entry()
653 BMAC_REG_WR(handle, portn, in npi_mac_hashtab_entry()
658 XMAC_REG_RD(handle, portn, in npi_mac_hashtab_entry()
661 BMAC_REG_RD(handle, portn, in npi_mac_hashtab_entry()
701 XMAC_REG_WR(handle, portn, in npi_mac_hostinfo_entry()
705 BMAC_REG_WR(handle, portn, in npi_mac_hostinfo_entry()
711 XMAC_REG_RD(handle, portn, in npi_mac_hostinfo_entry()
715 BMAC_REG_RD(handle, portn, in npi_mac_hostinfo_entry()
827 XMAC_REG_WR(handle, portn, in npi_mac_altaddr_entry()
829 XMAC_REG_WR(handle, portn, in npi_mac_altaddr_entry()
[all …]
H A Dnpi_fflp.c45 (handle.is_vraddr ? \
143 npi_fflp_dump_regs(npi_handle_t handle) in npi_fflp_dump_regs() argument
194 REG_PIO_READ64(handle, offset, &value); in npi_fflp_vlan_tbl_dump()
311 WRITE_TCAM_REG_MASK0(handle, 0xffULL); in npi_fflp_tcam_entry_invalidate()
312 WRITE_TCAM_REG_KEY0(handle, 0x0ULL); in npi_fflp_tcam_entry_invalidate()
317 WRITE_TCAM_REG_CTL(handle, tctl.value); in npi_fflp_tcam_entry_invalidate()
363 WRITE_TCAM_REG_CTL(handle, tctl.value); in npi_fflp_tcam_entry_match()
409 WRITE_TCAM_REG_CTL(handle, tctl.value); in npi_fflp_tcam_entry_read()
518 WRITE_TCAM_REG_KEY1(handle, ram_data); in npi_fflp_tcam_asc_ram_entry_write()
578 READ_TCAM_REG_KEY1(handle, ram_data); in npi_fflp_tcam_asc_ram_entry_read()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dclient_init.c447 handle->lhandle->clnt = handle->clnt; in _kadm5_initialize_rpcsec_gss_handle()
509 handle->clnt->cl_auth = rpc_gss_seccreate(handle->clnt, in _kadm5_initialize_rpcsec_gss_handle()
543 r = init_2(&handle->api_version, handle->clnt); in _kadm5_initialize_rpcsec_gss_handle()
610 if (! (handle = malloc(sizeof(*handle)))) { in _kadm5_init_any()
613 if (! (handle->lhandle = malloc(sizeof(*handle)))) { in _kadm5_init_any()
624 *handle->lhandle = *handle; in _kadm5_init_any()
627 handle->lhandle->lhandle = handle->lhandle; in _kadm5_init_any()
829 handle->lhandle->cache_name = handle->cache_name; in _kadm5_init_any()
968 if(handle->clnt && handle->clnt->cl_auth) in _kadm5_init_any()
1024 if (handle->destroy_cache && handle->cache_name) { in kadm5_destroy()
[all …]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhpi_pfc.c44 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()
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()
106 WRITE_TCAM_REG_CTL(handle, tctl.value); in hpi_pfc_tcam_entry_read()
127 WRITE_TCAM_REG_CTL(handle, tctl.value); in hpi_pfc_tcam_asc_ram_entry_read()
137 READ_TCAM_REG_KEY0(handle, ram_data); in hpi_pfc_tcam_asc_ram_entry_read()
149 WRITE_TCAM_REG_KEY0(handle, ram_data); in hpi_pfc_tcam_asc_ram_entry_write()
158 WRITE_TCAM_REG_CTL(handle, tctl.value); in hpi_pfc_tcam_asc_ram_entry_write()
462 REG_PIO_WRITE64(handle, offset, zaddr); in hpi_pfc_clear_mac_address()
[all …]
H A Dhpi_txdma.c44 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_txdma_log_page_handle_set()
58 HPI_DEBUG_MSG((handle.function, HPI_TDC_CTL, in hpi_txdma_channel_reset()
96 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_txdma_channel_control()
158 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_txdma_channel_control()
174 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_txdma_control_status()
190 TXDMA_REG_WRITE64(handle, TDC_STAT, channel, in hpi_txdma_control_status()
195 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_txdma_control_status()
352 HPI_DEBUG_MSG((handle.function, HPI_TDC_CTL, in hpi_txdma_desc_gather_set()
356 HXGE_MEM_PIO_WRITE64(handle, desc_p->value); in hpi_txdma_desc_gather_set()
372 HXGE_REG_WR64(handle, offset, 0); in hpi_txdma_desc_set_zero()
[all …]
H A Dhpi_rxdma.c48 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()
92 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ctl()
121 if (hpi_rxdma_cfg_rdc_wait_for_qst(handle, in hpi_rxdma_cfg_rdc_ctl()
123 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ctl()
143 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ctl()
182 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_rcr_ctl()
204 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_rcr_ctl()
245 HPI_ERROR_MSG((handle.function, HPI_ERR_CTL, in hpi_rxdma_cfg_rdc_ring()
304 HPI_DEBUG_MSG((handle.function, HPI_RDC_CTL, in hpi_rxdma_cfg_rdc_ring()
[all …]
/illumos-gate/usr/src/lib/libshare/common/
H A Dscfutil.c82 if (handle->handle != NULL) { in sa_scf_fini()
86 scf_handle_destroy(handle->handle); in sa_scf_fini()
115 if (handle->handle == NULL) { in sa_scf_init()
125 handle->scope = scf_scope_create(handle->handle); in sa_scf_init()
126 handle->service = scf_service_create(handle->handle); in sa_scf_init()
127 handle->pg = scf_pg_create(handle->handle); in sa_scf_init()
130 handle->instance = scf_instance_create(handle->handle); in sa_scf_init()
134 if (scf_handle_get_scope(handle->handle, in sa_scf_init()
1034 handle, handle->pg, buff, in sa_extract_group()
1228 handle->pg = scf_pg_create(handle->handle); in sa_create_pgroup()
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_finddev.c118 handle->npaths = 0; in finddev_readdir_alt()
131 handle->npaths = n; in finddev_readdir_alt()
134 free(handle); in finddev_readdir_alt()
190 if (handle == NULL) in finddev_readdir_devfs()
199 free(handle); in finddev_readdir_devfs()
206 free(handle); in finddev_readdir_devfs()
220 free(handle); in finddev_readdir_devfs()
243 free(handle); in finddev_readdir_devfs()
329 free(handle); in finddev_close()
338 if (handle->curpath < handle->npaths) { in finddev_next()
[all …]
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_debug.c41 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()
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()
96 pci_config_get8(handle, PCI_CONF_BIST)); in pci_dump()
120 pci_config_get32(handle, PCI_CONF_CIS)); in pci_dump()
153 pci_config_get8(handle, offset)); in pci_dump()
177 pci_config_get8(handle, offset)); in pci_dump()
[all …]

12345678910>>...42