Home
last modified time | relevance | path

Searched refs:htsize (Results 1 – 18 of 18) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dhash.c43 new->htsize = 0; in sqliteHashInit()
59 pH->htsize = 0; in sqliteHashClear()
179 pH->htsize = new_size; in rehash()
273 assert( (pH->htsize & (pH->htsize-1))==0 ); in sqliteHashFind()
304 assert( (pH->htsize & (pH->htsize-1))==0 ); in sqliteHashInsert()
305 h = hraw & (pH->htsize-1); in sqliteHashInsert()
332 if( pH->htsize==0 ){ in sqliteHashInsert()
337 if( pH->count > pH->htsize ){ in sqliteHashInsert()
338 rehash(pH,pH->htsize*2); in sqliteHashInsert()
340 assert( (pH->htsize & (pH->htsize-1))==0 ); in sqliteHashInsert()
[all …]
H A Dhash.h40 int htsize; /* Number of buckets in the hash table */ member
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_subr.c158 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()
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()
214 uint_t i, htsize; in ldestroy() local
220 htsize = li->li_htsize; in ldestroy()
222 for (i = 0; i < htsize; i++) in ldestroy()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/lofs/
H A Dlofs.c57 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 Dgetnode.c99 ipaddr_gethash(nss_XbyY_key_t *key, int htsize) { in ipaddr_gethash() argument
101 key->hostaddr.len, htsize)); in ipaddr_gethash()
139 ipname_gethash(nss_XbyY_key_t *key, int htsize) { in ipname_gethash() argument
140 return (cis_gethash(key->ipnode.name, htsize)); in ipname_gethash()
H A Dgetserv.c103 servname_gethash(nss_XbyY_key_t *key, int htsize) { in servname_gethash() argument
104 return (ces_gethash(key->serv.serv.name, htsize)); in servname_gethash()
146 servport_gethash(nss_XbyY_key_t *key, int htsize) { in servport_gethash() argument
148 sizeof (key->serv.serv.port), htsize)); in servport_gethash()
H A Dcache.c353 hval %= htsize;
404 return (hval % htsize); in db_gethash()
773 if (htsize != 0) { in make_cache()
776 if (htsize < 0) { in make_cache()
779 htsize = _NSC_INIT_HTSIZE_POWER2; in make_cache()
784 htsize = _NSC_INIT_HTSIZE_PRIME; in make_cache()
787 nscdb->htsize = htsize; in make_cache()
2345 if (nscdb->htsize == 0) { in reap_cache()
2369 if (nscdb->htsize == newhtsize) { in reap_cache()
2389 nscdb->htsize = -1; in reap_cache()
[all …]
H A Dgetgr.c77 grgid_gethash(nss_XbyY_key_t *key, int htsize) { in grgid_gethash() argument
78 return ((uint_t)key->gid % htsize); in grgid_gethash()
H A Dgetproject.c73 projid_gethash(nss_XbyY_key_t *key, int htsize) { in projid_gethash() argument
74 return (db_gethash(&key->projid, sizeof (key->projid), htsize)); in projid_gethash()
H A Dgetpw.c75 pwuid_gethash(nss_XbyY_key_t *key, int htsize) { in pwuid_gethash() argument
76 return ((uint_t)key->uid % htsize); in pwuid_gethash()
H A Dgetether.c83 ether_gethash(nss_XbyY_key_t *key, int htsize) { in ether_gethash() argument
85 htsize)); in ether_gethash()
H A Dgettnrhdb.c90 tsol_rh_gethash(nss_XbyY_key_t *key, int htsize) { in tsol_rh_gethash() argument
92 strlen(key->hostaddr.addr), htsize)); in tsol_rh_gethash()
H A Dgethost.c98 hostaddr_gethash(nss_XbyY_key_t *key, int htsize) { in hostaddr_gethash() argument
100 key->hostaddr.len, htsize)); in hostaddr_gethash()
H A Dgetnet.c117 netaddr_gethash(nss_XbyY_key_t *key, int htsize) { in netaddr_gethash() argument
119 sizeof (key->netaddr.net), htsize)); in netaddr_gethash()
H A Dgetexec.c107 execattr_gethash(nss_XbyY_key_t *key, int htsize) { in execattr_gethash() argument
116 return (db_gethash(keys, len, htsize)); in execattr_gethash()
H A Dcache.h251 int htsize; member
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Ddbutils.c3257 gethash(const char *str, uint32_t num, uint_t htsize) in gethash() argument
3276 return (hval % htsize); in gethash()
3285 uint_t htsize = state->sid_history_size; in get_from_sid_history() local
3288 next = gethash(prefix, rid, htsize); in get_from_sid_history()
3289 while (next != htsize) { in get_from_sid_history()
3291 if (key == htsize) in get_from_sid_history()
3310 uint_t htsize = state->sid_history_size; in add_to_sid_history() local
3312 hash = next = gethash(prefix, rid, htsize); in add_to_sid_history()
3313 while (state->sid_history[next].key != htsize) { in add_to_sid_history()
3315 next %= htsize; in add_to_sid_history()
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_flow.c1602 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()