Home
last modified time | relevance | path

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

/linux-5.19.10/arch/loongarch/kernel/
Dprocess.c138 p->thread.csr_crmd = csr_read32(LOONGARCH_CSR_CRMD); in copy_thread()
139 p->thread.csr_prmd = csr_read32(LOONGARCH_CSR_PRMD); in copy_thread()
140 p->thread.csr_ecfg = csr_read32(LOONGARCH_CSR_ECFG); in copy_thread()
Dcpu-probe.c145 config = csr_read32(LOONGARCH_CSR_ASID); in cpu_probe_common()
Dtraps.c584 pr_err("csr_merrctl == %08x\n", csr_read32(LOONGARCH_CSR_MERRCTL)); in cache_parity_error()
/linux-5.19.10/arch/loongarch/include/asm/
Dloongarch.h230 static __always_inline u32 csr_read32(u32 reg) in csr_read32() function
1203 return csr_read32(LOONGARCH_CSR_CPUID); in get_csr_cpuid()
1220 return (csr_read32(LOONGARCH_CSR_ESTAT) & CSR_ESTAT_EXC) >> CSR_ESTAT_EXC_SHIFT; in read_csr_excode()
1230 return (csr_read32(LOONGARCH_CSR_TLBIDX) & CSR_TLBIDX_SIZEM) >> CSR_TLBIDX_SIZE; in read_csr_pagesize()
1248 #define read_csr_asid() csr_read32(LOONGARCH_CSR_ASID)
1256 #define read_csr_ecfg() csr_read32(LOONGARCH_CSR_ECFG)
1258 #define read_csr_estat() csr_read32(LOONGARCH_CSR_ESTAT)
1260 #define read_csr_tlbidx() csr_read32(LOONGARCH_CSR_TLBIDX)
1262 #define read_csr_euen() csr_read32(LOONGARCH_CSR_EUEN)
1264 #define read_csr_cpuid() csr_read32(LOONGARCH_CSR_CPUID)
[all …]
Dfpu.h40 return (csr_read32(LOONGARCH_CSR_EUEN) & CSR_EUEN_FPEN) ? in is_fp_enabled()