/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sidsys.c | 47 door_handle_t dh; in allocids() local 51 dh = idmap_get_door(zone); in allocids() 53 if (dh == NULL) in allocids() 56 if ((err = door_ki_info(dh, &di)) != 0) { 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 95 dh = door_ki_lookup(did); in idmap_reg() 97 if (dh == NULL) in idmap_reg() 100 if ((err = idmap_reg_dh(crgetzone(cr), dh)) != 0) in idmap_reg() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | revarp.c | 65 dlpi_handle_t dh; in doifrevarp() local 94 dh = rarp_open(linkname, &physaddrlen, my_macaddr, my_broadcast); in doifrevarp() 95 if (dh == NULL) { in doifrevarp() 105 dlpi_close(dh); in doifrevarp() 129 dlpi_close(dh); in doifrevarp() 149 retval = dlpi_send(dh, my_broadcast, physaddrlen, req, in doifrevarp() 160 retval = rarp_recv(dh, ans, ifrarplen, physaddrlen, in doifrevarp() 187 dlpi_close(dh); in doifrevarp() 204 dlpi_handle_t dh; in rarp_open() local 209 if ((retval = dlpi_open(linkname, &dh, 0)) != DLPI_SUCCESS) { in rarp_open() [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 | 259 DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) in DH_get0_pqg() argument 262 *p = dh->p; in DH_get0_pqg() 264 *q = dh->q; in DH_get0_pqg() 266 *g = dh->g; in DH_get0_pqg() 270 DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) in DH_set0_pqg() argument 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() [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 341 dh = nig->nfsidmap_daemon_dh; in nfs_idmap_str_uid() 342 if (dh) in nfs_idmap_str_uid() 343 door_ki_hold(dh); in nfs_idmap_str_uid() 346 if (dh == NULL || nig->nfsidmap_pid == curproc->p_pid || in nfs_idmap_str_uid() 348 if (dh) in nfs_idmap_str_uid() 349 door_ki_rele(dh); in nfs_idmap_str_uid() 363 door_ki_rele(dh); in nfs_idmap_str_uid() 381 error = door_ki_upcall_limited(dh, &door_args, NULL, SIZE_MAX, 0); in nfs_idmap_str_uid() 440 door_ki_rele(dh); in nfs_idmap_str_uid() [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() 163 switch (door_ki_upcall(dh, &da)) { 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() [all …]
|
/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/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/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 | 727 i_query_legacy_stats(dladm_handle_t dh, const char *linkname, pktsum_t *stats) in i_query_legacy_stats() argument 733 if (dladm_dld_kcp(dh) == NULL) in i_query_legacy_stats() 736 ksp = dladm_kstat_lookup(dladm_dld_kcp(dh), "link", 0, linkname, NULL); in i_query_legacy_stats() 739 dladm_get_stats(dladm_dld_kcp(dh), ksp, stats); in i_query_legacy_stats() 743 i_dlstat_legacy_rx_lane_stats(dladm_handle_t dh, const char *linkname) in i_dlstat_legacy_rx_lane_stats() argument 752 i_query_legacy_stats(dh, linkname, &stats); in i_dlstat_legacy_rx_lane_stats() 780 i_dlstat_legacy_tx_lane_stats(dladm_handle_t dh, const char *linkname) in i_dlstat_legacy_tx_lane_stats() argument 789 i_query_legacy_stats(dh, linkname, &stats); in i_dlstat_legacy_tx_lane_stats() 1230 i_dlstat_rx_swlane_stats(dladm_handle_t dh, datalink_id_t linkid __unused, in i_dlstat_rx_swlane_stats() argument 1233 return (i_dlstat_query_stats(dh, linkname, DLSTAT_MAC_RX_SWLANE, in i_dlstat_rx_swlane_stats() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 175 init_datalink(dlpi_handle_t dh, ulong_t snaplen, ulong_t chunksize, in init_datalink() argument 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() 189 (void) fprintf(stderr, "Using device %s ", dlpi_linkname(dh)); in init_datalink() 198 retv = dlpi_promiscon(dh, DL_PROMISC_PHYS); in init_datalink() 205 pr_errdlpi(dh, in init_datalink() 212 retv = dlpi_promiscon(dh, DL_PROMISC_MULTI); in init_datalink() 219 pr_errdlpi(dh, in init_datalink() 226 retv = dlpi_promiscon(dh, DL_PROMISC_SAP); 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() 262 dlpi_info(dlpi_handle_t dh, dlpi_info_t *infop, uint_t opt) in dlpi_info() argument 270 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_info() 437 dlpi_bind(dlpi_handle_t dh, uint_t sap, uint_t *boundsap) in dlpi_bind() argument 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() 511 i_dlpi_multi(dlpi_handle_t dh, t_uscalar_t op, const uint8_t *addrp, in i_dlpi_multi() 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 | 52 int __DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) in __DH_set0_pqg() argument 57 if ((dh->p == NULL && p == NULL) in __DH_set0_pqg() 58 || (dh->g == NULL && g == NULL)) in __DH_set0_pqg() 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() 70 BN_free(dh->g); in __DH_set0_pqg() 71 dh->g = g; in __DH_set0_pqg() 75 dh->length = BN_num_bits(q); in __DH_set0_pqg() [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 492 dh = door_ki_lookup(did); in klpd_reg() 493 if (dh == NULL || door_ki_info(dh, &di) != 0) { in klpd_reg() 509 kpd->klpd_door = dh; in klpd_reg() 578 klpd_unreg_dh(door_handle_t dh) in klpd_unreg_dh() argument 584 if (p->klpd_door == dh) in klpd_unreg_dh() 604 door_handle_t dh; in klpd_unreg() local 627 dh = door_ki_lookup(did); in klpd_unreg() 628 if (dh == NULL) { in klpd_unreg() 648 door_ki_rele(dh); in klpd_unreg() [all …]
|
/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/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/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()
|