Searched refs:LOONGARCH_CSR_CRMD (Results 1 – 16 of 16) sorted by relevance
/linux/arch/loongarch/include/asm/ |
H A D | irqflags.h | 20 : [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 D | kvm_csr.h | 48 #define read_gcsr_crmd() gcsr_read(LOONGARCH_CSR_CRMD) 49 #define write_gcsr_crmd(val) gcsr_write(val, LOONGARCH_CSR_CRMD)
|
H A D | stacktrace.h | 87 __asm__ __volatile__(CSRRD_ONE_REG(LOONGARCH_CSR_CRMD) : "=r" (regs->csr_crmd)); in prepare_frametrace()
|
H A D | stackframe.h | 138 csrrd t0, LOONGARCH_CSR_CRMD 175 csrxchg t0, t0, LOONGARCH_CSR_CRMD
|
H A D | loongarch.h | 189 #define LOONGARCH_CSR_CRMD 0x0 /* Current mode info */ macro
|
/linux/arch/loongarch/power/ |
H A D | hibernate.c | 17 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 D | suspend_asm.S | 81 csrwr t0, LOONGARCH_CSR_CRMD
|
/linux/arch/loongarch/kernel/ |
H A D | entry.S | 36 csrrd t2, LOONGARCH_CSR_CRMD 66 csrxchg t1, t1, LOONGARCH_CSR_CRMD
|
H A D | rethook_trampoline.S | 38 csrrd t0, LOONGARCH_CSR_CRMD 75 csrxchg t0, t1, LOONGARCH_CSR_CRMD
|
H A D | head.S | 52 csrwr t0, LOONGARCH_CSR_CRMD 134 csrwr t0, LOONGARCH_CSR_CRMD
|
H A D | kgdb.c | 603 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 D | hw_breakpoint.c | 222 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 D | process.c | 160 p->thread.csr_crmd = csr_read32(LOONGARCH_CSR_CRMD); in copy_thread()
|
/linux/arch/loongarch/kvm/ |
H A D | interrupt.c | 144 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 D | vcpu.c | 404 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 D | main.c | 48 set_gcsr_hw_flag(LOONGARCH_CSR_CRMD); in kvm_init_gcsr_flag()
|