Home
last modified time | relevance | path

Searched refs:hsz (Results 1 – 9 of 9) sorted by relevance

/titanic_41/usr/src/cmd/lvm/rpc.metamedd/
H A Dmed_hash.c51 HASH(void *datap, int datalen, int hsz) in HASH() argument
58 return (hv % hsz); in HASH()
64 int hsz, in init_cache() argument
78 (*cp)->bp = (Bucket *) Malloc(sizeof (*(*cp)->bp) * hsz); in init_cache()
83 (*cp)->hsz = hsz; in init_cache()
85 for (i = 0; i < (*cp)->hsz; i++) { in init_cache()
129 bp = &cp->bp[(*cp->hfunc)(itemp->key, itemp->keyl, cp->hsz)]; in add_cache()
138 (*cp->hfunc)(itemp->key, itemp->keyl, cp->hsz)); in add_cache()
181 bp = &cp->bp[(*cp->hfunc)(datap, datalen, cp->hsz)]; in lookup_cache()
199 for (*bidx = 0; *bidx < cp->hsz && (cp->bp[*bidx].nalloc == 0 || in first_item()
[all …]
H A Dmed_hash.h56 int hsz; member
69 extern int init_cache(Cache **cp, int hsz, int bsz,
H A Dmed_db.c65 med_hash(void *datap, int datalen, int hsz) in med_hash() argument
82 return (i % hsz); in med_hash()
/titanic_41/usr/src/lib/libpkg/common/
H A Dnhash.c53 HASH(void *datap, int datalen, int hsz) in HASH() argument
72 return (hv % hsz); in HASH()
76 init_cache(Cache **cp, int hsz, int bsz, in init_cache() argument
84 (Bucket *) malloc(sizeof (*(*cp)->bp) * hsz)) == NULL) { in init_cache()
89 (*cp)->hsz = hsz; in init_cache()
92 bzero((*cp)->bp, sizeof (*(*cp)->bp) * hsz); in init_cache()
121 bp = &cp->bp[(*cp->hfunc)(itemp->key, itemp->keyl, cp->hsz)]; in add_cache()
131 (*cp->hfunc)(itemp->key, itemp->keyl, cp->hsz)); in add_cache()
174 bp = &cp->bp[(*cp->hfunc)(datap, datalen, cp->hsz)]; in lookup_cache()
H A Dnhash.h55 int hsz; member
66 extern int init_cache(Cache **cp, int hsz, int bsz,
H A Dncgrpw.c252 uid_hash(void *datap, int datalen, int hsz) in uid_hash() argument
259 return (*((uid_t *)datap) % hsz); in uid_hash()
/titanic_41/usr/src/uts/common/inet/nca/
H A Dnca.h1801 #define HASH_IX(s, l, hix, hsz) { \ argument
1810 (hix) %= (hsz); \
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dfake-addrinfo.c124 /*@out@*/ /*@null@*/ char *h, socklen_t hsz,
/titanic_41/usr/src/uts/common/vm/
H A Dseg_vn.c477 size_t hsz = svntr_hashtab_sz * sizeof (svntr_bucket_t); in segvn_init() local
482 svntr_hashtab = kmem_zalloc(hsz, KM_SLEEP); in segvn_init()