Searched refs:pc_hashsize (Results 1 – 6 of 6) sorted by relevance
216 pcp->pc_hashsize = PORTHASH_START; in port_associate_fd()217 pcp->pc_hash = kmem_zalloc(pcp->pc_hashsize * in port_associate_fd()562 oldsize = pcp->pc_hashsize; in port_cache_grow_hashtbl()564 pcp->pc_hashsize *= PORTHASH_MULT; in port_cache_grow_hashtbl()565 pcp->pc_hash = kmem_zalloc(pcp->pc_hashsize * sizeof (portfd_t *), in port_cache_grow_hashtbl()592 if (pcp->pc_fdcount > (pcp->pc_hashsize * PORTHASH_MULT)) in port_cache_insert_fd()635 kmem_free(pcp->pc_hash, sizeof (polldat_t *) * pcp->pc_hashsize); in port_pcache_destroy()666 for (index = 0; index < pcp->pc_hashsize; index++) { in port_close_sourcefd()
1090 hashindex = POLLHASH(pcp->pc_hashsize, fd); in pcache_lookup_fd()1123 if ((pcp->pc_fdcount > pcp->pc_hashsize * POLLHASHTHRESHOLD) || in pcache_insert_fd()1124 (nfds > pcp->pc_hashsize * POLLHASHTHRESHOLD)) { in pcache_insert_fd()1128 hashindex = POLLHASH(pcp->pc_hashsize, fd); in pcache_insert_fd()1162 ASSERT(pcp->pc_hashsize % POLLHASHCHUNKSZ == 0); in pcache_grow_hashtbl()1163 oldsize = pcp->pc_hashsize; in pcache_grow_hashtbl()1165 if (nfds > pcp->pc_hashsize * POLLHASHINC) { in pcache_grow_hashtbl()1166 pcp->pc_hashsize = (nfds + POLLHASHCHUNKSZ - 1) & in pcache_grow_hashtbl()1169 pcp->pc_hashsize = pcp->pc_hashsize * POLLHASHINC; in pcache_grow_hashtbl()1171 pcp->pc_hash = kmem_zalloc(pcp->pc_hashsize * sizeof (polldat_t *), in pcache_grow_hashtbl()[all …]
133 int pc_hashsize; /* the size of current hash table */ member
248 int pc_hashsize; /* the size of current hash table */ member
217 (&(pcp)->pc_hash[((fd) % (pcp)->pc_hashsize)])
1645 for (i = 0; i < pcp->pc_hashsize; i++) { in dpclose()