/arch/microblaze/include/asm/ |
D | pvr.h | 16 unsigned pvr[12]; member 122 #define PVR_IS_FULL(_pvr) (_pvr.pvr[0] & PVR0_PVR_FULL_MASK) 123 #define PVR_USE_BARREL(_pvr) (_pvr.pvr[0] & PVR0_USE_BARREL_MASK) 124 #define PVR_USE_DIV(_pvr) (_pvr.pvr[0] & PVR0_USE_DIV_MASK) 125 #define PVR_USE_HW_MUL(_pvr) (_pvr.pvr[0] & PVR0_USE_HW_MUL_MASK) 126 #define PVR_USE_FPU(_pvr) (_pvr.pvr[0] & PVR0_USE_FPU_MASK) 127 #define PVR_USE_FPU2(_pvr) (_pvr.pvr[2] & PVR2_USE_FPU2_MASK) 128 #define PVR_USE_ICACHE(_pvr) (_pvr.pvr[0] & PVR0_USE_ICACHE_MASK) 129 #define PVR_USE_DCACHE(_pvr) (_pvr.pvr[0] & PVR0_USE_DCACHE_MASK) 130 #define PVR_VERSION(_pvr) ((_pvr.pvr[0] & PVR0_VERSION_MASK) >> 8) [all …]
|
/arch/microblaze/kernel/cpu/ |
D | cpuinfo-pvr-full.c | 23 #define CI(c, p) { ci->c = PVR_##p(pvr); } 30 struct pvr_s pvr; in set_cpuinfo_pvr_full() local 32 get_pvr(&pvr); in set_cpuinfo_pvr_full() 40 temp = PVR_USE_BARREL(pvr) | PVR_USE_MSR_INSTR(pvr) | in set_cpuinfo_pvr_full() 41 PVR_USE_PCMP_INSTR(pvr) | PVR_USE_DIV(pvr); in set_cpuinfo_pvr_full() 46 temp = PVR_USE_HW_MUL(pvr) | PVR_USE_MUL64(pvr); in set_cpuinfo_pvr_full() 51 temp = PVR_USE_FPU(pvr) | PVR_USE_FPU2(pvr); in set_cpuinfo_pvr_full() 56 ci->use_exc = PVR_OPCODE_0x0_ILLEGAL(pvr) | in set_cpuinfo_pvr_full() 57 PVR_UNALIGNED_EXCEPTION(pvr) | in set_cpuinfo_pvr_full() 58 PVR_ILL_OPCODE_EXCEPTION(pvr) | in set_cpuinfo_pvr_full() [all …]
|
D | pvr.c | 69 get_single_pvr(0, p->pvr[0]); in get_pvr() 70 get_single_pvr(1, p->pvr[1]); in get_pvr() 71 get_single_pvr(2, p->pvr[2]); in get_pvr() 72 get_single_pvr(3, p->pvr[3]); in get_pvr() 73 get_single_pvr(4, p->pvr[4]); in get_pvr() 74 get_single_pvr(5, p->pvr[5]); in get_pvr() 75 get_single_pvr(6, p->pvr[6]); in get_pvr() 76 get_single_pvr(7, p->pvr[7]); in get_pvr() 77 get_single_pvr(8, p->pvr[8]); in get_pvr() 78 get_single_pvr(9, p->pvr[9]); in get_pvr() [all …]
|
D | Makefile | 13 obj-y += cache.o cpuinfo.o cpuinfo-pvr-full.o cpuinfo-static.o mb.o pvr.o
|
/arch/powerpc/kernel/ |
D | setup-common.c | 225 unsigned int pvr; in show_cpuinfo() local 231 pvr = per_cpu(cpu_pvr, cpu_id); in show_cpuinfo() 233 pvr = mfspr(SPRN_PVR); in show_cpuinfo() 235 maj = (pvr >> 8) & 0xFF; in show_cpuinfo() 236 min = pvr & 0xFF; in show_cpuinfo() 243 seq_printf(m, "unknown (%08x)", pvr); in show_cpuinfo() 286 if (PVR_VER(pvr) & 0x8000) { in show_cpuinfo() 287 switch (PVR_VER(pvr)) { in show_cpuinfo() 294 maj = ((pvr >> 8) & 0xF); in show_cpuinfo() 295 min = PVR_MIN(pvr); in show_cpuinfo() [all …]
|
D | mce.c | 626 int pvr; in init_debug_trig_function() local 650 pvr = mfspr(SPRN_PVR); in init_debug_trig_function() 652 if ((PVR_VER(pvr) == PVR_POWER9) && (pvr & 0xe000) == 0) { in init_debug_trig_function() 654 if ((pvr & 0xfff) >= 0x202) in init_debug_trig_function() 657 else if ((pvr & 0xfff) >= 0x200) in init_debug_trig_function()
|
D | setup_64.c | 583 u32 pvr; in initialize_cache_info() local 591 pvr = PVR_VER(mfspr(SPRN_PVR)); in initialize_cache_info() 592 if (pvr == PVR_POWER8 || pvr == PVR_POWER8E || in initialize_cache_info() 593 pvr == PVR_POWER8NVL) { in initialize_cache_info()
|
D | dt_cpu_ftrs.c | 735 static __init void update_tlbie_feature_flag(unsigned long pvr) in update_tlbie_feature_flag() argument 737 if (PVR_VER(pvr) == PVR_POWER9) { in update_tlbie_feature_flag() 742 if ((pvr & 0xe000) == 0) { in update_tlbie_feature_flag() 744 if ((pvr & 0xfff) < 0x203) in update_tlbie_feature_flag() 746 } else if ((pvr & 0xc000) == 0) { in update_tlbie_feature_flag() 748 if ((pvr & 0xfff) < 0x103) in update_tlbie_feature_flag()
|
D | prom.c | 273 unsigned int pvr; in identical_pvr_fixup() local 284 pvr = cur_cpu_spec->pvr_value | 0x8; in identical_pvr_fixup() 285 identify_cpu(0, pvr); in identical_pvr_fixup() 286 DBG("Using logical pvr %x for %s\n", pvr, model); in identical_pvr_fixup()
|
D | cputable.c | 2061 struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr) in identify_cpu() argument 2069 if ((pvr & s->pvr_mask) == s->pvr_value) in identify_cpu() 2083 void __init identify_cpu_name(unsigned int pvr) in identify_cpu_name() argument 2093 if ((pvr & s->pvr_mask) == s->pvr_value) { in identify_cpu_name()
|
/arch/microblaze/kernel/ |
D | kgdb.c | 35 static struct pvr_s pvr; variable 53 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; in pt_regs_to_gdb_regs() 105 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; in sleeping_thread_to_gdb_regs() 134 get_pvr(&pvr); /* Fill PVR structure */ in kgdb_arch_init()
|
/arch/powerpc/boot/ |
D | reg.h | 10 u32 pvr; in mfpvr() local 11 asm volatile ("mfpvr %0" : "=r"(pvr)); in mfpvr() 12 return pvr; in mfpvr()
|
D | 4xx.c | 26 unsigned long pvr; in chip_11_errata() local 28 pvr = mfpvr(); in chip_11_errata() 30 switch (pvr & 0xf0000ff0) { in chip_11_errata()
|
/arch/sh/kernel/cpu/sh4/ |
D | probe.c | 17 unsigned long pvr, prr, cvr; in cpu_probe() local 28 pvr = (__raw_readl(CCN_PVR) >> 8) & 0xffffff; in cpu_probe() 56 if (((pvr >> 16) & 0xff) == 0x10) { in cpu_probe() 65 boot_cpu_data.cut_major = pvr & 0x7f; in cpu_probe() 80 pvr &= 0xffff; in cpu_probe() 86 switch (pvr) { in cpu_probe()
|
/arch/powerpc/include/asm/ |
D | reg.h | 1263 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument 1264 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ argument 1266 #define pvr_version_is(pvr) (PVR_VER(mfspr(SPRN_PVR)) == (pvr)) argument 1273 #define PVR_FAM(pvr) (((pvr) >> 20) & 0xFFF) /* Family field */ argument 1274 #define PVR_MEM(pvr) (((pvr) >> 16) & 0xF) /* Member field */ argument 1275 #define PVR_CORE(pvr) (((pvr) >> 12) & 0xF) /* Core field */ argument 1276 #define PVR_CFG(pvr) (((pvr) >> 8) & 0xF) /* Configuration field */ argument 1277 #define PVR_MAJ(pvr) (((pvr) >> 4) & 0xF) /* Major revision field */ argument 1278 #define PVR_MIN(pvr) (((pvr) >> 0) & 0xF) /* Minor revision field */ argument
|
D | cputable.h | 96 extern struct cpu_spec *identify_cpu(unsigned long offset, unsigned int pvr); 97 extern void identify_cpu_name(unsigned int pvr);
|
/arch/powerpc/mm/book3s64/ |
D | pkeys.c | 88 unsigned long pvr = mfspr(SPRN_PVR); in scan_pkey_feature() local 90 if (PVR_VER(pvr) == PVR_POWER8 || PVR_VER(pvr) == PVR_POWER8E || in scan_pkey_feature() 91 PVR_VER(pvr) == PVR_POWER8NVL || PVR_VER(pvr) == PVR_POWER9) in scan_pkey_feature()
|
/arch/powerpc/platforms/powermac/ |
D | setup.c | 269 unsigned long pvr; in pmac_setup_arch() local 271 pvr = PVR_VER(mfspr(SPRN_PVR)); in pmac_setup_arch() 280 if (pvr >= 0x30 && pvr < 0x80) in pmac_setup_arch() 283 else if (pvr == 4 || pvr >= 8) in pmac_setup_arch()
|
D | bootx_init.c | 429 unsigned long pvr; in btext_welcome() local 440 __asm__ __volatile__ ("mfspr %0, 287" : "=r" (pvr)); in btext_welcome() 441 bootx_printf("\nPVR : 0x%x", pvr); in btext_welcome() 442 pvr >>= 16; in btext_welcome() 443 if (pvr > 1) { in btext_welcome() 447 if (pvr == 8 || pvr == 12 || pvr == 0x800c) { in btext_welcome()
|
/arch/powerpc/perf/ |
D | power9-pmu.c | 458 unsigned int pvr = mfspr(SPRN_PVR); in init_power9_pmu() local 466 if (!(pvr & PVR_POWER9_CUMULUS)) { in init_power9_pmu() 467 if ((PVR_CFG(pvr) == 2) && (PVR_MIN(pvr) == 1)) { in init_power9_pmu() 470 } else if ((PVR_CFG(pvr) == 2) && (PVR_MIN(pvr) == 2)) { in init_power9_pmu()
|
D | power10-pmu.c | 597 unsigned int pvr; in init_power10_pmu() local 605 pvr = mfspr(SPRN_PVR); in init_power10_pmu() 607 if ((PVR_CFG(pvr) == 1)) in init_power10_pmu() 613 if ((PVR_CFG(pvr) == 1)) { in init_power10_pmu()
|
/arch/powerpc/math-emu/ |
D | math_efp.c | 892 u32 pvr, maj, min; in spe_mathemu_init() local 894 pvr = mfspr(SPRN_PVR); in spe_mathemu_init() 896 if ((PVR_VER(pvr) == PVR_VER_E500V1) || in spe_mathemu_init() 897 (PVR_VER(pvr) == PVR_VER_E500V2)) { in spe_mathemu_init() 898 maj = PVR_MAJ(pvr); in spe_mathemu_init() 899 min = PVR_MIN(pvr); in spe_mathemu_init()
|
/arch/powerpc/kvm/ |
D | book3s_pr.c | 551 static void kvmppc_set_pvr_pr(struct kvm_vcpu *vcpu, u32 pvr) in kvmppc_set_pvr_pr() argument 556 vcpu->arch.pvr = pvr; in kvmppc_set_pvr_pr() 558 if ((pvr >= 0x330000) && (pvr < 0x70330000)) { in kvmppc_set_pvr_pr() 595 switch (PVR_VER(pvr)) { in kvmppc_set_pvr_pr() 1459 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1486 kvmppc_set_pvr_pr(vcpu, sregs->pvr); in kvm_arch_vcpu_ioctl_set_sregs_pr() 1762 vcpu->arch.pvr = 0x3C0301; in kvmppc_core_vcpu_create_pr() 1764 vcpu->arch.pvr = mfspr(SPRN_PVR); in kvmppc_core_vcpu_create_pr() 1768 vcpu->arch.pvr = 0x84202; in kvmppc_core_vcpu_create_pr() 1771 kvmppc_set_pvr_pr(vcpu, vcpu->arch.pvr); in kvmppc_core_vcpu_create_pr()
|
D | emulate.c | 141 spr_val = vcpu->arch.pvr; in kvmppc_emulate_mfspr()
|
/arch/microblaze/boot/dts/ |
D | system.dts | 97 xlnx,pvr = <0x2>; 98 xlnx,pvr-user1 = <0x0>; 99 xlnx,pvr-user2 = <0x0>;
|