Searched refs:alloc_count (Results 1 – 5 of 5) sorted by relevance
55 static uint_t alloc_count; /* number of entries currently allocated */ variable140 alloc_count = ALLOC_INIT; in alloc_map()156 if (event_count == alloc_count && realloc_map() == -1) { in load_map()178 new_alloc_count = alloc_count + ALLOC_INCR; in realloc_map()179 if (new_alloc_count <= alloc_count) { in realloc_map()184 if ((new_event_map = recallocarray(event_map, alloc_count, in realloc_map()188 alloc_count = new_alloc_count; in realloc_map()
959 ulong_t alloc_count; in auto_readdir() local979 alloc_count = iovp->iov_len; in auto_readdir()984 dp = outbuf = kmem_zalloc(alloc_count, KM_SLEEP); in auto_readdir()1002 rda.rda_count = rd.rd_rddir.rddir_size = (uint_t)alloc_count; in auto_readdir()1110 if (alloc_count < this_reclen) { in auto_readdir()1126 if (alloc_count < outcount + this_reclen) { in auto_readdir()1158 if (outcount + reclen > alloc_count) { in auto_readdir()1223 kmem_free(outbuf, alloc_count); in auto_readdir()
2298 ulong_t alloc_count; in devname_readdir_func() local2335 alloc_count = iovp->iov_len; in devname_readdir_func()2336 dp = outbuf = kmem_alloc(alloc_count, KM_SLEEP); in devname_readdir_func()2393 alloc_count, cred); in devname_readdir_func()2405 if (alloc_count < this_reclen) { in devname_readdir_func()2423 if (alloc_count < outcount + this_reclen) { in devname_readdir_func()2488 if (outcount + reclen > alloc_count) { in devname_readdir_func()2524 kmem_free(outbuf, alloc_count); in devname_readdir_func()
388 uint64_t alloc_count; in hxge_init_param() local406 alloc_count = HXGE_PARAM_ARRAY_INIT_SIZE; in hxge_init_param()407 alloc_size = alloc_count * sizeof (uint64_t); in hxge_init_param()413 (alloc_count << HXGE_PARAM_ARRAY_ALLOC_SHIFT); in hxge_init_param()
734 uint64_t alloc_count; in nxge_init_param() local752 alloc_count = NXGE_PARAM_ARRAY_INIT_SIZE; in nxge_init_param()753 alloc_size = alloc_count * sizeof (uint64_t); in nxge_init_param()759 (alloc_count << NXGE_PARAM_ARRAY_ALLOC_SHIFT); in nxge_init_param()