Home
last modified time | relevance | path

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

1234

/openbmc/linux/arch/microblaze/include/asm/
H A Dpvr.h16 unsigned pvr[12]; member
147 (_pvr.pvr[2] & PVR2_OPCODE_0x0_ILL_MASK)
149 (_pvr.pvr[2] & PVR2_UNALIGNED_EXC_MASK)
151 (_pvr.pvr[2] & PVR2_ILL_OPCODE_EXC_MASK)
153 (_pvr.pvr[2] & PVR2_IOPB_BUS_EXC_MASK)
155 (_pvr.pvr[2] & PVR2_DOPB_BUS_EXC_MASK)
157 (_pvr.pvr[2] & PVR2_DIV_ZERO_EXC_MASK)
173 (_pvr.pvr[4] & PVR4_ICACHE_USE_FSL_MASK)
175 (_pvr.pvr[4] & PVR4_ICACHE_ALLOW_WR_MASK)
216 #define PVR_MMU_PRIVINS(pvr) (pvr.pvr[11] & PVR11_MMU_PRIVINS) argument
[all …]
/openbmc/linux/arch/microblaze/kernel/cpu/
H A Dcpuinfo-pvr-full.c30 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()
59 PVR_IOPB_BUS_EXCEPTION(pvr) | in set_cpuinfo_pvr_full()
60 PVR_DOPB_BUS_EXCEPTION(pvr) | in set_cpuinfo_pvr_full()
61 PVR_DIV_ZERO_EXCEPTION(pvr) | in set_cpuinfo_pvr_full()
62 PVR_FPU_EXCEPTION(pvr) | in set_cpuinfo_pvr_full()
[all …]
H A Dpvr.c69 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 …]
H A DMakefile13 obj-y += cache.o cpuinfo.o cpuinfo-pvr-full.o cpuinfo-static.o mb.o pvr.o
/openbmc/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-main.c37 static void pvr_setup_attach(struct pvr2_context *pvr) in pvr_setup_attach() argument
40 pvr2_v4l2_create(pvr); in pvr_setup_attach()
43 pvr2_dvb_create(pvr); in pvr_setup_attach()
45 pvr2_sysfs_create(pvr); in pvr_setup_attach()
51 struct pvr2_context *pvr; in pvr_probe() local
54 pvr = pvr2_context_create(intf,devid,pvr_setup_attach); in pvr_probe()
55 if (!pvr) { in pvr_probe()
61 pvr2_trace(PVR2_TRACE_INIT,"pvr_probe(pvr=%p)",pvr); in pvr_probe()
63 usb_set_intfdata(intf, pvr); in pvr_probe()
74 struct pvr2_context *pvr = usb_get_intfdata(intf); in pvr_disconnect() local
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/include/
H A Dreg.h59 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) argument
62 #define PVR_CFG(pvr) (((pvr) >> 8) & 0xF) /* Configuration field */ argument
63 #define PVR_MAJ(pvr) (((pvr) >> 4) & 0xF) /* Major revision field */ argument
64 #define PVR_MIN(pvr) (((pvr) >> 0) & 0xF) /* Minor revision field */ argument
/openbmc/linux/tools/perf/arch/powerpc/util/
H A Dutils_header.h12 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument
13 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revision field */ argument
H A Dheader.c17 unsigned long pvr; in get_cpuid() local
20 pvr = mfspr(SPRN_PVR); in get_cpuid()
22 nb = scnprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr)); in get_cpuid()
/openbmc/linux/arch/powerpc/kernel/
H A Dsetup-common.c238 unsigned int pvr; in show_cpuinfo() local
246 pvr = mfspr(SPRN_PVR); in show_cpuinfo()
248 maj = (pvr >> 8) & 0xFF; in show_cpuinfo()
249 min = pvr & 0xFF; in show_cpuinfo()
305 min = PVR_MIN(pvr); in show_cpuinfo()
308 maj = PVR_MAJ(pvr); in show_cpuinfo()
309 min = PVR_MIN(pvr); in show_cpuinfo()
316 min = pvr & 0xFF; in show_cpuinfo()
321 min = pvr & 0xFF; in show_cpuinfo()
325 min = pvr & 0xFF; in show_cpuinfo()
[all …]
H A Dcputable.c106 struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr) in identify_cpu() argument
116 if ((pvr & s->pvr_mask) == s->pvr_value) in identify_cpu()
130 void __init identify_cpu_name(unsigned int pvr) in identify_cpu_name() argument
140 if ((pvr & s->pvr_mask) == s->pvr_value) { in identify_cpu_name()
/openbmc/qemu/target/ppc/
H A Dcompat.c32 uint32_t pvr; member
53 .pvr = CPU_POWERPC_LOGICAL_2_05,
61 .pvr = CPU_POWERPC_LOGICAL_2_06,
69 .pvr = CPU_POWERPC_LOGICAL_2_06_PLUS,
77 .pvr = CPU_POWERPC_LOGICAL_2_07,
84 .pvr = CPU_POWERPC_LOGICAL_3_00,
98 .pvr = CPU_POWERPC_LOGICAL_3_10,
105 static const CompatInfo *compat_by_pvr(uint32_t pvr) in compat_by_pvr() argument
110 if (compat_table[i].pvr == pvr) { in compat_by_pvr()
311 compat_pvr = compat->pvr; in ppc_compat_prop_set()
/openbmc/linux/arch/microblaze/kernel/
H A Dkgdb.c35 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()
/openbmc/linux/arch/powerpc/perf/
H A De500-pmu.c121 unsigned int pvr = mfspr(SPRN_PVR); in init_e500_pmu() local
124 if (PVR_VER(pvr) == PVR_VER_E500MC || PVR_VER(pvr) == PVR_VER_E5500) in init_e500_pmu()
127 else if (PVR_VER(pvr) != PVR_VER_E500V1 && PVR_VER(pvr) != PVR_VER_E500V2) in init_e500_pmu()
H A Dpower9-pmu.c468 unsigned int pvr = mfspr(SPRN_PVR); in init_power9_pmu() local
470 if (PVR_VER(pvr) != PVR_POWER9) in init_power9_pmu()
474 if (!(pvr & PVR_POWER9_CUMULUS)) { in init_power9_pmu()
475 if ((PVR_CFG(pvr) == 2) && (PVR_MIN(pvr) == 1)) { in init_power9_pmu()
478 } else if ((PVR_CFG(pvr) == 2) && (PVR_MIN(pvr) == 2)) { in init_power9_pmu()
/openbmc/u-boot/arch/powerpc/include/asm/
H A Dprocessor.h858 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument
859 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ argument
866 #define PVR_FAM(pvr) (((pvr) >> 20) & 0xFFF) /* Family field */ argument
867 #define PVR_MEM(pvr) (((pvr) >> 16) & 0xF) /* Member field */ argument
868 #define PVR_CORE(pvr) (((pvr) >> 12) & 0xF) /* Core field */ argument
869 #define PVR_CFG(pvr) (((pvr) >> 8) & 0xF) /* Configuration field */ argument
870 #define PVR_MAJ(pvr) (((pvr) >> 4) & 0xF) /* Major revision field */ argument
871 #define PVR_MIN(pvr) (((pvr) >> 0) & 0xF) /* Minor revision field */ argument
875 #define PVR_E600_VER(pvr) (((pvr) >> 15) & 0xFFFF) /* Version/type */ argument
876 #define PVR_E600_TECH(pvr) (((pvr) >> 12) & 0xF) /* Technology */ argument
[all …]
/openbmc/linux/arch/powerpc/boot/
H A Dreg.h10 u32 pvr; in mfpvr() local
11 asm volatile ("mfpvr %0" : "=r"(pvr)); in mfpvr()
12 return pvr; in mfpvr()
/openbmc/u-boot/arch/powerpc/cpu/mpc86xx/
H A Dcpu.c34 uint pvr, svr; in checkcpu() local
61 pvr = get_pvr(); in checkcpu()
62 major = PVR_E600_MAJ(pvr); in checkcpu()
63 minor = PVR_E600_MIN(pvr); in checkcpu()
70 printf(", Version: %d.%d, (0x%08x)\n", major, minor, pvr); in checkcpu()
/openbmc/linux/arch/sh/kernel/cpu/sh4/
H A Dprobe.c17 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()
/openbmc/linux/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmisc.h36 extern int pvr;
168 if (pvr == POWER10) in get_mmcr2_l2l3()
175 if (pvr != POWER10) in get_mmcr3_src()
182 if (pvr == POWER10) in get_mmcra_thd_cmp()
194 if (pvr == POWER10) in get_mmcra_bhrb_disable()
H A Dmisc.c22 int pvr; variable
61 switch (pvr) { in init_ev_encodes()
126 pvr = PVR_VER(mfspr(SPRN_PVR)); in platform_check_for_tests()
132 if ((pvr != POWER10) && (pvr != POWER9)) in platform_check_for_tests()
/openbmc/linux/arch/powerpc/include/asm/
H A Dreg.h1271 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument
1272 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ argument
1274 #define pvr_version_is(pvr) (PVR_VER(mfspr(SPRN_PVR)) == (pvr)) argument
1281 #define PVR_FAM(pvr) (((pvr) >> 20) & 0xFFF) /* Family field */ argument
1282 #define PVR_MEM(pvr) (((pvr) >> 16) & 0xF) /* Member field */ argument
1283 #define PVR_CORE(pvr) (((pvr) >> 12) & 0xF) /* Core field */ argument
1284 #define PVR_CFG(pvr) (((pvr) >> 8) & 0xF) /* Configuration field */ argument
1285 #define PVR_MAJ(pvr) (((pvr) >> 4) & 0xF) /* Major revision field */ argument
1286 #define PVR_MIN(pvr) (((pvr) >> 0) & 0xF) /* Minor revision field */ argument
/openbmc/u-boot/arch/powerpc/cpu/mpc8xx/
H A Dcpu.c36 static int check_CPU(long clock, uint pvr, uint immr) in check_CPU() argument
44 if (PVR_VER(pvr) != PVR_VER(PVR_8xx)) in check_CPU()
93 uint pvr = get_pvr(); in checkcpu() local
97 return check_CPU(clock, pvr, immr); in checkcpu()
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dpkeys.c89 unsigned long pvr = mfspr(SPRN_PVR); in scan_pkey_feature() local
91 if (PVR_VER(pvr) == PVR_POWER8 || PVR_VER(pvr) == PVR_POWER8E || in scan_pkey_feature()
92 PVR_VER(pvr) == PVR_POWER8NVL || PVR_VER(pvr) == PVR_POWER9) in scan_pkey_feature()
/openbmc/linux/arch/powerpc/platforms/powermac/
H A Dsetup.c255 unsigned long pvr; in pmac_setup_arch() local
257 pvr = PVR_VER(mfspr(SPRN_PVR)); in pmac_setup_arch()
266 if (pvr >= 0x30 && pvr < 0x80) in pmac_setup_arch()
269 else if (pvr == 4 || pvr >= 8) in pmac_setup_arch()
H A Dbootx_init.c430 unsigned long pvr; in btext_welcome() local
441 __asm__ __volatile__ ("mfspr %0, 287" : "=r" (pvr)); in btext_welcome()
442 bootx_printf("\nPVR : 0x%x", pvr); in btext_welcome()
443 pvr >>= 16; in btext_welcome()
444 if (pvr > 1) { in btext_welcome()
448 if (pvr == 8 || pvr == 12 || pvr == 0x800c) { in btext_welcome()

1234