Home
last modified time | relevance | path

Searched refs:riscv_v_flags (Results 1 – 3 of 3) sorted by relevance

/linux/arch/riscv/include/asm/
H A Dvector.h56 static inline u32 riscv_v_flags(void) in riscv_v_flags() function
58 return READ_ONCE(current->thread.riscv_v_flags); in riscv_v_flags()
63 WRITE_ONCE(current->thread.riscv_v_flags, flags); in riscv_v_flags_set()
341 return !!(task->thread.riscv_v_flags & RISCV_PREEMPT_V_DIRTY); in riscv_preempt_v_dirty()
346 return !!(task->thread.riscv_v_flags & RISCV_PREEMPT_V_NEED_RESTORE); in riscv_preempt_v_restore()
352 task->thread.riscv_v_flags &= ~RISCV_PREEMPT_V_DIRTY; in riscv_preempt_v_clear_dirty()
358 task->thread.riscv_v_flags |= RISCV_PREEMPT_V_NEED_RESTORE; in riscv_preempt_v_set_restore()
363 return !!(task->thread.riscv_v_flags & RISCV_PREEMPT_V); in riscv_preempt_v_started()
381 WARN_ON(prev->thread.riscv_v_flags & RISCV_V_CTX_DEPTH_MASK); in __switch_to_vector()
383 prev->thread.riscv_v_flags |= RISCV_PREEMPT_V_IN_SCHEDULE; in __switch_to_vector()
[all …]
/linux/arch/riscv/kvm/
H A Dvcpu.c822 if (current->thread.riscv_v_flags & RISCV_V_VCPU_NEED_RESTORE) { in kvm_riscv_vcpu_enter_exit()
823 current->thread.riscv_v_flags &= ~RISCV_V_VCPU_NEED_RESTORE; in kvm_riscv_vcpu_enter_exit()
824 current->thread.riscv_v_flags |= RISCV_V_VCPU_CTX; in kvm_riscv_vcpu_enter_exit()
/linux/arch/riscv/kernel/
H A Dprocess.c283 p->thread.riscv_v_flags = 0; in copy_thread()