Home
last modified time | relevance | path

Searched refs:max_threads (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/qemu/tests/tcg/multiarch/
H A Dthreadcount.c22 int max_threads = 10; variable
42 max_threads = atoi(argv[1]); in main()
44 threads = calloc(sizeof(pthread_t), max_threads); in main()
46 for (i = 0; i < max_threads; i++) { in main()
52 printf("Created %d threads\n", max_threads); in main()
55 usleep(max_threads * 50); in main()
57 for (i = 0; i < max_threads; i++) { in main()
H A Dsignals.c57 static int max_threads = 10; variable
77 threads = calloc(sizeof(pthread_t), max_threads); in spawn_threads()
79 for (i = 0; i < max_threads; i++) { in spawn_threads()
91 for (i = 0; i < max_threads; i++) { in close_threads()
/openbmc/linux/tools/perf/bench/
H A Dsynthesize.c25 static unsigned int max_threads = UINT_MAX; variable
36 OPT_UINTEGER('M', "max-threads", &max_threads,
212 if (max_threads == UINT_MAX) in run_multi_threaded()
213 max_threads = sysconf(_SC_NPROCESSORS_ONLN); in run_multi_threaded()
220 nr_threads_synthesize <= max_threads; in run_multi_threaded()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dgen7_renderclear.c36 u32 max_threads; member
52 return bv->max_threads; in num_primitives()
62 bv->max_threads = 70; in batch_get_defaults()
65 bv->max_threads = 140; in batch_get_defaults()
68 bv->max_threads = 280; in batch_get_defaults()
77 bv->max_threads = 36; in batch_get_defaults()
80 bv->max_threads = 128; in batch_get_defaults()
266 u32 threads = bv->max_threads - 1; in gen7_emit_vfe_state()
/openbmc/qemu/util/
H A Dthread-pool.c74 int max_threads; member
85 while (pool->cur_threads <= pool->max_threads) { in worker_thread()
262 if (pool->idle_threads == 0 && pool->cur_threads < pool->max_threads) { in thread_pool_submit_aio()
303 pool->max_threads = ctx->thread_pool_max; in thread_pool_update_params()
318 for (int i = pool->cur_threads; i > pool->max_threads; i--) { in thread_pool_update_params()
368 pool->max_threads = 0; in thread_pool_free()
H A Doslib-posix.c402 int max_threads) in get_memset_num_threads() argument
408 ret = MIN(MIN(host_procs, MAX_MEM_PREALLOC_THREAD_COUNT), max_threads); in get_memset_num_threads()
437 int max_threads, ThreadContext *tc, bool async, in touch_all_pages() argument
456 get_memset_num_threads(hpagesize, numpages, max_threads); in touch_all_pages()
571 bool qemu_prealloc_mem(int fd, char *area, size_t sz, int max_threads, in qemu_prealloc_mem() argument
614 ret = touch_all_pages(area, hpagesize, numpages, max_threads, tc, async, in qemu_prealloc_mem()
H A Doslib-win32.c267 bool qemu_prealloc_mem(int fd, char *area, size_t sz, int max_threads, in qemu_prealloc_mem() argument
/openbmc/linux/include/linux/
H A Dcpu_smt.h18 unsigned int max_threads);
27 unsigned int max_threads) { } in cpu_smt_set_num_threads() argument
H A Dpadata.h148 int max_threads; member
/openbmc/linux/tools/perf/util/
H A Dthread_map.c78 int max_threads = 32, items, i; in __thread_map__new_all_cpus() local
81 struct perf_thread_map *threads = thread_map__alloc(max_threads); in __thread_map__new_all_cpus()
115 while (threads->nr + items >= max_threads) { in __thread_map__new_all_cpus()
116 max_threads *= 2; in __thread_map__new_all_cpus()
123 tmp = perf_thread_map__realloc(threads, max_threads); in __thread_map__new_all_cpus()
/openbmc/qemu/include/hw/s390x/
H A Ds390-virtio-ccw.h50 int max_threads; member
/openbmc/phosphor-rest-server/servers/rocket/
H A Dphosphor-rocket43 max_threads=1)
/openbmc/linux/arch/x86/kernel/
H A Dsmpboot.c1353 int max_threads, cpu; in recompute_smt_state() local
1355 max_threads = 0; in recompute_smt_state()
1359 if (threads > max_threads) in recompute_smt_state()
1360 max_threads = threads; in recompute_smt_state()
1362 __max_smt_threads = max_threads; in recompute_smt_state()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Drv770.c1199 rdev->config.rv770.max_threads = 248; in rv770_gpu_init()
1219 rdev->config.rv770.max_threads = 248; in rv770_gpu_init()
1243 rdev->config.rv770.max_threads = 192; in rv770_gpu_init()
1263 rdev->config.rv770.max_threads = 248; in rv770_gpu_init()
1505 sq_thread_resource_mgmt = (NUM_PS_THREADS((rdev->config.rv770.max_threads * 4)/8) | in rv770_gpu_init()
1506 NUM_VS_THREADS((rdev->config.rv770.max_threads * 2)/8) | in rv770_gpu_init()
1507 NUM_ES_THREADS((rdev->config.rv770.max_threads * 1)/8)); in rv770_gpu_init()
1508 if (((rdev->config.rv770.max_threads * 1) / 8) > rdev->config.rv770.max_gs_threads) in rv770_gpu_init()
H A Devergreen.c3165 rdev->config.evergreen.max_threads = 248; in evergreen_gpu_init()
3187 rdev->config.evergreen.max_threads = 248; in evergreen_gpu_init()
3209 rdev->config.evergreen.max_threads = 248; in evergreen_gpu_init()
3232 rdev->config.evergreen.max_threads = 192; in evergreen_gpu_init()
3254 rdev->config.evergreen.max_threads = 192; in evergreen_gpu_init()
3282 rdev->config.evergreen.max_threads = 248; in evergreen_gpu_init()
3304 rdev->config.evergreen.max_threads = 248; in evergreen_gpu_init()
3326 rdev->config.evergreen.max_threads = 248; in evergreen_gpu_init()
3348 rdev->config.evergreen.max_threads = 248; in evergreen_gpu_init()
3370 rdev->config.evergreen.max_threads = 192; in evergreen_gpu_init()
[all …]
/openbmc/qemu/hw/s390x/
H A Ds390-virtio-ccw.c80 if (machine->smp.threads > s390mc->max_threads) { in s390_init_cpus()
82 s390mc->max_threads); in s390_init_cpus()
754 s390mc->max_threads = 1; in ccw_machine_class_init()
971 s390mc->max_threads = S390_MAX_CPUS; in ccw_machine_7_1_class_options()
/openbmc/linux/drivers/gpu/drm/panfrost/
H A Dpanfrost_device.h45 u32 max_threads; member
H A Dpanfrost_gpu.c236 pfdev->features.max_threads = gpu_read(pfdev, GPU_THREAD_MAX_THREADS); in panfrost_gpu_init_features()
/openbmc/linux/kernel/
H A Dfork.c131 static int max_threads; /* tunable limit on nr_threads */ variable
1017 max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); in set_max_threads()
1065 init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2; in fork_init()
1066 init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2; in fork_init()
1071 init_user_ns.ucount_max[i] = max_threads/2; in fork_init()
2378 if (data_race(nr_threads >= max_threads)) in copy_process()
3537 int threads = max_threads; in sysctl_max_threads()
3550 max_threads = threads; in sysctl_max_threads()
H A Dcpu.c620 unsigned int max_threads) in cpu_smt_set_num_threads() argument
622 WARN_ON(!num_threads || (num_threads > max_threads)); in cpu_smt_set_num_threads()
624 if (max_threads == 1) in cpu_smt_set_num_threads()
627 cpu_smt_max_threads = max_threads; in cpu_smt_set_num_threads()
/openbmc/linux/drivers/android/
H A Dbinder_internal.h424 u32 max_threads; member
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Dcss_trace.h40 u8 max_threads; member
/openbmc/linux/mm/
H A Dmm_init.c2194 int zid, max_threads; in deferred_init_memmap() local
2233 max_threads = deferred_page_init_max_threads(cpumask); in deferred_init_memmap()
2244 .max_threads = max_threads, in deferred_init_memmap()
/openbmc/qemu/include/qemu/
H A Dosdep.h711 bool qemu_prealloc_mem(int fd, char *area, size_t sz, int max_threads,
/openbmc/u-boot/tools/buildman/
H A Dbuilder.py1500 def _PrepareWorkingSpace(self, max_threads, setup_git): argument
1510 for thread in range(max_threads):

12