Home
last modified time | relevance | path

Searched refs:hashmask (Results 1 – 6 of 6) sorted by relevance

/netbsd-src/sys/kern/
H A Dsubr_hash.c87 hashinit(u_int elements, enum hashtype htype, bool waitok, u_long *hashmask) in hashinit() argument
132 *hashmask = hashsize - 1; in hashinit()
140 hashdone(void *hashtbl, enum hashtype htype, u_long hashmask) in hashdone() argument
143 kmem_free(hashtbl, esize * (hashmask + 1)); in hashdone()
/netbsd-src/sbin/fsck_lfs/
H A Dbufcache.c64 int hashmask = (HASH_MAX - 1); variable
78 return (int)((unsigned long) vp + lbn) & hashmask; in vl_hash()
90 hashmask = hashmax - 1; in bufinit()
116 hashmask = newhashmax - 1; in bufrehash()
/netbsd-src/external/bsd/tradcpp/dist/
H A Dmacro.c75 static unsigned hashmask; variable
317 hashmask = 0x3; in macrotable_init()
352 bucket = macroarrayarray_get(&macros, hash & hashmask); in macrotable_findlen()
398 assert(hashmask == numbuckets - 1); in macrotable_rehash()
399 newmask = (hashmask << 1) | 1U; in macrotable_rehash()
400 tossbit = newmask & ~hashmask; in macrotable_rehash()
401 hashmask = newmask; in macrotable_rehash()
449 bucket = macroarrayarray_get(&macros, hash & hashmask); in macrotable_add()
452 macroarrayarray_set(&macros, hash & hashmask, bucket); in macrotable_add()
/netbsd-src/sys/uvm/
H A Duvm_bio.c81 ubc_object.hashmask)
115 u_long hashmask; /* mask for hashtable */ member
209 &ubc_object.hashmask); in UBC_EVCNT_DEFINE()
210 for (int i = 0; i <= ubc_object.hashmask; i++) { in UBC_EVCNT_DEFINE()
1125 hs->hash_size = ubc_object.hashmask + 1; in ubchash_stats()
/netbsd-src/external/bsd/unbound/dist/util/storage/
H A Dlookup3.c117 #define hashmask(n) (hashsize(n)-1) macro
/netbsd-src/external/bsd/nsd/dist/
H A Dlookup3.c108 #define hashmask(n) (hashsize(n)-1) macro