| /illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
| H A D | hash.c | 103 HTAB *hashp; variable 110 if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB)))) 112 hashp->fp = -1; 127 free(hashp); 132 hashp->fname = file; 144 hashp->flags = flags; 145 hashp->save_file = specified_file && (hashp->flags & O_RDWR); 155 if ((hashp->fp = open(file, flags|O_BINARY, mode)) == -1) 157 (void)fcntl(hashp->fp, F_SETFD, 1); 162 if (!(hashp = init_hash(hashp, file, info))) [all …]
|
| H A D | hash_page.c | 86 __get_item(hashp, cursorp, key, val, item_info) in __get_item() argument 87 HTAB *hashp; in __get_item() 99 __get_page(hashp, cursorp->bucket, A_BUCKET); 105 __get_page(hashp, cursorp->pgno, A_RAW); 123 __put_page(hashp, cursorp->pagep, A_RAW, 0); 124 cursorp->pagep = __get_page(hashp, next_pgno, A_RAW); 134 key->size = hashp->hdr.bsize - 161 __get_item_reset(hashp, cursorp) in __get_item_reset() argument 162 HTAB *hashp; in __get_item_reset() 166 __put_page(hashp, cursorp->pagep, A_RAW, 0); [all …]
|
| H A D | hash_bigkey.c | 82 __big_insert(hashp, pagep, key, val) in __big_insert() argument 83 HTAB *hashp; in __big_insert() 101 __add_bigpage(hashp, pagep, NUM_ENT(pagep) - 1, base_page); 129 __put_page(hashp, pagep, A_RAW, 1); 142 __big_delete(HTAB *hashp, PAGE16 *pagep, indx_t ndx) in __big_delete() argument 144 __big_delete(hashp, pagep, ndx) in __big_delete() 145 HTAB *hashp; in __big_delete() 153 pagep = __get_page(hashp, OADDR_TO_PAGE(DATA_OFF(pagep, ndx)), A_RAW); 163 pagep = __get_page(hashp, NEXT_PGNO(pagep), A_RAW); 166 __delete_page(hashp, last_pagep, A_OVFL); [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 | 2046 aio_hash_t *hashp; in _aio_hash_insert() local 2050 hashp = _aio_hash + AIOHASH(resultp); in _aio_hash_insert() 2051 lmutex_lock(&hashp->hash_lock); in _aio_hash_insert() 2052 prev = &hashp->hash_ptr; in _aio_hash_insert() 2055 lmutex_unlock(&hashp->hash_lock); in _aio_hash_insert() 2062 lmutex_unlock(&hashp->hash_lock); in _aio_hash_insert() 2072 aio_hash_t *hashp; in _aio_hash_del() local 2077 hashp = _aio_hash + AIOHASH(resultp); in _aio_hash_del() 2078 lmutex_lock(&hashp->hash_lock); in _aio_hash_del() 2079 prev = &hashp->hash_ptr; in _aio_hash_del() [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; \ 97 callout_hash_t *hashp = &(hash); \ 100 cp->cprev = hashp->ch_tail; \ 101 if (hashp->ch_tail == NULL) \ 102 hashp->ch_head = cp; \ 105 hashp->ch_tail = cp; \ [all …]
|
| /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/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 | 1087 char *hashp = strchr(name, '#'); in zfs_secpolicy_bookmark() local 1089 if (hashp == NULL) { in zfs_secpolicy_bookmark() 1093 *hashp = '\0'; in zfs_secpolicy_bookmark() 1096 *hashp = '#'; in zfs_secpolicy_bookmark() 1121 char *hashp = strchr(name, '#'); in zfs_secpolicy_destroy_bookmarks() local 1124 if (hashp == NULL) { in zfs_secpolicy_destroy_bookmarks() 1129 *hashp = '\0'; in zfs_secpolicy_destroy_bookmarks() 1132 *hashp = '#'; in zfs_secpolicy_destroy_bookmarks()
|
| /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 | 832 uint32_t *hashp; in rge_chip_init() local 951 hashp = (uint32_t *)rgep->mcast_hash; in rge_chip_init() 956 rge_reg_put32(rgep, MULTICAST_0_REG, RGE_BSWAP_32(hashp[0])); in rge_chip_init() 957 rge_reg_put32(rgep, MULTICAST_4_REG, RGE_BSWAP_32(hashp[1])); in rge_chip_init() 1132 uint32_t *hashp; in rge_set_multi_addr() local 1134 hashp = (uint32_t *)rgep->mcast_hash; in rge_set_multi_addr() 1146 rge_reg_put32(rgep, MULTICAST_0_REG, RGE_BSWAP_32(hashp[0])); in rge_set_multi_addr() 1147 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 | 711 uint32_t *hashp; in rtls_m_multicst() local 714 hashp = rtlsp->multi_hash; in rtls_m_multicst() 723 hashp[index/32] |= 1<< (index % 32); in rtls_m_multicst() 729 hashp[index/32] &= ~(1<< (index % 32)); in rtls_m_multicst() 736 rtls_reg_set32(rtlsp, MULTICAST_0_REG, hashp[0]); in rtls_m_multicst() 737 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()
|