Home
last modified time | relevance | path

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

/linux-6.12.1/arch/riscv/kernel/
Dptrace.c92 struct __riscv_v_ext_state *vstate = &target->thread.vstate; in riscv_vr_get() local
104 riscv_v_vstate_save(&current->thread.vstate, task_pt_regs(current)); in riscv_vr_get()
108 ptrace_vstate.vstart = vstate->vstart; in riscv_vr_get()
109 ptrace_vstate.vl = vstate->vl; in riscv_vr_get()
110 ptrace_vstate.vtype = vstate->vtype; in riscv_vr_get()
111 ptrace_vstate.vcsr = vstate->vcsr; in riscv_vr_get()
112 ptrace_vstate.vlenb = vstate->vlenb; in riscv_vr_get()
118 return membuf_write(&to, vstate->datap, riscv_v_vsize); in riscv_vr_get()
127 struct __riscv_v_ext_state *vstate = &target->thread.vstate; in riscv_vr_set() local
139 if (vstate->vlenb != ptrace_vstate.vlenb) in riscv_vr_set()
[all …]
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()
Dvector.c125 if (tsk->thread.vstate.datap) in riscv_v_thread_free()
126 kmem_cache_free(riscv_v_user_cachep, tsk->thread.vstate.datap); in riscv_v_thread_free()
198 WARN_ON(current->thread.vstate.datap); in riscv_v_first_use_handler()
205 if (riscv_v_thread_zalloc(riscv_v_user_cachep, &current->thread.vstate)) { in riscv_v_first_use_handler()
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()
Dprocess.c179 kfree(current->thread.vstate.datap); in flush_thread()
180 memset(&current->thread.vstate, 0, sizeof(struct __riscv_v_ext_state)); in flush_thread()
197 memset(&dst->thread.vstate, 0, sizeof(struct __riscv_v_ext_state)); in arch_dup_task_struct()
/linux-6.12.1/arch/riscv/include/asm/
Dvector.h177 static inline void riscv_v_vstate_save(struct __riscv_v_ext_state *vstate, in riscv_v_vstate_save() argument
181 __riscv_v_vstate_save(vstate, vstate->datap); in riscv_v_vstate_save()
186 static inline void riscv_v_vstate_restore(struct __riscv_v_ext_state *vstate, in riscv_v_vstate_restore() argument
190 __riscv_v_vstate_restore(vstate, vstate->datap); in riscv_v_vstate_restore()
253 riscv_v_vstate_save(&prev->thread.vstate, regs); in __switch_to_vector()
276 #define riscv_v_vstate_save(vstate, regs) do {} while (0) argument
277 #define riscv_v_vstate_restore(vstate, regs) do {} while (0) argument
Dentry-common.h19 riscv_v_vstate_restore(&current->thread.vstate, regs); in arch_exit_to_user_mode_prepare()
Dprocessor.h107 struct __riscv_v_ext_state vstate; member
/linux-6.12.1/tools/perf/util/
Dpmus.c427 static int perf_pmus__print_pmu_events__callback(void *vstate, in perf_pmus__print_pmu_events__callback() argument
430 struct events_callback_state *state = vstate; in perf_pmus__print_pmu_events__callback()
/linux-6.12.1/kernel/bpf/
Dverifier.c3367 struct bpf_verifier_state *vstate = env->cur_state; in check_reg_arg() local
3368 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in check_reg_arg()
4880 struct bpf_verifier_state *vstate = env->cur_state; in mark_reg_stack_read() local
4881 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in mark_reg_stack_read()
4921 struct bpf_verifier_state *vstate = env->cur_state; in check_stack_read_fixed_off() local
4922 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in check_stack_read_fixed_off()
5249 struct bpf_verifier_state *vstate = env->cur_state; in check_mem_region_access() local
5250 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in check_mem_region_access()
5553 struct bpf_verifier_state *vstate = env->cur_state; in check_map_access() local
5554 struct bpf_func_state *state = vstate->frame[vstate->curframe]; in check_map_access()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/
Damdgpu_dpm.c888 struct amd_vce_state *vstate = NULL; in amdgpu_dpm_get_vce_clock_state() local
894 vstate = pp_funcs->get_vce_clock_state(adev->powerplay.pp_handle, in amdgpu_dpm_get_vce_clock_state()
898 return vstate; in amdgpu_dpm_get_vce_clock_state()