Home
last modified time | relevance | path

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

/arch/riscv/include/asm/
A Dvector.h55 static inline u32 riscv_v_flags(void) in riscv_v_flags() function
57 return READ_ONCE(current->thread.riscv_v_flags); in riscv_v_flags()
335 return !!(task->thread.riscv_v_flags & RISCV_PREEMPT_V_DIRTY); in riscv_preempt_v_dirty()
340 return !!(task->thread.riscv_v_flags & RISCV_PREEMPT_V_NEED_RESTORE); in riscv_preempt_v_restore()
346 task->thread.riscv_v_flags &= ~RISCV_PREEMPT_V_DIRTY; in riscv_preempt_v_clear_dirty()
352 task->thread.riscv_v_flags |= RISCV_PREEMPT_V_NEED_RESTORE; in riscv_preempt_v_set_restore()
357 return !!(task->thread.riscv_v_flags & RISCV_PREEMPT_V); in riscv_preempt_v_started()
375 WARN_ON(prev->thread.riscv_v_flags & RISCV_V_CTX_DEPTH_MASK); in __switch_to_vector()
377 prev->thread.riscv_v_flags |= RISCV_PREEMPT_V_IN_SCHEDULE; in __switch_to_vector()
390 if (next->thread.riscv_v_flags & RISCV_PREEMPT_V_IN_SCHEDULE) { in __switch_to_vector()
[all …]
A Dsimd.h52 return !irqs_disabled() && !(riscv_v_flags() & RISCV_KERNEL_MODE_V); in may_use_simd()
A Dprocessor.h114 u32 riscv_v_flags; member
/arch/riscv/kernel/
A Dkernel_mode_vector.c23 WRITE_ONCE(current->thread.riscv_v_flags, flags); in riscv_v_flags_set()
30 orig = riscv_v_flags(); in riscv_v_start()
41 orig = riscv_v_flags(); in riscv_v_stop()
86 return &current->thread.riscv_v_flags; in riscv_v_flags_ptr()
A Dprocess.c258 p->thread.riscv_v_flags = 0; in copy_thread()

Completed in 11 milliseconds