HomeSort by: relevance | last modified time | path
    Searched refs:msr (Results 1 - 25 of 157) sorted by relevancy

1 2 3 4 5 6 7

  /src/sys/arch/evbmips/loongson/dev/
glx.c 67 /* MSR access through PCI configuration space */
73 /* access to the MSR through the PCI mailbox needs the same transformation
74 * as done by hardware when a MSR request reaches the CS5536.
82 glx_msra2mbxa(uint msr)
84 uint rf = (msr & GLX_MSR_ADDR_RF);
85 return ((rf << GLX_MSR_ADDR_RF_SHIFT) | (msr & GLX_MSR_ADDR_TARGET));
113 uint64_t msr; local in function:glx_init
133 msr = rdmsr(GCSC_DIVIL_BALL_OPTS); /* 0x71 */
134 wrmsr(GCSC_DIVIL_BALL_OPTS, msr | 0x01);
139 msr = 0
312 uint64_t msr; local in function:glx_get_status
360 uint64_t msr; local in function:glx_fn0_read
424 uint64_t msr; local in function:glx_fn0_write
487 uint64_t msr; local in function:glx_fn2_read
555 uint64_t msr; local in function:glx_fn2_write
612 uint64_t msr; local in function:glx_fn3_read
667 uint64_t msr; local in function:glx_fn3_write
714 uint64_t msr; local in function:glx_fn4_read
775 uint64_t msr; local in function:glx_fn4_write
834 uint64_t msr; local in function:glx_fn5_read
900 uint64_t msr; local in function:glx_fn5_write
    [all...]
gcscpcib_pci.c 99 gcsc_rdmsr(uint msr)
101 return rdmsr(msr);
105 gcsc_wrmsr(uint msr, uint64_t v)
107 wrmsr(msr, v);
  /src/sys/arch/x86/include/
cpu_msr.h 47 uint64_t msr = 0; local in function:x86_msr_xcall
51 /* Read the MSR requested and apply the mask if defined. */
53 msr = rdmsr(msrdat->msr_type);
55 msr &= ~msrdat->msr_mask;
59 msr |= msrdat->msr_value;
60 wrmsr(msrdat->msr_type, msr);
  /src/lib/libc/arch/powerpc/gen/
fpsetmask.c 54 uint32_t msr; local in function:__weak_alias
56 __asm volatile ("mfmsr %0" : "=r"(msr));
57 return msr;
61 mtmsr(uint32_t msr)
64 __asm volatile ("mtmsr %0" : : "r"(msr));
77 uint32_t msr; local in function:fpsetmask
86 msr = mfmsr();
87 msr = (msr & ~(PSL_FE0 | PSL_FE1)) |
89 mtmsr(msr);
    [all...]
  /src/sys/arch/x86/x86/
intel_busclock.c 50 uint64_t msr; local in function:via_get_bus_clock
53 msr = rdmsr(MSR_EBL_CR_POWERON);
54 bus = (msr >> 18) & 0x3;
78 uint64_t msr; local in function:viac7_get_bus_clock
81 msr = rdmsr(MSR_PERF_STATUS);
82 mult = (msr >> 8) & 0xff;
93 uint64_t msr; local in function:p3_get_bus_clock
108 if (rdmsr_safe(MSR_FSB_FREQ, &msr) == EFAULT) {
113 bus = (msr >> 0) & 0x7;
125 if (rdmsr_safe(MSR_FSB_FREQ, &msr) == EFAULT)
333 uint64_t msr; local in function:p4_get_bus_clock
    [all...]
coretemp.c 166 uint64_t msr; local in function:coretemp_attach
171 msr = rdmsr(MSR_THERM_STATUS);
172 msr = __SHIFTOUT(msr, MSR_THERM_STATUS_RESOLUTION);
175 aprint_normal(": thermal sensor, %u C resolution", (uint32_t)msr);
226 uint64_t msr; local in function:coretemp_quirks
232 * Check if the MSR contains thermal
238 msr = rdmsr(MSR_THERM_STATUS);
240 if ((msr & MSR_THERM_STATUS_VALID) == 0)
252 msr = rdmsr(MSR_BIOS_SIGN)
267 uint64_t msr; local in function:coretemp_tjmax
363 uint64_t msr; local in function:coretemp_refresh_xcall
    [all...]
spectre.c 123 uint64_t msr; local in function:v2_detect_method
131 msr = rdmsr(MSR_IA32_ARCH_CAPABILITIES);
132 if (msr & IA32_ARCH_IBRS_ALL) {
240 uint64_t msr; local in function:mitigation_v2_apply_cpu
259 msr = rdmsr(MSR_IA32_SPEC_CTRL);
261 msr |= IA32_SPEC_CTRL_IBRS;
263 msr &= ~IA32_SPEC_CTRL_IBRS;
265 wrmsr(MSR_IA32_SPEC_CTRL, msr);
268 msr = rdmsr(MSR_IC_CFG);
270 msr |= IC_CFG_DIS_IND
409 uint64_t msr; local in function:v4_detect_method
460 uint64_t msr, msrval = 0, msrbit = 0; local in function:mitigation_v4_apply_cpu
671 uint64_t msr; local in function:mds_detect_method
794 uint64_t msr; local in function:mitigation_taa_apply_cpu
826 uint64_t msr; local in function:taa_detect_method
    [all...]
odcm.c 329 uint64_t msr; local in function:odcm_state_get
333 msr = rdmsr(MSR_THERM_CONTROL);
335 if ((msr & ODCM_ENABLE) == 0)
338 msr = (msr >> ODCM_REGOFFSET) & (ODCM_MAXSTATES - 1);
342 KASSERT(msr < INT_MAX);
344 if ((int)msr == state[i].reg) {
358 struct msr_rw_info msr; local in function:odcm_state_set
370 msr.msr_read = true;
371 msr.msr_type = MSR_THERM_CONTROL
    [all...]
  /src/sys/arch/arm/arm32/
setstack.S 66 msr cpsr_c, r2
70 msr cpsr_c, r3 /* Restore the old mode */
86 msr cpsr_c, r2
90 msr cpsr_c, r3 /* Restore the old mode */
spl.S 66 msr cpsr_c, r2
70 msr cpsr_c, r4 /* Restore interrupts */
86 msr cpsr_c, r2
91 msr cpsr_all, r4
109 msr cpsr_c, r2
114 msr cpsr_c, r4
setcpsr.S 62 msr cpsr_all, r2
  /src/sys/arch/rs6000/stand/boot/
io.c 18 register_t savemsr, msr; local in function:setup_iocc
21 msr = savemsr & ~PSL_DR;
22 __asm volatile ("mtmsr %0" : : "r"(msr));
25 __asm volatile ("mtmsr %0" : : "r"(msr|PSL_DR));
  /src/sys/arch/aarch64/aarch64/
locore_el2.S 74 msr hcr_el2, x2
78 msr vpidr_el2, x2
82 msr vmpidr_el2, x2
89 msr sctlr_el1, x2
95 msr cpacr_el1, x2
100 msr cptr_el2, x2
103 msr hstr_el2, xzr
107 msr cnthctl_el2, x2
110 msr cntvoff_el2, xzr
114 msr vbar_el2, x
    [all...]
cpuswitch.S 93 msr cpacr_el1, x5 /* restore cpacr_el1 */
102 msr APIAKeyLo_EL1, x5
103 msr APIAKeyHi_EL1, x6
111 msr APIBKeyLo_EL1, x5
112 msr APIBKeyHi_EL1, x6
114 msr APDAKeyLo_EL1, x5
115 msr APDAKeyHi_EL1, x6
117 msr APDBKeyLo_EL1, x5
118 msr APDBKeyHi_EL1, x6
120 msr APGAKeyLo_EL1, x
    [all...]
  /src/sys/arch/powerpc/powerpc/
clock.c 106 uint32_t msr; local in function:cpu_initclocks
123 : "=r"(msr) : "K"(PSL_EE|PSL_RI));
142 const register_t msr = mfmsr(); local in function:decr_intr
184 mtmsr(msr | PSL_EE);
192 mtmsr(msr);
195 mtmsr(msr | PSL_EE);
197 mtmsr(msr);
260 int msr, scratch; local in function:get_powerpc_timecount
263 : "=r"(msr), "=r"(scratch) : "K"((u_short)~PSL_EE));
266 mtmsr(msr);
276 int msr, scratch; local in function:get_601_timecount
    [all...]
pmap_subr.c 275 * MSR fiddling themselves so they can save things on the stack.
285 register_t msr = 0; /* XXX: gcc */ local in function:pmap_zero_page
321 msr = MFMSR();
322 MTMSR(msr & ~PSL_DR);
353 MTMSR(msr);
364 register_t msr; local in function:pmap_copy_page
409 msr = MFMSR();
410 MTMSR(msr & ~PSL_DR);
426 MTMSR(msr);
443 register_t msr;
497 register_t msr; local in function:pmap_pageidlezero
    [all...]
  /src/sys/arch/powerpc/booke/
copyin.c 54 register_t msr; local in function:copyin_byte
57 "mfmsr %[msr]; " /* Save MSR */
60 "mtmsr %[msr]; sync; isync; " /* DS off */
61 : [msr] "=&r" (msr), [data] "=r" (data)
69 register_t msr; local in function:copyin_halfword
72 "mfmsr %[msr]; " /* Save MSR */
75 "mtmsr %[msr]; sync; isync; " /* DS off *
84 register_t msr; local in function:copyin_word
99 register_t msr; local in function:copyin_word_bswap
114 register_t msr; local in function:copyin_8words
139 register_t msr; local in function:copyin_16words
    [all...]
copyout.c 54 register_t msr; local in function:copyout_uint8
56 "mfmsr %[msr]" /* Save MSR */
59 "\n\t" "mtmsr %[msr]; sync; isync" /* DS off */
60 : [msr] "=&r" (msr)
67 register_t msr; local in function:copyout_uint16
69 "mfmsr %[msr]" /* Save MSR */
72 "\n\t" "mtmsr %[msr]; sync; isync" /* DS off *
80 register_t msr; local in function:copyout_uint32
128 register_t msr; local in function:copyout_16uint8s
165 register_t msr; local in function:copyout_8uint32s
198 register_t msr; local in function:copyout_16uint32s
    [all...]
  /src/sys/arch/powerpc/oea/
altivec.c 87 const register_t msr = mfmsr(); local in function:vec_state_load
88 mtmsr((msr & ~PSL_EE) | PSL_VEC);
98 * Restore MSR (turn off AltiVec)
100 mtmsr(msr);
124 const register_t msr = mfmsr(); local in function:vec_state_save
125 mtmsr((msr & ~PSL_EE) | PSL_VEC);
145 * Restore MSR (turn off AltiVec)
147 mtmsr(msr);
216 register_t omsr, msr; local in function:vzeropage
223 msr = (omsr & ~PSL_EE) | PSL_VEC
276 register_t omsr, msr; local in function:vcopypage
    [all...]
  /src/sys/arch/i386/i386/
longrun.c 70 uint64_t msr; member in union:msrinfo
80 /* MSR low, MSR high, flags bit0 */
95 uint64_t msr; local in function:tmx86_init_longrun
97 /* PR #32894, make sure the longrun MSR is present */
98 if (rdmsr_safe(MSR_TMx86_LONGRUN, &msr) == EFAULT)
138 msrinfo.msr = rdmsr(MSR_TMx86_LONGRUN);
186 msrinfo.msr = rdmsr(MSR_TMx86_LONGRUN);
191 wrmsr(MSR_TMx86_LONGRUN, msrinfo.msr);
194 msrinfo.msr = rdmsr(MSR_TMx86_LONGRUN_FLAGS)
    [all...]
  /src/share/man/man9/man9.x86/
Makefile 10 MLINKS+=rdmsr.9 msr.9 \
  /src/sys/arch/i386/pci/
gcscpcib_pci.c 99 gcsc_rdmsr(uint msr)
101 return rdmsr(msr);
105 gcsc_wrmsr(uint msr, uint64_t v)
107 wrmsr(msr, v);
  /src/sys/arch/powerpc/pic/
ipi.c 61 int msr; local in function:ipi_intr
86 msr = (mfmsr() & ~PSL_EE) | PSL_POW;
89 mtmsr(msr);
  /src/sys/arch/powerpc/ibm4xx/
copyinstr.c 51 int rv, msr, pid, tmp, ctx; local in function:copyinstr
76 "mfmsr %[msr];" /* Save MSR */
78 "andc %[tmp],%[msr],%[tmp];"
97 "mtmsr %[msr];" /* Restore MSR */
101 : [msr] "=&r" (msr), [pid] "=&r" (pid), [tmp] "=&r" (tmp),
copyoutstr.c 51 int rv, msr, pid, tmp, ctx; local in function:copyoutstr
76 "mfmsr %[msr];" /* Save MSR */
78 "andc %[tmp],%[msr],%[tmp];"
98 "mtmsr %[msr];" /* Restore MSR */
102 : [msr] "=&r" (msr), [pid] "=&r" (pid), [tmp] "=&r" (tmp),

Completed in 61 milliseconds

1 2 3 4 5 6 7