Home
last modified time | relevance | path

Searched refs:vstate (Results 1 – 8 of 8) sorted by relevance

/arch/riscv/kernel/
A Dptrace.c95 struct __riscv_v_ext_state *vstate = &target->thread.vstate; in riscv_vr_get() local
111 ptrace_vstate.vstart = vstate->vstart; in riscv_vr_get()
112 ptrace_vstate.vl = vstate->vl; in riscv_vr_get()
113 ptrace_vstate.vtype = vstate->vtype; in riscv_vr_get()
114 ptrace_vstate.vcsr = vstate->vcsr; in riscv_vr_get()
115 ptrace_vstate.vlenb = vstate->vlenb; in riscv_vr_get()
130 struct __riscv_v_ext_state *vstate = &target->thread.vstate; in riscv_vr_set() local
145 vstate->vstart = ptrace_vstate.vstart; in riscv_vr_set()
146 vstate->vl = ptrace_vstate.vl; in riscv_vr_set()
147 vstate->vtype = ptrace_vstate.vtype; in riscv_vr_set()
[all …]
A Dkernel_mode_vector.c147 uvstate = &current->thread.vstate; in riscv_v_start_kernel_context()
171 struct __riscv_v_ext_state *vstate = &current->thread.kernel_vstate; in riscv_v_context_nesting_end() local
183 __riscv_v_vstate_restore(vstate, vstate->datap); in riscv_v_context_nesting_end()
218 riscv_v_vstate_save(&current->thread.vstate, task_pt_regs(current)); in kernel_vector_begin()
A Dvector.c135 if (tsk->thread.vstate.datap) in riscv_v_thread_free()
136 kmem_cache_free(riscv_v_user_cachep, tsk->thread.vstate.datap); in riscv_v_thread_free()
208 WARN_ON(current->thread.vstate.datap); in riscv_v_first_use_handler()
215 if (riscv_v_thread_zalloc(riscv_v_user_cachep, &current->thread.vstate)) { in riscv_v_first_use_handler()
A Dsignal.c90 riscv_v_vstate_save(&current->thread.vstate, regs); in save_v_state()
94 err = __copy_to_user(&state->v_state, &current->thread.vstate, in save_v_state()
99 err |= __copy_to_user(datap, current->thread.vstate.datap, riscv_v_vsize); in save_v_state()
130 err = __copy_from_user(&current->thread.vstate, &state->v_state, in __restore_v_state()
143 return copy_from_user(current->thread.vstate.datap, datap, riscv_v_vsize); in __restore_v_state()
A Dprocess.c183 kfree(current->thread.vstate.datap); in flush_thread()
184 memset(&current->thread.vstate, 0, sizeof(struct __riscv_v_ext_state)); in flush_thread()
205 memset(&dst->thread.vstate, 0, sizeof(struct __riscv_v_ext_state)); in arch_dup_task_struct()
/arch/riscv/include/asm/
A Dvector.h305 static inline void riscv_v_vstate_save(struct __riscv_v_ext_state *vstate, in riscv_v_vstate_save() argument
309 __riscv_v_vstate_save(vstate, vstate->datap); in riscv_v_vstate_save()
314 static inline void riscv_v_vstate_restore(struct __riscv_v_ext_state *vstate, in riscv_v_vstate_restore() argument
318 __riscv_v_vstate_restore(vstate, vstate->datap); in riscv_v_vstate_restore()
386 riscv_v_vstate_save(&prev->thread.vstate, regs); in __switch_to_vector()
418 #define riscv_v_vstate_save(vstate, regs) do {} while (0) argument
419 #define riscv_v_vstate_restore(vstate, regs) do {} while (0) argument
A Dentry-common.h19 riscv_v_vstate_restore(&current->thread.vstate, regs); in arch_exit_to_user_mode_prepare()
A Dprocessor.h116 struct __riscv_v_ext_state vstate; member

Completed in 18 milliseconds