Lines Matching refs:htsize

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()
422 nsc_db_ces_key_gethash(nss_XbyY_key_t *key, int htsize) in nsc_db_ces_key_gethash() argument
424 return (ces_gethash(key->name, htsize)); in nsc_db_ces_key_gethash()
432 nsc_db_int_key_gethash(nss_XbyY_key_t *key, int htsize) in nsc_db_int_key_gethash() argument
434 return (db_gethash(&key->number, sizeof (key->number), htsize)); in nsc_db_int_key_gethash()
454 *hash = nscdb->gethash(&entry->key, nscdb->htsize); in hash_find()
584 for (i = 0; i < nscdb->htsize; i++) { in hash_dump()
725 enum hash_type httype, int htsize) in make_cache() argument
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()
790 nscdb->htable = calloc(htsize, sizeof (*(nscdb->htable))); in make_cache()
2345 if (nscdb->htsize == 0) { in reap_cache()
2369 if (nscdb->htsize == newhtsize) { in reap_cache()
2376 nscdb->name, nscdb->htsize, newhtsize); in reap_cache()
2389 nscdb->htsize = -1; in reap_cache()
2391 nscdb->htsize = newhtsize; in reap_cache()