Home
last modified time | relevance | path

Searched refs:LOONGARCH_CSR_CPUID (Results 1 – 4 of 4) sorted by relevance

/linux/arch/loongarch/kvm/
H A Dvcpu.c460 cpuid = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_CPUID); in kvm_set_cpuid()
493 kvm_write_sw_gcsr(csr, LOONGARCH_CSR_CPUID, val); in kvm_set_cpuid()
508 cpuid = kvm_read_sw_gcsr(csr, LOONGARCH_CSR_CPUID); in kvm_drop_cpuid()
517 kvm_write_sw_gcsr(csr, LOONGARCH_CSR_CPUID, KVM_MAX_PHYID); in kvm_drop_cpuid()
579 if (id == LOONGARCH_CSR_CPUID) in _kvm_setcsr()
1490 kvm_write_sw_gcsr(csr, LOONGARCH_CSR_CPUID, KVM_MAX_PHYID); in kvm_arch_vcpu_create()
1581 kvm_restore_hw_gcsr(csr, LOONGARCH_CSR_CPUID); in _kvm_vcpu_load()
1667 kvm_save_hw_gcsr(csr, LOONGARCH_CSR_CPUID); in _kvm_vcpu_put()
H A Dmain.c70 set_gcsr_hw_flag(LOONGARCH_CSR_CPUID); in kvm_init_gcsr_flag()
/linux/arch/loongarch/include/asm/
H A Dkvm_csr.h86 #define read_gcsr_cpuid() gcsr_read(LOONGARCH_CSR_CPUID)
87 #define write_gcsr_cpuid(val) gcsr_write(val, LOONGARCH_CSR_CPUID)
H A Dloongarch.h407 #define LOONGARCH_CSR_CPUID 0x20 /* CPU core id */ macro
1140 return csr_read32(LOONGARCH_CSR_CPUID); in get_csr_cpuid()
1201 #define read_csr_cpuid() csr_read32(LOONGARCH_CSR_CPUID)