/titanic_50/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
H A D | hash.c | 107 HTAB *hashp; variable 114 if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB)))) 116 hashp->fp = -1; 131 free(hashp); 136 hashp->fname = file; 148 hashp->flags = flags; 149 hashp->save_file = specified_file && (hashp->flags & O_RDWR); 159 if ((hashp->fp = open(file, flags|O_BINARY, mode)) == -1) 161 (void)fcntl(hashp->fp, F_SETFD, 1); 166 if (!(hashp = init_hash(hashp, file, info))) [all …]
|
H A D | hash_page.c | 90 __get_item(hashp, cursorp, key, val, item_info) in __get_item() argument 91 HTAB *hashp; in __get_item() 103 __get_page(hashp, cursorp->bucket, A_BUCKET); 109 __get_page(hashp, cursorp->pgno, A_RAW); 127 __put_page(hashp, cursorp->pagep, A_RAW, 0); 128 cursorp->pagep = __get_page(hashp, next_pgno, A_RAW); 138 key->size = hashp->hdr.bsize - 165 __get_item_reset(hashp, cursorp) in __get_item_reset() argument 166 HTAB *hashp; in __get_item_reset() 170 __put_page(hashp, cursorp->pagep, A_RAW, 0); [all …]
|
H A D | hash_bigkey.c | 88 __big_insert(hashp, pagep, key, val) in __big_insert() argument 89 HTAB *hashp; in __big_insert() 107 __add_bigpage(hashp, pagep, NUM_ENT(pagep) - 1, base_page); 135 __put_page(hashp, pagep, A_RAW, 1); 148 __big_delete(HTAB *hashp, PAGE16 *pagep, indx_t ndx) in __big_delete() argument 150 __big_delete(hashp, pagep, ndx) in __big_delete() 151 HTAB *hashp; in __big_delete() 159 pagep = __get_page(hashp, OADDR_TO_PAGE(DATA_OFF(pagep, ndx)), A_RAW); 169 pagep = __get_page(hashp, NEXT_PGNO(pagep), A_RAW); 172 __delete_page(hashp, last_pagep, A_OVFL); [all …]
|
H A D | hash.h | 172 ((B) + hashp->hdr.hdrpages + ((B) \ 173 ? hashp->hdr.spares[__log2((B)+1)-1] : 0))
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | dsl_bookmark.c | 38 char *hashp; in dsl_bookmark_hold_ds() local 42 hashp = strchr(fullname, '#'); in dsl_bookmark_hold_ds() 43 if (hashp == NULL) in dsl_bookmark_hold_ds() 46 *shortnamep = hashp + 1; in dsl_bookmark_hold_ds() 49 (void) strlcpy(buf, fullname, hashp - fullname + 1); in dsl_bookmark_hold_ds()
|
H A D | zfs_ioctl.c | 1012 char *hashp = strchr(name, '#'); in zfs_secpolicy_bookmark() local 1014 if (hashp == NULL) { in zfs_secpolicy_bookmark() 1018 *hashp = '\0'; in zfs_secpolicy_bookmark() 1021 *hashp = '#'; in zfs_secpolicy_bookmark() 1038 char *hashp = strchr(name, '#'); in zfs_secpolicy_destroy_bookmarks() local 1041 if (hashp == NULL) { in zfs_secpolicy_destroy_bookmarks() 1046 *hashp = '\0'; in zfs_secpolicy_destroy_bookmarks() 1049 *hashp = '#'; in zfs_secpolicy_destroy_bookmarks()
|
/titanic_50/usr/src/lib/libc/port/aio/ |
H A D | aio.c | 2044 aio_hash_t *hashp; in _aio_hash_insert() local 2048 hashp = _aio_hash + AIOHASH(resultp); in _aio_hash_insert() 2049 lmutex_lock(&hashp->hash_lock); in _aio_hash_insert() 2050 prev = &hashp->hash_ptr; in _aio_hash_insert() 2053 lmutex_unlock(&hashp->hash_lock); in _aio_hash_insert() 2060 lmutex_unlock(&hashp->hash_lock); in _aio_hash_insert() 2070 aio_hash_t *hashp; in _aio_hash_del() local 2075 hashp = _aio_hash + AIOHASH(resultp); in _aio_hash_del() 2076 lmutex_lock(&hashp->hash_lock); in _aio_hash_del() 2077 prev = &hashp->hash_ptr; in _aio_hash_del() [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | callout.c | 83 callout_hash_t *hashp = &(hash); \ 86 cp->cnext = hashp->ch_head; \ 87 if (hashp->ch_head == NULL) \ 88 hashp->ch_tail = cp; \ 91 hashp->ch_head = cp; \ 96 callout_hash_t *hashp = &(hash); \ 99 cp->cprev = hashp->ch_tail; \ 100 if (hashp->ch_tail == NULL) \ 101 hashp->ch_head = cp; \ 104 hashp->ch_tail = cp; \ [all …]
|
/titanic_50/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()
|
/titanic_50/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()
|
/titanic_50/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()
|
/titanic_50/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()
|
/titanic_50/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 82 ns_hash_t *idx, *hashp; in ns_get_hash() local 90 hashp = ns_scan_hash(type, service, str, idx); in ns_get_hash() 92 return (hashp); in ns_get_hash()
|
/titanic_50/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()
|