Home
last modified time | relevance | path

Searched refs:mimpid (Results 1 – 8 of 8) sorted by relevance

/linux/tools/perf/arch/riscv/util/
H A Dheader.c17 #define CPUINFO_MIMP "mimpid"
41 char *mimpid = NULL; in _get_cpuid() local
61 mimpid = _get_field(line); in _get_cpuid()
62 if (!mimpid) in _get_cpuid()
69 if (!mvendorid || !marchid || !mimpid) in _get_cpuid()
72 if (asprintf(&cpuid, "%s-%s-%s", mvendorid, marchid, mimpid) < 0) in _get_cpuid()
79 free(mimpid); in _get_cpuid()
/linux/arch/riscv/kernel/
H A Dcpu.c193 return ci->mimpid; in riscv_cached_mimpid()
206 ci->mimpid = sbi_spec_is_0_1() ? 0 : sbi_get_mimpid(); in riscv_cpuinfo_starting()
212 ci->mimpid = csr_read(CSR_MIMPID); in riscv_cpuinfo_starting()
216 ci->mimpid = 0; in riscv_cpuinfo_starting()
363 seq_printf(m, "mimpid\t\t: 0x%lx\n", ci->mimpid); in c_show()
/linux/arch/riscv/kvm/
H A Dvcpu_sbi_base.c59 *out_val = vcpu->arch.mimpid; in kvm_sbi_ext_base_handler()
H A Dvcpu_onereg.c255 case KVM_REG_RISCV_CONFIG_REG(mimpid): in kvm_riscv_vcpu_get_reg_config()
256 reg_val = vcpu->arch.mimpid; in kvm_riscv_vcpu_get_reg_config()
356 case KVM_REG_RISCV_CONFIG_REG(mimpid): in kvm_riscv_vcpu_set_reg_config()
357 if (reg_val == vcpu->arch.mimpid) in kvm_riscv_vcpu_set_reg_config()
360 vcpu->arch.mimpid = reg_val; in kvm_riscv_vcpu_set_reg_config()
H A Dvcpu.c124 vcpu->arch.mimpid = sbi_get_mimpid(); in kvm_arch_vcpu_create()
/linux/arch/riscv/include/asm/
H A Dcpufeature.h25 unsigned long mimpid; member
/linux/arch/riscv/include/uapi/asm/
H A Dkvm.h55 unsigned long mimpid; member
/linux/tools/testing/selftests/kvm/riscv/
H A Dget-reg-list.c207 case KVM_REG_RISCV_CONFIG_REG(mimpid): in config_id_to_str()
688 KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_CONFIG | KVM_REG_RISCV_CONFIG_REG(mimpid),