Home
last modified time | relevance | path

Searched refs:thread_index (Results 1 - 25 of 42) sorted by relevance

12

/third_party/ltp/testcases/kernel/mem/mtest07/
H A Dmallocstress.c159 int thread_index; in stress_malloc() local
161 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
162 SAFE_PTHREAD_CREATE(&thread_id[thread_index], NULL, alloc_mem, in stress_malloc()
163 (void *)(uintptr_t)thread_index); in stress_malloc()
170 for (thread_index = 0; thread_index < NUM_THREADS; thread_index++) { in stress_malloc()
173 SAFE_PTHREAD_JOIN(thread_id[thread_index], in stress_malloc()
[all...]
/third_party/ltp/testcases/kernel/syscalls/madvise/
H A Dmadvise11.c170 int thread_index; in stress_alloc_offl() local
179 for (thread_index = 0; thread_index < number_threads; thread_index++) { in stress_alloc_offl()
180 SAFE_PTHREAD_CREATE(&thread_ids[thread_index], NULL, alloc_mem, in stress_alloc_offl()
181 (void *)(uintptr_t)thread_index); in stress_alloc_offl()
186 for (thread_index = 0; thread_index < number_threads; thread_index++) { in stress_alloc_offl()
189 SAFE_PTHREAD_JOIN(thread_ids[thread_index], in stress_alloc_offl()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
H A Dpseries_energy.c40 int thread_index; in cpu_to_drc_index() local
49 thread_index = cpu_core_index_of_thread(cpu); in cpu_to_drc_index()
70 if (thread_index < drc.last_drc_index) in cpu_to_drc_index()
74 ret = drc.drc_index_start + (thread_index * drc.sequential_inc); in cpu_to_drc_index()
81 * thread_index+1 will get the drc_index corresponding in cpu_to_drc_index()
82 * to core number thread_index. in cpu_to_drc_index()
89 WARN_ON_ONCE(thread_index > nr_drc_indexes); in cpu_to_drc_index()
91 thread_index + 1, in cpu_to_drc_index()
114 int thread_index = 0, cpu = 0; in drc_index_to_cpu() local
146 thread_index in drc_index_to_cpu()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Dpseries_energy.c40 int thread_index; in cpu_to_drc_index() local
49 thread_index = cpu_core_index_of_thread(cpu); in cpu_to_drc_index()
70 if (thread_index < drc.last_drc_index) in cpu_to_drc_index()
74 ret = drc.drc_index_start + (thread_index * drc.sequential_inc); in cpu_to_drc_index()
81 * thread_index+1 will get the drc_index corresponding in cpu_to_drc_index()
82 * to core number thread_index. in cpu_to_drc_index()
89 WARN_ON_ONCE(thread_index > nr_drc_indexes); in cpu_to_drc_index()
91 thread_index + 1, in cpu_to_drc_index()
114 int thread_index = 0, cpu = 0; in drc_index_to_cpu() local
146 thread_index in drc_index_to_cpu()
[all...]
/third_party/mesa3d/src/util/
H A Du_queue.c243 int thread_index; member
250 int thread_index = ((struct thread_input*)input)->thread_index; in util_queue_thread_func() local
275 snprintf(name, sizeof(name), "%s%i", queue->name, thread_index); in util_queue_thread_func()
286 while (thread_index < queue->num_threads && queue->num_queued == 0) in util_queue_thread_func()
290 if (thread_index >= queue->num_threads) { in util_queue_thread_func()
306 job.execute(job.job, job.global_data, thread_index); in util_queue_thread_func()
310 job.cleanup(job.job, job.global_data, thread_index); in util_queue_thread_func()
338 input->thread_index = index; in util_queue_create_thread()
385 * when thread_index < num_thread in util_queue_adjust_num_threads()
707 util_queue_get_thread_time_nano(struct util_queue *queue, unsigned thread_index) util_queue_get_thread_time_nano() argument
[all...]
H A Du_queue.h194 typedef void (*util_queue_execute_func)(void *job, void *gdata, int thread_index);
255 unsigned thread_index);
H A Ddisk_cache.c322 destroy_put_job(void *job, void *gdata, int thread_index) in destroy_put_job() argument
332 destroy_put_job_nocopy(void *job, void *gdata, int thread_index) in destroy_put_job_nocopy() argument
336 destroy_put_job(job, gdata, thread_index); in destroy_put_job_nocopy()
340 cache_put(void *job, void *gdata, int thread_index) in cache_put() argument
/third_party/benchmark/test/
H A Dfixture_test.cc12 if (state.thread_index() == 0) {
19 if (state.thread_index() == 0) {
38 if (st.thread_index() == 0) { in BENCHMARK_DEFINE_F()
H A Dbenchmark_setup_teardown_test.cc21 assert(state.thread_index() == 0); in DoSetup1()
26 assert(state.thread_index() == 0); in DoTeardown1()
51 assert(state.thread_index() == 0); in DoSetup2()
56 assert(state.thread_index() == 0); in DoTeardown2()
H A Dbenchmark_test.cc136 if (state.thread_index() == 0) { in BM_SetupTeardown()
149 if (state.thread_index() == 0) { in BM_SetupTeardown()
167 int from = thread_size * state.thread_index(); in BM_ParallelMemset()
170 if (state.thread_index() == 0) { in BM_ParallelMemset()
182 if (state.thread_index() == 0) { in BM_ParallelMemset()
H A Dskip_with_error_test.cc102 if (state.range(0) == 1 && state.thread_index() <= (state.threads() / 2)) { in BM_error_during_running()
149 if (state.thread_index() <= (state.threads() / 2)) in BM_error_after_running()
161 if (state.range(0) == 1 && state.thread_index() <= (state.threads() / 2)) { in BM_error_while_paused()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_rast.c633 pq->start[task->thread_index] = task->thread_data.vis_counter; in lp_rast_begin_query()
636 pq->start[task->thread_index] = task->thread_data.ps_invocations; in lp_rast_begin_query()
639 pq->start[task->thread_index] = os_time_get_nano(); in lp_rast_begin_query()
663 pq->end[task->thread_index] += in lp_rast_end_query()
664 task->thread_data.vis_counter - pq->start[task->thread_index]; in lp_rast_end_query()
665 pq->start[task->thread_index] = 0; in lp_rast_end_query()
669 pq->end[task->thread_index] = os_time_get_nano(); in lp_rast_end_query()
672 pq->end[task->thread_index] += in lp_rast_end_query()
673 task->thread_data.ps_invocations - pq->start[task->thread_index]; in lp_rast_end_query()
674 pq->start[task->thread_index] in lp_rast_end_query()
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/bufq/src/
H A Dbufq.c327 int thread_index, in ia_css_bufq_enqueue_buffer()
335 if ((thread_index >= SH_CSS_MAX_SP_THREADS) || (thread_index < 0) || in ia_css_bufq_enqueue_buffer()
342 thread_index); in ia_css_bufq_enqueue_buffer()
326 ia_css_bufq_enqueue_buffer( int thread_index, int queue_id, uint32_t item) ia_css_bufq_enqueue_buffer() argument
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/bufq/src/
H A Dbufq.c327 int thread_index, in ia_css_bufq_enqueue_buffer()
335 if ((thread_index >= SH_CSS_MAX_SP_THREADS) || (thread_index < 0) || in ia_css_bufq_enqueue_buffer()
342 thread_index); in ia_css_bufq_enqueue_buffer()
326 ia_css_bufq_enqueue_buffer( int thread_index, int queue_id, uint32_t item) ia_css_bufq_enqueue_buffer() argument
/third_party/astc-encoder/Source/
H A Dastcenccli_platform_dependents.cpp80 int thread_index in set_group_affinity()
90 int assign_index = thread_index % get_cpu_count(); in set_group_affinity()
H A Dastcenc.h787 * @c thread_index.
794 * @param thread_index Thread index [0..N-1] of calling thread.
808 unsigned int thread_index);
834 * @param thread_index Thread index [0..N-1] of calling thread.
844 unsigned int thread_index);
H A Dastcenc_entry.cpp821 * @param thread_index The thread index.
828 unsigned int thread_index, in compress_image()
871 auto& temp_buffers = ctx.working_buffers[thread_index]; in compress_image()
1070 unsigned int thread_index in astcenc_compress_image()
1078 (void)thread_index; in astcenc_compress_image()
1096 if (thread_index >= ctx->thread_count) in astcenc_compress_image()
1146 compress_image(*ctxo, thread_index, image, *swizzle, data_out, calQualityEnable, mse); in astcenc_compress_image()
1148 compress_image(*ctxo, thread_index, image, *swizzle, data_out); in astcenc_compress_image()
1192 unsigned int thread_index in astcenc_decompress_image()
1199 if (thread_index > in astcenc_decompress_image()
826 compress_image( astcenc_context& ctxo, unsigned int thread_index, const astcenc_image& image, const astcenc_swizzle& swizzle, uint8_t* buffer, bool calQualityEnable, int32_t *mse[RGBA_COM] ) compress_image() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/bufq/interface/
H A Dia_css_bufq.h77 * @param thread_index[in] Thread in which the item to be enqueued
85 int thread_index,
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/bufq/interface/
H A Dia_css_bufq.h77 * @param thread_index[in] Thread in which the item to be enqueued
85 int thread_index,
/third_party/mesa3d/src/freedreno/drm/virtio/
H A Dvirtio_ringbuffer.c35 retire_execute(void *job, void *gdata, int thread_index) in retire_execute() argument
44 retire_cleanup(void *job, void *gdata, int thread_index) in retire_cleanup() argument
/third_party/mesa3d/src/mesa/main/
H A Dglthread.c46 glthread_unmarshal_batch(void *job, void *gdata, int thread_index) in glthread_unmarshal_batch() argument
84 glthread_thread_initialization(void *job, void *gdata, int thread_index) in glthread_thread_initialization() argument
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/
H A Dmutex_benchmark.cc100 (multiple_priorities && state.thread_index != 0) ? 1 : 0); in BM_MutexEnqueue()
179 int priority = state.thread_index % state.range(1); in BM_Contended()
/third_party/mesa3d/src/broadcom/compiler/
H A Dvir_register_allocate.c72 return c->compiler->reg_class_phys[c->thread_index]; in choose_reg_class()
74 return c->compiler->reg_class_r5[c->thread_index]; in choose_reg_class()
76 return c->compiler->reg_class_phys_or_acc[c->thread_index]; in choose_reg_class()
79 return c->compiler->reg_class_any[c->thread_index]; in choose_reg_class()
1103 c->thread_index = ffs(c->threads) - 1; in v3d_register_allocate()
1105 if (c->thread_index >= 1) in v3d_register_allocate()
1106 c->thread_index--; in v3d_register_allocate()
/third_party/mesa3d/src/gallium/winsys/radeon/drm/
H A Dradeon_drm_cs.h140 void radeon_drm_cs_emit_ioctl_oneshot(void *job, void *gdata, int thread_index);
/third_party/mesa3d/src/freedreno/drm/
H A Dfreedreno_ringbuffer_sp.c201 fd_submit_sp_flush_execute(void *job, void *gdata, int thread_index) in fd_submit_sp_flush_execute() argument
219 fd_submit_sp_flush_cleanup(void *job, void *gdata, int thread_index) in fd_submit_sp_flush_cleanup() argument

Completed in 22 milliseconds

12