/linux-4.1.27/arch/powerpc/kernel/ |
D | cpu_setup_ppc970.S | 30 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 …]
|
D | head_40x.S | 112 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 …]
|
D | head_44x.S | 314 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 …]
|
D | fsl_booke_entry_mapping.S | 7 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 …]
|
D | head_booke.h | 36 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 …]
|
D | cpu_setup_fsl_booke.S | 23 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 …]
|
D | swsusp_booke.S | 64 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 …]
|
D | cpu_setup_6xx.S | 88 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 …]
|
D | head_8xx.S | 128 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 …]
|
D | head_fsl_booke.S | 197 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 …]
|
D | l2cr_6xx.S | 127 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 …]
|
D | exceptions-64e.S | 96 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 …]
|
D | head_32.S | 257 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 …]
|
D | exceptions-64s.S | 39 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 …]
|
D | idle_6xx.S | 34 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
|
D | idle_power7.S | 220 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 …]
|
D | tm.S | 59 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 …]
|
D | cpu_setup_power.S | 30 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
|
D | pmc.c | 34 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()
|
D | entry_32.S | 48 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 …]
|
D | traps.c | 373 #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 …]
|
D | cpu_setup_pa6t.S | 36 mfspr r0,SPRN_HID5 40 mfspr r0,SPRN_LPCR
|
D | misc_64.S | 262 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
|
D | idle_e500.S | 66 mfspr r7,SPRN_L2CSR0 72 mfspr r4,SPRN_HID0
|
D | misc_32.S | 184 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 */
|
D | tau_6xx.c | 82 if((thrm = mfspr(SPRN_THRM1)) & THRM1_TIV){ /* is valid? */ in TAUupdate() 94 if((thrm = mfspr(SPRN_THRM2)) & THRM1_TIV){ /* is valid? */ in TAUupdate()
|
D | dbell.c | 25 unsigned long tag = mfspr(SPRN_DOORBELL_CPUTAG) & PPC_DBELL_TAG_MASK; in doorbell_setup_this_cpu()
|
D | sysfs.c | 112 *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); \
|
D | cpu_setup_44x.S | 52 mfspr r3,SPRN_CCR0
|
D | head_64.S | 200 mfspr r3, SPRN_PIR 383 mfspr r0,SPRN_PVR 572 mfspr r3,SPRN_HID4
|
D | entry_64.S | 419 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
|
D | process.c | 271 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()
|
D | setup_64.c | 212 unsigned long lpcr = mfspr(SPRN_LPCR); in cpu_ready_for_interrupts() 243 identify_cpu(0, mfspr(SPRN_PVR)); in early_setup()
|
D | time.c | 190 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()
|
D | setup_32.c | 86 spec = identify_cpu(offset, mfspr(SPRN_PVR)); in early_init()
|
D | vector.S | 125 mfspr r4,SPRN_VRSAVE 133 mfspr r5,SPRN_SPRG_THREAD /* current task's THREAD (phys) */
|
D | smp.c | 352 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()
|
D | swsusp_asm64.S | 57 mfspr r0, SPRN_##register ;\
|
D | fpu.S | 166 mfspr r5,SPRN_SPRG_THREAD /* current task's THREAD (phys) */
|
D | kgdb.c | 430 mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); in kgdb_arch_handle_exception()
|
D | signal_64.c | 116 current->thread.vrsave = mfspr(SPRN_VRSAVE); in setup_sigcontext() 234 current->thread.vrsave = mfspr(SPRN_VRSAVE); in setup_tm_sigcontexts()
|
D | setup-common.c | 231 pvr = mfspr(SPRN_PVR); in show_cpuinfo()
|
D | btext.c | 97 if (PVR_VER(mfspr(SPRN_PVR)) != 1) { in btext_prepare_BAT()
|
D | signal_32.c | 441 current->thread.vrsave = mfspr(SPRN_VRSAVE); in save_user_regs() 576 current->thread.vrsave = mfspr(SPRN_VRSAVE); in save_tm_user_regs()
|
D | vdso.c | 749 vdso_data->processor = mfspr(SPRN_PVR); in vdso_init()
|
/linux-4.1.27/arch/powerpc/kvm/ |
D | book3s_hv_interrupts.S | 55 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 …]
|
D | bookehv_interrupts.S | 78 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 …]
|
D | e500mc.c | 80 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 …]
|
D | book3s_hv_rmhandlers.S | 176 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 …]
|
D | booke_interrupts.S | 59 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 …]
|
D | book3s_rmhandlers.S | 62 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
|
D | book3s_segment.S | 95 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
|
D | e500_mmu_host.c | 115 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()
|
D | e500.c | 279 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()
|
D | booke.c | 940 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 …]
|
D | book3s_pr.c | 107 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()
|
D | booke.h | 127 mtspr(SPRN_DBSR, mfspr(SPRN_DBSR)); in kvmppc_clear_dbsr()
|
D | e500_mmu.c | 876 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()
|
D | book3s_hv_rm_xics.c | 65 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()
|
D | book3s_hv.c | 1635 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()
|
D | powerpc.c | 712 vcpu->arch.vrsave = mfspr(SPRN_VRSAVE); in kvm_arch_vcpu_put()
|
D | book3s_64_mmu_hv.c | 233 host_lpid = mfspr(SPRN_LPID); in kvmppc_mmu_hv_init()
|
/linux-4.1.27/arch/powerpc/platforms/83xx/ |
D | suspend-asm.S | 72 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 …]
|
D | km83xx.c | 53 uint svid = mfspr(SPRN_SVR); in quirk_mpc8360e_qe_enet10()
|
D | mpc836x_mds.c | 116 svid = mfspr(SPRN_SVR); in mpc836x_mds_setup_arch()
|
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/ |
D | ebb.c | 40 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 …]
|
D | cycles_with_freeze_test.c | 30 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()
|
D | back_to_back_ebbs_test.c | 31 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()
|
D | close_clears_pmcc_test.c | 49 mfspr(SPRN_EBBHR); in close_clears_pmcc() 50 mfspr(SPRN_EBBRR); in close_clears_pmcc() 51 mfspr(SPRN_BESCR); in close_clears_pmcc()
|
D | fork_cleanup_test.c | 30 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()
|
D | pmc56_overflow_test.c | 23 val = mfspr(SPRN_BESCR); in ebb_callee() 32 val = mfspr(SPRN_PMC5); in ebb_callee() 38 val = mfspr(SPRN_PMC6); in ebb_callee()
|
D | pmae_handling_test.c | 35 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()
|
D | instruction_count_test.c | 35 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()
|
D | reg_access_test.c | 23 val = mfspr(SPRN_BESCR); in reg_access() 29 val = mfspr(SPRN_EBBHR); in reg_access()
|
D | no_handler_test.c | 32 val = mfspr(SPRN_EBBHR); in no_handler_test() 46 val = mfspr(SPRN_MMCR0); in no_handler_test()
|
D | reg.h | 12 #define mfspr(rn) ({unsigned long rval; \ macro
|
D | cycles_with_mmcr2_test.c | 60 val = mfspr(SPRN_MMCR2); in cycles_with_mmcr2()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | oprofile_impl.h | 75 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()
|
D | exception-64e.h | 99 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; \
|
D | switch_to.h | 22 prev->tar = mfspr(SPRN_TAR); in save_early_sprs() 24 prev->dscr = mfspr(SPRN_DSCR); in save_early_sprs()
|
D | reg.h | 976 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()
|
D | exception-64s.h | 56 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 */ \
|
D | time.h | 155 return (mfspr(SPRN_PIT)); in get_dec() 157 return (mfspr(SPRN_DEC)); in get_dec()
|
D | probes.h | 58 mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); in enable_single_step()
|
D | kvm_ppc.h | 463 return mfspr(SPRN_GEPR); in kvmppc_get_epr() 554 return mfspr(bookehv_spr); \
|
D | ppc_asm.h | 387 90: mfspr dest, SPRN_TBRL; \ 395 #define MFTB(dest) mfspr dest, SPRN_TBRL
|
/linux-4.1.27/arch/powerpc/oprofile/ |
D | op_model_pa6t.c | 45 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 …]
|
D | op_model_power4.c | 195 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()
|
D | op_model_7450.c | 61 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/ |
D | setup.c | 111 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 …]
|
D | head.S | 158 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 …]
|
D | time.c | 39 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()
|
D | irq.c | 28 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()
|
D | process.c | 198 unsigned long sr = mfspr(SPR_SR) & ~SPR_SR_SM; in start_thread()
|
D | entry.S | 32 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/ |
D | cache.S | 60 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 …]
|
D | sleep.S | 188 mfspr r2,SPRN_HID0 222 mfspr r3,SPRN_HID0
|
D | setup.c | 283 pvr = PVR_VER(mfspr(SPRN_PVR)); in pmac_setup_arch()
|
D | smp.c | 277 if (PVR_VER(mfspr(SPRN_PVR)) == 1) in smp_psurge_probe()
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
D | subcore-asm.S | 47 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
|
D | subcore.c | 184 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()
|
D | setup.c | 292 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()
|
D | smp.c | 173 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/ |
D | util.S | 45 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
|
D | wii-head.S | 100 mfspr 8, 0x3f3 /* HID4 */ 105 mfspr 8, 0x3f0 /* HID0 */
|
D | reg.h | 22 #define mfspr(rn) ({unsigned long rval; \ macro
|
D | ps3-head.S | 49 mfspr r3, 0x88
|
D | treeboot-iss4xx.c | 73 pir_reg = mfspr(SPRN_PIR); in platform_init()
|
D | gamecube-head.S | 81 mfspr 8, 0x3f0 /* HID0 */
|
D | treeboot-currituck.c | 101 pir_reg = mfspr(SPRN_PIR); in platform_init()
|
D | treeboot-akebono.c | 145 pir_reg = mfspr(SPRN_PIR); in platform_init()
|
D | 4xx.c | 466 ccr1 = mfspr(SPRN_CCR1); in __ibm440eplike_fixup_clocks()
|
/linux-4.1.27/drivers/irqchip/ |
D | irq-or1k-pic.c | 33 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/ |
D | tlb_low_64e.S | 52 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 …]
|
D | tlb_nohash.c | 437 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()
|
D | 44x_mmu.c | 91 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()
|
D | tlb_nohash_low.S | 48 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 */
|
D | fsl_booke_mmu.c | 155 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()
|
D | ppc_mmu_32.c | 128 if (PVR_VER(mfspr(SPRN_PVR)) != 1) { in setbat() 285 if (PVR_VER(mfspr(SPRN_PVR)) == 1) in setup_initial_memory_limit()
|
D | hugetlbpage-book3e.c | 34 ncams = mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY; in tlb1_next()
|
D | mem.c | 359 (mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY) - 1; in mem_init()
|
D | hash_low_32.S | 71 mfspr r8,SPRN_SPRG_THREAD /* current task's THREAD (phys) */
|
/linux-4.1.27/arch/powerpc/platforms/52xx/ |
D | mpc52xx_sleep.S | 37 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
|
D | lite5200_sleep.S | 23 mfspr r10, SPRN_##reg; \ 93 mfspr r3, SPRN_HID0 226 mfspr r10, SPRN_HID0
|
D | mpc52xx_pm.c | 147 hid0 = mfspr(SPRN_HID0); in mpc52xx_pm_enter()
|
D | mpc52xx_common.c | 82 if ((mfspr(SPRN_SVR) & MPC5200_SVR_MASK) == MPC5200_SVR) in mpc5200_setup_xlb_arbiter()
|
/linux-4.1.27/arch/powerpc/perf/ |
D | core-book3s.c | 193 *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 …]
|
D | power8-pmu.c | 691 mtspr(SPRN_MMCRA, (mfspr(SPRN_MMCRA) | pmu_bhrb_filter)); in power8_config_bhrb()
|
/linux-4.1.27/arch/openrisc/mm/ |
D | tlb.c | 37 #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/ |
D | pmac32-cpufreq.c | 124 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()
|
D | powernv-cpufreq.c | 183 return mfspr(SPRN_PMCR); in get_pmspr() 186 return mfspr(SPRN_PMICR); in get_pmspr() 189 return mfspr(SPRN_PMSR); in get_pmspr()
|
D | maple-cpufreq.c | 183 pvr_hi = PVR_VER(mfspr(SPRN_PVR)); in maple_cpufreq_init()
|
/linux-4.1.27/arch/powerpc/platforms/85xx/ |
D | stx_gp3.c | 77 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()
|
D | tqm85xx.c | 76 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()
|
D | sbc8548.c | 103 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()
|
D | ksi8560.c | 150 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()
|
D | ppa8548.c | 52 svid = mfspr(SPRN_SVR); in ppa8548_show_cpuinfo() 58 phid1 = mfspr(SPRN_HID1); in ppa8548_show_cpuinfo()
|
D | mpc85xx_ads.c | 159 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()
|
D | mpc85xx_cds.c | 351 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()
|
D | smp.c | 143 tmp = (mfspr(SPRN_HID0) & ~(HID0_DOZE|HID0_SLEEP)) | HID0_NAP; in smp_85xx_mach_cpu_die()
|
/linux-4.1.27/arch/tile/kernel/ |
D | intvec_64.S | 135 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 …]
|
D | intvec_32.S | 122 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 …]
|
D | regs_64.S | 129 mfspr r1, INTERRUPT_CRITICAL_SECTION
|
D | regs_32.S | 129 mfspr r1, INTERRUPT_CRITICAL_SECTION
|
/linux-4.1.27/tools/perf/arch/powerpc/util/ |
D | header.c | 10 #define mfspr(rn) ({unsigned long rval; \ macro 24 pvr = mfspr(SPRN_PVR); in get_cpuid()
|
/linux-4.1.27/arch/powerpc/sysdev/ |
D | 6xx-suspend.S | 22 mfspr r5, SPRN_HID0 47 mfspr r5, SPRN_HID0
|
D | ppc4xx_soc.c | 218 mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | reset_type); in ppc4xx_reset_system()
|
D | ehv_pic.c | 166 irq = mfspr(SPRN_EPR); /* if core int mode */ in ehv_pic_get_irq()
|
D | ppc4xx_cpm.c | 219 tcr_save = mfspr(SPRN_TCR); in cpm_suspend_standby()
|
D | fsl_pci.c | 991 addr = mfspr(SPRN_MCARU); in fsl_pci_mcheck_exception() 994 addr += mfspr(SPRN_MCAR); in fsl_pci_mcheck_exception()
|
D | mpic.c | 1828 src = mfspr(SPRN_EPR); in mpic_get_coreint_irq()
|
D | ppc4xx_pci.c | 50 if ((mfspr(SPRN_PVR) & 0xffefffff) == 0x53421890) in ppc440spe_revA()
|
/linux-4.1.27/drivers/watchdog/ |
D | booke_wdt.c | 111 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/ |
D | sbc8641d.c | 57 uint svid = mfspr(SPRN_SVR); in sbc8641_show_cpuinfo() 87 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
|
D | mpc86xx_hpcn.c | 86 uint svid = mfspr(SPRN_SVR); in mpc86xx_hpcn_show_cpuinfo() 122 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
|
D | gef_sbc310.c | 136 uint svid = mfspr(SPRN_SVR); in gef_sbc310_show_cpuinfo() 195 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
|
D | gef_sbc610.c | 128 uint svid = mfspr(SPRN_SVR); in gef_sbc610_show_cpuinfo() 185 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
|
D | gef_ppc9a.c | 146 uint svid = mfspr(SPRN_SVR); in gef_ppc9a_show_cpuinfo() 208 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
|
D | mpc8610_hpcd.c | 338 temp = mfspr(SPRN_HID0); in mpc86xx_time_init()
|
/linux-4.1.27/arch/powerpc/platforms/pasemi/ |
D | setup.c | 274 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/ |
D | pervasive.c | 49 ctrl = mfspr(SPRN_CTRLF); in cbe_power_save() 52 thread_switch_control = mfspr(SPRN_TSC_CELL); in cbe_power_save()
|
D | spu_priv1_mmio.c | 110 out_be64(&spu->priv1->mfc_sdr_RW, mfspr(SPRN_SDR1)); in mfc_sdr_setup()
|
D | ras.c | 338 hid0 = mfspr(SPRN_HID0); in cbe_ras_init()
|
/linux-4.1.27/arch/tile/lib/ |
D | atomic_asm_32.S | 145 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/ |
D | hvCall_inst.c | 115 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/ |
D | cpuidle-pseries.c | 34 *in_purr = mfspr(SPRN_PURR); in idle_loop_prolog() 47 wait_cycles += mfspr(SPRN_PURR) - in_purr; in idle_loop_epilog()
|
D | cpuidle-powernv.c | 69 unsigned long old_lpcr = mfspr(SPRN_LPCR); in fastsleep_loop()
|
/linux-4.1.27/arch/openrisc/include/asm/ |
D | timex.h | 28 return mfspr(SPR_TTCR); in get_cycles()
|
D | spr.h | 27 static inline unsigned long mfspr(unsigned long add) in mfspr() function
|
/linux-4.1.27/arch/powerpc/kernel/vdso32/ |
D | gettimeofday.S | 240 2: mfspr r3, SPRN_TBRU 241 mfspr r4, SPRN_TBRL 242 mfspr r0, SPRN_TBRU
|
D | getcpu.S | 32 mfspr r5,SPRN_SPRG_VDSO_READ
|
/linux-4.1.27/drivers/misc/cxl/ |
D | native.c | 441 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()
|
D | file.c | 180 amr = work.amr & mfspr(SPRN_UAMOR); in afu_ioctl_start_work()
|
/linux-4.1.27/arch/openrisc/lib/ |
D | delay.c | 27 *timer_value = mfspr(SPR_TTCR); in read_current_timer()
|
/linux-4.1.27/arch/powerpc/kernel/vdso64/ |
D | getcpu.S | 32 mfspr r5,SPRN_SPRG_VDSO_READ
|
/linux-4.1.27/arch/powerpc/xmon/ |
D | xmon.c | 975 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/ |
D | irqflags.h | 210 mfspr tmp, SPR_INTERRUPT_MASK_K; \ 251 mfspr tmp, SPR_INTERRUPT_MASK_K_0; \
|
D | processor.h | 309 #define CPU_RELAX mfspr zero, SPR_PASS
|
/linux-4.1.27/arch/powerpc/math-emu/ |
D | math_efp.c | 210 __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/ |
D | cpu_features.txt | 39 mfspr r22,SPRN_VRSAVE /* if G4, save vrsave register value */
|
/linux-4.1.27/drivers/edac/ |
D | mpc85xx_edac.c | 1202 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/ |
D | i2c-mpc.c | 207 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/ |
D | mpc5xxx_can.c | 60 pvr = mfspr(SPRN_PVR); in mpc52xx_can_get_clock()
|
/linux-4.1.27/drivers/dma/bestcomm/ |
D | bestcomm.c | 332 if ((mfspr(SPRN_SVR) & MPC5200_SVR_MASK) == MPC5200_SVR) in bcom_engine_init()
|
/linux-4.1.27/drivers/mtd/nand/ |
D | mpc5121_nfc.c | 648 rev = (mfspr(SPRN_SVR) >> 4) & 0xF; in mpc5121_nfc_probe()
|
/linux-4.1.27/drivers/usb/host/ |
D | ehci-fsl.c | 294 svr = mfspr(SPRN_SVR); in ehci_fsl_usb_setup()
|
/linux-4.1.27/drivers/iommu/ |
D | fsl_pamu.c | 1119 if (port_id_map[i].svr == (mfspr(SPRN_SVR) & ~SVR_SECURITY)) { in fsl_pamu_probe()
|
/linux-4.1.27/drivers/net/ethernet/freescale/ |
D | gianfar.c | 1128 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/ |
D | ucc_uart.c | 1151 svr = mfspr(SPRN_SVR); in soc_info()
|
/linux-4.1.27/drivers/macintosh/ |
D | via-pmu.c | 2003 hid0 = mfspr(SPRN_HID0); in powerbook_sleep_3400()
|