Searched refs:pc_hashsize (Results 1 – 6 of 6) sorted by relevance
218 pcp->pc_hashsize = PORTHASH_START; in port_associate_fd()219 pcp->pc_hash = kmem_zalloc(pcp->pc_hashsize * in port_associate_fd()566 oldsize = pcp->pc_hashsize; in port_cache_grow_hashtbl()568 pcp->pc_hashsize *= PORTHASH_MULT; in port_cache_grow_hashtbl()569 pcp->pc_hash = kmem_zalloc(pcp->pc_hashsize * sizeof (portfd_t *), in port_cache_grow_hashtbl()596 if (pcp->pc_fdcount > (pcp->pc_hashsize * PORTHASH_MULT)) in port_cache_insert_fd()639 kmem_free(pcp->pc_hash, sizeof (polldat_t *) * pcp->pc_hashsize); in port_pcache_destroy()670 for (index = 0; index < pcp->pc_hashsize; index++) { in port_close_sourcefd()
1049 hashindex = POLLHASH(pcp->pc_hashsize, fd); in pcache_lookup_fd()1082 if ((pcp->pc_fdcount > pcp->pc_hashsize * POLLHASHTHRESHOLD) || in pcache_insert_fd()1083 (nfds > pcp->pc_hashsize * POLLHASHTHRESHOLD)) { in pcache_insert_fd()1087 hashindex = POLLHASH(pcp->pc_hashsize, fd); in pcache_insert_fd()1121 ASSERT(pcp->pc_hashsize % POLLHASHCHUNKSZ == 0); in pcache_grow_hashtbl()1122 oldsize = pcp->pc_hashsize; in pcache_grow_hashtbl()1124 if (nfds > pcp->pc_hashsize * POLLHASHINC) { in pcache_grow_hashtbl()1125 pcp->pc_hashsize = (nfds + POLLHASHCHUNKSZ - 1) & in pcache_grow_hashtbl()1128 pcp->pc_hashsize = pcp->pc_hashsize * POLLHASHINC; in pcache_grow_hashtbl()1130 pcp->pc_hash = kmem_zalloc(pcp->pc_hashsize * sizeof (polldat_t *), in pcache_grow_hashtbl()[all …]
132 int pc_hashsize; /* the size of current hash table */ member
178 int pc_hashsize; /* the size of current hash table */ member
217 (&(pcp)->pc_hash[((fd) % (pcp)->pc_hashsize)])
943 for (i = 0; i < pcp->pc_hashsize; i++) { in dpclose()