/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
H A D | hash.c | 103 HTAB *hashp; variable 162 if (!(hashp = init_hash(hashp, file, info))) 194 bpages = (hashp->hdr.spares[hashp->hdr.ovfl_point] + 210 hashp->mp = mpool_open(&mpool_key, hashp->fp, hashp->hdr.bsize, csize); 229 hashp->split_buf = (PAGE16 *)malloc(hashp->hdr.bsize); 343 hashp->hdr.bshift = __log2(hashp->hdr.bsize); 349 hashp->hdr.bsize = 1 << hashp->hdr.bshift; 558 if (hashp->fname && !hashp->save_file) { 598 return (flush_meta(hashp) || mpool_sync(hashp->mp)); 999 hashp->hdr.spares[spare_ndx] = hashp->hdr.spares[hashp->hdr.ovfl_point]; [all …]
|
H A D | hash_page.c | 87 HTAB *hashp; in __get_item() 162 HTAB *hashp; in __get_item_reset() 177 HTAB *hashp; in __get_item_done() 193 HTAB *hashp; in __get_item_first() 209 HTAB *hashp; in __get_item_next() 295 HTAB *hashp; 435 HTAB *hashp; 520 HTAB *hashp; in __addel() 608 (hashp->hdr.nkeys / hashp->hdr.max_bucket) > 1113 hashp->hdr.last_freed = hashp->hdr.spares[splitnum]; [all …]
|
H A D | hash_bigkey.c | 83 HTAB *hashp; in __big_insert() 145 HTAB *hashp; in __big_delete() 185 HTAB *hashp; in __find_bigpair() 257 HTAB *hashp; in __big_keydata() 290 HTAB *hashp; in __get_bigkey() 315 HTAB *hashp; in __big_return() 366 HTAB *hashp; in collect_key() 381 if (hashp->bigkey_buf) 384 if (!hashp->bigkey_buf) 395 if (hashp->bigkey_buf) [all …]
|
H A D | hash.h | 170 ((B) + hashp->hdr.hdrpages + ((B) \ 171 ? hashp->hdr.spares[__log2((B)+1)-1] : 0))
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | mdesc_lib.c | 58 md_find_string(mmd_t *mdp, char *strp, uint32_t *hashp) in md_find_string() argument 65 if (hashp != NULL) in md_find_string() 66 *hashp = hash; in md_find_string() 104 md_find_data_block(mmd_t *mdp, uint8_t *datap, int len, uint32_t *hashp) in md_find_data_block() argument 111 if (hashp != NULL) in md_find_data_block() 112 *hashp = hash; in md_find_data_block()
|
/illumos-gate/usr/src/lib/libc/port/aio/ |
H A D | aio.c | 2041 aio_hash_t *hashp; in _aio_hash_insert() local 2046 lmutex_lock(&hashp->hash_lock); in _aio_hash_insert() 2047 prev = &hashp->hash_ptr; in _aio_hash_insert() 2057 lmutex_unlock(&hashp->hash_lock); in _aio_hash_insert() 2067 aio_hash_t *hashp; in _aio_hash_del() local 2073 lmutex_lock(&hashp->hash_lock); in _aio_hash_del() 2074 prev = &hashp->hash_ptr; in _aio_hash_del() 2083 lmutex_unlock(&hashp->hash_lock); in _aio_hash_del() 2094 aio_hash_t *hashp; in _aio_hash_find() local 2100 lmutex_lock(&hashp->hash_lock); in _aio_hash_find() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | callout.c | 84 callout_hash_t *hashp = &(hash); \ 87 cp->cnext = hashp->ch_head; \ 88 if (hashp->ch_head == NULL) \ 89 hashp->ch_tail = cp; \ 92 hashp->ch_head = cp; \ 100 cp->cprev = hashp->ch_tail; \ 101 if (hashp->ch_tail == NULL) \ 102 hashp->ch_head = cp; \ 105 hashp->ch_tail = cp; \ 113 hashp->ch_tail = cp->cprev; \ [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_bookmark.c | 40 char *hashp; in dsl_bookmark_hold_ds() local 44 hashp = strchr(fullname, '#'); in dsl_bookmark_hold_ds() 45 if (hashp == NULL) in dsl_bookmark_hold_ds() 48 *shortnamep = hashp + 1; in dsl_bookmark_hold_ds() 51 (void) strlcpy(buf, fullname, hashp - fullname + 1); in dsl_bookmark_hold_ds()
|
H A D | zfs_ioctl.c | 1088 char *hashp = strchr(name, '#'); in zfs_secpolicy_bookmark() local 1090 if (hashp == NULL) { in zfs_secpolicy_bookmark() 1094 *hashp = '\0'; in zfs_secpolicy_bookmark() 1097 *hashp = '#'; in zfs_secpolicy_bookmark() 1122 char *hashp = strchr(name, '#'); in zfs_secpolicy_destroy_bookmarks() local 1125 if (hashp == NULL) { in zfs_secpolicy_destroy_bookmarks() 1130 *hashp = '\0'; in zfs_secpolicy_destroy_bookmarks() 1133 *hashp = '#'; in zfs_secpolicy_destroy_bookmarks()
|
/illumos-gate/usr/src/cmd/sgs/ldprof/common/ |
H A D | profile.c | 257 unsigned int *hashp; in profile_open() local 262 hashp = (unsigned int *)dynp->d_un.d_ptr; in profile_open() 264 hashp = (unsigned int *)((unsigned long)hashp + in profile_open() 267 nsym = hashp[1]; in profile_open()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | tnet.c | 549 mod_hash_t *hashp; in gcgrp_lookup() local 553 hashp = (ga->ga_af == AF_INET) ? gcgrp4_hash : gcgrp6_hash; in gcgrp_lookup() 556 if (mod_hash_find(hashp, (mod_hash_key_t)ga, in gcgrp_lookup() 563 mod_hash_t *, hashp); in gcgrp_lookup() 572 if (mod_hash_insert(hashp, in gcgrp_lookup() 582 tsol_gcgrp_t *, gcgrp, mod_hash_t *, hashp); in gcgrp_lookup() 593 mod_hash_t *hashp; in gcgrp_inactive() local 602 hashp = (ga->ga_af == AF_INET) ? gcgrp4_hash : gcgrp6_hash; in gcgrp_inactive() 603 (void) mod_hash_remove(hashp, (mod_hash_key_t)ga, in gcgrp_inactive() 609 tsol_gcgrp_t *, gcgrp, mod_hash_t *, hashp); in gcgrp_inactive()
|
/illumos-gate/usr/src/uts/common/io/rge/ |
H A D | rge_chip.c | 887 uint32_t *hashp; in rge_chip_init() local 1016 hashp = (uint32_t *)rgep->mcast_hash; in rge_chip_init() 1021 rge_reg_put32(rgep, MULTICAST_0_REG, RGE_BSWAP_32(hashp[0])); in rge_chip_init() 1022 rge_reg_put32(rgep, MULTICAST_4_REG, RGE_BSWAP_32(hashp[1])); in rge_chip_init() 1212 uint32_t *hashp; in rge_set_multi_addr() local 1214 hashp = (uint32_t *)rgep->mcast_hash; in rge_set_multi_addr() 1226 rge_reg_put32(rgep, MULTICAST_0_REG, RGE_BSWAP_32(hashp[0])); in rge_set_multi_addr() 1227 rge_reg_put32(rgep, MULTICAST_4_REG, RGE_BSWAP_32(hashp[1])); in rge_set_multi_addr()
|
H A D | rge_main.c | 914 uint8_t *hashp; in rge_m_multicst() local 917 hashp = rgep->mcast_hash; in rge_m_multicst() 939 hashp[reg] |= 1 << (index % RGE_MCAST_NUM); in rge_m_multicst() 945 hashp[reg] &= ~ (1 << (index % RGE_MCAST_NUM)); in rge_m_multicst()
|
/illumos-gate/usr/src/uts/common/io/rtls/ |
H A D | rtls.c | 723 uint32_t *hashp; in rtls_m_multicst() local 726 hashp = rtlsp->multi_hash; in rtls_m_multicst() 735 hashp[index/32] |= 1<< (index % 32); in rtls_m_multicst() 741 hashp[index/32] &= ~(1<< (index % 32)); in rtls_m_multicst() 748 rtls_reg_set32(rtlsp, MULTICAST_0_REG, hashp[0]); in rtls_m_multicst() 749 rtls_reg_set32(rtlsp, MULTICAST_4_REG, hashp[1]); in rtls_m_multicst()
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 83 ns_hash_t *idx, *hashp; in ns_get_hash() local 91 hashp = ns_scan_hash(type, service, str, idx); in ns_get_hash() 93 return (hashp); in ns_get_hash()
|
/illumos-gate/usr/src/uts/intel/io/dnet/ |
H A D | dnet.c | 1055 uint32_t *hashp; in dnet_m_unicst() local 1078 hashp = (uint32_t *)dnetp->setup_buf_vaddr; in dnet_m_unicst() 1080 hashp[ index / 16 ] |= 1 << (index % 16); in dnet_m_unicst() 1083 hashp[ index / 16 ] |= 1 << (index % 16); in dnet_m_unicst() 1096 uint32_t *hashp; in dnet_m_multicst() local 1101 hashp = (uint32_t *)dnetp->setup_buf_vaddr; in dnet_m_multicst() 1107 hashp[ index / 16 ] |= 1 << (index % 16); in dnet_m_multicst() 1113 hashp[ index / 16 ] &= ~ (1 << (index % 16)); in dnet_m_multicst()
|