Home
last modified time | relevance | path

Searched refs:thr (Results 1 – 5 of 5) sorted by relevance

/optee_os/core/arch/arm/kernel/
H A Dthread.c125 struct thread_ctx *thr = threads + thread_get_id(); in thread_lazy_save_ns_vfp() local
127 thr->vfp_state.ns_saved = false; in thread_lazy_save_ns_vfp()
128 vfp_lazy_save_state_init(&thr->vfp_state.ns); in thread_lazy_save_ns_vfp()
135 struct thread_ctx *thr = threads + thread_get_id(); in thread_lazy_restore_ns_vfp() local
136 struct thread_user_vfp_state *tuv = thr->vfp_state.uvfp; in thread_lazy_restore_ns_vfp()
138 assert(!thr->vfp_state.sec_lazy_saved && !thr->vfp_state.sec_saved); in thread_lazy_restore_ns_vfp()
145 vfp_lazy_restore_state(&thr->vfp_state.ns, thr->vfp_state.ns_saved); in thread_lazy_restore_ns_vfp()
146 thr->vfp_state.ns_saved = false; in thread_lazy_restore_ns_vfp()
473 static void release_unused_kernel_stack(struct thread_ctx *thr, in release_unused_kernel_stack() argument
483 vaddr_t sp = is_from_user(cpsr) ? thr->kern_sp : thr->regs.sp; in release_unused_kernel_stack()
[all …]
H A Dthread_optee_smc.c135 static void clear_prealloc_rpc_cache(struct thread_ctx *thr) in clear_prealloc_rpc_cache() argument
137 thread_rpc_free_arg(mobj_get_cookie(thr->rpc_mobj)); in clear_prealloc_rpc_cache()
138 mobj_put(thr->rpc_mobj); in clear_prealloc_rpc_cache()
139 thr->rpc_arg = NULL; in clear_prealloc_rpc_cache()
140 thr->rpc_mobj = NULL; in clear_prealloc_rpc_cache()
146 struct thread_ctx *thr = threads + thread_get_id(); in call_entry_std() local
161 clear_prealloc_rpc_cache(thr); in call_entry_std()
162 thr->rpc_arg = rpc_arg; in call_entry_std()
170 thread_rpc_shm_cache_clear(&thr->shm_cache); in call_entry_std()
172 thr->rpc_arg = NULL; in call_entry_std()
[all …]
H A Dthread_spmc.c2038 struct thread_ctx *thr = threads + thread_get_id(); in yielding_call_with_arg() local
2066 thr->rpc_arg = mobj_get_va(mobj, offset + sz, sz_rpc); in yielding_call_with_arg()
2067 if (!thr->rpc_arg) in yielding_call_with_arg()
2073 thread_rpc_shm_cache_clear(&thr->shm_cache); in yielding_call_with_arg()
2074 thr->rpc_arg = NULL; in yielding_call_with_arg()
2139 struct thread_ctx *thr = threads + thread_get_id(); in get_rpc_arg() local
2140 struct optee_msg_arg *arg = thr->rpc_arg; in get_rpc_arg()
/optee_os/core/arch/riscv/kernel/
H A Dthread_optee_abi.c136 static void clear_prealloc_rpc_cache(struct thread_ctx *thr) in clear_prealloc_rpc_cache() argument
138 thread_rpc_free_arg(mobj_get_cookie(thr->rpc_mobj)); in clear_prealloc_rpc_cache()
139 mobj_put(thr->rpc_mobj); in clear_prealloc_rpc_cache()
140 thr->rpc_arg = NULL; in clear_prealloc_rpc_cache()
141 thr->rpc_mobj = NULL; in clear_prealloc_rpc_cache()
147 struct thread_ctx *thr = threads + thread_get_id(); in call_entry_std() local
162 clear_prealloc_rpc_cache(thr); in call_entry_std()
163 thr->rpc_arg = rpc_arg; in call_entry_std()
171 thread_rpc_shm_cache_clear(&thr->shm_cache); in call_entry_std()
173 thr->rpc_arg = NULL; in call_entry_std()
[all …]
/optee_os/core/kernel/
H A Dthread.c406 struct thread_ctx *thr; in thread_stack_start() local
412 thr = threads + ct; in thread_stack_start()
413 return stack_end_va_to_top_soft(STACK_THREAD_SIZE, thr->stack_va_end); in thread_stack_start()