/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sidsys.c | 47 door_handle_t dh; in allocids() local 53 if (dh == NULL) in allocids() 57 door_ki_rele(dh); in allocids() 61 door_ki_rele(dh); in allocids() 88 door_handle_t dh; in idmap_reg() local 97 if (dh == NULL) in idmap_reg() 113 if (dh == NULL) in idmap_unreg() 118 door_ki_rele(dh); in idmap_unreg() 129 door_handle_t dh; in idmap_flush_kcache() local 135 if (dh == NULL) in idmap_flush_kcache() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | revarp.c | 65 dlpi_handle_t dh; in doifrevarp() local 95 if (dh == NULL) { in doifrevarp() 105 dlpi_close(dh); in doifrevarp() 129 dlpi_close(dh); in doifrevarp() 187 dlpi_close(dh); in doifrevarp() 204 dlpi_handle_t dh; in rarp_open() local 258 return (dh); in rarp_open() 261 dlpi_close(dh); in rarp_open() 344 dlpi_close(dh); in dlpi_print_address() 351 dlpi_close(dh); in dlpi_print_address() [all …]
|
/illumos-gate/usr/src/lib/libc/amd64/gen/ |
H A D | memccpy.S | 37 movb (%rsi),%dh 38 movb %dh,(%rdi) / move byte 39 cmpb %dh,%dl / is it the byte sought? 44 movb 1(%rsi),%dh 45 movb %dh,1(%rdi) / move byte 46 cmpb %dh,%dl / is it the byte sought? 51 movb 2(%rsi),%dh 52 movb %dh,2(%rdi) / move byte 53 cmpb %dh,%dl / is it the byte sought? 58 movb 3(%rsi),%dh [all …]
|
H A D | strlen.S | 142 test $0x01, %dh 145 test $0x02, %dh 148 test $0x04, %dh 151 test $0x08, %dh 154 test $0x10, %dh 157 test $0x20, %dh 160 test $0x40, %dh
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | compat.c | 262 *p = dh->p; in DH_get0_pqg() 264 *q = dh->q; in DH_get0_pqg() 266 *g = dh->g; in DH_get0_pqg() 276 if ((dh->p == NULL && p == NULL) || (dh->g == NULL && g == NULL)) in DH_set0_pqg() 280 BN_free(dh->p); in DH_set0_pqg() 281 dh->p = p; in DH_set0_pqg() 284 BN_free(dh->q); in DH_set0_pqg() 285 dh->q = q; in DH_set0_pqg() 288 BN_free(dh->g); in DH_set0_pqg() 289 dh->g = g; in DH_set0_pqg() [all …]
|
H A D | compat.h | 45 void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, 47 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); 48 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key); 49 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); 50 int DH_set_length(DH *dh, long length);
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_idmap.c | 312 door_handle_t dh; in nfs_idmap_str_uid() local 342 if (dh) in nfs_idmap_str_uid() 343 door_ki_hold(dh); in nfs_idmap_str_uid() 348 if (dh) in nfs_idmap_str_uid() 363 door_ki_rele(dh); in nfs_idmap_str_uid() 549 if (dh) in nfs_idmap_uid_str() 554 if (dh) in nfs_idmap_uid_str() 721 if (dh) in nfs_idmap_str_gid() 727 if (dh) in nfs_idmap_str_gid() 929 if (dh) in nfs_idmap_gid_str() [all …]
|
H A D | nfs_cmd.c | 124 door_handle_t dh; in nfscmd_send() local 133 dh = ncg->nfscmd_dh; in nfscmd_send() 134 if (dh != NULL) in nfscmd_send() 135 door_ki_hold(dh); in nfscmd_send() 138 if (dh == NULL) { in nfscmd_send() 169 door_ki_rele(dh); in nfscmd_send() 174 if (!door_ki_info(dh, &di)) { in nfscmd_send() 184 if (dh == ncg->nfscmd_dh) in nfscmd_send() 187 door_ki_rele(dh); in nfscmd_send() 196 door_ki_rele(dh); in nfscmd_send() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dlink_common.c | 105 dof_helper_t dh; in dtrace_link_dof() local 126 dh.dofhp_dof = (uintptr_t)dof; in dtrace_link_dof() 127 dh.dofhp_addr = elf->e_type == ET_DYN ? addr : 0; in dtrace_link_dof() 130 (void) snprintf(dh.dofhp_mod, sizeof (dh.dofhp_mod), in dtrace_link_dof() 133 (void) snprintf(dh.dofhp_mod, sizeof (dh.dofhp_mod), in dtrace_link_dof() 158 if (ioctl(fd, DTRACEHIOC_ADDDOF, &dh) == -1) { in dtrace_link_dof()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | l2_packet.c | 31 retval = dlpi_bind(l2->dh, DLPI_ANY_SAP, NULL); in link_init() 38 retval = dlpi_promiscon(l2->dh, DL_PROMISC_SAP); in link_init() 46 retval = dlpi_get_physaddr(l2->dh, DL_CURR_PHYS_ADDR, paddr, &paddrlen); in link_init() 77 retval = dlpi_send(l2->dh, NULL, 0, buf, buflen, NULL); in l2_packet_send() 96 retval = dlpi_recv(l2->dh, NULL, NULL, buf, &buflen, 0, NULL); in l2_packet_receive() 130 retval = dlpi_open(l2->ifname, &l2->dh, DLPI_RAW); in l2_packet_init() 140 dlpi_close(l2->dh); in l2_packet_init() 145 (void) eloop_register_read_sock(dlpi_fd(l2->dh), l2_packet_receive, l2, in l2_packet_init() 157 eloop_unregister_read_sock(dlpi_fd(l2->dh)); in l2_packet_deinit() 158 dlpi_close(l2->dh); in l2_packet_deinit()
|
/illumos-gate/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_misc_proc.c | 116 void *dh; in gss_OID_load() local 127 if ((dh = dlopen(LIBGSS, RTLD_NOLOAD)) == NULL) { in gss_OID_load() 132 OIDptr = (gss_OID *)dlsym(dh, "GSS_C_NT_EXPORT_NAME"); in gss_OID_load() 138 g_import_name = (gss_fptr)dlsym(dh, "gss_import_name"); in gss_OID_load() 142 g_display_name = (gss_fptr)dlsym(dh, "gss_display_name"); in gss_OID_load() 146 g_release_name = (gss_fptr)dlsym(dh, "gss_release_name"); in gss_OID_load() 150 g_release_buffer = (gss_fptr)dlsym(dh, "gss_release_buffer"); in gss_OID_load() 154 g_release_oid = (gss_fptr)dlsym(dh, "gss_release_oid"); in gss_OID_load() 164 if ((dh = dlopen(MECHDH, RTLD_LAZY)) != NULL) { in gss_OID_load() 166 OIDptr = (gss_OID *)dlsym(dh, "__DH_GSS_C_NT_NETNAME"); in gss_OID_load()
|
/illumos-gate/usr/src/cmd/iconv/ |
H A D | iconv_list.c | 192 scan_dir(DIR *dh, char sep, char *suffix) in scan_dir() argument 197 while ((de = readdir(dh)) != NULL) { in scan_dir() 260 DIR *dh; in list_codesets() local 266 dh = opendir(PATH_LIBICONV); in list_codesets() 267 if (dh == NULL) { in list_codesets() 271 scan_dir(dh, '%', ".so"); in list_codesets() 272 (void) closedir(dh); in list_codesets() 274 dh = opendir(PATH_BTABLES); in list_codesets() 275 if (dh == NULL) { in list_codesets() 279 scan_dir(dh, '%', ".bt"); in list_codesets() [all …]
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlstat.c | 733 if (dladm_dld_kcp(dh) == NULL) in i_query_legacy_stats() 739 dladm_get_stats(dladm_dld_kcp(dh), ksp, stats); in i_query_legacy_stats() 752 i_query_legacy_stats(dh, linkname, &stats); in i_dlstat_legacy_rx_lane_stats() 789 i_query_legacy_stats(dh, linkname, &stats); in i_dlstat_legacy_tx_lane_stats() 1497 rx_lane_head = dlstat_rx_lane_stats(dh, linkid); in dlstat_rx_lane_total_stats() 1541 tx_lane_head = dlstat_tx_lane_stats(dh, linkid); in dlstat_tx_lane_total_stats() 1693 return (i_dlstat_query_fanout_stats(dh, linkid, in dlstat_fanout_swlane_and_local_stats() 1935 rx_ring_head = dlstat_rx_ring_stats(dh, linkid); in dlstat_rx_ring_total_stats() 1978 tx_ring_head = dlstat_tx_ring_stats(dh, linkid); in dlstat_tx_ring_total_stats() 2049 rx_total = dlstat_rx_lane_total_stats(dh, linkid); in dlstat_total_stats() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 181 retv = dlpi_bind(dh, DLPI_ANY_SAP, NULL); in init_datalink() 183 pr_errdlpi(dh, "cannot bind on", retv); in init_datalink() 187 dlpi_linkname(dh)); in init_datalink() 205 pr_errdlpi(dh, in init_datalink() 219 pr_errdlpi(dh, in init_datalink() 226 retv = dlpi_promiscon(dh, DL_PROMISC_SAP); in init_datalink() 237 netfd = dlpi_fd(dh); in init_datalink() 248 pr_errdlpi(dh, "PFIOCSETF", DL_SYSERR); in init_datalink() 256 pr_errdlpi(dh, "SBIOCSTIME", DL_SYSERR); in init_datalink() 260 pr_errdlpi(dh, "SBIOCGCHUNK", DL_SYSERR); in init_datalink() [all …]
|
/illumos-gate/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 241 dlpi_close(dlpi_handle_t dh) in dlpi_close() argument 243 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_close() 270 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_info() 443 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_bind() 481 if (dlpi_unbind(dh) != DLPI_SUCCESS) in dlpi_bind() 492 dlpi_unbind(dlpi_handle_t dh) in dlpi_unbind() argument 495 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_unbind() 895 dlpi_fd(dlpi_handle_t dh) in dlpi_fd() argument 897 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_fd() 915 dlpi_linkname(dlpi_handle_t dh) in dlpi_linkname() argument [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | drctl_impl.c | 72 door_handle_t dh = drctl_dh; in i_drctl_send() local 76 if (dh) in i_drctl_send() 77 door_ki_hold(dh); in i_drctl_send() 99 up_err = door_ki_upcall_limited(dh, &door_args, NULL, SIZE_MAX, 0); in i_drctl_send() 132 door_ki_rele(dh); in i_drctl_send() 151 door_ki_rele(dh); in i_drctl_send()
|
/illumos-gate/usr/src/lib/libdhcpagent/common/ |
H A D | dhcp_stable.c | 134 dlpi_handle_t dh = NULL; in make_stable_duid() local 143 if (dlpi_open(physintf, &dh, 0) == DLPI_SUCCESS && in make_stable_duid() 144 dlpi_bind(dh, DLPI_ANY_SAP, NULL) == DLPI_SUCCESS && in make_stable_duid() 145 dlpi_info(dh, &dlinfo, 0) == DLPI_SUCCESS && in make_stable_duid() 152 dlpi_close(dh); in make_stable_duid() 162 dlpi_close(dh); in make_stable_duid() 165 if (dh != NULL) in make_stable_duid() 166 dlpi_close(dh); in make_stable_duid()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | tls.c | 62 BN_free(dh->p); in __DH_set0_pqg() 63 dh->p = p; in __DH_set0_pqg() 66 BN_free(dh->q); in __DH_set0_pqg() 67 dh->q = q; in __DH_set0_pqg() 71 dh->g = g; in __DH_set0_pqg() 101 DH *dh = NULL; in get_dh512() local 111 DH_free(dh); in get_dh512() 117 return dh; in get_dh512() 1004 dh = NULL; 1013 if (dh == NULL) [all …]
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | memccpy.S | 38 movb 16(%esp),%dh / %dh = character to search for 45 cmpb %dh,%dl / is it the byte sought? 52 cmpb %dh,%dl / is it the byte sought? 59 cmpb %dh,%dl / is it the byte sought? 68 cmpb %dh,%dl / is it the byte sought?
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did_hash.c | 45 did_hash_t *dh = did_hash_create(hdl); in did_hash_init() local 47 if (dh != NULL) { in did_hash_init() 48 topo_mod_setspecific(hdl, (void *) dh); in did_hash_init() 58 did_hash_t *dh = (did_hash_t *)topo_mod_getspecific(mod); in did_hash_fini() local 61 if (dh == NULL) in did_hash_fini() 63 did_hash_destroy(dh); in did_hash_fini()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | klpd.c | 450 door_handle_t dh; in klpd_reg() local 493 if (dh == NULL || door_ki_info(dh, &di) != 0) { in klpd_reg() 604 door_handle_t dh; in klpd_unreg() local 628 if (dh == NULL) { in klpd_unreg() 648 door_ki_rele(dh); in klpd_unreg() 670 door_ki_rele(dh); in klpd_unreg() 729 door_handle_t dh; in pfexec_reg() local 739 if (dh == NULL || door_ki_info(dh, &di) != 0) in pfexec_reg() 760 door_handle_t dh; in pfexec_unreg() local 766 if (dh == NULL) in pfexec_unreg() [all …]
|
/illumos-gate/usr/src/lib/libuuid/common/ |
H A D | etheraddr.c | 123 dlpi_handle_t dh; in get_etheraddr() local 126 if (dlpi_open(linkname, &dh, 0) != DLPI_SUCCESS) in get_etheraddr() 130 retval = dlpi_get_physaddr(dh, DL_CURR_PHYS_ADDR, in get_etheraddr() 133 dlpi_close(dh); in get_etheraddr()
|
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_subr.c | 194 int64_t dh; in i_cmp_addr_impl() local 204 dh = signed_diff64(i1h, i2h); in i_cmp_addr_impl() 208 if (dh == 0) { in i_cmp_addr_impl() 214 } else if (l_sign == sign64(dh) || abs(dh) > 1) { in i_cmp_addr_impl() 215 if (dh > 0) in i_cmp_addr_impl() 224 if (dh == 1) in i_cmp_addr_impl()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/sppptun/ |
H A D | sppptun.c | 92 dlpi_handle_t dh; in sppp_dlpi() local 96 if ((retv = dlpi_open(linkname, &dh, 0)) != DLPI_SUCCESS) { in sppp_dlpi() 106 if ((retv = dlpi_bind(dh, adata->sap, NULL)) != DLPI_SUCCESS) { in sppp_dlpi() 110 dlpi_close(dh); in sppp_dlpi() 115 if ((retv = dlpi_get_physaddr(dh, DL_CURR_PHYS_ADDR, &adata->localaddr, in sppp_dlpi() 120 dlpi_close(dh); in sppp_dlpi() 129 dlpi_close(dh); in sppp_dlpi() 133 return (dlpi_fd(dh)); in sppp_dlpi()
|
/illumos-gate/usr/src/cmd/dlutil/ |
H A D | dlsend.c | 68 dlpi_handle_t dh; in main() local 115 if ((ret = dlpi_open(argv[0], &dh, 0)) != DLPI_SUCCESS) { in main() 121 if ((ret = dlpi_bind(dh, dlsend_sap, &bind_sap)) != DLPI_SUCCESS) { in main() 142 ret = dlpi_send(dh, mac, maclen, &msg, sizeof (msg), NULL); in main()
|