Home
last modified time | relevance | path

Searched refs:csr_read64 (Results 1 – 10 of 10) sorted by relevance

/linux-6.12.1/arch/loongarch/include/asm/
Dhw_breakpoint.h60 VAL = csr_read64(LOONGARCH_CSR_##IB##N##REG); \
62 VAL = csr_read64(LOONGARCH_CSR_##DB##N##REG); \
137 return csr_read64(LOONGARCH_CSR_FWPC) & CSR_FWPC_NUM; in get_num_brps()
143 return csr_read64(LOONGARCH_CSR_MWPC) & CSR_MWPC_NUM; in get_num_wrps()
Dkvm_csr.h153 #define read_csr_gtlbc() csr_read64(LOONGARCH_CSR_GTLBC)
155 #define read_csr_trgp() csr_read64(LOONGARCH_CSR_TRGP)
156 #define read_csr_gcfg() csr_read64(LOONGARCH_CSR_GCFG)
158 #define read_csr_gstat() csr_read64(LOONGARCH_CSR_GSTAT)
160 #define read_csr_gintc() csr_read64(LOONGARCH_CSR_GINTC)
162 #define read_csr_gcntc() csr_read64(LOONGARCH_CSR_GCNTC)
Dloongarch.h172 #define csr_read64(reg) __csrrd_d(reg) macro
1177 return (csr_read64(LOONGARCH_CSR_TLBREHI) & CSR_TLBREHI_PS) >> CSR_TLBREHI_PS_SHIFT; in read_csr_tlbrefill_pagesize()
1187 #define read_csr_entryhi() csr_read64(LOONGARCH_CSR_TLBEHI)
1189 #define read_csr_entrylo0() csr_read64(LOONGARCH_CSR_TLBELO0)
1191 #define read_csr_entrylo1() csr_read64(LOONGARCH_CSR_TLBELO1)
1202 #define read_csr_prcfg1() csr_read64(LOONGARCH_CSR_PRCFG1)
1204 #define read_csr_prcfg2() csr_read64(LOONGARCH_CSR_PRCFG2)
1206 #define read_csr_prcfg3() csr_read64(LOONGARCH_CSR_PRCFG3)
1213 #define read_csr_impctl1() csr_read64(LOONGARCH_CSR_IMPCTL1)
1217 #define read_csr_perfctrl0() csr_read64(LOONGARCH_CSR_PERFCTRL0)
[all …]
/linux-6.12.1/arch/loongarch/power/
Dsuspend.c34 saved_regs.pgd = csr_read64(LOONGARCH_CSR_PGDL); in loongarch_common_suspend()
35 saved_regs.kpgd = csr_read64(LOONGARCH_CSR_PGDH); in loongarch_common_suspend()
40 saved_regs.pcpu_base = csr_read64(PERCPU_BASE_KS); in loongarch_common_suspend()
Dhibernate.c21 saved_pcpu_base = csr_read64(PERCPU_BASE_KS); in save_processor_state()
/linux-6.12.1/arch/loongarch/kernel/
Dtime.c52 timer_config = csr_read64(LOONGARCH_CSR_TCFG); in constant_set_state_oneshot()
85 timer_config = csr_read64(LOONGARCH_CSR_TCFG); in constant_set_state_shutdown()
214 init_offset = -(drdtime() - csr_read64(LOONGARCH_CSR_CNTC)); in time_init()
Dhw_breakpoint.c222 enable = csr_read64(LOONGARCH_CSR_CRMD); in hw_breakpoint_control()
Dtraps.c1064 pr_err("csr_merrera == %016lx\n", csr_read64(LOONGARCH_CSR_MERRERA)); in cache_parity_error()
/linux-6.12.1/drivers/irqchip/
Dirq-loongarch-avec.c169 isr = csr_read64(LOONGARCH_CSR_ISR0); in complete_irq_moving()
172 isr = csr_read64(LOONGARCH_CSR_ISR1); in complete_irq_moving()
175 isr = csr_read64(LOONGARCH_CSR_ISR2); in complete_irq_moving()
178 isr = csr_read64(LOONGARCH_CSR_ISR3); in complete_irq_moving()
225 unsigned long vector = csr_read64(LOONGARCH_CSR_IRR); in avecintc_irq_dispatch()
/linux-6.12.1/arch/loongarch/kvm/
Dvcpu.c290 vcpu->arch.host_eentry = csr_read64(LOONGARCH_CSR_EENTRY); in kvm_pre_enter_guest()