/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-4.19/arch/microblaze/include/asm/ |
D | pvr.h | 19 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 …]
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-4.19/arch/microblaze/kernel/cpu/ |
D | cpuinfo-pvr-full.c | 23 #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 …]
|
D | pvr.c | 68 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 …]
|
D | Makefile | 13 obj-y += cache.o cpuinfo.o cpuinfo-pvr-full.o cpuinfo-static.o mb.o pvr.o
|
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
D | pvrusb2-main.c | 43 static void pvr_setup_attach(struct pvr2_context *pvr) in pvr_setup_attach() argument 46 pvr2_v4l2_create(pvr); in pvr_setup_attach() 49 pvr2_dvb_create(pvr); in pvr_setup_attach() 52 pvr2_sysfs_create(pvr,class_ptr); in pvr_setup_attach() 59 struct pvr2_context *pvr; in pvr_probe() local 62 pvr = pvr2_context_create(intf,devid,pvr_setup_attach); in pvr_probe() 63 if (!pvr) { in pvr_probe() 69 pvr2_trace(PVR2_TRACE_INIT,"pvr_probe(pvr=%p)",pvr); in pvr_probe() 71 usb_set_intfdata(intf, pvr); in pvr_probe() 82 struct pvr2_context *pvr = usb_get_intfdata(intf); in pvr_disconnect() local [all …]
|
/kernel/linux/linux-4.19/drivers/media/usb/pvrusb2/ |
D | pvrusb2-main.c | 53 static void pvr_setup_attach(struct pvr2_context *pvr) in pvr_setup_attach() argument 56 pvr2_v4l2_create(pvr); in pvr_setup_attach() 59 pvr2_dvb_create(pvr); in pvr_setup_attach() 62 pvr2_sysfs_create(pvr,class_ptr); in pvr_setup_attach() 69 struct pvr2_context *pvr; in pvr_probe() local 72 pvr = pvr2_context_create(intf,devid,pvr_setup_attach); in pvr_probe() 73 if (!pvr) { in pvr_probe() 79 pvr2_trace(PVR2_TRACE_INIT,"pvr_probe(pvr=%p)",pvr); in pvr_probe() 81 usb_set_intfdata(intf, pvr); in pvr_probe() 92 struct pvr2_context *pvr = usb_get_intfdata(intf); in pvr_disconnect() local [all …]
|
/kernel/linux/linux-4.19/tools/perf/arch/powerpc/util/ |
D | header.c | 17 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument 18 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ argument 23 unsigned long pvr; in get_cpuid() local 26 pvr = mfspr(SPRN_PVR); in get_cpuid() 28 nb = scnprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr)); in get_cpuid()
|
/kernel/linux/linux-4.19/arch/powerpc/kernel/ |
D | setup-common.c | 234 unsigned int pvr; in show_cpuinfo() local 240 pvr = per_cpu(cpu_pvr, cpu_id); in show_cpuinfo() 242 pvr = mfspr(SPRN_PVR); in show_cpuinfo() 244 maj = (pvr >> 8) & 0xFF; in show_cpuinfo() 245 min = pvr & 0xFF; in show_cpuinfo() 253 seq_printf(m, "unknown (%08x)", pvr); in show_cpuinfo() 298 if (PVR_VER(pvr) & 0x8000) { in show_cpuinfo() 299 switch (PVR_VER(pvr)) { in show_cpuinfo() 306 maj = ((pvr >> 8) & 0xF); in show_cpuinfo() 307 min = PVR_MIN(pvr); in show_cpuinfo() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | setup-common.c | 229 unsigned int pvr; in show_cpuinfo() local 235 pvr = per_cpu(cpu_pvr, cpu_id); in show_cpuinfo() 237 pvr = mfspr(SPRN_PVR); in show_cpuinfo() 239 maj = (pvr >> 8) & 0xFF; in show_cpuinfo() 240 min = pvr & 0xFF; in show_cpuinfo() 248 seq_printf(m, "unknown (%08x)", pvr); in show_cpuinfo() 291 if (PVR_VER(pvr) & 0x8000) { in show_cpuinfo() 292 switch (PVR_VER(pvr)) { in show_cpuinfo() 299 maj = ((pvr >> 8) & 0xF); in show_cpuinfo() 300 min = PVR_MIN(pvr); in show_cpuinfo() [all …]
|
/kernel/linux/linux-5.10/tools/perf/arch/powerpc/util/ |
D | utils_header.h | 12 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument 13 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ argument
|
D | header.c | 17 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()
|
/kernel/linux/linux-4.19/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-4.19/arch/powerpc/boot/ |
D | reg.h | 14 u32 pvr; in mfpvr() local 15 asm volatile ("mfpvr %0" : "=r"(pvr)); in mfpvr() 16 return pvr; in mfpvr()
|
/kernel/linux/linux-4.19/arch/sh/kernel/cpu/sh4/ |
D | probe.c | 20 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-4.19/arch/powerpc/include/asm/ |
D | reg.h | 1229 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument 1230 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ argument 1232 #define pvr_version_is(pvr) (PVR_VER(mfspr(SPRN_PVR)) == (pvr)) argument 1239 #define PVR_FAM(pvr) (((pvr) >> 20) & 0xFFF) /* Family field */ argument 1240 #define PVR_MEM(pvr) (((pvr) >> 16) & 0xF) /* Member field */ argument 1241 #define PVR_CORE(pvr) (((pvr) >> 12) & 0xF) /* Core field */ argument 1242 #define PVR_CFG(pvr) (((pvr) >> 8) & 0xF) /* Configuration field */ argument 1243 #define PVR_MAJ(pvr) (((pvr) >> 4) & 0xF) /* Major revision field */ argument 1244 #define PVR_MIN(pvr) (((pvr) >> 0) & 0xF) /* Minor revision field */ argument
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | reg.h | 1268 #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ argument 1269 #define PVR_REV(pvr) (((pvr) >> 0) & 0xFFFF) /* Revison field */ argument 1271 #define pvr_version_is(pvr) (PVR_VER(mfspr(SPRN_PVR)) == (pvr)) argument 1278 #define PVR_FAM(pvr) (((pvr) >> 20) & 0xFFF) /* Family field */ argument 1279 #define PVR_MEM(pvr) (((pvr) >> 16) & 0xF) /* Member field */ argument 1280 #define PVR_CORE(pvr) (((pvr) >> 12) & 0xF) /* Core field */ argument 1281 #define PVR_CFG(pvr) (((pvr) >> 8) & 0xF) /* Configuration field */ argument 1282 #define PVR_MAJ(pvr) (((pvr) >> 4) & 0xF) /* Major revision field */ argument 1283 #define PVR_MIN(pvr) (((pvr) >> 0) & 0xF) /* Minor revision field */ argument
|
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
D | pkeys.c | 84 unsigned long pvr = mfspr(SPRN_PVR); in scan_pkey_feature() local 86 if (PVR_VER(pvr) == PVR_POWER8 || PVR_VER(pvr) == PVR_POWER8E || in scan_pkey_feature() 87 PVR_VER(pvr) == PVR_POWER8NVL || PVR_VER(pvr) == PVR_POWER9) in scan_pkey_feature()
|
/kernel/linux/linux-4.19/arch/powerpc/platforms/powermac/ |
D | setup.c | 275 unsigned long pvr; in pmac_setup_arch() local 277 pvr = PVR_VER(mfspr(SPRN_PVR)); in pmac_setup_arch() 286 if (pvr >= 0x30 && pvr < 0x80) in pmac_setup_arch() 289 else if (pvr == 4 || pvr >= 8) in pmac_setup_arch()
|