Searched refs:hashsize (Results 1 - 4 of 4) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_subr.c433 long hashsize; local
439 for (hashsize = 1; hashsize <= elements; hashsize <<= 1)
441 hashsize >>= 1;
443 (u_long)hashsize * sizeof(*hashtbl), type, M_WAITOK|M_ZERO);
445 for (i = 0; i < hashsize; i++)
447 *hashmask = hashsize - 1;
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dtcp_subr.c296 int hashsize = TCBHASHSIZE; local
316 if (!powerof2(hashsize)) {
318 hashsize = 512; /* safe default */
320 tcp_tcbhashsize = hashsize;
321 tcbinfo.hashsize = hashsize;
322 tcbinfo.hashbase = hashinit(hashsize, M_PCB, &tcbinfo.hashmask);
323 tcbinfo.porthashbase = hashinit(hashsize, M_PCB,
363 delack_bitmask = _MALLOC((4 * hashsize)/32, M_PCB, M_WAITOK);
367 for (i=0; i < (tcbinfo.hashsize / 3
[all...]
H A Din_pcb.h389 u_long hashsize; /* in elements */ member in struct:inpcbinfo
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Ddtrace.c1835 uintptr_t hashsize = (buf->dtb_size >> 3) / sizeof (uintptr_t);
1837 if ((uintptr_t)agb - hashsize * sizeof (dtrace_aggkey_t *) <
1838 (uintptr_t)tomax || hashsize == 0) {
1851 if (hashsize > (DTRACE_AGGHASHSIZE_SLEW << 3))
1852 hashsize -= DTRACE_AGGHASHSIZE_SLEW;
1854 agb->dtagb_hashsize = hashsize;
11900 size_t hashsize, maxper, min_size, chunksize = dstate->dtds_chunksize;
11925 hashsize = size / (dstate->dtds_chunksize + sizeof (dtrace_dynhash_t));
11927 if (hashsize != 1 && (hashsize
[all...]

Completed in 54 milliseconds