Lines Matching refs:elements
55 hashinit_flags(int elements, struct malloc_type *type, u_long *hashmask,
62 KASSERT(elements > 0, ("%s: bad elements", __func__));
67 for (hashsize = 1; hashsize <= elements; hashsize <<= 1)
85 hashinit(int elements, struct malloc_type *type, u_long *hashmask)
88 return (hashinit_flags(elements, type, hashmask, HASH_WAITOK));
113 phashinit_flags(int elements, struct malloc_type *type, u_long *nentries, int flags)
119 KASSERT(elements > 0, ("%s: bad elements", __func__));
124 for (i = 1, hashsize = primes[1]; hashsize <= elements;) {
148 phashinit(int elements, struct malloc_type *type, u_long *nentries)
151 return (phashinit_flags(elements, type, nentries, HASH_WAITOK));