| /linux/arch/riscv/kernel/ |
| H A D | ptrace.c | 95 struct __riscv_v_ext_state *vstate = &target->thread.vstate; in riscv_vr_get() local 107 riscv_v_vstate_save(¤t->thread.vstate, task_pt_regs(current)); in riscv_vr_get() 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() 121 return membuf_write(&to, vstate->datap, riscv_v_vsize); in riscv_vr_get() 130 struct __riscv_v_ext_state *vstate = &target->thread.vstate; in riscv_vr_set() local 142 if (vstate->vlenb != ptrace_vstate.vlenb) in riscv_vr_set() [all …]
|
| H A D | kernel_mode_vector.c | 147 uvstate = ¤t->thread.vstate; in riscv_v_start_kernel_context() 171 struct __riscv_v_ext_state *vstate = ¤t->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(¤t->thread.vstate, task_pt_regs(current)); in kernel_vector_begin()
|
| H A D | vector.c | 137 if (tsk->thread.vstate.datap) in riscv_v_thread_free() 138 kmem_cache_free(riscv_v_user_cachep, tsk->thread.vstate.datap); in riscv_v_thread_free() 210 WARN_ON(current->thread.vstate.datap); in riscv_v_first_use_handler() 217 if (riscv_v_thread_zalloc(riscv_v_user_cachep, ¤t->thread.vstate)) { in riscv_v_first_use_handler()
|
| H A D | signal.c | 91 riscv_v_vstate_save(¤t->thread.vstate, regs); in save_v_state() 95 err = __copy_to_user(&state->v_state, ¤t->thread.vstate, in save_v_state() 100 err |= __copy_to_user(datap, current->thread.vstate.datap, riscv_v_vsize); in save_v_state() 127 err = __copy_from_user(¤t->thread.vstate, &state->v_state, in __restore_v_state() 140 return copy_from_user(current->thread.vstate.datap, datap, riscv_v_vsize); in __restore_v_state()
|
| H A D | process.c | 183 kfree(current->thread.vstate.datap); in flush_thread() 184 memset(¤t->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()
|
| /linux/arch/riscv/include/asm/ |
| H A D | vector.h | 306 static inline void riscv_v_vstate_save(struct __riscv_v_ext_state *vstate, in riscv_v_vstate_save() argument 310 __riscv_v_vstate_save(vstate, vstate->datap); in riscv_v_vstate_save() 315 static inline void riscv_v_vstate_restore(struct __riscv_v_ext_state *vstate, in riscv_v_vstate_restore() argument 319 __riscv_v_vstate_restore(vstate, vstate->datap); in riscv_v_vstate_restore() 387 riscv_v_vstate_save(&prev->thread.vstate, regs); in __switch_to_vector() 419 #define riscv_v_vstate_save(vstate, regs) do {} while (0) argument 420 #define riscv_v_vstate_restore(vstate, regs) do {} while (0) argument
|
| H A D | entry-common.h | 19 riscv_v_vstate_restore(¤t->thread.vstate, regs); in arch_exit_to_user_mode_prepare()
|
| H A D | processor.h | 116 struct __riscv_v_ext_state vstate; member
|
| /linux/tools/perf/util/ |
| H A D | pmus.c | 575 static int perf_pmus__print_pmu_events__callback(void *vstate, in perf_pmus__print_pmu_events__callback() argument 578 struct events_callback_state *state = vstate; in perf_pmus__print_pmu_events__callback()
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 3824 struct bpf_verifier_state *vstate = env->cur_state; in check_reg_arg() local 3825 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in check_reg_arg() 5350 struct bpf_verifier_state *vstate = env->cur_state; in mark_reg_stack_read() local 5351 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in mark_reg_stack_read() 5390 struct bpf_verifier_state *vstate = env->cur_state; in check_stack_read_fixed_off() local 5391 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in check_stack_read_fixed_off() 5717 struct bpf_verifier_state *vstate = env->cur_state; in check_mem_region_access() local 5718 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in check_mem_region_access() 6062 struct bpf_verifier_state *vstate = env->cur_state; in check_map_access() local 6063 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in check_map_access() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/ |
| H A D | amdgpu_dpm.c | 999 struct amd_vce_state *vstate = NULL; in amdgpu_dpm_get_vce_clock_state() local 1005 vstate = pp_funcs->get_vce_clock_state(adev->powerplay.pp_handle, in amdgpu_dpm_get_vce_clock_state() 1009 return vstate; in amdgpu_dpm_get_vce_clock_state()
|