Searched refs:LOONGARCH_CSR_CPUID (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/arch/loongarch/kvm/ |
D | vcpu.c | 460 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()
|
D | main.c | 70 set_gcsr_hw_flag(LOONGARCH_CSR_CPUID); in kvm_init_gcsr_flag()
|
/linux-6.12.1/arch/loongarch/include/asm/ |
D | kvm_csr.h | 86 #define read_gcsr_cpuid() gcsr_read(LOONGARCH_CSR_CPUID) 87 #define write_gcsr_cpuid(val) gcsr_write(val, LOONGARCH_CSR_CPUID)
|
D | loongarch.h | 407 #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)
|