Home
last modified time | relevance | path

Searched refs:mfspr (Results 1 – 190 of 190) sorted by relevance

/linux-4.1.27/arch/powerpc/kernel/
Dcpu_setup_ppc970.S30 mfspr r3,SPRN_HID4
37 mfspr r3,SPRN_HID5
45 mfspr r0,SPRN_HID1
81 mfspr r0,SPRN_HID0
95 mfspr r0,SPRN_HID0
103 mfspr r0,SPRN_HID0
104 mfspr r0,SPRN_HID0
105 mfspr r0,SPRN_HID0
106 mfspr r0,SPRN_HID0
107 mfspr r0,SPRN_HID0
[all …]
Dhead_40x.S112 mfspr r11,SPRN_SRR1; /* check whether user or kernel */\
115 mfspr r1,SPRN_SPRG_THREAD; /* if from user, start at top of */\
123 mfspr r10,SPRN_SPRG_SCRATCH0; \
125 mfspr r12,SPRN_SPRG_SCRATCH1; \
129 mfspr r10,SPRN_SPRG_SCRATCH2; \
130 mfspr r12,SPRN_SRR0; \
132 mfspr r9,SPRN_SRR1; \
151 mfspr r11,SPRN_SRR3; /* check whether user or kernel */\
158 mfspr r11,SPRN_SPRG_THREAD; /* if from user, start at top of */\
167 mfspr r12,SPRN_DEAR; /* save DEAR and ESR in the frame */\
[all …]
Dhead_44x.S314 mfspr r10, SPRN_DEAR /* Get faulting address */
325 mfspr r12,SPRN_MMUCR
332 mfspr r11,SPRN_SPRG_THREAD
336 mfspr r12,SPRN_MMUCR
337 mfspr r13,SPRN_PID /* Get PID */
356 mfspr r12,SPRN_ESR
395 mfspr r10,SPRN_DEAR
404 mfspr r11, SPRN_SPRG_RSCRATCH4
406 mfspr r13, SPRN_SPRG_RSCRATCH3
407 mfspr r12, SPRN_SPRG_RSCRATCH2
[all …]
Dfsl_booke_entry_mapping.S7 mfspr r7, SPRN_PID0
12 mfspr r7,SPRN_MAS1
16 mfspr r7,SPRN_MMUCFG
21 mfspr r7,SPRN_PID1
26 mfspr r7,SPRN_MAS1
29 mfspr r7, SPRN_PID2
36 mfspr r7,SPRN_MAS0
39 mfspr r7,SPRN_MAS1 /* Insure IPROT set */
45 mfspr r9,SPRN_TLB1CFG
52 mfspr r7,SPRN_MAS1
[all …]
Dhead_booke.h36 mfspr r10, SPRN_SPRG_THREAD; \
40 mfspr r11, SPRN_SRR1; \
52 mfspr r13, SPRN_SPRG_RSCRATCH0; \
59 mfspr r12,SPRN_SRR0; \
61 mfspr r9,SPRN_SRR1; \
100 mfspr r8,SPRN_PIR; \
128 mfspr r11,exc_level_srr1; /* check whether user or kernel */\
131 mfspr r11,SPRN_SPRG_THREAD; /* if from user, start at top of */\
152 2: mfspr r8,SPRN_SPRG_RSCRATCH_##exc_level; \
156 mfspr r12,SPRN_DEAR; /* save DEAR and ESR in the frame */\
[all …]
Dcpu_setup_fsl_booke.S23 mfspr r0, SPRN_L1CSR1
33 mfspr r0, SPRN_L1CSR0
45 1: mfspr r0, SPRN_L1CSR0
62 mfspr r3, SPRN_PWRMGTCR0
81 mfspr r3, SPRN_PWRMGTCR0
100 mfspr r10,SPRN_MMUCFG
117 mfspr r3,SPRN_HID0
133 mfspr r3,SPRN_HID1
151 mfspr r3, SPRN_MMUCFG
179 mfspr r10,SPRN_MMUCFG
[all …]
Dswsusp_booke.S64 mfspr r4,SPRN_TCR
68 1: mfspr r4,SPRN_TBRU
70 mfspr r5,SPRN_TBRL
72 mfspr r3,SPRN_TBRU
77 mfspr r4,SPRN_SPRG0
79 mfspr r4,SPRN_SPRG1
81 mfspr r4,SPRN_SPRG2
83 mfspr r4,SPRN_SPRG3
85 mfspr r4,SPRN_SPRG4
87 mfspr r4,SPRN_SPRG5
[all …]
Dcpu_setup_6xx.S88 mfspr r11,SPRN_HID0
106 mfspr r11,SPRN_HID0
143 mfspr r11,SPRN_MSSSR0
165 mfspr r11,SPRN_HID0
189 mfspr r10, SPRN_HID1
224 mfspr r11,SPRN_L3CR
235 mfspr r11,SPRN_HID0
266 mfspr r3,SPRN_L2CR
269 mfspr r3,SPRN_MSSCR0
329 mfspr r3,SPRN_HID0
[all …]
Dhead_8xx.S128 mfspr r11,SPRN_SRR1; /* check whether user or kernel */ \
132 mfspr r11,SPRN_SPRG_THREAD; \
144 mfspr r10,SPRN_SPRG_SCRATCH0; \
146 mfspr r12,SPRN_SPRG_SCRATCH1; \
150 mfspr r12,SPRN_SRR0; \
151 mfspr r9,SPRN_SRR1; \
166 mfspr r10,SPRN_SPRG_SCRATCH0; \
167 mfspr r11,SPRN_SPRG_SCRATCH1
223 mfspr r4,SPRN_DAR
227 mfspr r5,SPRN_DSISR
[all …]
Dhead_fsl_booke.S197 mfspr r2,SPRN_HID0
222 mfspr r24,SPRN_PIR
379 mfspr r5,SPRN_ESR /* Grab the ESR, save it, pass arg3 */
381 mfspr r4,SPRN_DEAR /* Grab the DEAR, save it, pass arg2 */
442 mfspr r10, SPRN_SPRG_THREAD
446 mfspr r11, SPRN_SRR1
454 mfspr r10, SPRN_DEAR /* Get faulting address */
465 mfspr r12,SPRN_MAS1 /* Set TID to 0 */
473 mfspr r11,SPRN_SPRG_THREAD
490 mfspr r12,SPRN_ESR
[all …]
Dl2cr_6xx.S127 mfspr r8,SPRN_HID0 /* Save HID0 in r8 */
134 mfspr r4,SPRN_L2CR
165 mfspr r4,SPRN_MSSCR0
228 10: mfspr r3,SPRN_L2CR
235 3: mfspr r3,SPRN_L2CR
255 mfspr r3,SPRN_MSSCR0
281 mfspr r3,SPRN_L2CR
311 mfspr r4,SPRN_L3CR
362 10: mfspr r3,SPRN_L3CR
400 mfspr r3,SPRN_L3CR
[all …]
Dexceptions-64e.S96 mfspr r10,SPRN_SPRG_TLB_EXFRAME
104 mfspr r10,SPRN_SRR0
106 mfspr r10,SPRN_SRR1
108 mfspr r10,SPRN_SPRG_GEN_SCRATCH
110 mfspr r10,SPRN_SPRG_TLB_SCRATCH
112 mfspr r10,SPRN_MAS0
114 mfspr r10,SPRN_MAS1
116 mfspr r10,SPRN_MAS2
118 mfspr r10,SPRN_MAS3
120 mfspr r10,SPRN_MAS6
[all …]
Dhead_32.S257 mfspr r11,SPRN_SRR1; /* check whether user or kernel */ \
261 mfspr r11,SPRN_SPRG_THREAD; \
273 mfspr r10,SPRN_SPRG_SCRATCH0; \
275 mfspr r12,SPRN_SPRG_SCRATCH1; \
279 mfspr r12,SPRN_SRR0; \
280 mfspr r9,SPRN_SRR1; \
367 mfspr r11,SPRN_SPRG_RTAS
375 mfspr r4,SPRN_SPRG_RTAS
389 mfspr r10,SPRN_DSISR
393 mfspr r4,SPRN_DAR /* into the hash table */
[all …]
Dexceptions-64s.S39 mfspr r11,SPRN_SRR0 ; \
43 mfspr r12,SPRN_SRR1 ; \
54 1: mfspr r12,SPRN_SRR1 ; \
71 mfspr r12,SPRN_SRR1 ; \
80 mfspr r12,SPRN_SRR1 ; \
107 mfspr r13,SPRN_SRR1
147 mfspr r3,SPRN_SRR1
177 mfspr r13,SPRN_SRR1
182 mfspr r13,SPRN_SRR1
216 mfspr r3,SPRN_DAR
[all …]
Didle_6xx.S34 mfspr r4,SPRN_HID0
44 mfspr r4,SPRN_MSSCR0
49 mfspr r4,SPRN_HID1
97 mfspr r4,SPRN_MSSCR0
116 mfspr r4,SPRN_HID1
123 mfspr r4,SPRN_HID0
171 mfspr r9,SPRN_HID0
Didle_power7.S220 mfspr r3,SPRN_SDR1
222 mfspr r3,SPRN_RPR
224 mfspr r3,SPRN_SPURR
226 mfspr r3,SPRN_PURR
228 mfspr r3,SPRN_TSCR
230 mfspr r3,SPRN_DSCR
232 mfspr r3,SPRN_AMOR
234 mfspr r3,SPRN_WORT
236 mfspr r3,SPRN_WORC
268 mfspr r0,SPRN_SRR1; \
[all …]
Dtm.S59 mfspr r0, SPRN_TFHAR
61 mfspr r0, SPRN_TEXASR
63 mfspr r0, SPRN_TFIAR
159 mfspr r0, SPRN_VRSAVE
200 mfspr r11, SPRN_PPR
238 mfspr r3, SPRN_TFHAR
257 mfspr r3, SPRN_TAR
258 mfspr r4, SPRN_DSCR
271 mfspr r0, SPRN_TEXASR
272 mfspr r3, SPRN_TFHAR
[all …]
Dcpu_setup_power.S30 mfspr r3,SPRN_LPCR
43 mfspr r3,SPRN_LPCR
58 mfspr r3,SPRN_LPCR
77 mfspr r3,SPRN_LPCR
125 mfspr r3,SPRN_FSCR
131 mfspr r3,SPRN_HFSCR
Dpmc.c34 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~(MMCR0_PMXE|MMCR0_PMAO)); in dummy_perf()
36 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_PMXE); in dummy_perf()
86 hid0 = mfspr(SPRN_HID0); in power4_enable_pmcs()
Dentry_32.S48 mfspr r0,SPRN_DSRR0
50 mfspr r0,SPRN_DSRR1
56 mfspr r0,SPRN_CSRR0
58 mfspr r0,SPRN_CSRR1
65 mfspr r0,SPRN_MAS0
67 mfspr r0,SPRN_MAS1
69 mfspr r0,SPRN_MAS2
71 mfspr r0,SPRN_MAS3
73 mfspr r0,SPRN_MAS6
76 mfspr r0,SPRN_MAS7
[all …]
Dtraps.c373 #define get_mc_reason(regs) (mfspr(SPRN_MCSR))
424 u32 mcsr = mfspr(SPRN_MCSR); in machine_check_440A()
462 mcsr = mfspr(SPRN_MCSR); in machine_check_47x()
492 unsigned long mcsr = mfspr(SPRN_MCSR); in machine_check_e500mc()
514 mtspr(SPRN_L1CSR1, mfspr(SPRN_L1CSR1) | L1CSR1_ICFI); in machine_check_e500mc()
515 while (mfspr(SPRN_L1CSR1) & L1CSR1_ICFI) in machine_check_e500mc()
534 if (!(mfspr(SPRN_L1CSR2) & L1CSR2_DCWS)) in machine_check_e500mc()
577 addr = mfspr(SPRN_MCAR); in machine_check_e500mc()
578 addr |= (u64)mfspr(SPRN_MCARU) << 32; in machine_check_e500mc()
586 return mfspr(SPRN_MCSR) == 0 && recoverable; in machine_check_e500mc()
[all …]
Dcpu_setup_pa6t.S36 mfspr r0,SPRN_HID5
40 mfspr r0,SPRN_LPCR
Dmisc_64.S262 mfspr r5,SPRN_HID4
277 mfspr r5,SPRN_HID4
301 mfspr r6,SPRN_HID4
332 mfspr r6,SPRN_HID4
417 mfspr r3,SPRN_SCOMD
419 mfspr r0,SPRN_SCOMC
451 mfspr 3,SPRN_SCOMC
Didle_e500.S66 mfspr r7,SPRN_L2CSR0
72 mfspr r4,SPRN_HID0
Dmisc_32.S184 mfspr r5,SPRN_HID0
193 mfspr r4,SPRN_HID1 /* Build a HID1:PS bit from parameter */
209 mfspr r5,SPRN_HID0
228 mfspr r4,SPRN_HID1
318 mfspr r3,SPRN_L1CSR0
325 mfspr r3,SPRN_L1CSR1
329 mfspr r3,SPRN_PVR
334 mfspr r3,SPRN_HID0
763 mfspr r3,SPRN_PVR
1196 mfspr r3, SPRN_PIR /* current core we are running on */
Dtau_6xx.c82 if((thrm = mfspr(SPRN_THRM1)) & THRM1_TIV){ /* is valid? */ in TAUupdate()
94 if((thrm = mfspr(SPRN_THRM2)) & THRM1_TIV){ /* is valid? */ in TAUupdate()
Ddbell.c25 unsigned long tag = mfspr(SPRN_DOORBELL_CPUTAG) & PPC_DBELL_TAG_MASK; in doorbell_setup_this_cpu()
Dsysfs.c112 *value = mfspr(SPRN_PWRMGTCR0); in do_show_pwrmgtcr0()
133 pw20_state = mfspr(SPRN_PWRMGTCR0); in do_store_pw20_state()
198 pw20_idle = mfspr(SPRN_PWRMGTCR0); in set_pw20_wait_entry_bit()
255 altivec_idle = mfspr(SPRN_PWRMGTCR0); in do_store_altivec_idle()
320 altivec_idle = mfspr(SPRN_PWRMGTCR0); in set_altivec_idle_wait_entry_bit()
410 *(unsigned long *)val = mfspr(ADDRESS); \
Dcpu_setup_44x.S52 mfspr r3,SPRN_CCR0
Dhead_64.S200 mfspr r3, SPRN_PIR
383 mfspr r0,SPRN_PVR
572 mfspr r3,SPRN_HID4
Dentry_64.S419 mfspr r24,SPRN_VRSAVE /* save vrsave register value */
436 mfspr r0, SPRN_BESCR
438 mfspr r0, SPRN_EBBHR
440 mfspr r0, SPRN_EBBRR
562 mfspr r8, SPRN_FSCR
976 mfspr r6,SPRN_XER
Dprocess.c271 tsk->thread.spefscr = mfspr(SPRN_SPEFSCR); in flush_spe_to_thread()
877 cu->current_tb = current_tb = mfspr(SPRN_PURR); in __switch_to()
1364 tsk->thread.spefscr_last = mfspr(SPRN_SPEFSCR); in set_fpexc_mode()
1409 tsk->thread.spefscr_last = mfspr(SPRN_SPEFSCR); in get_fpexc_mode()
1611 ctrl = mfspr(SPRN_CTRLF); in __ppc64_runlatch_on()
1626 ctrl = mfspr(SPRN_CTRLF); in __ppc64_runlatch_off()
Dsetup_64.c212 unsigned long lpcr = mfspr(SPRN_LPCR); in cpu_ready_for_interrupts()
243 identify_cpu(0, mfspr(SPRN_PVR)); in early_setup()
Dtime.c190 return mfspr(SPRN_SPURR); in read_spurr()
192 return mfspr(SPRN_PURR); in read_spurr()
517 cu->current_tb = mfspr(SPRN_PURR); in __timer_interrupt()
Dsetup_32.c86 spec = identify_cpu(offset, mfspr(SPRN_PVR)); in early_init()
Dvector.S125 mfspr r4,SPRN_VRSAVE
133 mfspr r5,SPRN_SPRG_THREAD /* current task's THREAD (phys) */
Dsmp.c352 per_cpu(cpu_pvr, id) = mfspr(SPRN_PVR); in smp_store_cpu_info()
355 = (mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY) - 1; in smp_store_cpu_info()
Dswsusp_asm64.S57 mfspr r0, SPRN_##register ;\
Dfpu.S166 mfspr r5,SPRN_SPRG_THREAD /* current task's THREAD (phys) */
Dkgdb.c430 mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); in kgdb_arch_handle_exception()
Dsignal_64.c116 current->thread.vrsave = mfspr(SPRN_VRSAVE); in setup_sigcontext()
234 current->thread.vrsave = mfspr(SPRN_VRSAVE); in setup_tm_sigcontexts()
Dsetup-common.c231 pvr = mfspr(SPRN_PVR); in show_cpuinfo()
Dbtext.c97 if (PVR_VER(mfspr(SPRN_PVR)) != 1) { in btext_prepare_BAT()
Dsignal_32.c441 current->thread.vrsave = mfspr(SPRN_VRSAVE); in save_user_regs()
576 current->thread.vrsave = mfspr(SPRN_VRSAVE); in save_tm_user_regs()
Dvdso.c749 vdso_data->processor = mfspr(SPRN_PVR); in vdso_init()
/linux-4.1.27/arch/powerpc/kvm/
Dbook3s_hv_interrupts.S55 mfspr r3, SPRN_DSCR
60 mfspr r3, SPRN_DABR
76 mfspr r8, SPRN_MMCR2
82 mfspr r7, SPRN_MMCR0 /* save MMCR0 */
84 mfspr r6, SPRN_MMCRA
93 mfspr r5, SPRN_MMCR1
94 mfspr r9, SPRN_SIAR
95 mfspr r10, SPRN_SDAR
102 mfspr r9, SPRN_SIER
106 mfspr r3, SPRN_PMC1
[all …]
Dbookehv_interrupts.S78 mfspr r10, SPRN_PID
89 1: mfspr r7, SPRN_TBRU
90 mfspr r8, SPRN_TBRL
91 mfspr r9, SPRN_TBRU
153 mfspr r8, SPRN_ESR
158 mfspr r9, SPRN_DEAR
195 mfspr r12, \scratch
197 mfspr r5, \scratch
209 mfspr r5, \srr0
210 mfspr r6, \srr1
[all …]
De500mc.c80 val = mfspr(SPRN_MAS1); in kvmppc_e500_tlbil_one()
146 if (vcpu->arch.oldpir != mfspr(SPRN_PIR) || in kvmppc_core_vcpu_load_e500mc()
155 vcpu->arch.eplc = mfspr(SPRN_EPLC); in kvmppc_core_vcpu_put_e500mc()
156 vcpu->arch.epsc = mfspr(SPRN_EPSC); in kvmppc_core_vcpu_put_e500mc()
158 vcpu->arch.shared->sprg0 = mfspr(SPRN_GSPRG0); in kvmppc_core_vcpu_put_e500mc()
159 vcpu->arch.shared->sprg1 = mfspr(SPRN_GSPRG1); in kvmppc_core_vcpu_put_e500mc()
160 vcpu->arch.shared->sprg2 = mfspr(SPRN_GSPRG2); in kvmppc_core_vcpu_put_e500mc()
161 vcpu->arch.shared->sprg3 = mfspr(SPRN_GSPRG3); in kvmppc_core_vcpu_put_e500mc()
163 vcpu->arch.shared->srr0 = mfspr(SPRN_GSRR0); in kvmppc_core_vcpu_put_e500mc()
164 vcpu->arch.shared->srr1 = mfspr(SPRN_GSRR1); in kvmppc_core_vcpu_put_e500mc()
[all …]
Dbook3s_hv_rmhandlers.S176 mfspr r3, SPRN_HDEC
243 mfspr r0, SPRN_HDEC
283 mfspr r0, SPRN_CTRLF
370 mfspr r4, SPRN_LPCR
552 mfspr r5,SPRN_PURR
553 mfspr r6,SPRN_SPURR
844 mfspr r6,SPRN_CTRLF
868 mfspr r3, SPRN_HDEC
897 mfspr r8, SPRN_LPCR
905 mfspr r0, SPRN_DEC
[all …]
Dbooke_interrupts.S59 mfspr r4, SPRN_SPRG_THREAD
64 mfspr r3, \scratch
68 mfspr r3, \srr0
85 mfspr r4, SPRN_SPRG_THREAD
89 mfspr r4, SPRN_CSRR1
93 mfspr r4, SPRN_CSRR1
99 mfspr r4, SPRN_SPRG_THREAD
103 mfspr r4, \scratch
107 mfspr r4, SPRN_SPRG_THREAD
110 mfspr r4, \scratch
[all …]
Dbook3s_rmhandlers.S62 mfspr r13, SPRN_SPRG_THREAD
70 mfspr r12, SPRN_SPRG_SCRATCH1
71 mfspr r13, SPRN_SPRG_SCRATCH0 /* r13 = original r13 */
76 mfspr r12, SPRN_SPRG_SCRATCH1
Dbook3s_segment.S95 mfspr r8, SPRN_FSCR
114 mfspr r0,SPRN_HID5
211 mfspr r3,SPRN_HSRR0
212 mfspr r4,SPRN_HSRR1
321 mfspr r5,SPRN_HID5
331 mfspr r7, SPRN_FSCR
De500_mmu_host.c115 mas4 = mfspr(SPRN_MAS4); in get_host_mas0()
118 mas0 = mfspr(SPRN_MAS0); in get_host_mas0()
653 mas1 = mfspr(SPRN_MAS1); in kvmppc_load_last_inst()
654 mas2 = mfspr(SPRN_MAS2); in kvmppc_load_last_inst()
655 mas3 = mfspr(SPRN_MAS3); in kvmppc_load_last_inst()
657 mas7_mas3 = mfspr(SPRN_MAS7_MAS3); in kvmppc_load_last_inst()
659 mas7_mas3 = ((u64)mfspr(SPRN_MAS7) << 32) | mas3; in kvmppc_load_last_inst()
769 host_tlb_params[0].entries = mfspr(SPRN_TLB0CFG) & TLBnCFG_N_ENTRY; in e500_mmu_host_init()
770 host_tlb_params[1].entries = mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY; in e500_mmu_host_init()
783 host_tlb_params[0].ways = (mfspr(SPRN_TLB0CFG) & TLBnCFG_ASSOC) >> in e500_mmu_host_init()
De500.c279 val = mfspr(SPRN_MAS1); in kvmppc_e500_tlbil_one()
356 vcpu->arch.pvr = mfspr(SPRN_PVR); in kvmppc_core_vcpu_setup()
357 vcpu_e500->svr = mfspr(SPRN_SVR); in kvmppc_core_vcpu_setup()
537 ivor[0] = mfspr(SPRN_IVOR32); in kvmppc_e500_init()
538 ivor[1] = mfspr(SPRN_IVOR33); in kvmppc_e500_init()
539 ivor[2] = mfspr(SPRN_IVOR34); in kvmppc_e500_init()
Dbooke.c940 vcpu->arch.dbsr = mfspr(SPRN_DBSR); in kvmppc_restart_interrupt()
1022 printk("MACHINE CHECK: %lx\n", mfspr(SPRN_MCSR)); in kvmppc_handle_exit()
1026 run->hw.hardware_exit_reason |= mfspr(SPRN_MCSR); in kvmppc_handle_exit()
2123 ivor[0] = mfspr(SPRN_IVOR0); in kvmppc_booke_init()
2124 ivor[1] = mfspr(SPRN_IVOR1); in kvmppc_booke_init()
2125 ivor[2] = mfspr(SPRN_IVOR2); in kvmppc_booke_init()
2126 ivor[3] = mfspr(SPRN_IVOR3); in kvmppc_booke_init()
2127 ivor[4] = mfspr(SPRN_IVOR4); in kvmppc_booke_init()
2128 ivor[5] = mfspr(SPRN_IVOR5); in kvmppc_booke_init()
2129 ivor[6] = mfspr(SPRN_IVOR6); in kvmppc_booke_init()
[all …]
Dbook3s_pr.c107 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) & ~LPCR_AIL); in kvmppc_core_vcpu_load_pr()
139 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) | LPCR_AIL_3); in kvmppc_core_vcpu_put_pr()
177 vcpu->arch.entry_ic = mfspr(SPRN_IC); in kvmppc_copy_to_svcpu()
231 vcpu->arch.ic += mfspr(SPRN_IC) - vcpu->arch.entry_ic; in kvmppc_copy_from_svcpu()
475 mtspr(SPRN_HID2_GEKKO, mfspr(SPRN_HID2_GEKKO) | (1 << 29)); in kvmppc_set_pvr_pr()
701 vcpu->arch.tar = mfspr(SPRN_TAR); in kvmppc_giveup_fac()
859 current->thread.tar = mfspr(SPRN_TAR); in kvmppc_handle_fac()
1420 vcpu->arch.pvr = mfspr(SPRN_PVR); in kvmppc_core_vcpu_create_pr()
Dbooke.h127 mtspr(SPRN_DBSR, mfspr(SPRN_DBSR)); in kvmppc_clear_dbsr()
De500_mmu.c876 vcpu->arch.mmucfg = mfspr(SPRN_MMUCFG) & ~MMUCFG_LPIDSIZE; in vcpu_mmu_init()
879 vcpu->arch.tlbcfg[0] = mfspr(SPRN_TLB0CFG) & in vcpu_mmu_init()
884 vcpu->arch.tlbcfg[1] = mfspr(SPRN_TLB1CFG) & in vcpu_mmu_init()
890 vcpu->arch.tlbps[0] = mfspr(SPRN_TLB0PS); in vcpu_mmu_init()
891 vcpu->arch.tlbps[1] = mfspr(SPRN_TLB1PS); in vcpu_mmu_init()
Dbook3s_hv_rm_xics.c65 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) | LPCR_MER); in icp_rm_set_vcpu_irq()
88 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) & ~LPCR_MER); in icp_rm_clr_vcpu_irq()
Dbook3s_hv.c1635 kvmppc_set_pvr_hv(vcpu, mfspr(SPRN_PVR)); in kvmppc_core_vcpu_create_hv()
2539 kvm->arch.host_sdr1 = mfspr(SPRN_SDR1); in kvmppc_core_init_vm_hv()
2542 kvm->arch.host_lpid = mfspr(SPRN_LPID); in kvmppc_core_init_vm_hv()
2543 kvm->arch.host_lpcr = lpcr = mfspr(SPRN_LPCR); in kvmppc_core_init_vm_hv()
Dpowerpc.c712 vcpu->arch.vrsave = mfspr(SPRN_VRSAVE); in kvm_arch_vcpu_put()
Dbook3s_64_mmu_hv.c233 host_lpid = mfspr(SPRN_LPID); in kvmppc_mmu_hv_init()
/linux-4.1.27/arch/powerpc/platforms/83xx/
Dsuspend-asm.S72 mfspr r5, SPRN_HID0
73 mfspr r6, SPRN_HID1
74 mfspr r7, SPRN_HID2
80 mfspr r4, SPRN_IABR
81 mfspr r5, SPRN_IABR2
82 mfspr r6, SPRN_IBCR
83 mfspr r7, SPRN_DABR
84 mfspr r8, SPRN_DABR2
85 mfspr r9, SPRN_DBCR
94 mfspr r4, SPRN_SPRG0
[all …]
Dkm83xx.c53 uint svid = mfspr(SPRN_SVR); in quirk_mpc8360e_qe_enet10()
Dmpc836x_mds.c116 svid = mfspr(SPRN_SVR); in mpc836x_mds_setup_arch()
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
Debb.c40 val = mfspr(SPRN_MMCR0); in reset_ebb_with_clear_mask()
62 val = mfspr(SPRN_MMCR0); in ebb_check_mmcr0()
105 val = mfspr(SPRN_BESCR); in standard_ebb_callee()
114 val = mfspr(SPRN_MMCR0); in standard_ebb_callee()
222 mmcr0 = mfspr(SPRN_MMCR0); in dump_ebb_hw_state()
223 bescr = mfspr(SPRN_BESCR); in dump_ebb_hw_state()
237 mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2), in dump_ebb_hw_state()
238 mfspr(SPRN_EBBHR), bescr, decode_bescr(bescr), in dump_ebb_hw_state()
239 mfspr(SPRN_PMC1), mfspr(SPRN_PMC2), mfspr(SPRN_PMC3), in dump_ebb_hw_state()
240 mfspr(SPRN_PMC4), mfspr(SPRN_PMC5), mfspr(SPRN_PMC6), in dump_ebb_hw_state()
[all …]
Dcycles_with_freeze_test.c30 val = mfspr(SPRN_BESCR); in ebb_callee()
39 val = mfspr(SPRN_MMCR0); in ebb_callee()
82 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in cycles_with_freeze()
88 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) | MMCR0_FC); in cycles_with_freeze()
90 val = mfspr(SPRN_MMCR0); in cycles_with_freeze()
Dback_to_back_ebbs_test.c31 val = mfspr(SPRN_BESCR); in ebb_callee()
52 siar = mfspr(SPRN_SIAR); in ebb_callee()
55 val = mfspr(SPRN_PMC1); in ebb_callee()
58 val = mfspr(SPRN_MMCR0); in ebb_callee()
Dclose_clears_pmcc_test.c49 mfspr(SPRN_EBBHR); in close_clears_pmcc()
50 mfspr(SPRN_EBBRR); in close_clears_pmcc()
51 mfspr(SPRN_BESCR); in close_clears_pmcc()
Dfork_cleanup_test.c30 FAIL_IF(mfspr(SPRN_BESCR) != 0); in child()
31 FAIL_IF(mfspr(SPRN_EBBHR) != 0); in child()
32 FAIL_IF(mfspr(SPRN_EBBRR) != 0); in child()
Dpmc56_overflow_test.c23 val = mfspr(SPRN_BESCR); in ebb_callee()
32 val = mfspr(SPRN_PMC5); in ebb_callee()
38 val = mfspr(SPRN_PMC6); in ebb_callee()
Dpmae_handling_test.c35 val = mfspr(SPRN_BESCR); in syscall_ebb_callee()
44 before = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
49 after = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
Dinstruction_count_test.c35 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in do_count_loop()
41 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) | MMCR0_FC); in do_count_loop()
94 val = mfspr(SPRN_BESCR); in pmc4_ebb_callee()
126 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in instruction_count()
Dreg_access_test.c23 val = mfspr(SPRN_BESCR); in reg_access()
29 val = mfspr(SPRN_EBBHR); in reg_access()
Dno_handler_test.c32 val = mfspr(SPRN_EBBHR); in no_handler_test()
46 val = mfspr(SPRN_MMCR0); in no_handler_test()
Dreg.h12 #define mfspr(rn) ({unsigned long rval; \ macro
Dcycles_with_mmcr2_test.c60 val = mfspr(SPRN_MMCR2); in cycles_with_mmcr2()
/linux-4.1.27/arch/powerpc/include/asm/
Doprofile_impl.h75 return mfspr(SPRN_PMC1); in classic_ctr_read()
77 return mfspr(SPRN_PMC2); in classic_ctr_read()
79 return mfspr(SPRN_PMC3); in classic_ctr_read()
81 return mfspr(SPRN_PMC4); in classic_ctr_read()
83 return mfspr(SPRN_PMC5); in classic_ctr_read()
85 return mfspr(SPRN_PMC6); in classic_ctr_read()
90 return mfspr(SPRN_PMC7); in classic_ctr_read()
92 return mfspr(SPRN_PMC8); in classic_ctr_read()
Dexception-64e.h99 mfspr r12,SPRN_SPRG_TLB_EXFRAME; \
103 mfspr r11,SPRN_SPRG_TLB_SCRATCH; \
105 mfspr r13,SPRN_SPRG_PACA; \
109 mfspr r15,SPRN_SRR1; \
111 mfspr r16,SPRN_SRR0; \
Dswitch_to.h22 prev->tar = mfspr(SPRN_TAR); in save_early_sprs()
24 prev->dscr = mfspr(SPRN_DSCR); in save_early_sprs()
Dreg.h976 mfspr rX,SPRN_SPRG_PACA; \
978 mfspr rX,SPRN_SPRG_HPACA; \
990 mfspr rX,SPRN_SPRG_SCRATCH0; \
992 mfspr rX,SPRN_SPRG_HSCRATCH0; \
1003 #define GET_SCRATCH0(rX) mfspr rX,SPRN_SPRG_SCRATCH0
1020 #define GET_PACA(rX) mfspr rX,SPRN_SPRG_PACA
1091 #define pvr_version_is(pvr) (PVR_VER(mfspr(SPRN_PVR)) == (pvr))
1205 #define mfspr(rn) ({unsigned long rval; \ macro
1216 return mfspr(SPRN_VTB); in mfvtb()
Dexception-64s.h56 mfspr r11,SPRN_##h##SRR0; /* save SRR0 */ \
59 mfspr r12,SPRN_##h##SRR1; /* and SRR1 */ \
66 mfspr r11,SPRN_##h##SRR0; /* save SRR0 */ \
67 mfspr r12,SPRN_##h##SRR1; /* and SRR1 */ \
146 mfspr ra,spr; \
189 mfspr r11,SPRN_##h##SRR0; /* save SRR0 */ \
192 mfspr r12,SPRN_##h##SRR1; /* and SRR1 */ \
343 mfspr r11,SPRN_XER; /* save XER in stackframe */ \
Dtime.h155 return (mfspr(SPRN_PIT)); in get_dec()
157 return (mfspr(SPRN_DEC)); in get_dec()
Dprobes.h58 mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); in enable_single_step()
Dkvm_ppc.h463 return mfspr(SPRN_GEPR); in kvmppc_get_epr()
554 return mfspr(bookehv_spr); \
Dppc_asm.h387 90: mfspr dest, SPRN_TBRL; \
395 #define MFTB(dest) mfspr dest, SPRN_TBRL
/linux-4.1.27/arch/powerpc/oprofile/
Dop_model_pa6t.c45 return mfspr(SPRN_PA6T_PMC0); in ctr_read()
47 return mfspr(SPRN_PA6T_PMC1); in ctr_read()
49 return mfspr(SPRN_PA6T_PMC2); in ctr_read()
51 return mfspr(SPRN_PA6T_PMC3); in ctr_read()
53 return mfspr(SPRN_PA6T_PMC4); in ctr_read()
55 return mfspr(SPRN_PA6T_PMC5); in ctr_read()
155 mfspr(SPRN_PA6T_MMCR0)); in pa6t_cpu_setup()
157 mfspr(SPRN_PA6T_MMCR1)); in pa6t_cpu_setup()
189 mmcr0 = mfspr(SPRN_PA6T_MMCR0); in pa6t_stop()
202 unsigned long pc = mfspr(SPRN_PA6T_SIAR); in pa6t_handle_interrupt()
[all …]
Dop_model_power4.c195 mfspr(SPRN_MMCR0)); in power4_cpu_setup()
197 mfspr(SPRN_MMCR1)); in power4_cpu_setup()
199 mfspr(SPRN_MMCRA)); in power4_cpu_setup()
220 mmcr0 = mfspr(SPRN_MMCR0); in power4_start()
247 mmcr0 = mfspr(SPRN_MMCR0); in power4_stop()
283 unsigned long pc = mfspr(SPRN_SIAR); in get_pc()
291 mmcra = mfspr(SPRN_MMCRA); in get_pc()
374 mmcra = mfspr(SPRN_MMCRA); in power4_handle_interrupt()
412 mmcr0 = mfspr(SPRN_MMCR0); in power4_handle_interrupt()
Dop_model_7450.c61 u32 mmcr0 = mfspr(SPRN_MMCR0); in pmc_start_ctrs()
72 u32 mmcr0 = mfspr(SPRN_MMCR0); in pmc_stop_ctrs()
183 pc = mfspr(SPRN_SIAR); in fsl7450_handle_interrupt()
/linux-4.1.27/arch/openrisc/kernel/
Dsetup.c111 unsigned long upr = mfspr(SPR_UPR); in print_cpuinfo()
112 unsigned long vr = mfspr(SPR_VR); in print_cpuinfo()
143 1 << ((mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTS) >> 2), in print_cpuinfo()
144 1 + (mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTW)); in print_cpuinfo()
147 1 << ((mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTS) >> 2), in print_cpuinfo()
148 1 + (mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTW)); in print_cpuinfo()
175 iccfgr = mfspr(SPR_ICCFGR); in setup_cpuinfo()
182 dccfgr = mfspr(SPR_DCCFGR); in setup_cpuinfo()
328 vr = mfspr(SPR_VR); in show_cpuinfo()
350 1 << ((mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_NTS) >> 2), in show_cpuinfo()
[all …]
Dhead.S158 l.mfspr r30,r0,SPR_ESR_BASE ;\
180 l.mfspr r12,r0,SPR_EPCR_BASE ;\
182 l.mfspr r12,r0,SPR_ESR_BASE ;\
195 l.mfspr r4,r0,SPR_EEAR_BASE ;\
237 l.mfspr r3,r0,SPR_NPC ;\
244 l.mfspr r3,r0,SPR_EPCR_BASE ;\
260 l.mfspr r12,r0,SPR_EPCR_BASE ;\
262 l.mfspr r12,r0,SPR_ESR_BASE ;\
277 l.mfspr r4,r0,SPR_EEAR_BASE ;\
547 l.mfspr r30,r0,SPR_SR
[all …]
Dtime.c39 c = mfspr(SPR_TTCR); in openrisc_timer_set_next_event()
146 return (cycle_t) mfspr(SPR_TTCR); in openrisc_timer_read()
172 upr = mfspr(SPR_UPR); in time_init()
Dirq.c28 return mfspr(SPR_SR) & (SPR_SR_IEE|SPR_SR_TEE); in arch_local_save_flags()
35 mtspr(SPR_SR, ((mfspr(SPR_SR) & ~(SPR_SR_IEE|SPR_SR_TEE)) | flags)); in arch_local_irq_restore()
Dprocess.c198 unsigned long sr = mfspr(SPR_SR) & ~SPR_SR_SM; in start_thread()
Dentry.S32 l.mfspr t2,r0,SPR_SR ;\
39 l.mfspr t1,r0,SPR_SR ;\
254 l.mfspr r6,r0,SPR_SR // SR
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dcache.S60 mfspr r8,SPRN_HID0 /* Save SPRN_HID0 in r8 */
89 mfspr r3,SPRN_HID0
103 mfspr r5,SPRN_L2CR
160 1: mfspr r3,SPRN_L2CR
171 mfspr r0,SPRN_HID0
179 mfspr r0,SPRN_HID0
207 mfspr r0,SPRN_MSSCR0
249 mfspr r6,SPRN_LDSTCR
274 mfspr r3,SPRN_L2CR
294 3: mfspr r0,SPRN_L2CR /* wait for it to go to 0 */
[all …]
Dsleep.S188 mfspr r2,SPRN_HID0
222 mfspr r3,SPRN_HID0
Dsetup.c283 pvr = PVR_VER(mfspr(SPRN_PVR)); in pmac_setup_arch()
Dsmp.c277 if (PVR_VER(mfspr(SPRN_PVR)) == 1) in smp_psurge_probe()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dsubcore-asm.S47 mfspr r6, SPRN_LDBAR
48 mfspr r7, SPRN_PMMAR
49 mfspr r8, SPRN_PMCR
50 mfspr r9, SPRN_RPR
51 mfspr r10, SPRN_SDR1
64 1: mfspr r4, SPRN_HID0
Dsubcore.c184 while (mfspr(SPRN_HID0) & mask) in unsplit_core()
191 hid0 = mfspr(SPRN_HID0); in unsplit_core()
196 while (mfspr(SPRN_HID0) & mask) in unsplit_core()
228 hid0 = mfspr(SPRN_HID0); in split_core()
234 while (!(mfspr(SPRN_HID0) & split_parms[i].mask)) in split_core()
Dsetup.c292 uint64_t lpcr_val = mfspr(SPRN_LPCR) & ~(u64)LPCR_PECE1; in pnv_save_sprs_for_winkle()
293 uint64_t hid0_val = mfspr(SPRN_HID0); in pnv_save_sprs_for_winkle()
294 uint64_t hid1_val = mfspr(SPRN_HID1); in pnv_save_sprs_for_winkle()
295 uint64_t hid4_val = mfspr(SPRN_HID4); in pnv_save_sprs_for_winkle()
296 uint64_t hid5_val = mfspr(SPRN_HID5); in pnv_save_sprs_for_winkle()
297 uint64_t hmeer_val = mfspr(SPRN_HMEER); in pnv_save_sprs_for_winkle()
Dsmp.c173 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) & ~(u64)LPCR_PECE1); in pnv_smp_cpu_kill_self()
215 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) | LPCR_PECE1); in pnv_smp_cpu_kill_self()
/linux-4.1.27/arch/powerpc/boot/
Dutil.S45 mfspr r4,SPRN_PVR
79 1: mfspr r5, SPRN_TBRU
80 mfspr r6, SPRN_TBRL
81 mfspr r7, SPRN_TBRU
90 2: mfspr r5, SPRN_TBRU
98 mfspr r6, SPRN_TBRL
Dwii-head.S100 mfspr 8, 0x3f3 /* HID4 */
105 mfspr 8, 0x3f0 /* HID0 */
Dreg.h22 #define mfspr(rn) ({unsigned long rval; \ macro
Dps3-head.S49 mfspr r3, 0x88
Dtreeboot-iss4xx.c73 pir_reg = mfspr(SPRN_PIR); in platform_init()
Dgamecube-head.S81 mfspr 8, 0x3f0 /* HID0 */
Dtreeboot-currituck.c101 pir_reg = mfspr(SPRN_PIR); in platform_init()
Dtreeboot-akebono.c145 pir_reg = mfspr(SPRN_PIR); in platform_init()
D4xx.c466 ccr1 = mfspr(SPRN_CCR1); in __ibm440eplike_fixup_clocks()
/linux-4.1.27/drivers/irqchip/
Dirq-or1k-pic.c33 mtspr(SPR_PICMR, mfspr(SPR_PICMR) & ~(1UL << data->hwirq)); in or1k_pic_mask()
38 mtspr(SPR_PICMR, mfspr(SPR_PICMR) | (1UL << data->hwirq)); in or1k_pic_unmask()
48 mtspr(SPR_PICMR, mfspr(SPR_PICMR) & ~(1UL << data->hwirq)); in or1k_pic_mask_ack()
60 mtspr(SPR_PICSR, mfspr(SPR_PICSR) & ~(1UL << data->hwirq)); in or1k_pic_or1200_ack()
65 mtspr(SPR_PICMR, mfspr(SPR_PICMR) & ~(1UL << data->hwirq)); in or1k_pic_or1200_mask_ack()
66 mtspr(SPR_PICSR, mfspr(SPR_PICSR) & ~(1UL << data->hwirq)); in or1k_pic_or1200_mask_ack()
110 hwirq = ffs(mfspr(SPR_PICSR) >> first); in pic_get_irq()
/linux-4.1.27/arch/powerpc/mm/
Dtlb_low_64e.S52 mfspr r12,SPRN_SPRG_TLB_EXFRAME
55 mfspr r13,SPRN_SPRG_PACA
61 mfspr r11, SPRN_SRR1
66 mfspr r16,\addr /* get faulting address */
84 mfspr r12,SPRN_SPRG_GEN_SCRATCH
113 mfspr r11,SPRN_ESR
216 mfspr r10,SPRN_MAS1
343 mfspr r15,SPRN_MAS1
348 mfspr r10,SPRN_MAS8
353 mfspr r10,SPRN_MAS1
[all …]
Dtlb_nohash.c437 unsigned int mmucfg = mfspr(SPRN_MMUCFG); in setup_page_sizes()
441 unsigned int tlb1cfg = mfspr(SPRN_TLB1CFG); in setup_page_sizes()
470 tlb0cfg = mfspr(SPRN_TLB0CFG); in setup_page_sizes()
471 tlb1cfg = mfspr(SPRN_TLB1CFG); in setup_page_sizes()
472 tlb1ps = mfspr(SPRN_TLB1PS); in setup_page_sizes()
473 eptcfg = mfspr(SPRN_EPTCFG); in setup_page_sizes()
501 tlb0cfg = mfspr(SPRN_TLB0CFG); in setup_page_sizes()
502 tlb0ps = mfspr(SPRN_TLB0PS); in setup_page_sizes()
503 eptcfg = mfspr(SPRN_EPTCFG); in setup_page_sizes()
633 num_cams = (mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY) / 4; in early_init_this_mmu()
D44x_mmu.c91 unsigned int mmube0 = mfspr(SPRN_MMUBE0); in ppc47x_find_free_bolted()
92 unsigned int mmube1 = mfspr(SPRN_MMUBE1); in ppc47x_find_free_bolted()
111 unsigned int mmube0 = mfspr(SPRN_MMUBE0); in ppc47x_update_boltmap()
112 unsigned int mmube1 = mfspr(SPRN_MMUBE1); in ppc47x_update_boltmap()
Dtlb_nohash_low.S48 mfspr r6,SPRN_PID
76 mfspr r5,SPRN_MMUCR
199 mfspr r5,SPRN_MMUCR
258 mfspr r3,SPRN_MMUCSR0
273 mfspr r4,SPRN_MAS6 /* save MAS6 */
282 mfspr r3,SPRN_MMUCSR0
302 mfspr r4,SPRN_MAS1 /* check valid */
Dfsl_booke_mmu.c155 if ((mfspr(SPRN_MMUCFG) & MMUCFG_MAVN) == MMUCFG_MAVN_V1) { in calc_cam_sz()
157 max_cam = ((mfspr(SPRN_TLB1CFG) >> 16) & 0xf) * 2 + 10; in calc_cam_sz()
162 max_cam = __ilog2(mfspr(SPRN_TLB1PS)) + 10; in calc_cam_sz()
195 get_paca()->tcd.esel_max = mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY; in map_mem_in_cams_addr()
Dppc_mmu_32.c128 if (PVR_VER(mfspr(SPRN_PVR)) != 1) { in setbat()
285 if (PVR_VER(mfspr(SPRN_PVR)) == 1) in setup_initial_memory_limit()
Dhugetlbpage-book3e.c34 ncams = mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY; in tlb1_next()
Dmem.c359 (mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY) - 1; in mem_init()
Dhash_low_32.S71 mfspr r8,SPRN_SPRG_THREAD /* current task's THREAD (phys) */
/linux-4.1.27/arch/powerpc/platforms/52xx/
Dmpc52xx_sleep.S37 mfspr r10, SPRN_HID0
53 mfspr r10, SPRN_HID0
129 mfspr r7, 311 /* MBAR */
137 mfspr r7, 311 /* MBAR */
148 mfspr r8, SPRN_SPRG1
149 mfspr r7, SPRN_SPRG0
Dlite5200_sleep.S23 mfspr r10, SPRN_##reg; \
93 mfspr r3, SPRN_HID0
226 mfspr r10, SPRN_HID0
Dmpc52xx_pm.c147 hid0 = mfspr(SPRN_HID0); in mpc52xx_pm_enter()
Dmpc52xx_common.c82 if ((mfspr(SPRN_SVR) & MPC5200_SVR_MASK) == MPC5200_SVR) in mpc5200_setup_xlb_arbiter()
/linux-4.1.27/arch/powerpc/perf/
Dcore-book3s.c193 *addrp = mfspr(SPRN_SDAR); in perf_get_data_addr()
245 unsigned long siar = mfspr(SPRN_SIAR); in perf_get_misc_flags()
270 unsigned long mmcra = mfspr(SPRN_MMCRA); in perf_read_regs()
277 regs->dar = mfspr(SPRN_SIER); in perf_read_regs()
557 current->thread.siar = mfspr(SPRN_SIAR); in ebb_switch_out()
558 current->thread.sier = mfspr(SPRN_SIER); in ebb_switch_out()
559 current->thread.sdar = mfspr(SPRN_SDAR); in ebb_switch_out()
561 current->thread.mmcr2 = mfspr(SPRN_MMCR2) & MMCR2_USER_MASK; in ebb_switch_out()
663 pmcs[0] = mfspr(SPRN_PMC1); in pmao_restore_workaround()
664 pmcs[1] = mfspr(SPRN_PMC2); in pmao_restore_workaround()
[all …]
Dpower8-pmu.c691 mtspr(SPRN_MMCRA, (mfspr(SPRN_MMCRA) | pmu_bhrb_filter)); in power8_config_bhrb()
/linux-4.1.27/arch/openrisc/mm/
Dtlb.c37 #define NUM_DTLB_SETS (1 << ((mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTS) >> \
39 #define NUM_ITLB_SETS (1 << ((mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_NTS) >> \
67 #define have_dtlbeir (mfspr(SPR_DMMUCFGR) & SPR_DMMUCFGR_TEIRI)
68 #define have_itlbeir (mfspr(SPR_IMMUCFGR) & SPR_IMMUCFGR_TEIRI)
/linux-4.1.27/drivers/cpufreq/
Dpmac32-cpufreq.c124 hid2 = mfspr(SPRN_HID2); in cpu_750fx_cpu_speed()
135 hid2 = mfspr(SPRN_HID2); in cpu_750fx_cpu_speed()
150 if (mfspr(SPRN_HID1) & HID1_PS) in cpu_750fx_get_cpu_speed()
183 if (mfspr(SPRN_HID1) & HID1_DFS) in dfs_get_cpu_speed()
245 printk(KERN_DEBUG "HID1, before: %x\n", mfspr(SPRN_HID1)); in pmu_set_cpu_speed()
304 printk(KERN_DEBUG "HID1, after: %x\n", mfspr(SPRN_HID1)); in pmu_set_cpu_speed()
588 pvr = mfspr(SPRN_PVR); in pmac_cpufreq_init_750FX()
632 PVR_VER(mfspr(SPRN_PVR)) == 0x8003) { in pmac_cpufreq_setup()
667 else if (PVR_VER(mfspr(SPRN_PVR)) == 0x7000) in pmac_cpufreq_setup()
Dpowernv-cpufreq.c183 return mfspr(SPRN_PMCR); in get_pmspr()
186 return mfspr(SPRN_PMICR); in get_pmspr()
189 return mfspr(SPRN_PMSR); in get_pmspr()
Dmaple-cpufreq.c183 pvr_hi = PVR_VER(mfspr(SPRN_PVR)); in maple_cpufreq_init()
/linux-4.1.27/arch/powerpc/platforms/85xx/
Dstx_gp3.c77 pvid = mfspr(SPRN_PVR); in stx_gp3_show_cpuinfo()
78 svid = mfspr(SPRN_SVR); in stx_gp3_show_cpuinfo()
85 phid1 = mfspr(SPRN_HID1); in stx_gp3_show_cpuinfo()
Dtqm85xx.c76 pvid = mfspr(SPRN_PVR); in tqm85xx_show_cpuinfo()
77 svid = mfspr(SPRN_SVR); in tqm85xx_show_cpuinfo()
84 phid1 = mfspr(SPRN_HID1); in tqm85xx_show_cpuinfo()
Dsbc8548.c103 pvid = mfspr(SPRN_PVR); in sbc8548_show_cpuinfo()
104 svid = mfspr(SPRN_SVR); in sbc8548_show_cpuinfo()
112 phid1 = mfspr(SPRN_HID1); in sbc8548_show_cpuinfo()
Dksi8560.c150 pvid = mfspr(SPRN_PVR); in ksi8560_show_cpuinfo()
151 svid = mfspr(SPRN_SVR); in ksi8560_show_cpuinfo()
168 phid1 = mfspr(SPRN_HID1); in ksi8560_show_cpuinfo()
Dppa8548.c52 svid = mfspr(SPRN_SVR); in ppa8548_show_cpuinfo()
58 phid1 = mfspr(SPRN_HID1); in ppa8548_show_cpuinfo()
Dmpc85xx_ads.c159 pvid = mfspr(SPRN_PVR); in mpc85xx_ads_show_cpuinfo()
160 svid = mfspr(SPRN_SVR); in mpc85xx_ads_show_cpuinfo()
167 phid1 = mfspr(SPRN_HID1); in mpc85xx_ads_show_cpuinfo()
Dmpc85xx_cds.c351 pvid = mfspr(SPRN_PVR); in mpc85xx_cds_show_cpuinfo()
352 svid = mfspr(SPRN_SVR); in mpc85xx_cds_show_cpuinfo()
361 phid1 = mfspr(SPRN_HID1); in mpc85xx_cds_show_cpuinfo()
Dsmp.c143 tmp = (mfspr(SPRN_HID0) & ~(HID0_DOZE|HID0_SLEEP)) | HID0_NAP; in smp_85xx_mach_cpu_die()
/linux-4.1.27/arch/tile/kernel/
Dintvec_64.S135 mfspr r3, SPR_EX_CONTEXT_K_1
142 mfspr r3, SPR_SYSTEM_SAVE_K_0
161 mfspr r1, SPR_SYSTEM_SAVE_K_1
175 mfspr r1, SPR_EX_CONTEXT_K_0
251 mfspr r0, SPR_EX_CONTEXT_K_0
313 mfspr r0, SPR_EX_CONTEXT_K_1
365 mfspr r0, SPR_SYSTEM_SAVE_K_2
379 mfspr r0, SPR_SYSTEM_SAVE_K_0
451 mfspr r0, SPR_EX_CONTEXT_K_0
464 mfspr r0, SPR_EX_CONTEXT_K_1
[all …]
Dintvec_32.S122 mfspr r0, SPR_EX_CONTEXT_K_1
167 mfspr r0, SPR_SYSTEM_SAVE_K_2
181 mfspr r0, SPR_SYSTEM_SAVE_K_0
246 mfspr r0, SPR_EX_CONTEXT_K_0
259 mfspr r0, SPR_EX_CONTEXT_K_1
281 mfspr r0, SPR_SYSTEM_SAVE_K_1 /* Original r0 */
301 mfspr r2, SPR_SYSTEM_SAVE_K_3 /* address of page fault */
302 mfspr r3, SPR_SYSTEM_SAVE_K_2 /* info about page fault */
306 mfspr r2, SPR_SYSTEM_SAVE_K_2 /* double fault info from HV */
312 mfspr r2, GPV_REASON
[all …]
Dregs_64.S129 mfspr r1, INTERRUPT_CRITICAL_SECTION
Dregs_32.S129 mfspr r1, INTERRUPT_CRITICAL_SECTION
/linux-4.1.27/tools/perf/arch/powerpc/util/
Dheader.c10 #define mfspr(rn) ({unsigned long rval; \ macro
24 pvr = mfspr(SPRN_PVR); in get_cpuid()
/linux-4.1.27/arch/powerpc/sysdev/
D6xx-suspend.S22 mfspr r5, SPRN_HID0
47 mfspr r5, SPRN_HID0
Dppc4xx_soc.c218 mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | reset_type); in ppc4xx_reset_system()
Dehv_pic.c166 irq = mfspr(SPRN_EPR); /* if core int mode */ in ehv_pic_get_irq()
Dppc4xx_cpm.c219 tcr_save = mfspr(SPRN_TCR); in cpm_suspend_standby()
Dfsl_pci.c991 addr = mfspr(SPRN_MCARU); in fsl_pci_mcheck_exception()
994 addr += mfspr(SPRN_MCAR); in fsl_pci_mcheck_exception()
Dmpic.c1828 src = mfspr(SPRN_EPR); in mpic_get_coreint_irq()
Dppc4xx_pci.c50 if ((mfspr(SPRN_PVR) & 0xffefffff) == 0x53421890) in ppc440spe_revA()
/linux-4.1.27/drivers/watchdog/
Dbooke_wdt.c111 val = mfspr(SPRN_TCR); in __booke_wdt_set()
142 val = mfspr(SPRN_TCR); in __booke_wdt_enable()
161 val = mfspr(SPRN_TCR); in __booke_wdt_disable()
/linux-4.1.27/arch/powerpc/platforms/86xx/
Dsbc8641d.c57 uint svid = mfspr(SPRN_SVR); in sbc8641_show_cpuinfo()
87 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
Dmpc86xx_hpcn.c86 uint svid = mfspr(SPRN_SVR); in mpc86xx_hpcn_show_cpuinfo()
122 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
Dgef_sbc310.c136 uint svid = mfspr(SPRN_SVR); in gef_sbc310_show_cpuinfo()
195 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
Dgef_sbc610.c128 uint svid = mfspr(SPRN_SVR); in gef_sbc610_show_cpuinfo()
185 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
Dgef_ppc9a.c146 uint svid = mfspr(SPRN_SVR); in gef_ppc9a_show_cpuinfo()
208 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
Dmpc8610_hpcd.c338 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
/linux-4.1.27/arch/powerpc/platforms/pasemi/
Dsetup.c274 dsisr = mfspr(SPRN_DSISR); in pas_machine_check_handler()
278 printk(KERN_ERR "BER 0x%016lx MER 0x%016lx\n", mfspr(SPRN_PA6T_BER), in pas_machine_check_handler()
279 mfspr(SPRN_PA6T_MER)); in pas_machine_check_handler()
280 printk(KERN_ERR "IER 0x%016lx DER 0x%016lx\n", mfspr(SPRN_PA6T_IER), in pas_machine_check_handler()
281 mfspr(SPRN_PA6T_DER)); in pas_machine_check_handler()
/linux-4.1.27/arch/powerpc/platforms/cell/
Dpervasive.c49 ctrl = mfspr(SPRN_CTRLF); in cbe_power_save()
52 thread_switch_control = mfspr(SPRN_TSC_CELL); in cbe_power_save()
Dspu_priv1_mmio.c110 out_be64(&spu->priv1->mfc_sdr_RW, mfspr(SPRN_SDR1)); in mfc_sdr_setup()
Dras.c338 hid0 = mfspr(SPRN_HID0); in cbe_ras_init()
/linux-4.1.27/arch/tile/lib/
Datomic_asm_32.S145 mfspr r26, CYCLE_LOW /* get start point for this backoff */
146 6: mfspr r22, CYCLE_LOW /* test to see if we've backed off enough */
/linux-4.1.27/arch/powerpc/platforms/pseries/
DhvCall_inst.c115 h->purr_start = mfspr(SPRN_PURR); in probe_hcall_entry()
129 h->purr_total += mfspr(SPRN_PURR) - h->purr_start; in probe_hcall_exit()
/linux-4.1.27/drivers/cpuidle/
Dcpuidle-pseries.c34 *in_purr = mfspr(SPRN_PURR); in idle_loop_prolog()
47 wait_cycles += mfspr(SPRN_PURR) - in_purr; in idle_loop_epilog()
Dcpuidle-powernv.c69 unsigned long old_lpcr = mfspr(SPRN_LPCR); in fastsleep_loop()
/linux-4.1.27/arch/openrisc/include/asm/
Dtimex.h28 return mfspr(SPR_TTCR); in get_cycles()
Dspr.h27 static inline unsigned long mfspr(unsigned long add) in mfspr() function
/linux-4.1.27/arch/powerpc/kernel/vdso32/
Dgettimeofday.S240 2: mfspr r3, SPRN_TBRU
241 mfspr r4, SPRN_TBRL
242 mfspr r0, SPRN_TBRU
Dgetcpu.S32 mfspr r5,SPRN_SPRG_VDSO_READ
/linux-4.1.27/drivers/misc/cxl/
Dnative.c441 ctx->elem->lpid = cpu_to_be32(mfspr(SPRN_LPID)); in attach_afu_directed()
443 ctx->elem->sdr = cpu_to_be64(mfspr(SPRN_SDR1)); in attach_afu_directed()
448 if (mfspr(SPRN_LPCR) & LPCR_TC) in attach_afu_directed()
516 cxl_p1n_write(afu, CXL_PSL_LPID_An, mfspr(SPRN_LPID)); in activate_dedicated_process()
518 cxl_p1n_write(afu, CXL_PSL_SDR_An, mfspr(SPRN_SDR1)); in activate_dedicated_process()
540 if (mfspr(SPRN_LPCR) & LPCR_TC) in attach_dedicated()
Dfile.c180 amr = work.amr & mfspr(SPRN_UAMOR); in afu_ioctl_start_work()
/linux-4.1.27/arch/openrisc/lib/
Ddelay.c27 *timer_value = mfspr(SPR_TTCR); in read_current_timer()
/linux-4.1.27/arch/powerpc/kernel/vdso64/
Dgetcpu.S32 mfspr r5,SPRN_SPRG_VDSO_READ
/linux-4.1.27/arch/powerpc/xmon/
Dxmon.c975 mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); in do_step()
1692 mfmsr(), mfspr(SPRN_SPRG0)); in super_regs()
1694 mfspr(SPRN_PVR), mfspr(SPRN_SPRG1)); in super_regs()
1696 mfspr(SPRN_DEC), mfspr(SPRN_SPRG2)); in super_regs()
1697 printf("sp = "REG" sprg3= "REG"\n", sp, mfspr(SPRN_SPRG3)); in super_regs()
1698 printf("toc = "REG" dar = "REG"\n", toc, mfspr(SPRN_DAR)); in super_regs()
2847 mmucfg = mfspr(SPRN_MMUCFG); in dump_tlb_book3e()
2867 tlbcfg = mfspr(SPRN_TLB0CFG); in dump_tlb_book3e()
2870 tlbcfg = mfspr(SPRN_TLB1CFG); in dump_tlb_book3e()
2873 tlbcfg = mfspr(SPRN_TLB2CFG); in dump_tlb_book3e()
[all …]
/linux-4.1.27/arch/tile/include/asm/
Dirqflags.h210 mfspr tmp, SPR_INTERRUPT_MASK_K; \
251 mfspr tmp, SPR_INTERRUPT_MASK_K_0; \
Dprocessor.h309 #define CPU_RELAX mfspr zero, SPR_PASS
/linux-4.1.27/arch/powerpc/math-emu/
Dmath_efp.c210 __FPU_FPSCR = mfspr(SPRN_SPEFSCR); in do_spe_mathemu()
743 __FPU_FPSCR = mfspr(SPRN_SPEFSCR); in speround_handler()
897 pvr = mfspr(SPRN_PVR); in spe_mathemu_init()
/linux-4.1.27/Documentation/powerpc/
Dcpu_features.txt39 mfspr r22,SPRN_VRSAVE /* if G4, save vrsave register value */
/linux-4.1.27/drivers/edac/
Dmpc85xx_edac.c1202 orig_hid1[smp_processor_id()] = mfspr(SPRN_HID1); in mpc85xx_mc_clear_rfxe()
1234 pvr = mfspr(SPRN_PVR); in mpc85xx_mc_init()
1262 u32 pvr = mfspr(SPRN_PVR); in mpc85xx_mc_exit()
/linux-4.1.27/drivers/i2c/busses/
Di2c-mpc.c207 unsigned int pvr = mfspr(SPRN_PVR); in mpc_i2c_get_fdr_52xx()
361 unsigned int svr = mfspr(SPRN_SVR); in mpc_i2c_get_prescaler_8xxx()
/linux-4.1.27/drivers/net/can/mscan/
Dmpc5xxx_can.c60 pvr = mfspr(SPRN_PVR); in mpc52xx_can_get_clock()
/linux-4.1.27/drivers/dma/bestcomm/
Dbestcomm.c332 if ((mfspr(SPRN_SVR) & MPC5200_SVR_MASK) == MPC5200_SVR) in bcom_engine_init()
/linux-4.1.27/drivers/mtd/nand/
Dmpc5121_nfc.c648 rev = (mfspr(SPRN_SVR) >> 4) & 0xF; in mpc5121_nfc_probe()
/linux-4.1.27/drivers/usb/host/
Dehci-fsl.c294 svr = mfspr(SPRN_SVR); in ehci_fsl_usb_setup()
/linux-4.1.27/drivers/iommu/
Dfsl_pamu.c1119 if (port_id_map[i].svr == (mfspr(SPRN_SVR) & ~SVR_SECURITY)) { in fsl_pamu_probe()
/linux-4.1.27/drivers/net/ethernet/freescale/
Dgianfar.c1128 unsigned int pvr = mfspr(SPRN_PVR); in __gfar_detect_errata_83xx()
1129 unsigned int svr = mfspr(SPRN_SVR); in __gfar_detect_errata_83xx()
1150 unsigned int svr = mfspr(SPRN_SVR); in __gfar_detect_errata_85xx()
/linux-4.1.27/drivers/tty/serial/
Ducc_uart.c1151 svr = mfspr(SPRN_SVR); in soc_info()
/linux-4.1.27/drivers/macintosh/
Dvia-pmu.c2003 hid0 = mfspr(SPRN_HID0); in powerbook_sleep_3400()