Home
last modified time | relevance | path

Searched refs:thread (Results 101 - 125 of 1708) sorted by relevance

12345678910>>...69

/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
H A Dptrace-spe.c22 return target->thread.used_spe ? regset->n : 0; in evr_active()
30 membuf_write(&to, &target->thread.evr, sizeof(target->thread.evr)); in evr_get()
35 return membuf_write(&to, &target->thread.acc, in evr_get()
48 &target->thread.evr, in evr_set()
49 0, sizeof(target->thread.evr)); in evr_set()
56 &target->thread.acc, in evr_set()
57 sizeof(target->thread.evr), -1); in evr_set()
H A Dptrace-vsx.c31 buf[i] = target->thread.TS_FPR(i); in fpr_get()
32 buf[32] = target->thread.fp_state.fpscr; in fpr_get()
59 buf[i] = target->thread.TS_FPR(i); in fpr_set()
60 buf[32] = target->thread.fp_state.fpscr; in fpr_set()
68 target->thread.TS_FPR(i) = buf[i]; in fpr_set()
69 target->thread.fp_state.fpscr = buf[32]; in fpr_set()
82 return target->thread.used_vsr ? regset->n : 0; in vsr_active()
109 buf[i] = target->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in vsr_get()
139 buf[i] = target->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in vsr_set()
145 target->thread in vsr_set()
[all...]
/kernel/linux/linux-5.10/arch/sh/kernel/
H A Dprocess.c22 * current task into the new thread.
29 if (src->thread.xstate) { in arch_dup_task_struct()
30 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
32 if (!dst->thread.xstate) in arch_dup_task_struct()
34 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size); in arch_dup_task_struct()
42 if (tsk->thread.xstate) { in free_thread_xstate()
43 kmem_cache_free(task_xstate_cachep, tsk->thread.xstate); in free_thread_xstate()
44 tsk->thread.xstate = NULL; in free_thread_xstate()
H A Dprocess_32.c107 * p->thread.dsp_status.status |= SR_DSP in copy_thread()
109 p->thread.dsp_status = tsk->thread.dsp_status; in copy_thread()
113 memset(p->thread.ptrace_bps, 0, sizeof(p->thread.ptrace_bps)); in copy_thread()
116 p->thread.sp = (unsigned long) childregs; in copy_thread()
119 p->thread.pc = (unsigned long) ret_from_kernel_thread; in copy_thread()
128 p->thread.fpu_counter = 0; in copy_thread()
141 p->thread.pc = (unsigned long) ret_from_fork; in copy_thread()
152 struct thread_struct *next_t = &next->thread; in __switch_to()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/kernel/ptrace/
H A Dptrace-spe.c22 return target->thread.used_spe ? regset->n : 0; in evr_active()
30 membuf_write(&to, &target->thread.evr, sizeof(target->thread.evr)); in evr_get()
35 return membuf_write(&to, &target->thread.acc, in evr_get()
48 &target->thread.evr, in evr_set()
49 0, sizeof(target->thread.evr)); in evr_set()
56 &target->thread.acc, in evr_set()
57 sizeof(target->thread.evr), -1); in evr_set()
H A Dptrace-vsx.c31 buf[i] = target->thread.TS_FPR(i); in fpr_get()
32 buf[32] = target->thread.fp_state.fpscr; in fpr_get()
59 buf[i] = target->thread.TS_FPR(i); in fpr_set()
60 buf[32] = target->thread.fp_state.fpscr; in fpr_set()
68 target->thread.TS_FPR(i) = buf[i]; in fpr_set()
69 target->thread.fp_state.fpscr = buf[32]; in fpr_set()
82 return target->thread.used_vsr ? regset->n : 0; in vsr_active()
109 buf[i] = target->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in vsr_get()
139 buf[i] = target->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in vsr_set()
145 target->thread in vsr_set()
[all...]
/kernel/linux/linux-6.6/arch/sh/kernel/
H A Dprocess.c22 * current task into the new thread.
29 if (src->thread.xstate) { in arch_dup_task_struct()
30 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in arch_dup_task_struct()
32 if (!dst->thread.xstate) in arch_dup_task_struct()
34 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size); in arch_dup_task_struct()
42 if (tsk->thread.xstate) { in free_thread_xstate()
43 kmem_cache_free(task_xstate_cachep, tsk->thread.xstate); in free_thread_xstate()
44 tsk->thread.xstate = NULL; in free_thread_xstate()
H A Dprocess_32.c104 * p->thread.dsp_status.status |= SR_DSP in copy_thread()
106 p->thread.dsp_status = tsk->thread.dsp_status; in copy_thread()
110 memset(p->thread.ptrace_bps, 0, sizeof(p->thread.ptrace_bps)); in copy_thread()
113 p->thread.sp = (unsigned long) childregs; in copy_thread()
116 p->thread.pc = (unsigned long) ret_from_kernel_thread; in copy_thread()
124 p->thread.fpu_counter = 0; in copy_thread()
136 p->thread.pc = (unsigned long) ret_from_fork; in copy_thread()
147 struct thread_struct *next_t = &next->thread; in __switch_to()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dswitch_to.h103 t->thread.ebbrr = 0; in clear_task_ebb()
104 t->thread.ebbhr = 0; in clear_task_ebb()
105 t->thread.bescr = 0; in clear_task_ebb()
106 t->thread.mmcr2 = 0; in clear_task_ebb()
107 t->thread.mmcr0 = 0; in clear_task_ebb()
108 t->thread.siar = 0; in clear_task_ebb()
109 t->thread.sdar = 0; in clear_task_ebb()
110 t->thread.sier = 0; in clear_task_ebb()
111 t->thread.used_ebb = 0; in clear_task_ebb()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/dscr/
H A Ddscr_default_test.c20 unsigned long thread = (unsigned long)in; in do_test() local
43 fprintf(stderr, "thread %ld kernel DSCR should be %ld " in do_test()
44 "but is %ld\n", thread, d, cur_dscr); in do_test()
45 result[thread] = 1; in do_test()
46 pthread_exit(&result[thread]); in do_test()
50 fprintf(stderr, "thread %ld user DSCR should be %ld " in do_test()
51 "but is %ld\n", thread, d, cur_dscr_usr); in do_test()
52 result[thread] = 1; in do_test()
53 pthread_exit(&result[thread]); in do_test()
56 result[thread] in do_test()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dswitch_to.h112 t->thread.ebbrr = 0; in clear_task_ebb()
113 t->thread.ebbhr = 0; in clear_task_ebb()
114 t->thread.bescr = 0; in clear_task_ebb()
115 t->thread.mmcr2 = 0; in clear_task_ebb()
116 t->thread.mmcr0 = 0; in clear_task_ebb()
117 t->thread.siar = 0; in clear_task_ebb()
118 t->thread.sdar = 0; in clear_task_ebb()
119 t->thread.sier = 0; in clear_task_ebb()
120 t->thread.used_ebb = 0; in clear_task_ebb()
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/
H A Dpthread.c120 int pthread_create(pthread_t *thread, const pthread_attr_t *attr, in pthread_create() argument
127 if ((thread == NULL) || (startRoutine == NULL)) { in pthread_create()
169 *thread = T2P(taskID); in pthread_create()
173 int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param) in pthread_setschedparam() argument
175 UINT32 taskID = P2T(thread); in pthread_setschedparam()
202 int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param) in pthread_getschedparam() argument
205 UINT32 taskID = P2T(thread); in pthread_getschedparam()
231 int pthread_cancel(pthread_t thread) in pthread_cancel() argument
233 UINT32 taskID = P2T(thread); in pthread_cancel()
240 if (thread in pthread_cancel()
298 pthread_join(pthread_t thread, void **retval) pthread_join() argument
340 pthread_detach(pthread_t thread) pthread_detach() argument
393 pthread_setname_np(pthread_t thread, const char *name) pthread_setname_np() argument
416 pthread_getname_np(pthread_t thread, char *buf, size_t buflen) pthread_getname_np() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Dsignal.h57 unsafe_put_user(__t->thread.TS_FPR(i), &buf[i], label); \
58 unsafe_put_user(__t->thread.fp_state.fpscr, &buf[i], label); \
67 unsafe_put_user(__t->thread.fp_state.fpr[i][TS_VSRLOWOFFSET], \
77 unsafe_get_user(__t->thread.TS_FPR(i), &buf[i], label); \
78 unsafe_get_user(__t->thread.fp_state.fpscr, &buf[i], label); \
87 unsafe_get_user(__t->thread.fp_state.fpr[i][TS_VSRLOWOFFSET], \
98 unsafe_put_user(__t->thread.TS_CKFPR(i), &buf[i], label);\
99 unsafe_put_user(__t->thread.ckfp_state.fpscr, &buf[i], label); \
108 unsafe_put_user(__t->thread.ckfp_state.fpr[i][TS_VSRLOWOFFSET], \
118 unsafe_get_user(__t->thread
[all...]
/kernel/linux/linux-5.10/arch/arm/kernel/
H A Dptrace.c296 struct thread_info *thread = task_thread_info(tsk); in ptrace_getwmmxregs() local
298 if (!test_ti_thread_flag(thread, TIF_USING_IWMMXT)) in ptrace_getwmmxregs()
300 iwmmxt_task_disable(thread); /* force it to ram */ in ptrace_getwmmxregs()
301 return copy_to_user(ufp, &thread->fpstate.iwmmxt, IWMMXT_SIZE) in ptrace_getwmmxregs()
310 struct thread_info *thread = task_thread_info(tsk); in ptrace_setwmmxregs() local
312 if (!test_ti_thread_flag(thread, TIF_USING_IWMMXT)) in ptrace_setwmmxregs()
314 iwmmxt_task_release(thread); /* force a reload */ in ptrace_setwmmxregs()
315 return copy_from_user(&thread->fpstate.iwmmxt, ufp, IWMMXT_SIZE) in ptrace_setwmmxregs()
327 struct thread_info *thread = task_thread_info(tsk); in ptrace_getcrunchregs() local
329 crunch_task_disable(thread); /* forc in ptrace_getcrunchregs()
339 struct thread_info *thread = task_thread_info(tsk); ptrace_setcrunchregs() local
611 struct thread_info *thread = task_thread_info(target); fpa_set() local
643 struct thread_info *thread = task_thread_info(target); vfp_get() local
665 struct thread_info *thread = task_thread_info(target); vfp_set() local
[all...]
H A Dprocess.c199 * Free current thread data structures etc..
208 struct thread_info *thread = current_thread_info(); in flush_thread() local
213 memset(thread->used_cp, 0, sizeof(thread->used_cp)); in flush_thread()
214 memset(&tsk->thread.debug, 0, sizeof(struct debug_info)); in flush_thread()
215 memset(&thread->fpstate, 0, sizeof(union fp_state)); in flush_thread()
219 thread_notify(THREAD_NOTIFY_FLUSH, thread); in flush_thread()
231 struct thread_info *thread = task_thread_info(p); in copy_thread() local
234 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); in copy_thread()
239 * from the current thread in copy_thread()
[all...]
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-sched.c11 #include "util/thread.h"
68 pthread_t thread; member
130 struct thread *thread; member
196 struct thread *curr_thread[MAX_CPUS];
250 /* per thread run time data */
284 struct thread *last_thread;
291 static struct thread **idle_threads;
689 err = pthread_create(&task->thread, &attr, thread_func, parms); in create_tasks()
882 struct thread *chil in replay_fork_event()
918 thread__init_runtime(struct thread *thread) thread__init_runtime() argument
932 thread__get_runtime(struct thread *thread) thread__get_runtime() argument
964 thread_atoms_search(struct rb_root_cached *root, struct thread *thread, struct list_head *sort_list) thread_atoms_search() argument
1017 thread_atoms_insert(struct perf_sched *sched, struct thread *thread) thread_atoms_insert() argument
1183 struct thread *thread = machine__findnew_thread(machine, -1, pid); latency_runtime_event() local
1502 thread__has_color(struct thread *thread) thread__has_color() argument
1514 struct thread *thread = machine__findnew_thread(machine, pid, tid); map__findnew_thread() local
1764 struct thread *thread; perf_sched__process_comm() local
1907 timehist_get_commstr(struct thread *thread) timehist_get_commstr() argument
1989 task_state_char(struct thread *thread, int state) task_state_char() argument
2001 timehist_print_sample(struct perf_sched *sched, struct evsel *evsel, struct perf_sample *sample, struct addr_location *al, struct thread *thread, u64 t, int state) timehist_print_sample() argument
2153 struct thread *thread; save_task_callchain() local
2195 init_idle_thread(struct thread *thread) init_idle_thread() argument
2305 struct thread *thread; timehist_get_thread() local
2347 timehist_skip_sample(struct perf_sched *sched, struct thread *thread, struct evsel *evsel, struct perf_sample *sample) timehist_skip_sample() argument
2376 struct thread *thread; timehist_print_wakeup_event() local
2420 struct thread *thread; timehist_sched_wakeup_event() local
2450 struct thread *thread; timehist_print_migration_event() local
2504 struct thread *thread; timehist_migrate_task_event() local
2534 struct thread *thread; timehist_sched_change_event() local
[all...]
/kernel/linux/linux-5.10/arch/s390/include/asm/
H A Dswitch_to.h39 save_access_regs(&prev->thread.acrs[0]); \
40 save_ri_cb(prev->thread.ri_cb); \
41 save_gs_cb(prev->thread.gs_cb); \
43 restore_access_regs(&next->thread.acrs[0]); \
44 restore_ri_cb(next->thread.ri_cb, prev->thread.ri_cb); \
45 restore_gs_cb(next->thread.gs_cb); \
/kernel/linux/linux-6.6/arch/s390/include/asm/
H A Dswitch_to.h39 save_access_regs(&prev->thread.acrs[0]); \
40 save_ri_cb(prev->thread.ri_cb); \
41 save_gs_cb(prev->thread.gs_cb); \
43 restore_access_regs(&next->thread.acrs[0]); \
44 restore_ri_cb(next->thread.ri_cb, prev->thread.ri_cb); \
45 restore_gs_cb(next->thread.gs_cb); \
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-sched.c11 #include "util/thread.h"
69 pthread_t thread; member
131 struct thread *thread; member
197 struct thread **curr_thread;
252 /* per thread run time data */
286 struct thread *last_thread;
293 static struct thread **idle_threads;
688 err = pthread_create(&task->thread, &attr, thread_func, parms);
706 err = pthread_join(task->thread, NUL
940 thread__init_runtime(struct thread *thread) thread__init_runtime() argument
954 thread__get_runtime(struct thread *thread) thread__get_runtime() argument
986 thread_atoms_search(struct rb_root_cached *root, struct thread *thread, struct list_head *sort_list) thread_atoms_search() argument
1039 thread_atoms_insert(struct perf_sched *sched, struct thread *thread) thread_atoms_insert() argument
1205 struct thread *thread = machine__findnew_thread(machine, -1, pid); latency_runtime_event() local
1539 thread__has_color(struct thread *thread) thread__has_color() argument
1551 struct thread *thread = machine__findnew_thread(machine, pid, tid); map__findnew_thread() local
1806 struct thread *thread; perf_sched__process_comm() local
1954 timehist_get_commstr(struct thread *thread) timehist_get_commstr() argument
2036 task_state_char(struct thread *thread, int state) task_state_char() argument
2048 timehist_print_sample(struct perf_sched *sched, struct evsel *evsel, struct perf_sample *sample, struct addr_location *al, struct thread *thread, u64 t, int state) timehist_print_sample() argument
2200 struct thread *thread; save_task_callchain() local
2244 init_idle_thread(struct thread *thread) init_idle_thread() argument
2360 struct thread *thread; timehist_get_thread() local
2402 timehist_skip_sample(struct perf_sched *sched, struct thread *thread, struct evsel *evsel, struct perf_sample *sample) timehist_skip_sample() argument
2431 struct thread *thread; timehist_print_wakeup_event() local
2475 struct thread *thread; timehist_sched_wakeup_event() local
2505 struct thread *thread; timehist_print_migration_event() local
2559 struct thread *thread; timehist_migrate_task_event() local
2589 struct thread *thread; timehist_sched_change_event() local
[all...]
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dfpu.h120 _restore_fp(&current->thread.fpu); in own_fpu_inatomic()
136 _save_fp(&tsk->thread.fpu); in lose_fpu_inatomic()
164 unsigned int fcsr = current->thread.fpu.fcsr; in init_fpu()
174 _save_fp(&tsk->thread.fpu); in save_fp()
180 _restore_fp(&tsk->thread.fpu); in restore_fp()
194 _save_lasx(&current->thread.fpu); in save_fpu_regs()
199 _save_lsx(&current->thread.fpu); in save_fpu_regs()
203 _save_fp(&current->thread.fpu); in save_fpu_regs()
231 _save_lsx(&t->thread.fpu); in save_lsx()
237 _restore_lsx(&t->thread in restore_lsx()
[all...]
/kernel/linux/linux-6.6/arch/loongarch/include/asm/
H A Dfpu.h113 _restore_fp(&current->thread.fpu); in own_fpu_inatomic()
129 _save_fp(&tsk->thread.fpu); in lose_fpu_inatomic()
157 unsigned int fcsr = current->thread.fpu.fcsr; in init_fpu()
167 _save_fp(&tsk->thread.fpu); in save_fp()
173 _restore_fp(&tsk->thread.fpu); in restore_fp()
187 _save_lasx(&current->thread.fpu); in save_fpu_regs()
192 _save_lsx(&current->thread.fpu); in save_fpu_regs()
196 _save_fp(&current->thread.fpu); in save_fpu_regs()
224 _save_lsx(&t->thread.fpu); in save_lsx()
230 _restore_lsx(&t->thread in restore_lsx()
[all...]
/kernel/linux/linux-5.10/arch/nds32/kernel/
H A Dfpu.c46 : "r" (&tsk->thread.fpu) in save_fpu()
59 : "r" (&tsk->thread.fpu) in save_fpu()
68 : "r" (&tsk->thread.fpu) in save_fpu()
79 : "r"(&tsk->thread.fpu) in save_fpu()
176 load_fpu(&current->thread.fpu); in do_fpu_context_switch()
181 current->thread.fpu.UDF_IEX_trap = init_fpuregs.UDF_IEX_trap; in do_fpu_context_switch()
215 fpcsr = current->thread.fpu.fpcsr; in handle_fpu_exception()
218 si_signo = do_fpuemu(regs, &current->thread.fpu); in handle_fpu_exception()
219 fpcsr = current->thread.fpu.fpcsr; in handle_fpu_exception()
221 current->thread in handle_fpu_exception()
[all...]
/kernel/linux/linux-5.10/drivers/dma/
H A Ddmatest.c251 struct dmatest_thread *thread; in is_threaded_test_run() local
253 list_for_each_entry(thread, &dtc->threads, node) { in is_threaded_test_run()
254 if (!thread->done && !thread->pending) in is_threaded_test_run()
267 struct dmatest_thread *thread; in is_threaded_test_pending() local
269 list_for_each_entry(thread, &dtc->threads, node) { in is_threaded_test_pending()
270 if (thread->pending) in is_threaded_test_pending()
431 struct dmatest_thread *thread = in dmatest_callback() local
433 if (!thread->done) { in dmatest_callback()
438 * If thread in dmatest_callback()
570 struct dmatest_thread *thread = data; dmatest_func() local
934 struct dmatest_thread *thread; dmatest_cleanup_channel() local
957 struct dmatest_thread *thread; dmatest_add_threads() local
1121 struct dmatest_thread *thread; run_pending_tests() local
1309 struct dmatest_thread *thread; dmatest_test_list_get() local
[all...]
/kernel/linux/linux-6.6/drivers/dma/
H A Ddmatest.c250 struct dmatest_thread *thread; in is_threaded_test_run() local
252 list_for_each_entry(thread, &dtc->threads, node) { in is_threaded_test_run()
253 if (!thread->done && !thread->pending) in is_threaded_test_run()
266 struct dmatest_thread *thread; in is_threaded_test_pending() local
268 list_for_each_entry(thread, &dtc->threads, node) { in is_threaded_test_pending()
269 if (thread->pending) in is_threaded_test_pending()
430 struct dmatest_thread *thread = in dmatest_callback() local
432 if (!thread->done) { in dmatest_callback()
437 * If thread in dmatest_callback()
569 struct dmatest_thread *thread = data; dmatest_func() local
936 struct dmatest_thread *thread; dmatest_cleanup_channel() local
959 struct dmatest_thread *thread; dmatest_add_threads() local
1123 struct dmatest_thread *thread; run_pending_tests() local
1311 struct dmatest_thread *thread; dmatest_test_list_get() local
[all...]
/kernel/linux/linux-5.10/arch/mips/kernel/
H A Dkgdb.c147 memcpy((void *)&current->thread.fpu.fcr31, mem, in dbg_set_reg()
155 memcpy((void *)&current->thread.fpu.fpr[fp_reg], mem, in dbg_set_reg()
182 memcpy(mem, (void *)&current->thread.fpu.fcr31, in dbg_get_reg()
191 memcpy(mem, (void *)&current->thread.fpu.fpr[fp_reg], in dbg_get_reg()
251 *(ptr++) = p->thread.reg16; in sleeping_thread_to_gdb_regs()
252 *(ptr++) = p->thread.reg17; in sleeping_thread_to_gdb_regs()
253 *(ptr++) = p->thread.reg18; in sleeping_thread_to_gdb_regs()
254 *(ptr++) = p->thread.reg19; in sleeping_thread_to_gdb_regs()
255 *(ptr++) = p->thread.reg20; in sleeping_thread_to_gdb_regs()
256 *(ptr++) = p->thread in sleeping_thread_to_gdb_regs()
[all...]

Completed in 20 milliseconds

12345678910>>...69