/linux-master/tools/testing/selftests/mm/ |
H A D | pagemap_ioctl.c | 1304 static const unsigned int nthreads = 6, pages_per_thread = 32, access_per_thread = 8; variable 1391 if (pthread_barrier_init(&start_barrier, NULL, nthreads + 1)) 1394 if (pthread_barrier_init(&end_barrier, NULL, nthreads + 1)) 1397 mem = mmap(NULL, 0x1000 * nthreads * pages_per_thread, PROT_READ | PROT_WRITE, 1402 wp_init(mem, 0x1000 * nthreads * pages_per_thread); 1403 wp_addr_range(mem, 0x1000 * nthreads * pages_per_thread); 1405 memset(mem, 0, 0x1000 * nthreads * pages_per_thread); 1407 count = get_dirty_pages_reset(mem, nthreads * pages_per_thread, 1, page_size); 1409 count = get_dirty_pages_reset(mem, nthreads * pages_per_thread, 1, page_size); 1413 for (i = 0; i < nthreads; [all...] |
/linux-master/arch/powerpc/kernel/ |
H A D | prom.c | 336 int i, nthreads; local 353 nthreads = len / sizeof(int); 359 for (i = 0; i < nthreads; i++) { 380 if (nr_cpu_ids % nthreads != 0) { 381 set_nr_cpu_ids(ALIGN(nr_cpu_ids, nthreads)); 437 if (nthreads == 1)
|
/linux-master/tools/perf/util/ |
H A D | stat.c | 157 int nthreads = perf_thread_map__nr(evsel->core.threads); local 160 counts = perf_counts__new(cpu_map_nr, nthreads); 249 int idx, nthreads = perf_thread_map__nr(evsel->core.threads); local 251 for (int thread = 0; thread < nthreads; thread++) { 464 int nthreads = perf_thread_map__nr(counter->core.threads); local 468 for (thread = 0; thread < nthreads; thread++) {
|
H A D | evsel.c | 1802 int nthreads = perf_thread_map__nr(threads); local 1829 perf_evsel__alloc_fd(&evsel->core, perf_cpu_map__nr(cpus), nthreads) < 0) 2010 int idx, thread, nthreads; local 2024 nthreads = perf_thread_map__nr(threads); 2037 for (thread = 0; thread < nthreads; thread++) { 2040 if (thread >= nthreads) 2122 /* We just removed 1 thread, so lower the upper nthreads limit. */ 2123 nthreads--; 2152 thread = nthreads;
|
/linux-master/fs/nfsd/ |
H A D | nfsctl.c | 451 int *nthreads; local 467 nthreads = kcalloc(npools, sizeof(int), GFP_KERNEL); 469 if (nthreads == NULL) 474 rv = get_int(&mesg, &nthreads[i]); 480 if (nthreads[i] < 0) 482 trace_nfsd_ctl_pool_threads(net, i, nthreads[i]); 484 rv = nfsd_set_nrthreads(i, nthreads, net); 489 rv = nfsd_get_nrthreads(npools, nthreads, net); 496 snprintf(mesg, size, "%d%c", nthreads[i], (i == npools-1 ? '\n' : ' ')); 503 kfree(nthreads); 1666 int nthreads = 0, count = 0, nrpools, ret = -EOPNOTSUPP, rem; local [all...] |
/linux-master/tools/testing/selftests/mount_setattr/ |
H A D | mount_setattr_test.c | 905 int i, j, nthreads, ret = 0; local 917 nthreads = get_nprocs_conf(); 918 if (nthreads > DEFAULT_THREADS) 919 nthreads = DEFAULT_THREADS; 922 for (i = 0; i < nthreads; i++)
|
/linux-master/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_main.c | 91 return cpu % priv->nthreads; 1434 if (cpu > port->priv->nthreads) 1456 if (cpu >= port->priv->nthreads) 2560 for (thread = 0; thread < port->priv->nthreads; thread++) { 2658 if (smp_processor_id() >= port->priv->nthreads) 3164 for (thread = 0; thread < port->priv->nthreads; thread++) { 3201 for (thread = 0; thread < port->priv->nthreads; thread++) { 3271 for (thread = 0; thread < port->priv->nthreads; thread++) { 4909 for (thread = 0; thread < port->priv->nthreads; thread++) { 5807 port->nqvecs = priv->nthreads [all...] |
H A D | mvpp2.h | 1063 unsigned int nthreads; member in struct:mvpp2
|
/linux-master/tools/perf/ |
H A D | builtin-stat.c | 298 int nthreads = perf_thread_map__nr(evsel_list->core.threads); local 304 for (thread = 0; thread < nthreads; thread++) {
|
H A D | builtin-script.c | 2332 int nthreads = perf_thread_map__nr(counter->core.threads); local 2343 for (thread = 0; thread < nthreads; thread++) {
|
/linux-master/arch/powerpc/kvm/ |
H A D | book3s_hv.c | 1501 int thr, cpu, pcpu, nthreads; local 1505 nthreads = vcpu->kvm->arch.emul_smt_mode; 1507 cpu = vcpu->vcpu_id & ~(nthreads - 1); 1508 for (thr = 0; thr < nthreads; ++thr, ++cpu) {
|