Home
last modified time | relevance | path

Searched refs:csr_read32 (Results 1 – 7 of 7) sorted by relevance

/linux/arch/loongarch/power/
H A Dhibernate.c17 saved_crmd = csr_read32(LOONGARCH_CSR_CRMD); in save_processor_state()
18 saved_prmd = csr_read32(LOONGARCH_CSR_PRMD); in save_processor_state()
19 saved_euen = csr_read32(LOONGARCH_CSR_EUEN); in save_processor_state()
20 saved_ecfg = csr_read32(LOONGARCH_CSR_ECFG); in save_processor_state()
/linux/arch/loongarch/include/asm/
H A Dloongarch.h171 #define csr_read32(reg) __csrrd_w(reg) macro
1140 return csr_read32(LOONGARCH_CSR_CPUID); in get_csr_cpuid()
1157 return (csr_read32(LOONGARCH_CSR_ESTAT) & CSR_ESTAT_EXC) >> CSR_ESTAT_EXC_SHIFT; in read_csr_excode()
1167 return (csr_read32(LOONGARCH_CSR_TLBIDX) & CSR_TLBIDX_SIZEM) >> CSR_TLBIDX_SIZE; in read_csr_pagesize()
1185 #define read_csr_asid() csr_read32(LOONGARCH_CSR_ASID)
1193 #define read_csr_ecfg() csr_read32(LOONGARCH_CSR_ECFG)
1195 #define read_csr_estat() csr_read32(LOONGARCH_CSR_ESTAT)
1197 #define read_csr_tlbidx() csr_read32(LOONGARCH_CSR_TLBIDX)
1199 #define read_csr_euen() csr_read32(LOONGARCH_CSR_EUEN)
1201 #define read_csr_cpuid() csr_read32(LOONGARCH_CSR_CPUID)
[all …]
H A Dlbt.h24 return (csr_read32(LOONGARCH_CSR_EUEN) & CSR_EUEN_LBTEN) ? in is_lbt_enabled()
/linux/arch/loongarch/kernel/
H A Dprocess.c160 p->thread.csr_crmd = csr_read32(LOONGARCH_CSR_CRMD); in copy_thread()
161 p->thread.csr_prmd = csr_read32(LOONGARCH_CSR_PRMD); in copy_thread()
162 p->thread.csr_ecfg = csr_read32(LOONGARCH_CSR_ECFG); in copy_thread()
H A Dhw_breakpoint.c482 if ((csr_read32(LOONGARCH_CSR_FWPS) & (0x1 << i))) { in breakpoint_handler()
502 if ((csr_read32(LOONGARCH_CSR_MWPS) & (0x1 << i))) { in watchpoint_handler()
H A Dcpu-probe.c187 config = csr_read32(LOONGARCH_CSR_ASID); in cpu_probe_common()
H A Dtraps.c798 int llbit = (csr_read32(LOONGARCH_CSR_LLBCTL) & 0x1); in do_watch()
1063 pr_err("csr_merrctl == %08x\n", csr_read32(LOONGARCH_CSR_MERRCTL)); in cache_parity_error()