Home
last modified time | relevance | path

Searched refs:pvr (Results 1 – 25 of 28) sorted by relevance

12

/arch/microblaze/include/asm/
Dpvr.h19 unsigned pvr[12]; member
125 #define PVR_IS_FULL(_pvr) (_pvr.pvr[0] & PVR0_PVR_FULL_MASK)
126 #define PVR_USE_BARREL(_pvr) (_pvr.pvr[0] & PVR0_USE_BARREL_MASK)
127 #define PVR_USE_DIV(_pvr) (_pvr.pvr[0] & PVR0_USE_DIV_MASK)
128 #define PVR_USE_HW_MUL(_pvr) (_pvr.pvr[0] & PVR0_USE_HW_MUL_MASK)
129 #define PVR_USE_FPU(_pvr) (_pvr.pvr[0] & PVR0_USE_FPU_MASK)
130 #define PVR_USE_FPU2(_pvr) (_pvr.pvr[2] & PVR2_USE_FPU2_MASK)
131 #define PVR_USE_ICACHE(_pvr) (_pvr.pvr[0] & PVR0_USE_ICACHE_MASK)
132 #define PVR_USE_DCACHE(_pvr) (_pvr.pvr[0] & PVR0_USE_DCACHE_MASK)
133 #define PVR_VERSION(_pvr) ((_pvr.pvr[0] & PVR0_VERSION_MASK) >> 8)
[all …]
/arch/microblaze/kernel/cpu/
Dcpuinfo-pvr-full.c23 #define CI(c, p) { ci->c = PVR_##p(pvr); }
35 struct pvr_s pvr; in set_cpuinfo_pvr_full() local
37 get_pvr(&pvr); in set_cpuinfo_pvr_full()
45 temp = PVR_USE_BARREL(pvr) | PVR_USE_MSR_INSTR(pvr) | in set_cpuinfo_pvr_full()
46 PVR_USE_PCMP_INSTR(pvr) | PVR_USE_DIV(pvr); in set_cpuinfo_pvr_full()
51 temp = PVR_USE_HW_MUL(pvr) | PVR_USE_MUL64(pvr); in set_cpuinfo_pvr_full()
56 temp = PVR_USE_FPU(pvr) | PVR_USE_FPU2(pvr); in set_cpuinfo_pvr_full()
61 ci->use_exc = PVR_OPCODE_0x0_ILLEGAL(pvr) | in set_cpuinfo_pvr_full()
62 PVR_UNALIGNED_EXCEPTION(pvr) | in set_cpuinfo_pvr_full()
63 PVR_ILL_OPCODE_EXCEPTION(pvr) | in set_cpuinfo_pvr_full()
[all …]
Dpvr.c68 get_single_pvr(0, p->pvr[0]); in get_pvr()
69 get_single_pvr(1, p->pvr[1]); in get_pvr()
70 get_single_pvr(2, p->pvr[2]); in get_pvr()
71 get_single_pvr(3, p->pvr[3]); in get_pvr()
72 get_single_pvr(4, p->pvr[4]); in get_pvr()
73 get_single_pvr(5, p->pvr[5]); in get_pvr()
74 get_single_pvr(6, p->pvr[6]); in get_pvr()
75 get_single_pvr(7, p->pvr[7]); in get_pvr()
76 get_single_pvr(8, p->pvr[8]); in get_pvr()
77 get_single_pvr(9, p->pvr[9]); in get_pvr()
[all …]
DMakefile12 obj-y += cache.o cpuinfo.o cpuinfo-pvr-full.o cpuinfo-static.o mb.o pvr.o
/arch/powerpc/kernel/
Dsetup-common.c215 unsigned int pvr; in show_cpuinfo() local
229 pvr = per_cpu(cpu_pvr, cpu_id); in show_cpuinfo()
231 pvr = mfspr(SPRN_PVR); in show_cpuinfo()
233 maj = (pvr >> 8) & 0xFF; in show_cpuinfo()
234 min = pvr & 0xFF; in show_cpuinfo()
242 seq_printf(m, "unknown (%08x)", pvr); in show_cpuinfo()
287 if (PVR_VER(pvr) & 0x8000) { in show_cpuinfo()
288 switch (PVR_VER(pvr)) { in show_cpuinfo()
295 maj = ((pvr >> 8) & 0xF); in show_cpuinfo()
296 min = PVR_MIN(pvr); in show_cpuinfo()
[all …]
Dprom.c267 unsigned int pvr; in identical_pvr_fixup() local
278 pvr = cur_cpu_spec->pvr_value | 0x8; in identical_pvr_fixup()
279 identify_cpu(0, pvr); in identical_pvr_fixup()
280 DBG("Using logical pvr %x for %s\n", pvr, model); in identical_pvr_fixup()
/arch/powerpc/boot/
Dreg.h14 u32 pvr; in mfpvr() local
15 asm volatile ("mfpvr %0" : "=r"(pvr)); in mfpvr()
16 return pvr; in mfpvr()
D4xx.c30 unsigned long pvr; in chip_11_errata() local
32 pvr = mfpvr(); in chip_11_errata()
34 switch (pvr & 0xf0000ff0) { in chip_11_errata()
/arch/microblaze/kernel/
Dkgdb.c34 struct pvr_s pvr; variable
51 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; in pt_regs_to_gdb_regs()
103 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; in sleeping_thread_to_gdb_regs()
132 get_pvr(&pvr); /* Fill PVR structure */ in kgdb_arch_init()
/arch/sh/kernel/cpu/sh4/
Dprobe.c20 unsigned long pvr, prr, cvr; in cpu_probe() local
31 pvr = (__raw_readl(CCN_PVR) >> 8) & 0xffffff; in cpu_probe()
59 if (((pvr >> 16) & 0xff) == 0x10) { in cpu_probe()
68 boot_cpu_data.cut_major = pvr & 0x7f; in cpu_probe()
83 pvr &= 0xffff; in cpu_probe()
89 switch (pvr) { in cpu_probe()
/arch/powerpc/include/asm/
Dreg.h1082 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument
1083 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ argument
1085 #define pvr_version_is(pvr) (PVR_VER(mfspr(SPRN_PVR)) == (pvr)) argument
1092 #define PVR_FAM(pvr) (((pvr) >> 20) & 0xFFF) /* Family field */ argument
1093 #define PVR_MEM(pvr) (((pvr) >> 16) & 0xF) /* Member field */ argument
1094 #define PVR_CORE(pvr) (((pvr) >> 12) & 0xF) /* Core field */ argument
1095 #define PVR_CFG(pvr) (((pvr) >> 8) & 0xF) /* Configuration field */ argument
1096 #define PVR_MAJ(pvr) (((pvr) >> 4) & 0xF) /* Major revision field */ argument
1097 #define PVR_MIN(pvr) (((pvr) >> 0) & 0xF) /* Minor revision field */ argument
Dfsl_guts.h64 __be32 pvr; /* 0x.00a0 - Processor Version Register */ member
Dcputable.h111 extern struct cpu_spec *identify_cpu(unsigned long offset, unsigned int pvr);
Dkvm_host.h517 u32 pvr; member
/arch/powerpc/platforms/powermac/
Dsetup.c281 unsigned long pvr; in pmac_setup_arch() local
283 pvr = PVR_VER(mfspr(SPRN_PVR)); in pmac_setup_arch()
292 if (pvr >= 0x30 && pvr < 0x80) in pmac_setup_arch()
295 else if (pvr == 4 || pvr >= 8) in pmac_setup_arch()
Dbootx_init.c432 unsigned long pvr; in btext_welcome() local
443 __asm__ __volatile__ ("mfspr %0, 287" : "=r" (pvr)); in btext_welcome()
444 bootx_printf("\nPVR : 0x%x", pvr); in btext_welcome()
445 pvr >>= 16; in btext_welcome()
446 if (pvr > 1) { in btext_welcome()
450 if (pvr == 8 || pvr == 12 || pvr == 0x800c) { in btext_welcome()
/arch/powerpc/kvm/
Dbook3s_pr.c402 void kvmppc_set_pvr_pr(struct kvm_vcpu *vcpu, u32 pvr) in kvmppc_set_pvr_pr() argument
407 vcpu->arch.pvr = pvr; in kvmppc_set_pvr_pr()
409 if ((pvr >= 0x330000) && (pvr < 0x70330000)) { in kvmppc_set_pvr_pr()
446 switch (PVR_VER(pvr)) { in kvmppc_set_pvr_pr()
1260 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1287 kvmppc_set_pvr_pr(vcpu, sregs->pvr); in kvm_arch_vcpu_ioctl_set_sregs_pr()
1423 vcpu->arch.pvr = 0x3C0301; in kvmppc_core_vcpu_create_pr()
1425 vcpu->arch.pvr = mfspr(SPRN_PVR); in kvmppc_core_vcpu_create_pr()
1429 vcpu->arch.pvr = 0x84202; in kvmppc_core_vcpu_create_pr()
1431 kvmppc_set_pvr_pr(vcpu, vcpu->arch.pvr); in kvmppc_core_vcpu_create_pr()
Demulate.c159 spr_val = vcpu->arch.pvr; in kvmppc_emulate_mfspr()
Dbook3s_hv.c183 void kvmppc_set_pvr_hv(struct kvm_vcpu *vcpu, u32 pvr) in kvmppc_set_pvr_hv() argument
185 vcpu->arch.pvr = pvr; in kvmppc_set_pvr_hv()
875 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_hv()
890 if (sregs->pvr != vcpu->arch.pvr) in kvm_arch_vcpu_ioctl_set_sregs_hv()
De500mc.c210 vcpu->arch.pvr = mfspr(SPRN_PVR); in kvmppc_core_vcpu_setup()
De500.c364 vcpu->arch.pvr = mfspr(SPRN_PVR); in kvmppc_core_vcpu_setup()
Dbooke.c1598 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs()
1610 if (vcpu->arch.pvr != sregs->pvr) in kvm_arch_vcpu_ioctl_set_sregs()
/arch/powerpc/math-emu/
Dmath_efp.c895 u32 pvr, maj, min; in spe_mathemu_init() local
897 pvr = mfspr(SPRN_PVR); in spe_mathemu_init()
899 if ((PVR_VER(pvr) == PVR_VER_E500V1) || in spe_mathemu_init()
900 (PVR_VER(pvr) == PVR_VER_E500V2)) { in spe_mathemu_init()
901 maj = PVR_MAJ(pvr); in spe_mathemu_init()
902 min = PVR_MIN(pvr); in spe_mathemu_init()
/arch/microblaze/boot/dts/
Dsystem.dts112 xlnx,pvr = <0x2>;
113 xlnx,pvr-user1 = <0x0>;
114 xlnx,pvr-user2 = <0x0>;
/arch/powerpc/include/uapi/asm/
Dkvm.h167 __u32 pvr; member

12