Lines Matching refs:elements
48 hashinit_flags(int elements, struct malloc_type *type, u_long *hashmask,
55 KASSERT(elements > 0, ("%s: bad elements", __func__));
60 for (hashsize = 1; hashsize <= elements; hashsize <<= 1)
83 hashinit(int elements, struct malloc_type *type, u_long *hashmask)
86 return (hashinit_flags(elements, type, hashmask, HASH_WAITOK));
109 phashinit(int elements, struct malloc_type *type, u_long *nentries)
115 KASSERT(elements > 0, ("%s: bad elements", __func__));
116 for (i = 1, hashsize = primes[1]; hashsize <= elements;) {