/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | hash.c | 40 new->htsize = 0; in sqliteHashInit() 56 pH->htsize = 0; in sqliteHashClear() 176 pH->htsize = new_size; in rehash() 270 assert( (pH->htsize & (pH->htsize-1))==0 ); in sqliteHashFind() 271 elem = findElementGivenHash(pH,pKey,nKey, h & (pH->htsize-1)); in sqliteHashFind() 301 assert( (pH->htsize & (pH->htsize-1))==0 ); in sqliteHashInsert() 302 h = hraw & (pH->htsize-1); in sqliteHashInsert() 328 if( pH->htsize==0 ) rehash(pH,8); in sqliteHashInsert() 329 if( pH->htsize==0 ){ in sqliteHashInsert() 334 if( pH->count > pH->htsize ){ in sqliteHashInsert() [all …]
|
H A D | hash.h | 37 int htsize; /* Number of buckets in the hash table */ member
|
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_subr.c | 158 uint_t htsize; in table_lock_enter() local 162 htsize = li->li_htsize; in table_lock_enter() 165 hash = ltablehash(vp, htsize); in table_lock_enter() 167 if (li->li_hashtable == chain && li->li_htsize == htsize) in table_lock_enter() 194 lsetup(struct loinfo *li, uint_t htsize) in lsetup() argument 198 if (htsize == 0) in lsetup() 199 htsize = LOFS_DEFAULT_HTSIZE; in lsetup() 200 li->li_htsize = htsize; in lsetup() 201 li->li_hashtable = kmem_zalloc(htsize * sizeof (*li->li_hashtable), in lsetup() 214 uint_t i, htsize; in ldestroy() local [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/lofs/ |
H A D | lofs.c | 57 uint_t htsize; in lnode_walk_init() local 91 htsize = 0; in lnode_walk_init() 102 if (htsize + loinfo.li_htsize > lwp->lw_tabsz) { in lnode_walk_init() 110 (void) mdb_vread(lwp->lw_table + htsize, in lnode_walk_init() 113 htsize += loinfo.li_htsize; in lnode_walk_init()
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | getnode.c | 97 ipaddr_gethash(nss_XbyY_key_t *key, int htsize) { in ipaddr_gethash() argument 99 key->hostaddr.len, htsize)); in ipaddr_gethash() 137 ipname_gethash(nss_XbyY_key_t *key, int htsize) { in ipname_gethash() argument 138 return (cis_gethash(key->ipnode.name, htsize)); in ipname_gethash()
|
H A D | cache.c | 344 #define _NSC_ELF_STR_GETHASH(func, str, htsize, hval) \ argument 353 hval %= htsize; 360 cis_gethash(const char *key, int htsize) in cis_gethash() argument 365 _NSC_ELF_STR_GETHASH(tolower, key, htsize, hval); in cis_gethash() 374 ces_gethash(const char *key, int htsize) in ces_gethash() argument 379 _NSC_ELF_STR_GETHASH(, key, htsize, hval); in ces_gethash() 388 db_gethash(const void *key, int len, int htsize) in db_gethash() argument 404 return (hval % htsize); in db_gethash() 412 nsc_db_cis_key_gethash(nss_XbyY_key_t *key, int htsize) in nsc_db_cis_key_gethash() argument 414 return (cis_gethash(key->name, htsize)); in nsc_db_cis_key_gethash() [all …]
|
H A D | getserv.c | 101 servname_gethash(nss_XbyY_key_t *key, int htsize) { in servname_gethash() argument 102 return (ces_gethash(key->serv.serv.name, htsize)); in servname_gethash() 144 servport_gethash(nss_XbyY_key_t *key, int htsize) { in servport_gethash() argument 146 sizeof (key->serv.serv.port), htsize)); in servport_gethash()
|
H A D | getgr.c | 75 grgid_gethash(nss_XbyY_key_t *key, int htsize) { in grgid_gethash() argument 76 return ((uint_t)key->gid % htsize); in grgid_gethash()
|
H A D | getproject.c | 71 projid_gethash(nss_XbyY_key_t *key, int htsize) { in projid_gethash() argument 72 return (db_gethash(&key->projid, sizeof (key->projid), htsize)); in projid_gethash()
|
H A D | getpw.c | 73 pwuid_gethash(nss_XbyY_key_t *key, int htsize) { in pwuid_gethash() argument 74 return ((uint_t)key->uid % htsize); in pwuid_gethash()
|
H A D | getether.c | 81 ether_gethash(nss_XbyY_key_t *key, int htsize) { in ether_gethash() argument 83 htsize)); in ether_gethash()
|
H A D | gettnrhdb.c | 88 tsol_rh_gethash(nss_XbyY_key_t *key, int htsize) { in tsol_rh_gethash() argument 90 strlen(key->hostaddr.addr), htsize)); in tsol_rh_gethash()
|
H A D | gethost.c | 96 hostaddr_gethash(nss_XbyY_key_t *key, int htsize) { in hostaddr_gethash() argument 98 key->hostaddr.len, htsize)); in hostaddr_gethash()
|
H A D | getnet.c | 115 netaddr_gethash(nss_XbyY_key_t *key, int htsize) { in netaddr_gethash() argument 117 sizeof (key->netaddr.net), htsize)); in netaddr_gethash()
|
H A D | getexec.c | 105 execattr_gethash(nss_XbyY_key_t *key, int htsize) { in execattr_gethash() argument 114 return (db_gethash(keys, len, htsize)); in execattr_gethash()
|
H A D | cache.h | 251 int htsize; member
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | dbutils.c | 3332 gethash(const char *str, uint32_t num, uint_t htsize) in gethash() argument 3351 return (hval % htsize); in gethash() 3360 uint_t htsize = state->sid_history_size; in get_from_sid_history() local 3363 next = gethash(prefix, rid, htsize); in get_from_sid_history() 3364 while (next != htsize) { in get_from_sid_history() 3366 if (key == htsize) in get_from_sid_history() 3385 uint_t htsize = state->sid_history_size; in add_to_sid_history() local 3387 hash = next = gethash(prefix, rid, htsize); in add_to_sid_history() 3388 while (state->sid_history[next].key != htsize) { in add_to_sid_history() 3390 next %= htsize; in add_to_sid_history()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_flow.c | 1602 flow_l2_addrhash(uint8_t *addr, size_t addrlen, size_t htsize) in flow_l2_addrhash() argument 1609 return (hash % htsize); in flow_l2_addrhash()
|