/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci_common.c | 1178 i_ddi_io_put8(hp, in pci_common_ctlops_poke() 1197 i_ddi_io_put64(hp, in pci_common_ctlops_poke() 1208 i_ddi_io_put8(hp, in pci_common_ctlops_poke() 1213 i_ddi_io_put16(hp, in pci_common_ctlops_poke() 1218 i_ddi_io_put32(hp, in pci_common_ctlops_poke() 1223 i_ddi_io_put64(hp, in pci_common_ctlops_poke() 1341 impl_acc_err_init(hp); in pci_fm_acc_setup() 1394 i_ddi_io_get8(hp, in pci_common_ctlops_peek() 1413 i_ddi_io_get64(hp, in pci_common_ctlops_peek() 1424 i_ddi_io_get8(hp, in pci_common_ctlops_peek() [all …]
|
/illumos-gate/usr/src/tools/lintdump/ |
H A D | lintdump.c | 151 print_lintmod(const char *lnname, FILE *fp, FLENS *hp) in print_lintmod() argument 157 psizes[1] = hp->f1; in print_lintmod() 158 psizes[2] = hp->f2; in print_lintmod() 159 psizes[3] = hp->f3; in print_lintmod() 160 psizes[4] = hp->f4; in print_lintmod() 162 infohdr("LINTMOD", "%hu: %lu+%lu+%lu+%lu = %lu bytes\n", hp->mno, in print_lintmod() 163 hp->f1, hp->f2, hp->f3, hp->f4, hp->f1 + hp->f2 + hp->f3 + hp->f4); in print_lintmod()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | bio.c | 414 struct hbuf *hp; in brelse() local 463 hp = &hbuf[index]; in brelse() 581 struct hbuf *hp; in getblk_common() local 640 hp->b_length--; in getblk_common() 789 struct hbuf *hp; in trygetblk() local 867 struct hbuf *hp; in bflush() local 930 hp->b_length--; in bflush() 960 struct hbuf *hp; in blkflush() local 993 hp->b_length--; in blkflush() 1453 struct hbuf *hp; in bio_getfreeblk() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/ |
H A D | rcmd.c | 110 struct hostent *hp; in rcmd() local 119 hp = gethostbyname(*ahost); in rcmd() 120 if (hp == 0) { in rcmd() 130 *ahost = hp->h_name; in rcmd() 173 sin.sin_family = hp->h_addrtype; in rcmd() 174 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp->h_length); in rcmd() 188 if (hp->h_addr_list[1] != NULL) { in rcmd() 204 hp->h_addr_list++; in rcmd() 205 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, in rcmd() 206 hp->h_length); in rcmd() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | gethostent.c | 74 struct hostent *hp; in _gethostbyaddr() local 76 hp = gethostbyaddr(addr, len, type); in _gethostbyaddr() 78 return (hp); in _gethostbyaddr() 84 struct hostent *hp; in _nss_dns_gethostbyname2() local 86 hp = gethostbyname2(name, AF_INET6); in _nss_dns_gethostbyname2() 88 return (hp); in _nss_dns_gethostbyname2() 94 struct hostent *hp; in _gethostbyname() local 96 hp = gethostbyname(name); in _gethostbyname() 98 return (hp); in _gethostbyname()
|
H A D | dns_common.c | 209 for (p = hp->h_addr_list; *p != 0; p++) { in ent2str() 211 if (p != hp->h_addr_list) { in ent2str() 217 if (hp->h_addrtype == AF_INET6) { in ent2str() 241 if (hp->h_name != NULL && *hp->h_name != '\0') { in ent2str() 242 if ((n = snprintf(s, l, " %s", hp->h_name)) >= l) in ent2str() 247 if (p == hp->h_addr_list) { in ent2str() 248 for (q = hp->h_aliases; q && *q; q++) { in ent2str() 406 HEADER *hp; in _nss_dns_gethost_withttl() local 597 hp = (HEADER *)&resbuf.h; in _nss_dns_gethost_withttl() 601 ancount = ntohs(hp->ancount); in _nss_dns_gethost_withttl() [all …]
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_hash.c | 87 ipmi_hash_create(ipmi_handle_t *hp, size_t linkoffs, in ipmi_hash_create() argument 94 if ((ihp = ipmi_zalloc(hp, sizeof (ipmi_hash_t))) == NULL) in ipmi_hash_create() 97 ihp->ih_handle = hp; in ipmi_hash_create() 104 if ((ihp->ih_buckets = ipmi_zalloc(hp, in ipmi_hash_create() 106 ipmi_free(hp, ihp); in ipmi_hash_create() 171 ipmi_handle_t *hp = ihp->ih_handle; in ipmi_hash_resize() local 180 if ((nbuckets = ipmi_zalloc(hp, nsize * sizeof (void *))) == NULL) { in ipmi_hash_resize() 210 ipmi_free(hp, ihp->ih_buckets); in ipmi_hash_resize()
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 870 ns_hash_t *hp; in __ns_ldap_getMappedAttributes() local 878 if (hp == NULL || hp->h_map == NULL) in __ns_ldap_getMappedAttributes() 881 ret = __s_api_cp2dArray(hp->h_map->map); in __ns_ldap_getMappedAttributes() 891 ns_hash_t *hp; in __ns_ldap_getOrigAttribute() local 899 if (hp == NULL || hp->h_map == NULL) in __ns_ldap_getOrigAttribute() 902 ret = __s_api_cp2dArray(hp->h_map->map); in __ns_ldap_getOrigAttribute() 950 ns_hash_t *hp; in __ns_ldap_getMappedObjectClass() local 958 if (hp == NULL || hp->h_map == NULL) in __ns_ldap_getMappedObjectClass() 961 ret = __s_api_cp2dArray(hp->h_map->map); in __ns_ldap_getMappedObjectClass() 971 ns_hash_t *hp; in __ns_ldap_getOrigObjectClass() local [all …]
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | remainderl.c | 55 long double hp; in remainderl() local 77 hp = half * p; in remainderl() 78 if (x > hp) { in remainderl() 83 if (x >= hp) in remainderl()
|
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_mem_acpi.c | 163 dr_attach_mem(dr_handle_t *hp, dr_common_unit_t *cp) in dr_attach_mem() argument 173 dr_lock_status(hp->h_bd); in dr_attach_mem() 175 dr_unlock_status(hp->h_bd); in dr_attach_mem() 235 dr_lock_status(hp->h_bd); in dr_attach_mem() 239 dr_unlock_status(hp->h_bd); in dr_attach_mem() 245 dr_detach_mem(dr_handle_t *hp, dr_common_unit_t *cp) in dr_detach_mem() argument 278 dr_mem_status(dr_handle_t *hp, dr_devset_t devset, sbd_dev_stat_t *dsp) in dr_mem_status() argument 287 bp = hp->h_bd; in dr_mem_status() 411 dr_pre_attach_mem(dr_handle_t *hp, dr_common_unit_t **devlist, int devnum) in dr_pre_attach_mem() argument 473 dr_post_attach_mem(dr_handle_t *hp, dr_common_unit_t **devlist, int devnum) in dr_post_attach_mem() argument [all …]
|
H A D | dr_quiesce.c | 157 dr_get_sr_handle(dr_handle_t *hp) in dr_get_sr_handle() argument 162 srh->sr_dr_handlep = hp; in dr_get_sr_handle() 893 srh = dr_get_sr_handle(hp); in dr_pt_test_suspend() 896 if ((hp->h_err) && ((psmerr = hp->h_err->e_code) != 0)) { in dr_pt_test_suspend() 901 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() 914 psmerr = hp->h_err ? hp->h_err->e_code : ESBD_NOERROR; in dr_pt_test_suspend() 918 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() 923 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() 928 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() 933 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | ddi_impl.c | 1737 i_ddi_ontrap(ddi_acc_handle_t hp) in i_ddi_ontrap() argument 1744 i_ddi_notrap(ddi_acc_handle_t hp) in i_ddi_notrap() argument 2469 ndi_err_t *errp = (ndi_err_t *)hp->ahi_err; in pci_peekpoke_check_fma() 2518 ndi_err_t *errp = (ndi_err_t *)hp->ahi_err; in pci_peekpoke_check_nofma() 2541 if (hp == NULL) in pci_peekpoke_check() 2544 if (hp->ahi_acc_attr & DDI_ACCATTR_CONFIG_SPACE) { in pci_peekpoke_check() 2784 cautacc_ctlops_arg.handle = (ddi_acc_handle_t)hp; in i_ddi_caut_getput_ctlops() 2788 (void) ddi_ctlops(hp->ahi_common.ah_dip, hp->ahi_common.ah_dip, cmd, in i_ddi_caut_getput_ctlops() 2793 i_ddi_caut_get8(ddi_acc_impl_t *hp, uint8_t *addr) in i_ddi_caut_get8() argument 2803 i_ddi_caut_get16(ddi_acc_impl_t *hp, uint16_t *addr) in i_ddi_caut_get16() argument [all …]
|
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | files_common.c | 395 files_hashent_t *hp, *htab; in _nss_files_XY_hash() local 431 for (hp = htab[hash % fhp->fh_size].h_first; hp != NULL; 432 hp = hp->h_next) { 433 if (hp->h_hash != hash) 435 line = hp - htab; 568 hp = &fhp->fh_table[ht * fhp->fh_size + line]; 569 hp->h_hash = fhp->fh_hash_func[ht](&xargs, 0, first, 586 for (hp = &htab[line - 1]; hp >= htab; hp--) { 587 uint_t bucket = hp->h_hash % fhp->fh_size; 588 hp->h_next = htab[bucket].h_first; [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | memory.c | 302 #define VN_HTABLE_KEY(p, hp) ((p) % ((hp)->vn_htable_buckets)) argument 349 hp->vn_q_first = &hp->vn_htable_buf[0]; in vn_htable_init() 350 hp->vn_q_last = &hp->vn_htable_buf[htable_size - 1]; in vn_htable_init() 351 hp->vn_q_first->vn_q_next = &hp->vn_htable_buf[1]; in vn_htable_init() 352 hp->vn_q_last->vn_q_prev = &hp->vn_htable_buf[htable_size - 2]; in vn_htable_init() 355 hp->vn_htable_buf[i].vn_q_next = &hp->vn_htable_buf[i + 1]; in vn_htable_init() 356 hp->vn_htable_buf[i].vn_q_prev = &hp->vn_htable_buf[i - 1]; in vn_htable_init() 404 hent = hp->vn_q_last; in vn_get() 408 htmp = &hp->vn_htable[VN_HTABLE_KEY(hent->vn_ptr, hp)]; in vn_get() 427 hp->vn_q_last = q_prev; in vn_get() [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getaddrinfo.c | 604 struct hostent *hp; in get_addr() local 705 hp = getipnodebyname(_hostname, AF_INET6, in get_addr() 712 if (hp == NULL) { in get_addr() 729 for (i = 0; hp->h_addr_list[i]; i++) { in get_addr() 736 if (hp->h_addrtype == AF_INET6) { in get_addr() 746 hp->h_addr_list[i], in get_addr() 749 } else if (hp->h_addrtype == AF_INET) { in get_addr() 760 zonestr, firsttime ? hp->h_name : NULL, in get_addr() 764 firsttime ? hp->h_name : NULL, in get_addr() 769 freehostent(hp); in get_addr() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/hook/ |
H A D | hook.c | 113 hook_event_t hp; in hookeventlist() local 136 if (mdb_vread((void *)&hp, sizeof (hp), in hookeventlist() 142 if (!hp.he_name) { in hookeventlist() 148 (uintptr_t)hp.he_name) == -1) { in hookeventlist() 150 hp.he_name); in hookeventlist() 153 mdb_printf("%0?p %10x %20s\n", hrp, hp.he_flags, hprstr); in hookeventlist()
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci.c | 1034 i_ndi_busop_access_enter(hp->ahi_common.ah_dip, (ddi_acc_handle_t)hp); in pci_do_caut_put() 1041 i_ddi_put8(hp, (uint8_t *)dev_addr, in pci_do_caut_put() 1046 i_ddi_put16(hp, (uint16_t *)dev_addr, in pci_do_caut_put() 1051 i_ddi_put32(hp, (uint32_t *)dev_addr, in pci_do_caut_put() 1056 i_ddi_put64(hp, (uint64_t *)dev_addr, in pci_do_caut_put() 1069 i_ddi_notrap((ddi_acc_handle_t)hp); in pci_do_caut_put() 1070 i_ndi_busop_access_exit(hp->ahi_common.ah_dip, (ddi_acc_handle_t)hp); in pci_do_caut_put() 1075 hp->ahi_err->err_status = DDI_FM_OK; in pci_do_caut_put() 1129 i_ndi_busop_access_enter(hp->ahi_common.ah_dip, (ddi_acc_handle_t)hp); in pci_do_caut_get() 1150 i_ddi_notrap((ddi_acc_handle_t)hp); in pci_do_caut_get() [all …]
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | tcp_misc.c | 69 struct hostent *hp; in tcp_open() local 85 if ((hp = (getipnodebyname(dest, AF_INET6, AI_DEFAULT, in tcp_open() 95 bcopy(hp->h_addr, (caddr_t)&serv_addr.sin6_addr, hp->h_length); in tcp_open() 96 serv_addr.sin6_family = hp->h_addrtype; in tcp_open()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_pf.c | 594 struct hostent *hp = NULL; in pf_ipaddr_match() local 613 if (hp == NULL) { in pf_ipaddr_match() 624 if (hp == NULL) { in pf_ipaddr_match() 639 if (hp != NULL) { in pf_ipaddr_match() 646 if (hp != NULL) { in pf_ipaddr_match() 654 if (hp != NULL) { in pf_ipaddr_match() 674 if (hp == NULL) in pf_ipaddr_match() 692 if (hp->h_addrtype == AF_INET) { in pf_ipaddr_match() 751 hp->h_addr_list[++h_addr_index]; in pf_ipaddr_match() 788 hp->h_addr_list[++h_addr_index]; in pf_ipaddr_match() [all …]
|
/illumos-gate/usr/src/lib/libuuid/common/ |
H A D | etheraddr.c | 52 struct hostent *hp; in arp_get() local 66 hp = gethostbyname(name.nodename); in arp_get() 67 if (hp == NULL) { in arp_get() 70 (void) memcpy(&sin->sin_addr, hp->h_addr, in arp_get()
|
/illumos-gate/usr/src/lib/scsi/libses/common/ |
H A D | ses_enclosure.c | 248 libscsi_hdl_t *hp; in ses_open() local 250 if ((hp = libscsi_init(LIBSCSI_VERSION, &serr)) == NULL) { in ses_open() 256 if ((stp = libscsi_open(hp, NULL, target)) == NULL) { in ses_open() 257 (void) ses_libscsi_error(hp, "failed to open SES target"); in ses_open() 258 libscsi_fini(hp); in ses_open() 263 libscsi_close(hp, stp); in ses_open() 264 libscsi_fini(hp); in ses_open()
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_quiesce.c | 158 dr_get_sr_handle(dr_handle_t *hp) in dr_get_sr_handle() argument 163 srh->sr_dr_handlep = hp; in dr_get_sr_handle() 956 srh = dr_get_sr_handle(hp); in dr_pt_test_suspend() 959 if ((hp->h_err) && ((psmerr = hp->h_err->e_code) != 0)) { in dr_pt_test_suspend() 964 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() 977 psmerr = hp->h_err ? hp->h_err->e_code : ESBD_NOERROR; in dr_pt_test_suspend() 981 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() 986 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() 991 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() 996 DR_GET_E_RSC(hp->h_err)); in dr_pt_test_suspend() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | process.c | 136 struct hostent *hp; in do_announce() local 149 hp = gethostbyaddr((const char *)&request->ctl_addr.sin_addr, in do_announce() 151 if (hp == NULL) { in do_announce() 159 response->answer = announce(request, hp->h_name); in do_announce() 166 response->answer = announce(request, hp->h_name); in do_announce()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | udb.c | 406 struct hes_postoffice *hp; local 417 if (hp == NULL) 430 if (strlen(hp->po_name) + strlen(hp->po_host) > 436 hp->po_name, 437 hp->po_host); 442 "%s@%s", hp->po_name, hp->po_host); 1236 char **hp; local 1262 if (hp == NULL) 1264 if (*hp == NULL) 1272 if (hp == NULL || hp[0] == NULL) [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/px/ |
H A D | px_lib4v.c | 1552 ddi_acc_hdl_t *hp; in px_lib_map_vconfig() local 1667 if (hp) in px_lib_log_safeacc_err() 1764 if (hp) { in px_lib_ctlops_poke() 1766 (ddi_acc_handle_t)hp); in px_lib_ctlops_poke() 1796 if (hp) { in px_lib_ctlops_poke() 1807 if (hp) { in px_lib_ctlops_poke() 1809 (ddi_acc_handle_t)hp); in px_lib_ctlops_poke() 1852 if (hp) { in px_lib_ctlops_peek() 1876 if (hp == NULL) { in px_lib_ctlops_peek() 1887 if (hp) { in px_lib_ctlops_peek() [all …]
|