Searched refs:max_ncpus (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/contrib/openzfs/module/icp/algs/blake3/ |
H A D | blake3_impl.c | 298 blake3_per_cpu_ctx = kmem_alloc(max_ncpus * sizeof (void *), KM_SLEEP); in blake3_per_cpu_ctx_init() 299 for (int i = 0; i < max_ncpus; i++) { in blake3_per_cpu_ctx_init() 308 for (int i = 0; i < max_ncpus; i++) { in blake3_per_cpu_ctx_fini() 312 memset(blake3_per_cpu_ctx, 0, max_ncpus * sizeof (void *)); in blake3_per_cpu_ctx_fini() 313 kmem_free(blake3_per_cpu_ctx, max_ncpus * sizeof (void *)); in blake3_per_cpu_ctx_fini()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | txg.c | 126 tx->tx_cpu = vmem_zalloc(max_ncpus * sizeof (tx_cpu_t), KM_SLEEP); in txg_init() 128 for (c = 0; c < max_ncpus; c++) { in txg_init() 173 for (c = 0; c < max_ncpus; c++) { in txg_fini() 187 vmem_free(tx->tx_cpu, max_ncpus * sizeof (tx_cpu_t)); in txg_fini() 396 for (c = 0; c < max_ncpus; c++) in txg_quiesce() 410 for (c = 0; c < max_ncpus; c++) in txg_quiesce() 420 for (c = 0; c < max_ncpus; c++) { in txg_quiesce() 454 for (c = 0; c < max_ncpus; c++) { in txg_dispatch_callbacks()
|
H A D | spa.c | 2110 for (int i = 0; i < max_ncpus; i++) in spa_unload() 2112 kmem_free(spa->spa_async_zio_root, max_ncpus * sizeof (void *)); in spa_unload() 3971 spa->spa_async_zio_root = kmem_alloc(max_ncpus * sizeof (void *), 3973 for (int i = 0; i < max_ncpus; i++) { 6504 spa->spa_async_zio_root = kmem_alloc(max_ncpus * sizeof (void *), 6506 for (int i = 0; i < max_ncpus; i++) {
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | proc.h | 49 #define max_ncpus (mp_maxid + 1) macro
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_consume.c | 3905 static int max_ncpus; local 3952 if (max_ncpus == 0 && (max_ncpus = dt_cpu_maxid(dtp) + 1) <= 0) 3955 for (i = 0; i < max_ncpus; i++) { 4026 static int max_ncpus; local 4043 if (max_ncpus == 0 && (max_ncpus = dt_cpu_maxid(dtp) + 1) <= 0) 4067 for (i = 0; i < max_ncpus; i++) { 4123 uint64_t *drops = alloca(max_ncpus * sizeof (uint64_t)); 4128 bzero(drops, max_ncpus * sizeof (uint64_t)); 4131 dtp->dt_bufq = dt_pq_init(dtp, max_ncpus * 2, 4139 for (i = 0; i < max_ncpus; i++) { [all …]
|
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | sysmacros.h | 76 #define max_ncpus num_possible_cpus() macro
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zfs_context.h | 618 #define max_ncpus 64 628 #define CPU_SEQID ((uintptr_t)pthread_self() & (max_ncpus - 1))
|
/freebsd/sys/contrib/openzfs/cmd/zdb/ |
H A D | zdb.c | 7130 for (c = 0; c < max_ncpus; c++) { in dump_block_stats()
|