Home
last modified time | relevance | path

Searched refs:LOONGARCH_CSR_CRMD (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/arch/loongarch/include/asm/
H A Dirqflags.h20 : [mask] "r" (CSR_CRMD_IE), [reg] "i" (LOONGARCH_CSR_CRMD) in arch_local_irq_enable()
30 : [mask] "r" (CSR_CRMD_IE), [reg] "i" (LOONGARCH_CSR_CRMD) in arch_local_irq_disable()
40 : [mask] "r" (CSR_CRMD_IE), [reg] "i" (LOONGARCH_CSR_CRMD) in arch_local_irq_save()
50 : [mask] "r" (CSR_CRMD_IE), [reg] "i" (LOONGARCH_CSR_CRMD) in arch_local_irq_restore()
60 : [reg] "i" (LOONGARCH_CSR_CRMD) in arch_local_save_flags()
H A Dstacktrace.h87 __asm__ __volatile__(CSRRD_ONE_REG(LOONGARCH_CSR_CRMD) : "=r" (regs->csr_crmd)); in prepare_frametrace()
H A Dstackframe.h126 csrrd t0, LOONGARCH_CSR_CRMD
163 csrxchg t0, t0, LOONGARCH_CSR_CRMD
H A Dloongarch.h182 #define LOONGARCH_CSR_CRMD 0x0 /* Current mode info */ macro
/openbmc/linux/arch/loongarch/power/
H A Dhibernate.c17 saved_crmd = csr_read32(LOONGARCH_CSR_CRMD); in save_processor_state()
29 csr_write32(saved_crmd, LOONGARCH_CSR_CRMD); in restore_processor_state()
H A Dsuspend_asm.S85 csrwr t0, LOONGARCH_CSR_CRMD
/openbmc/linux/arch/loongarch/kernel/
H A Dentry.S34 csrrd t2, LOONGARCH_CSR_CRMD
63 csrxchg t1, t1, LOONGARCH_CSR_CRMD
H A Drethook_trampoline.S38 csrrd t0, LOONGARCH_CSR_CRMD
75 csrxchg t0, t1, LOONGARCH_CSR_CRMD
H A Dhead.S56 csrwr t0, LOONGARCH_CSR_CRMD
131 csrwr t0, LOONGARCH_CSR_CRMD
H A Dgenex.S24 csrxchg t0, t0, LOONGARCH_CSR_CRMD
H A Dkgdb.c603 csr_xchg32(0, CSR_CRMD_WE, LOONGARCH_CSR_CRMD); in kgdb_disable_hw_break()
628 csr_xchg32(0, CSR_CRMD_WE, LOONGARCH_CSR_CRMD); in kgdb_remove_all_hw_break()
662 csr_xchg32(activated ? CSR_CRMD_WE : 0, CSR_CRMD_WE, LOONGARCH_CSR_CRMD); in kgdb_correct_hw_break()
H A Dhw_breakpoint.c234 enable = csr_read64(LOONGARCH_CSR_CRMD); in hw_breakpoint_control()
235 csr_write64(CSR_CRMD_WE | enable, LOONGARCH_CSR_CRMD); in hw_breakpoint_control()
H A Dprocess.c160 p->thread.csr_crmd = csr_read32(LOONGARCH_CSR_CRMD); in copy_thread()
/openbmc/qemu/target/loongarch/
H A Dcpu-csr.h16 #define LOONGARCH_CSR_CRMD 0x0 /* Current mode info */ macro
/openbmc/qemu/target/loongarch/kvm/
H A Dkvm.c135 ret |= kvm_get_one_reg(cs, KVM_IOC_CSRID(LOONGARCH_CSR_CRMD), in kvm_loongarch_get_csr()
305 ret |= kvm_set_one_reg(cs, KVM_IOC_CSRID(LOONGARCH_CSR_CRMD), in kvm_loongarch_put_csr()