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.c40 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()
301 assert( (pH->htsize & (pH->htsize-1))==0 ); in sqliteHashInsert()
302 h = hraw & (pH->htsize-1); in sqliteHashInsert()
329 if( pH->htsize==0 ){ in sqliteHashInsert()
334 if( pH->count > pH->htsize ){ in sqliteHashInsert()
335 rehash(pH,pH->htsize*2); in sqliteHashInsert()
337 assert( (pH->htsize & (pH->htsize-1))==0 ); in sqliteHashInsert()
[all …]
H A Dhash.h37 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.c97 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 Dgetserv.c101 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 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.c75 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 Dgetproject.c71 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 Dgetpw.c73 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 Dgetether.c81 ether_gethash(nss_XbyY_key_t *key, int htsize) { in ether_gethash() argument
83 htsize)); in ether_gethash()
H A Dgettnrhdb.c88 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 Dgethost.c96 hostaddr_gethash(nss_XbyY_key_t *key, int htsize) { in hostaddr_gethash() argument
98 key->hostaddr.len, htsize)); in hostaddr_gethash()
H A Dgetnet.c115 netaddr_gethash(nss_XbyY_key_t *key, int htsize) { in netaddr_gethash() argument
117 sizeof (key->netaddr.net), htsize)); in netaddr_gethash()
H A Dgetexec.c105 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 Dcache.h251 int htsize; member
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Ddbutils.c3332 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 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()