/freebsd/sys/powerpc/aim/ |
H A D | mp_cpudep.c | 157 ccr = mfspr(SPR_L2CR); in mpc74xx_l2_enable() 165 ccr = mfspr(SPR_L2CR); in mpc74xx_l2_enable() 179 ccr = mfspr(SPR_L3CR); in mpc745x_l3_enable() 191 while (mfspr(SPR_L3CR) & L3CR_L3I) in mpc745x_l3_enable() 211 hid = mfspr(SPR_HID0); in mpc74xx_l1d_enable() 229 hid = mfspr(SPR_HID0); in mpc74xx_l1i_enable() 254 bsp_state[0] = mfspr(SPR_HID0); in cpudep_save_config() 255 bsp_state[1] = mfspr(SPR_HID1); in cpudep_save_config() 256 bsp_state[2] = mfspr(SPR_HID4); in cpudep_save_config() 257 bsp_state[3] = mfspr(SPR_HID5); in cpudep_save_config() [all …]
|
H A D | aim_machdep.c | 217 scratch = mfspr(SPR_HID5); in aim_early_init() 656 msscr0 = mfspr(SPR_MSSCR0); in flush_disable_caches() 670 mtspr(SPR_LDSTCR, mfspr(SPR_LDSTCR) | 0xFF); in flush_disable_caches() 701 cache_reg = mfspr(SPR_L2CR); in flush_disable_caches() 707 while (mfspr(SPR_L2CR) & L2CR_L2HWF) in flush_disable_caches() 715 while (mfspr(SPR_L2CR) & L2CR_L2I) in flush_disable_caches() 720 cache_reg = mfspr(SPR_L3CR); in flush_disable_caches() 726 while (mfspr(SPR_L3CR) & L3CR_L3HWF) in flush_disable_caches() 734 while (mfspr(SPR_L3CR) & L3CR_L3I) in flush_disable_caches() 739 mtspr(SPR_HID0, mfspr(SPR_HID0) & ~HID0_DCE); in flush_disable_caches() [all …]
|
H A D | trap_subr32.S | 396 mfspr %r2, SPR_HASH1 /* get first pointer */ 399 mfspr %r3, SPR_ICMP /* get first compare value */ 414 mfspr %r0, SPR_IMISS /* get the miss address for the tlbli */ 415 mfspr %r3, SPR_SRR1 /* get the saved cr0 bits */ 427 mfspr %r2, SPR_HASH2 /* get the second pointer */ 435 mfspr %r3, SPR_SRR1 /* get srr1 */ 441 mfspr %r3, SPR_SRR1 /* get srr1 */ 461 mfspr %r2, SPR_HASH1 /* get first pointer */ 464 mfspr %r3, SPR_DCMP /* get first compare value */ 477 mfspr %r0, SPR_DMISS /* get the miss address for the tlbld */ [all …]
|
H A D | locore.S | 13 mfspr %r3, 0
|
/freebsd/sys/powerpc/booke/ |
H A D | machdep_e500.c | 59 csr = mfspr(SPR_L1CSR0); in booke_enable_l1_cache() 65 csr = mfspr(SPR_L1CSR0); in booke_enable_l1_cache() 71 csr = mfspr(SPR_L1CSR1); in booke_enable_l1_cache() 77 csr = mfspr(SPR_L1CSR1); in booke_enable_l1_cache() 91 csr = mfspr(SPR_L2CSR0); in booke_enable_l2_cache() 102 if (mfspr(SPR_L2CFG0) != 0 && (csr & L2CSR0_L2E) == 0) { in booke_enable_l2_cache() 107 csr = mfspr(SPR_L2CSR0); in booke_enable_l2_cache() 120 csr = mfspr(SPR_BUCSR); in booke_enable_bpred()
|
H A D | locore.S | 48 mfspr r, SPR_SPRG8 677 mfspr %r17, SPR_PID0 682 mfspr %r17, SPR_MAS0 686 mfspr %r17, SPR_MAS1 739 mfspr %r5, SPR_MAS1 765 mfspr %r3, SPR_TLB1CFG /* Get number of entries */ 773 mfspr %r5, SPR_MAS1 825 mfspr %r3, SPR_L1CSR0 831 1: mfspr %r3, SPR_L1CSR0 839 mfspr %r3, SPR_L1CSR0 [all …]
|
H A D | trap_subr.S | 121 mfspr %r30, SPR_DEAR; \ 122 mfspr %r31, SPR_ESR; \ 125 mfspr %r30, isrr0; \ 126 mfspr %r31, isrr1; /* MSR at interrupt time */ \ 130 mfspr %r1, sprg_sp; /* Restore SP */ \ 144 mfspr %r30, SPR_DEAR; \ 145 mfspr %r31, SPR_ESR; \ 148 mfspr %r30, isrr0; \ 149 mfspr %r31, isrr1; /* MSR at interrupt time */ \ 152 mfspr %r30, SPR_SRR0; \ [all …]
|
H A D | mp_cpudep.c | 57 csr = mfspr(SPR_L1CSR0); in cpudep_ap_bootstrap() 63 csr = mfspr(SPR_L1CSR1); in cpudep_ap_bootstrap()
|
H A D | booke_machdep.c | 290 mtspr(SPR_EPCR, mfspr(SPR_EPCR) | EPCR_ICM); in ivor_setup() 456 r = mfspr(SPR_DBCR0); in kdb_cpu_clear_singlestep() 466 r = mfspr(SPR_DBCR0); in kdb_cpu_set_singlestep()
|
/freebsd/sys/dev/hwpmc/ |
H A D | hwpmc_mpc7xxx.c | 302 return (mfspr(SPR_PMC1_74XX)); in mpc7xxx_pmcn_read() 304 return (mfspr(SPR_PMC2_74XX)); in mpc7xxx_pmcn_read() 306 return (mfspr(SPR_PMC3_74XX)); in mpc7xxx_pmcn_read() 308 return (mfspr(SPR_PMC4_74XX)); in mpc7xxx_pmcn_read() 310 return (mfspr(SPR_PMC5_74XX)); in mpc7xxx_pmcn_read() 312 return (mfspr(SPR_PMC6_74XX)); in mpc7xxx_pmcn_read() 358 pmc_mmcr = mfspr(SPR_MMCR0_74XX); in mpc7xxx_set_pmc() 363 pmc_mmcr = mfspr(SPR_MMCR0_74XX); in mpc7xxx_set_pmc() 368 pmc_mmcr = mfspr(SPR_MMCR1_74XX); in mpc7xxx_set_pmc() 373 pmc_mmcr = mfspr(SPR_MMCR0_74XX); in mpc7xxx_set_pmc() [all …]
|
H A D | hwpmc_power8.c | 60 mmcr = mfspr(SPR_MMCR1); in power8_set_pmc() 71 mmcr = mfspr(SPR_MMCR2) | SPR_MMCR2_FCNHSP(ri); in power8_set_pmc() 92 mmcr0 = mfspr(SPR_MMCR0) | SPR_MMCR0_FC; in power8_pcpu_init() 111 mtspr(SPR_MMCR1, mfspr(SPR_MMCR1) & ~SPR_MMCR1_P8_PMCSEL_ALL); in power8_pcpu_init() 114 mtspr(SPR_MMCR2, mfspr(SPR_MMCR2) | in power8_pcpu_init() 131 mmcr0 = mfspr(SPR_MMCR0); in power8_pcpu_fini() 145 mmcr0 = mfspr(SPR_MMCR0); in power8_resume_pmc()
|
H A D | hwpmc_ppc970.c | 275 pmc_mmcr = mfspr(SPR_MMCR0); in ppc970_set_pmc() 285 pmc_mmcr = mfspr(SPR_MMCR1); in ppc970_set_pmc() 292 pmc_mmcr = mfspr(SPR_MMCR0); in ppc970_set_pmc() 320 mmcr0 = mfspr(SPR_MMCR0); in ppc970_pcpu_fini() 334 mmcr0 = mfspr(SPR_MMCR0); in ppc970_resume_pmc()
|
H A D | hwpmc_powerpc.c | 298 val = mfspr(SPR_PMC1); in powerpc_pmcn_read_default() 301 val = mfspr(SPR_PMC2); in powerpc_pmcn_read_default() 304 val = mfspr(SPR_PMC3); in powerpc_pmcn_read_default() 307 val = mfspr(SPR_PMC4); in powerpc_pmcn_read_default() 310 val = mfspr(SPR_PMC5); in powerpc_pmcn_read_default() 313 val = mfspr(SPR_PMC6); in powerpc_pmcn_read_default() 316 val = mfspr(SPR_PMC7); in powerpc_pmcn_read_default() 319 val = mfspr(SPR_PMC8); in powerpc_pmcn_read_default()
|
/freebsd/sys/powerpc/powerpc/ |
H A D | cpu.c | 402 *cps = (mfspr(SPR_PMC1_74XX) * 1000) + 4999; in cpu_est_clockrate() 421 *cps = (mfspr(SPR_PMC1) * 1000) + 4999; in cpu_est_clockrate() 468 hid0 = mfspr(SPR_HID0); in cpu_6xx_setup() 557 hid = mfspr(SPR_HID0); in cpu_6xx_print_cacheinfo() 563 if (mfspr(SPR_L2CR) & L2CR_L2E) { in cpu_6xx_print_cacheinfo() 569 if (mfspr(SPR_L3CR) & L3CR_L3E) in cpu_6xx_print_cacheinfo() 571 mfspr(SPR_L3CR) & L3CR_L3SIZ ? '2' : '1'); in cpu_6xx_print_cacheinfo() 580 switch (mfspr(SPR_L2CR) & L2CR_L2SIZ) { in cpu_6xx_print_cacheinfo() 591 printf("write-%s", (mfspr(SPR_L2CR) & L2CR_L2WT) in cpu_6xx_print_cacheinfo() 593 if (mfspr(SPR_L2CR) & L2CR_L2PE) in cpu_6xx_print_cacheinfo() [all …]
|
H A D | swtch64.S | 138 mfspr %r6, SPR_FSCR 143 mfspr %r7, SPR_EBBHR 145 mfspr %r7, SPR_EBBRR 147 mfspr %r7, SPR_BESCR 152 mfspr %r7, SPR_LMRR 154 mfspr %r7, SPR_LMSER 159 mfspr %r7, SPR_TAR 164 mfspr %r6, SPR_DSCRP
|
H A D | exec_machdep.c | 611 pcb->pcb_fscr = mfspr(SPR_FSCR); in cpu_save_thread_regs() 614 pcb->pcb_ebb.ebbhr = mfspr(SPR_EBBHR); in cpu_save_thread_regs() 615 pcb->pcb_ebb.ebbrr = mfspr(SPR_EBBRR); in cpu_save_thread_regs() 616 pcb->pcb_ebb.bescr = mfspr(SPR_BESCR); in cpu_save_thread_regs() 619 pcb->pcb_lm.lmrr = mfspr(SPR_LMRR); in cpu_save_thread_regs() 620 pcb->pcb_lm.lmser = mfspr(SPR_LMSER); in cpu_save_thread_regs() 623 pcb->pcb_tar = mfspr(SPR_TAR); in cpu_save_thread_regs() 631 pcb->pcb_dscr = mfspr(SPR_DSCRP); in cpu_save_thread_regs() 643 pcb->pcb_vec.vscr = mfspr(SPR_SPEFSCR); in cpu_save_thread_regs() 1223 td->td_pcb->pcb_dscr = mfspr(SPR_DSCRP); in emulate_mfspr()
|
H A D | trap.c | 316 fscr = mfspr(SPR_FSCR); in trap() 385 mtspr(SPR_DBSR, mfspr(SPR_DBSR)); in trap() 545 (int)mfspr(SPR_MSSSR0), MSSSR_BITMASK); in cpu_printtrap() 558 pa = mfspr(SPR_MCARU); in cpu_printtrap() 559 pa = (pa << 32) | (u_register_t)mfspr(SPR_MCAR); in cpu_printtrap() 561 (int)mfspr(SPR_MCSR), MCSR_BITMASK); in cpu_printtrap()
|
/freebsd/sys/crypto/openssl/powerpc/ |
H A D | ppccpuid.S | 120 mfspr 3,268 278 mfspr 7,268 287 .Loop3: mfspr 6,268 312 mfspr 7,268 321 mfspr 6,268 335 mfspr 6,268
|
H A D | ghashp8-ppc.S | 12 mfspr 12,256 138 mfspr 12,256 189 mfspr 12,256
|
/freebsd/sys/crypto/openssl/powerpc64/ |
H A D | ppccpuid.S | 139 mfspr 3,268 307 mfspr 7,268 316 .Loop3: mfspr 6,268 343 mfspr 7,268 352 mfspr 6,268 366 mfspr 6,268
|
/freebsd/sys/crypto/openssl/powerpc64le/ |
H A D | ppccpuid.S | 139 mfspr 3,268 307 mfspr 7,268 316 .Loop3: mfspr 6,268 343 mfspr 7,268 352 mfspr 6,268 366 mfspr 6,268
|
/freebsd/sys/powerpc/include/ |
H A D | cpufunc.h | 147 *tbup = mfspr(TBR_TBU); in mftb() 148 *tblp = mfspr(TBR_TBL); in mftb() 149 } while (*tbup != mfspr(TBR_TBU)); in mftb()
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | mpc85xx.c | 84 ver = SVR_VER(mfspr(SPR_SVR)); in law_getmax() 230 ver = SVR_VER(mfspr(SPR_SVR)); in law_pci_target() 297 ver = SVR_VER(mfspr(SPR_SVR)); in mpc85xx_enable_l3_cache()
|
/freebsd/sys/powerpc/cpufreq/ |
H A D | dfs.c | 172 hid1 = mfspr(SPR_HID1); in dfs_set() 204 hid1 = mfspr(SPR_HID1); in dfs_get()
|
/freebsd/lib/libsys/powerpc/ |
H A D | __vdso_gettc.c | 54 *tc = mfspr(TBR_TBL); in __vdso_gettc()
|