Home
last modified time | relevance | path

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

123

/linux/arch/microblaze/include/asm/
H A Dpvr.h16 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 …]
/linux/arch/microblaze/kernel/cpu/
H A Dcpuinfo-pvr-full.c23 #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 …]
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
/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 …]
H A Dpvrusb2-dvb.c129 struct pvr2_context *pvr = adap->channel.mc_head; in pvr2_dvb_stream_do_start() local
137 ret = pvr2_channel_claim_stream(&adap->channel, &pvr->video_stream); in pvr2_dvb_stream_do_start()
149 pvr2_stream_set_callback(pvr->video_stream.stream, in pvr2_dvb_stream_do_start()
443 struct pvr2_dvb_adapter *pvr2_dvb_create(struct pvr2_context *pvr) in pvr2_dvb_create() argument
447 if (!pvr->hdw->hdw_desc->dvb_props) { in pvr2_dvb_create()
454 pvr2_channel_init(&adap->channel, pvr); in pvr2_dvb_create()
/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
/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.c29 unsigned long pvr; in get_cpuid()
32 pvr = mfspr(SPRN_PVR);
34 nb = scnprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr)); in get_cpuid_str()
48 unsigned long pvr; in arch_get_runtimeparam()
58 * To support generic events, return 0x00ffffff as pvr when
59 * booted in compat mode. Based on this pvr value, json will
63 pvr = mfspr(SPRN_PVR);
65 pvr = 0x00ffffff;
67 if (asprintf(&bufp, "0x%.8lx", pvr) <
17 unsigned long pvr; get_cpuid() local
[all...]
/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()
/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()
H A Dpower10-pmu.c609 unsigned int pvr; in init_power10_pmu() local
612 pvr = mfspr(SPRN_PVR); in init_power10_pmu()
613 if (PVR_VER(pvr) != PVR_POWER10) in init_power10_pmu()
617 if ((PVR_CFG(pvr) == 1)) in init_power10_pmu()
623 if ((PVR_CFG(pvr) == 1)) { in init_power10_pmu()
643 unsigned int pvr; in init_power11_pmu() local
646 pvr = mfspr(SPRN_PVR); in init_power11_pmu()
647 if (PVR_VER(pvr) != PVR_POWER11) in init_power11_pmu()
H A Dppc970-pmu.c494 unsigned int pvr = mfspr(SPRN_PVR); in init_ppc970_pmu() local
496 if (PVR_VER(pvr) != PVR_970 && PVR_VER(pvr) != PVR_970MP && in init_ppc970_pmu()
497 PVR_VER(pvr) != PVR_970FX && PVR_VER(pvr) != PVR_970GX) in init_ppc970_pmu()
H A De6500-pmu.c110 unsigned int pvr = mfspr(SPRN_PVR); in init_e6500_pmu() local
112 if (PVR_VER(pvr) != PVR_VER_E6500) in init_e6500_pmu()
/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()
/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()
/linux/arch/powerpc/include/asm/
H A Dreg.h1248 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument
1249 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ argument
1251 #define pvr_version_is(pvr) (PVR_VER(mfspr(SPRN_PVR)) == (pvr)) argument
1258 #define PVR_FAM(pvr) (((pvr) >> 20) & 0xFFF) /* Family field */ argument
1259 #define PVR_MEM(pvr) (((pvr) >> 16) & 0xF) /* Member field */ argument
1260 #define PVR_CORE(pvr) (((pvr) >> 12) & 0xF) /* Core field */ argument
1261 #define PVR_CFG(pvr) (((pvr) >> 8) & 0xF) /* Configuration field */ argument
1262 #define PVR_MAJ(pvr) (((pvr) >> 4) & 0xF) /* Major revision field */ argument
1263 #define PVR_MIN(pvr) (((pvr) >> 0) & 0xF) /* Minor revision field */ argument
/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()
/linux/arch/powerpc/kernel/
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()
/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()
93 PVR_VER(pvr) == PVR_HX_C2000) in scan_pkey_feature()
/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()
/linux/tools/testing/selftests/powerpc/pmu/event_code_tests/
H A Dblacklisted_events_test.c84 SKIP_IF(PVR_VER(pvr) != POWER9); in check_for_power9_version()
85 SKIP_IF(!(pvr & PVR_POWER9_CUMULUS)); in check_for_power9_version()

123