Lines Matching refs:umem_max_ncpus
147 * umem keeps track of cpu information in umem_cpus, an array of umem_max_ncpus
446 uint32_t umem_max_ncpus; /* # of CPU caches. */
1008 int nchunks = 4 * umem_max_ncpus;
1009 size_t lhsize = offsetof(umem_log_header_t, lh_cpu[umem_max_ncpus]);
1045 for (i = 0; i < umem_max_ncpus; i++) {
1051 for (i = umem_max_ncpus; i < nchunks; i++)
1054 lhp->lh_head = umem_max_ncpus;
2060 for (cpu_seqid = 0; cpu_seqid < umem_max_ncpus; cpu_seqid++) {
2103 for (cpu_seqid = 0; cpu_seqid < umem_max_ncpus; cpu_seqid++) {
2410 csize = UMEM_CACHE_SIZE(umem_max_ncpus);
2655 for (cpu_seqid = 0; cpu_seqid < umem_max_ncpus; cpu_seqid++) {
2724 for (cpu_seqid = 0; cpu_seqid < umem_max_ncpus; cpu_seqid++)
2730 vmem_free(umem_cache_arena, cp, UMEM_CACHE_SIZE(umem_max_ncpus));
3113 umem_max_ncpus = umem_get_max_ncpus();
3177 if (umem_max_ncpus > CPUHINT_MAX())
3178 umem_max_ncpus = CPUHINT_MAX();
3180 while ((umem_max_ncpus & (umem_max_ncpus - 1)) != 0)
3181 umem_max_ncpus++;
3183 if (umem_max_ncpus == 0)
3184 umem_max_ncpus = 1;
3186 size = umem_max_ncpus * sizeof (umem_cpu_t);
3192 for (idx = 0; idx < umem_max_ncpus; idx++) {
3197 umem_cpu_mask = (umem_max_ncpus - 1);