nthreads 313 arch/powerpc/kernel/prom.c int i, nthreads; nthreads 327 arch/powerpc/kernel/prom.c nthreads = len / sizeof(int); nthreads 333 arch/powerpc/kernel/prom.c for (i = 0; i < nthreads; i++) { nthreads 385 arch/powerpc/kernel/prom.c if (nthreads == 1) nthreads 450 arch/powerpc/kernel/setup-common.c int nthreads = 1; nthreads 471 arch/powerpc/kernel/setup-common.c nthreads); nthreads 483 arch/powerpc/kernel/setup-common.c nthreads = len / sizeof(int); nthreads 485 arch/powerpc/kernel/setup-common.c for (j = 0; j < nthreads && cpu < nr_cpu_ids; j++) { nthreads 511 arch/powerpc/kernel/setup-common.c nthreads = 1; nthreads 536 arch/powerpc/kernel/setup-common.c maxcpus *= nthreads; nthreads 562 arch/powerpc/kernel/setup-common.c cpu_init_thread_core_maps(nthreads); nthreads 1163 arch/powerpc/kvm/book3s_hv.c int thr, cpu, pcpu, nthreads; nthreads 1167 arch/powerpc/kvm/book3s_hv.c nthreads = vcpu->kvm->arch.emul_smt_mode; nthreads 1169 arch/powerpc/kvm/book3s_hv.c cpu = vcpu->vcpu_id & ~(nthreads - 1); nthreads 1170 arch/powerpc/kvm/book3s_hv.c for (thr = 0; thr < nthreads; ++thr, ++cpu) { nthreads 247 arch/powerpc/platforms/pseries/hotplug-cpu.c int err = -ENOSPC, len, nthreads, i; nthreads 257 arch/powerpc/platforms/pseries/hotplug-cpu.c nthreads = len / sizeof(u32); nthreads 258 arch/powerpc/platforms/pseries/hotplug-cpu.c for (i = 0; i < nthreads; i++) nthreads 282 arch/powerpc/platforms/pseries/hotplug-cpu.c cpumask_shift_left(tmp, tmp, nthreads); nthreads 287 arch/powerpc/platforms/pseries/hotplug-cpu.c nthreads); nthreads 312 arch/powerpc/platforms/pseries/hotplug-cpu.c int len, nthreads, i; nthreads 320 arch/powerpc/platforms/pseries/hotplug-cpu.c nthreads = len / sizeof(u32); nthreads 323 arch/powerpc/platforms/pseries/hotplug-cpu.c for (i = 0; i < nthreads; i++) { nthreads 345 arch/powerpc/platforms/pseries/hotplug-cpu.c int len, nthreads, i; nthreads 353 arch/powerpc/platforms/pseries/hotplug-cpu.c nthreads = len / sizeof(u32); nthreads 356 arch/powerpc/platforms/pseries/hotplug-cpu.c for (i = 0; i < nthreads; i++) { nthreads 512 arch/powerpc/platforms/pseries/hotplug-cpu.c int len, nthreads, i; nthreads 520 arch/powerpc/platforms/pseries/hotplug-cpu.c nthreads = len / sizeof(u32); nthreads 523 arch/powerpc/platforms/pseries/hotplug-cpu.c for (i = 0; i < nthreads; i++) { nthreads 784 drivers/net/ethernet/marvell/mvpp2/mvpp2.h unsigned int nthreads; nthreads 92 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c return cpu % priv->nthreads; nthreads 1058 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (smp_processor_id() > port->priv->nthreads) nthreads 1076 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (smp_processor_id() > port->priv->nthreads) nthreads 1983 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c for (thread = 0; thread < port->priv->nthreads; thread++) { nthreads 2081 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (smp_processor_id() > port->priv->nthreads) nthreads 2514 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c for (thread = 0; thread < port->priv->nthreads; thread++) { nthreads 2551 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c for (thread = 0; thread < port->priv->nthreads; thread++) { nthreads 2621 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c for (thread = 0; thread < port->priv->nthreads; thread++) { nthreads 3742 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c for (thread = 0; thread < port->priv->nthreads; thread++) { nthreads 4436 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c port->nqvecs = priv->nthreads + 1; nthreads 4439 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c port->nqvecs = priv->nthreads; nthreads 4589 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c for (thread = 0; thread < priv->nthreads; thread++) { nthreads 5360 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c for (thread = 0; thread < priv->nthreads; thread++) { nthreads 5768 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c priv->nthreads = min_t(unsigned int, num_present_cpus(), nthreads 5771 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c shared = num_present_cpus() - priv->nthreads; nthreads 487 fs/nfsd/nfsctl.c int *nthreads; nthreads 503 fs/nfsd/nfsctl.c nthreads = kcalloc(npools, sizeof(int), GFP_KERNEL); nthreads 505 fs/nfsd/nfsctl.c if (nthreads == NULL) nthreads 510 fs/nfsd/nfsctl.c rv = get_int(&mesg, &nthreads[i]); nthreads 516 fs/nfsd/nfsctl.c if (nthreads[i] < 0) nthreads 519 fs/nfsd/nfsctl.c rv = nfsd_set_nrthreads(i, nthreads, net); nthreads 524 fs/nfsd/nfsctl.c rv = nfsd_get_nrthreads(npools, nthreads, net); nthreads 531 fs/nfsd/nfsctl.c snprintf(mesg, size, "%d%c", nthreads[i], (i == npools-1 ? '\n' : ' ')); nthreads 538 fs/nfsd/nfsctl.c kfree(nthreads); nthreads 641 fs/nfsd/nfssvc.c int nfsd_get_nrthreads(int n, int *nthreads, struct net *net) nthreads 648 fs/nfsd/nfssvc.c nthreads[i] = nn->nfsd_serv->sv_pools[i].sp_nrthreads; nthreads 666 fs/nfsd/nfssvc.c int nfsd_set_nrthreads(int n, int *nthreads, struct net *net) nthreads 684 fs/nfsd/nfssvc.c nthreads[i] = min(nthreads[i], NFSD_MAXSERVS); nthreads 685 fs/nfsd/nfssvc.c tot += nthreads[i]; nthreads 690 fs/nfsd/nfssvc.c int new = nthreads[i] * NFSD_MAXSERVS / tot; nthreads 691 fs/nfsd/nfssvc.c tot -= (nthreads[i] - new); nthreads 692 fs/nfsd/nfssvc.c nthreads[i] = new; nthreads 695 fs/nfsd/nfssvc.c nthreads[i]--; nthreads 704 fs/nfsd/nfssvc.c if (nthreads[0] == 0) nthreads 705 fs/nfsd/nfssvc.c nthreads[0] = 1; nthreads 711 fs/nfsd/nfssvc.c &nn->nfsd_serv->sv_pools[i], nthreads[i]); nthreads 275 kernel/locking/test-ww_mutex.c static int __test_cycle(unsigned int nthreads) nthreads 278 kernel/locking/test-ww_mutex.c unsigned int n, last = nthreads - 1; nthreads 281 kernel/locking/test-ww_mutex.c cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL); nthreads 285 kernel/locking/test-ww_mutex.c for (n = 0; n < nthreads; n++) { nthreads 304 kernel/locking/test-ww_mutex.c for (n = 0; n < nthreads; n++) nthreads 310 kernel/locking/test-ww_mutex.c for (n = 0; n < nthreads; n++) { nthreads 317 kernel/locking/test-ww_mutex.c n, nthreads, cycle->result); nthreads 322 kernel/locking/test-ww_mutex.c for (n = 0; n < nthreads; n++) nthreads 524 kernel/locking/test-ww_mutex.c static int stress(int nlocks, int nthreads, unsigned int flags) nthreads 536 kernel/locking/test-ww_mutex.c for (n = 0; nthreads; n++) { nthreads 569 kernel/locking/test-ww_mutex.c nthreads--; nthreads 36 tools/perf/bench/epoll-ctl.c static unsigned int nthreads = 0; nthreads 76 tools/perf/bench/epoll-ctl.c OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"), nthreads 234 tools/perf/bench/epoll-ctl.c for (i = 0; i < nthreads; i++) { nthreads 336 tools/perf/bench/epoll-ctl.c if (!nthreads) nthreads 337 tools/perf/bench/epoll-ctl.c nthreads = cpu->nr; nthreads 339 tools/perf/bench/epoll-ctl.c worker = calloc(nthreads, sizeof(*worker)); nthreads 345 tools/perf/bench/epoll-ctl.c rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; nthreads 353 tools/perf/bench/epoll-ctl.c getpid(), nthreads, nfds, nsecs); nthreads 362 tools/perf/bench/epoll-ctl.c threads_starting = nthreads; nthreads 378 tools/perf/bench/epoll-ctl.c for (i = 0; i < nthreads; i++) { nthreads 389 tools/perf/bench/epoll-ctl.c for (i = 0; i < nthreads; i++) { nthreads 91 tools/perf/bench/epoll-wait.c static unsigned int nthreads = 0; nthreads 129 tools/perf/bench/epoll-wait.c OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"), nthreads 311 tools/perf/bench/epoll-wait.c for (i = 0; i < nthreads; i++) { nthreads 382 tools/perf/bench/epoll-wait.c shuffle((void *)worker, nthreads, sizeof(*worker)); nthreads 385 tools/perf/bench/epoll-wait.c for (i = 0; i < nthreads; i++) { nthreads 455 tools/perf/bench/epoll-wait.c if (!nthreads) nthreads 456 tools/perf/bench/epoll-wait.c nthreads = cpu->nr - 1; nthreads 458 tools/perf/bench/epoll-wait.c worker = calloc(nthreads, sizeof(*worker)); nthreads 465 tools/perf/bench/epoll-wait.c rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; nthreads 473 tools/perf/bench/epoll-wait.c getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs); nthreads 480 tools/perf/bench/epoll-wait.c threads_starting = nthreads; nthreads 519 tools/perf/bench/epoll-wait.c qsort(worker, nthreads, sizeof(struct worker), cmpworker); nthreads 521 tools/perf/bench/epoll-wait.c for (i = 0; i < nthreads; i++) { nthreads 33 tools/perf/bench/futex-hash.c static unsigned int nthreads = 0; nthreads 54 tools/perf/bench/futex-hash.c OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"), nthreads 144 tools/perf/bench/futex-hash.c if (!nthreads) /* default to the number of CPUs */ nthreads 145 tools/perf/bench/futex-hash.c nthreads = cpu->nr; nthreads 147 tools/perf/bench/futex-hash.c worker = calloc(nthreads, sizeof(*worker)); nthreads 155 tools/perf/bench/futex-hash.c getpid(), nthreads, nfutexes, fshared ? "shared":"private", nsecs); nthreads 162 tools/perf/bench/futex-hash.c threads_starting = nthreads; nthreads 165 tools/perf/bench/futex-hash.c for (i = 0; i < nthreads; i++) { nthreads 195 tools/perf/bench/futex-hash.c for (i = 0; i < nthreads; i++) { nthreads 206 tools/perf/bench/futex-hash.c for (i = 0; i < nthreads; i++) { nthreads 38 tools/perf/bench/futex-lock-pi.c static unsigned int nthreads = 0; nthreads 47 tools/perf/bench/futex-lock-pi.c OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"), nthreads 125 tools/perf/bench/futex-lock-pi.c threads_starting = nthreads; nthreads 127 tools/perf/bench/futex-lock-pi.c for (i = 0; i < nthreads; i++) { nthreads 168 tools/perf/bench/futex-lock-pi.c if (!nthreads) nthreads 169 tools/perf/bench/futex-lock-pi.c nthreads = cpu->nr; nthreads 171 tools/perf/bench/futex-lock-pi.c worker = calloc(nthreads, sizeof(*worker)); nthreads 179 tools/perf/bench/futex-lock-pi.c getpid(), nthreads, nsecs); nthreads 186 tools/perf/bench/futex-lock-pi.c threads_starting = nthreads; nthreads 202 tools/perf/bench/futex-lock-pi.c for (i = 0; i < nthreads; i++) { nthreads 213 tools/perf/bench/futex-lock-pi.c for (i = 0; i < nthreads; i++) { nthreads 45 tools/perf/bench/futex-requeue.c static unsigned int threads_starting, nthreads = 0; nthreads 49 tools/perf/bench/futex-requeue.c OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"), nthreads 69 tools/perf/bench/futex-requeue.c nthreads, nthreads 93 tools/perf/bench/futex-requeue.c threads_starting = nthreads; nthreads 96 tools/perf/bench/futex-requeue.c for (i = 0; i < nthreads; i++) { nthreads 135 tools/perf/bench/futex-requeue.c if (!nthreads) nthreads 136 tools/perf/bench/futex-requeue.c nthreads = cpu->nr; nthreads 138 tools/perf/bench/futex-requeue.c worker = calloc(nthreads, sizeof(*worker)); nthreads 145 tools/perf/bench/futex-requeue.c if (nrequeue > nthreads) nthreads 146 tools/perf/bench/futex-requeue.c nrequeue = nthreads; nthreads 149 tools/perf/bench/futex-requeue.c "%d at a time.\n\n", getpid(), nthreads, nthreads 177 tools/perf/bench/futex-requeue.c while (nrequeued < nthreads) { nthreads 194 tools/perf/bench/futex-requeue.c j + 1, nrequeued, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC); nthreads 199 tools/perf/bench/futex-requeue.c if (nthreads != nrequeued) nthreads 200 tools/perf/bench/futex-requeue.c warnx("couldn't wakeup all tasks (%d/%d)", nrequeued, nthreads); nthreads 202 tools/perf/bench/futex-requeue.c for (i = 0; i < nthreads; i++) { nthreads 46 tools/perf/bench/futex-wake.c static unsigned int threads_starting, nthreads = 0; nthreads 50 tools/perf/bench/futex-wake.c OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"), nthreads 88 tools/perf/bench/futex-wake.c nthreads, nthreads 99 tools/perf/bench/futex-wake.c threads_starting = nthreads; nthreads 102 tools/perf/bench/futex-wake.c for (i = 0; i < nthreads; i++) { nthreads 143 tools/perf/bench/futex-wake.c if (!nthreads) nthreads 144 tools/perf/bench/futex-wake.c nthreads = cpu->nr; nthreads 146 tools/perf/bench/futex-wake.c worker = calloc(nthreads, sizeof(*worker)); nthreads 155 tools/perf/bench/futex-wake.c getpid(), nthreads, fshared ? "shared":"private", &futex1, nwakes); nthreads 182 tools/perf/bench/futex-wake.c while (nwoken != nthreads) nthreads 192 tools/perf/bench/futex-wake.c j + 1, nwoken, nthreads, runtime.tv_usec / (double)USEC_PER_MSEC); nthreads 195 tools/perf/bench/futex-wake.c for (i = 0; i < nthreads; i++) { nthreads 1921 tools/perf/builtin-script.c int nthreads = perf_thread_map__nr(counter->core.threads); nthreads 1927 tools/perf/builtin-script.c nthreads = 1; nthreads 1935 tools/perf/builtin-script.c for (thread = 0; thread < nthreads; thread++) { nthreads 270 tools/perf/builtin-stat.c int nthreads = perf_thread_map__nr(evsel_list->core.threads); nthreads 282 tools/perf/builtin-stat.c nthreads = 1; nthreads 284 tools/perf/builtin-stat.c for (thread = 0; thread < nthreads; thread++) { nthreads 1561 tools/perf/builtin-stat.c static int runtime_stat_new(struct perf_stat_config *config, int nthreads) nthreads 1565 tools/perf/builtin-stat.c config->stats = calloc(nthreads, sizeof(struct runtime_stat)); nthreads 1569 tools/perf/builtin-stat.c config->stats_num = nthreads; nthreads 1571 tools/perf/builtin-stat.c for (i = 0; i < nthreads; i++) nthreads 42 tools/perf/lib/evsel.c int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) nthreads 44 tools/perf/lib/evsel.c evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int)); nthreads 49 tools/perf/lib/evsel.c for (thread = 0; thread < nthreads; thread++) { nthreads 234 tools/perf/lib/evsel.c int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads) nthreads 236 tools/perf/lib/evsel.c if (ncpus == 0 || nthreads == 0) nthreads 240 tools/perf/lib/evsel.c nthreads = 1; nthreads 242 tools/perf/lib/evsel.c evsel->sample_id = xyarray__new(ncpus, nthreads, sizeof(struct perf_sample_id)); nthreads 246 tools/perf/lib/evsel.c evsel->id = zalloc(ncpus * nthreads * sizeof(u64)); nthreads 53 tools/perf/lib/include/internal/evsel.h int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads); nthreads 59 tools/perf/lib/include/internal/evsel.h int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads); nthreads 8 tools/perf/util/counts.c struct perf_counts *perf_counts__new(int ncpus, int nthreads) nthreads 15 tools/perf/util/counts.c values = xyarray__new(ncpus, nthreads, sizeof(struct perf_counts_values)); nthreads 23 tools/perf/util/counts.c values = xyarray__new(ncpus, nthreads, sizeof(bool)); nthreads 56 tools/perf/util/counts.c int perf_evsel__alloc_counts(struct evsel *evsel, int ncpus, int nthreads) nthreads 58 tools/perf/util/counts.c evsel->counts = perf_counts__new(ncpus, nthreads); nthreads 38 tools/perf/util/counts.h struct perf_counts *perf_counts__new(int ncpus, int nthreads); nthreads 42 tools/perf/util/counts.h int perf_evsel__alloc_counts(struct evsel *evsel, int ncpus, int nthreads); nthreads 1575 tools/perf/util/evsel.c int cpu, thread, nthreads; nthreads 1609 tools/perf/util/evsel.c nthreads = 1; nthreads 1611 tools/perf/util/evsel.c nthreads = threads->nr; nthreads 1614 tools/perf/util/evsel.c perf_evsel__alloc_fd(&evsel->core, cpus->nr, nthreads) < 0) nthreads 1652 tools/perf/util/evsel.c for (thread = 0; thread < nthreads; thread++) { nthreads 1676 tools/perf/util/evsel.c nthreads--; nthreads 1820 tools/perf/util/evsel.c thread = nthreads; nthreads 696 tools/perf/util/stat-display.c int nthreads, int ncpus, nthreads 704 tools/perf/util/stat-display.c buf = calloc(nthreads, sizeof(struct perf_aggr_thread_value)); nthreads 708 tools/perf/util/stat-display.c for (thread = 0; thread < nthreads; thread++) { nthreads 748 tools/perf/util/stat-display.c int nthreads = perf_thread_map__nr(counter->core.threads); nthreads 753 tools/perf/util/stat-display.c buf = sort_aggr_thread(counter, nthreads, ncpus, &sorted_threads, _target); nthreads 148 tools/perf/util/stat.c int ncpus, int nthreads) nthreads 152 tools/perf/util/stat.c counts = perf_counts__new(ncpus, nthreads); nthreads 177 tools/perf/util/stat.c int nthreads = perf_thread_map__nr(evsel->core.threads); nthreads 180 tools/perf/util/stat.c perf_evsel__alloc_counts(evsel, ncpus, nthreads) < 0 || nthreads 181 tools/perf/util/stat.c (alloc_raw && perf_evsel__alloc_prev_raw_counts(evsel, ncpus, nthreads) < 0)) nthreads 335 tools/perf/util/stat.c int nthreads = perf_thread_map__nr(counter->core.threads); nthreads 340 tools/perf/util/stat.c nthreads = 1; nthreads 342 tools/perf/util/stat.c for (thread = 0; thread < nthreads; thread++) {