Home
last modified time | relevance | path

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

/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 Dkvm_csr.h48 #define read_gcsr_crmd() gcsr_read(LOONGARCH_CSR_CRMD)
49 #define write_gcsr_crmd(val) gcsr_write(val, LOONGARCH_CSR_CRMD)
H A Dstacktrace.h87 __asm__ __volatile__(CSRRD_ONE_REG(LOONGARCH_CSR_CRMD) : "=r" (regs->csr_crmd)); in prepare_frametrace()
H A Dstackframe.h138 csrrd t0, LOONGARCH_CSR_CRMD
175 csrxchg t0, t0, LOONGARCH_CSR_CRMD
H A Dloongarch.h189 #define LOONGARCH_CSR_CRMD 0x0 /* Current mode info */ macro
/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.S81 csrwr t0, LOONGARCH_CSR_CRMD
/linux/arch/loongarch/kernel/
H A Dentry.S36 csrrd t2, LOONGARCH_CSR_CRMD
66 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.S52 csrwr t0, LOONGARCH_CSR_CRMD
134 csrwr 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.c222 enable = csr_read64(LOONGARCH_CSR_CRMD); in hw_breakpoint_control()
223 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()
/linux/arch/loongarch/kvm/
H A Dinterrupt.c144 val = kvm_read_hw_gcsr(LOONGARCH_CSR_CRMD); in _kvm_deliver_exception()
147 kvm_write_hw_gcsr(LOONGARCH_CSR_CRMD, val); in _kvm_deliver_exception()
H A Dvcpu.c404 kvm_read_hw_gcsr(LOONGARCH_CSR_CRMD), in kvm_arch_vcpu_dump_regs()
1486 kvm_write_sw_gcsr(csr, LOONGARCH_CSR_CRMD, CSR_CRMD_DA); in kvm_arch_vcpu_create()
1561 kvm_restore_hw_gcsr(csr, LOONGARCH_CSR_CRMD); in _kvm_vcpu_load()
1647 kvm_save_hw_gcsr(csr, LOONGARCH_CSR_CRMD); in _kvm_vcpu_put()
H A Dmain.c48 set_gcsr_hw_flag(LOONGARCH_CSR_CRMD); in kvm_init_gcsr_flag()