Home
last modified time | relevance | path

Searched refs:tsd (Results 1 – 12 of 12) sorted by relevance

/optee_os-3.20.0/core/kernel/
A Dts_manager.c16 static void update_current_ctx(struct thread_specific_data *tsd) in update_current_ctx() argument
19 struct ts_session *s = TAILQ_FIRST(&tsd->sess_stack); in update_current_ctx()
29 if (tsd->ctx != ctx) in update_current_ctx()
40 struct thread_specific_data *tsd = thread_get_tsd(); in ts_push_current_session() local
42 TAILQ_INSERT_HEAD(&tsd->sess_stack, s, link_tsd); in ts_push_current_session()
43 update_current_ctx(tsd); in ts_push_current_session()
48 struct thread_specific_data *tsd = thread_get_tsd(); in ts_pop_current_session() local
49 struct ts_session *s = TAILQ_FIRST(&tsd->sess_stack); in ts_pop_current_session()
52 TAILQ_REMOVE(&tsd->sess_stack, s, link_tsd); in ts_pop_current_session()
53 update_current_ctx(tsd); in ts_pop_current_session()
A Duser_ta.c111 struct thread_specific_data *tsd = thread_get_tsd(); in inc_recursion() local
113 if (tsd->syscall_recursion >= CFG_CORE_MAX_SYSCALL_RECURSION) { in inc_recursion()
119 tsd->syscall_recursion++; in inc_recursion()
125 struct thread_specific_data *tsd = thread_get_tsd(); in dec_recursion() local
127 assert(tsd->syscall_recursion); in dec_recursion()
128 tsd->syscall_recursion--; in dec_recursion()
A Dthread.c223 p = &threads[ct].tsd.stackcheck_recursion; in get_stackcheck_recursion_flag()
454 TAILQ_INIT(&threads[n].tsd.sess_stack); in thread_init_threads()
504 return &threads[thread_get_id()].tsd; in thread_get_tsd()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dldelf_loader.c225 arg->arm32.regs[0] = tsd->abort_regs.r0; in ldelf_dump_state()
226 arg->arm32.regs[1] = tsd->abort_regs.r1; in ldelf_dump_state()
227 arg->arm32.regs[2] = tsd->abort_regs.r2; in ldelf_dump_state()
228 arg->arm32.regs[3] = tsd->abort_regs.r3; in ldelf_dump_state()
229 arg->arm32.regs[4] = tsd->abort_regs.r4; in ldelf_dump_state()
230 arg->arm32.regs[5] = tsd->abort_regs.r5; in ldelf_dump_state()
231 arg->arm32.regs[6] = tsd->abort_regs.r6; in ldelf_dump_state()
232 arg->arm32.regs[7] = tsd->abort_regs.r7; in ldelf_dump_state()
233 arg->arm32.regs[8] = tsd->abort_regs.r8; in ldelf_dump_state()
261 arg->arm64.fp = tsd->abort_regs.x29; in ldelf_dump_state()
[all …]
A Dabort.c243 struct thread_specific_data *tsd = thread_get_tsd(); in abort_print_current_ts() local
247 ai.abort_type = tsd->abort_type; in abort_print_current_ts()
248 ai.fault_descr = tsd->abort_descr; in abort_print_current_ts()
249 ai.va = tsd->abort_va; in abort_print_current_ts()
250 ai.pc = tsd->abort_regs.elr; in abort_print_current_ts()
251 ai.regs = &tsd->abort_regs; in abort_print_current_ts()
270 tsd->abort_type = ai->abort_type; in save_abort_info_in_tsd()
271 tsd->abort_descr = ai->fault_descr; in save_abort_info_in_tsd()
272 tsd->abort_va = ai->va; in save_abort_info_in_tsd()
273 tsd->abort_regs = *ai->regs; in save_abort_info_in_tsd()
[all …]
A Dasm-defines.c128 offsetof(struct thread_ctx, tsd.rpc_target_info))
/optee_os-3.20.0/core/arch/arm/tee/
A Darch_svc.c335 tsd->abort_regs = (struct thread_abort_regs){ in save_panic_regs_a32_ta()
361 tsd->abort_type = ABORT_TYPE_USER_MODE_PANIC; in save_panic_stack()
362 tsd->abort_descr = 0; in save_panic_stack()
363 tsd->abort_va = 0; in save_panic_stack()
382 tsd->abort_type = ABORT_TYPE_USER_MODE_PANIC; in save_panic_stack()
393 tsd->abort_regs = (struct thread_abort_regs){ in save_panic_regs_a32_ta()
417 tsd->abort_regs = (struct thread_abort_regs){ in save_panic_regs_a64_ta()
443 tsd->abort_type = ABORT_TYPE_USER_MODE_PANIC; in save_panic_stack()
444 tsd->abort_descr = 0; in save_panic_stack()
445 tsd->abort_va = 0; in save_panic_stack()
[all …]
/optee_os-3.20.0/lib/libutils/ext/ftrace/
A Dftrace.c40 struct thread_specific_data *tsd = NULL; in get_fbuf() local
49 tsd = thread_get_tsd(); in get_fbuf()
50 s = TAILQ_FIRST(&tsd->sess_stack); in get_fbuf()
52 if (!s || tsd->ctx != s->ctx) in get_fbuf()
/optee_os-3.20.0/core/include/kernel/
A Dthread_private.h54 struct thread_specific_data tsd; member
/optee_os-3.20.0/core/mm/
A Dmobj.c539 struct thread_specific_data *tsd = thread_get_tsd(); in mobj_seccpy_shm_alloc() local
544 if (!is_user_ta_ctx(tsd->ctx)) in mobj_seccpy_shm_alloc()
546 utc = to_user_ta_ctx(tsd->ctx); in mobj_seccpy_shm_alloc()
566 m->utc = to_user_ta_ctx(tsd->ctx); in mobj_seccpy_shm_alloc()
A Dvm.c114 struct thread_specific_data *tsd __maybe_unused; in alloc_pgt()
122 tsd = thread_get_tsd(); in alloc_pgt()
123 if (uctx->ts_ctx == tsd->ctx) { in alloc_pgt()
1347 struct thread_specific_data *tsd = thread_get_tsd(); in vm_set_ctx() local
1352 if (is_user_mode_ctx(tsd->ctx)) { in vm_set_ctx()
1357 uctx = to_user_mode_ctx(tsd->ctx); in vm_set_ctx()
1369 tsd->ctx = ctx; in vm_set_ctx()
/optee_os-3.20.0/core/arch/arm/mm/
A Dtee_pager.c817 struct thread_specific_data *tsd = thread_get_tsd(); in tee_pager_add_um_region() local
824 if (uctx->ts_ctx == tsd->ctx) { in tee_pager_add_um_region()

Completed in 21 milliseconds