Searched refs:thr (Results 1 – 5 of 5) sorted by relevance
125 struct thread_ctx *thr = threads + thread_get_id(); in thread_lazy_save_ns_vfp() local127 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() local136 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() argument483 vaddr_t sp = is_from_user(cpsr) ? thr->kern_sp : thr->regs.sp; in release_unused_kernel_stack()[all …]
135 static void clear_prealloc_rpc_cache(struct thread_ctx *thr) in clear_prealloc_rpc_cache() argument137 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() local161 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 …]
2038 struct thread_ctx *thr = threads + thread_get_id(); in yielding_call_with_arg() local2066 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() local2140 struct optee_msg_arg *arg = thr->rpc_arg; in get_rpc_arg()
136 static void clear_prealloc_rpc_cache(struct thread_ctx *thr) in clear_prealloc_rpc_cache() argument138 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() local162 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 …]
406 struct thread_ctx *thr; in thread_stack_start() local412 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()