Searched defs:msr (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/uts/i86pc/io/apix/
H A Dapix_regops.c46 static uint64_t local_x2apic_read(uint32_t msr);
47 static void local_x2apic_write(uint32_t msr, uint64_t value);
80 local_x2apic_read(uint32_t msr) argument
84 i = (uint64_t)(rdmsr(REG_X2APIC_BASE_MSR + (msr >> 2)) & 0xffffffff);
89 local_x2apic_write(uint32_t msr, uint64_t value) argument
93 if (msr != APIC_EOI_REG) {
94 tmp = rdmsr(REG_X2APIC_BASE_MSR + (msr >> 2));
100 wrmsr((REG_X2APIC_BASE_MSR + (msr >> 2)), tmp);
/illumos-gate/usr/src/uts/i86pc/io/vmm/
H A Dvmm_lapic.c153 x2apic_msr(u_int msr) argument
155 return (msr >= 0x800 && msr <= 0xBFF);
159 x2apic_msr_to_regoff(u_int msr) argument
162 return ((msr - 0x800) << 4);
166 lapic_msr(u_int msr) argument
169 return (x2apic_msr(msr) || msr == MSR_APICBASE);
173 lapic_rdmsr(struct vm *vm, int cpu, u_int msr, uint64_t *rval) argument
181 if (msr
193 lapic_wrmsr(struct vm *vm, int cpu, u_int msr, uint64_t val) argument
[all...]
/illumos-gate/usr/src/compat/bhyve/amd64/machine/
H A Dcpufunc.h116 rdmsr(u_int msr) argument
120 __asm __volatile("rdmsr" : "=a" (low), "=d" (high) : "c" (msr));
134 wrmsr(u_int msr, uint64_t newval) argument
140 __asm __volatile("wrmsr" : : "a" (low), "d" (high), "c" (msr));
/illumos-gate/usr/src/uts/i86pc/io/vmm/intel/
H A Dvmx_msr.c125 "correct value of ctl bit %d for msr "
126 "0x%0x and true msr 0x%0x", i, ctl_reg,
143 msr_bitmap_change_access(char *bitmap, u_int msr, int access) argument
147 if (msr <= 0x00001FFF)
148 byte = msr / 8;
149 else if (msr >= 0xC0000000 && msr <= 0xC0001FFF)
150 byte = 1024 + (msr - 0xC0000000) / 8;
154 bit = msr & 0x7;
/illumos-gate/usr/src/uts/intel/io/coretemp/
H A Dcoretemp.c109 uint_t msr = (uint_t)arg1; local
116 if (checked_rdmsr(msr, valp) == 0) {
135 coretemp_rdmsr(coretemp_t *ct, cmi_hdl_t hdl, uint_t msr, uint64_t *valp) argument
143 (void) coretemp_rdmsr_xc((xc_arg_t)msr, (xc_arg_t)valp,
147 xc_call((xc_arg_t)msr, (xc_arg_t)valp, (xc_arg_t)&ret,
/illumos-gate/usr/src/uts/common/sys/usb/clients/usbser/usbser_keyspan/
H A Dusa90msg.h163 uint8_t msr; /* reports the actual MSR register */ member in struct:keyspan_usa19hs_port_status_msg
/illumos-gate/usr/src/uts/common/io/urf/
H A Durf_usbgem.c591 uint8_t msr; local
596 IN(dp, MSR, &msr, errp, usberr);
599 if ((msr & MSR_LINK) == 0) {
/illumos-gate/usr/src/uts/i86pc/os/
H A Dcms.c569 cms_msrinject(cmi_hdl_t hdl, uint_t msr, uint64_t val) argument
574 return (CMS_OPS(cms)->cms_msrinject(hdl, msr, val));
H A Dhma.c400 uint64_t msr; local
403 msr = rdmsr(MSR_IA32_VMX_BASIC);
404 if ((msr & IA32_VMX_BASIC_INS_OUTS) == 0) {
409 hma_vmx_revision = (uint32_t)msr;
415 query_true_ctl = (msr & IA32_VMX_BASIC_TRUE_CTRLS) != 0;
418 msr = rdmsr(query_true_ctl ?
420 if (VMX_CTL_ONE_SETTING(msr, IA32_VMX_PROCBASED_2ND_CTLS)) {
421 msr = rdmsr(MSR_IA32_VMX_PROCBASED2_CTLS);
422 if (VMX_CTL_ONE_SETTING(msr, IA32_VMX_PROCBASED2_EPT)) {
425 if (VMX_CTL_ONE_SETTING(msr, IA32_VMX_PROCBASED2_VPI
450 uint64_t msr; local
658 uint64_t msr; local
[all...]
H A Dmp_startup.c717 msr_warning(cpu_t *cp, const char *rw, uint_t msr, int error) argument
720 cp->cpu_id, rw, msr, error);
937 const uint_t msr = MSR_AMD_PATCHLEVEL; local
940 if ((err = checked_rdmsr(msr, &value)) != 0) {
941 msr_warning(cpu, "rd", msr, err);
998 const uint_t msr = MSR_AMD_HWCR; local
1017 if ((error = checked_rdmsr(msr, &value)) != 0) {
1018 msr_warning(cpu, "rd", msr, error);
1023 if ((error = checked_wrmsr(msr, value)) != 0) {
1024 msr_warning(cpu, "wr", msr, erro
1045 const uint_t msr = MSR_AMD_PATCHLEVEL; local
1083 const uint_t msr = MSR_AMD_NB_CFG; local
[all...]
H A Dmachdep.c1183 checked_rdmsr(uint_t msr, uint64_t *value) argument
1187 *value = rdmsr(msr);
1196 checked_wrmsr(uint_t msr, uint64_t value) argument
1200 wrmsr(msr, value);
H A Dcmi_hw.c304 #define CMI_MSRI_HASHIDX(hdl, msr) \
305 (((uintptr_t)(hdl) >> 3 + (msr)) % (CMI_MSRI_HASHSZ - 1))
326 msri_addent(cmi_hdl_impl_t *hdl, uint_t msr, uint64_t val) argument
328 int idx = CMI_MSRI_HASHIDX(hdl, msr);
335 if (CMI_MSRI_MATCH(hep, hdl, msr))
344 hep->msrie_msrnum = msr;
358 * Look for a match for the given hanlde and msr. Return 1 with valp
362 msri_lookup(cmi_hdl_impl_t *hdl, uint_t msr, uint64_t *valp) argument
364 int idx = CMI_MSRI_HASHIDX(hdl, msr);
380 if (CMI_MSRI_MATCH(hep, hdl, msr)) {
395 msri_rment(cmi_hdl_impl_t *hdl, uint_t msr) argument
752 uint_t msr = (uint_t)arg1; local
773 ntv_rdmsr(cmi_hdl_impl_t *hdl, uint_t msr, uint64_t *valp) argument
790 uint_t msr = (uint_t)arg1; local
811 ntv_wrmsr(cmi_hdl_impl_t *hdl, uint_t msr, uint64_t val) argument
823 ntv_msrinterpose(cmi_hdl_impl_t *hdl, uint_t msr, uint64_t val) argument
1022 xpv_rdmsr(cmi_hdl_impl_t *hdl, uint_t msr, uint64_t *valp) argument
1049 xpv_wrmsr_cmn(cmi_hdl_impl_t *hdl, uint_t msr, uint64_t val, boolean_t intpose) argument
1074 xpv_wrmsr(cmi_hdl_impl_t *hdl, uint_t msr, uint64_t val) argument
1081 xpv_msrinterpose(cmi_hdl_impl_t *hdl, uint_t msr, uint64_t val) argument
1755 cmi_hdl_rdmsr(cmi_hdl_t ophdl, uint_t msr, uint64_t *valp) argument
1777 cmi_hdl_wrmsr(cmi_hdl_t ophdl, uint_t msr, uint64_t val) argument
[all...]
/illumos-gate/usr/src/uts/i86pc/cpu/amd_opteron/
H A Dao_mca.c756 ao_ms_msrinject(cmi_hdl_t hdl, uint_t msr, uint64_t val) argument
762 if (cmi_hdl_wrmsr(hdl, msr, val) == CMI_SUCCESS)
/illumos-gate/usr/src/uts/i86pc/cpu/authenticamd/
H A Dauthamd_main.c1110 authamd_msrinject(cmi_hdl_t hdl, uint_t msr, uint64_t val) argument
1116 if (cmi_hdl_wrmsr(hdl, msr, val) == CMI_SUCCESS)
/illumos-gate/usr/src/uts/common/io/axf/
H A Daxf_usbgem.c261 uint16_t msr; member in struct:axf_dev
434 lp->msr = MSR_TXABT;
436 lp->msr = 0;
439 lp->msr = MSR_RE | MSR_TXABT;
441 DPRINTF(0, (CE_CONT, "!%s: %s: msr:%b",
442 dp->name, __func__, lp->msr, MSR_BITS));
610 uint16_t msr; local
618 msr = lp->msr;
626 msr
[all...]
/illumos-gate/usr/src/boot/sys/amd64/include/
H A Dcpufunc.h352 rdmsr(u_int msr) argument
356 __asm __volatile("rdmsr" : "=a" (low), "=d" (high) : "c" (msr));
361 rdmsr32(u_int msr) argument
365 __asm __volatile("rdmsr" : "=a" (low) : "c" (msr) : "rdx");
409 wrmsr(u_int msr, uint64_t newval) argument
415 __asm __volatile("wrmsr" : : "a" (low), "d" (high), "c" (msr));
853 uint64_t rdmsr(u_int msr);
854 uint32_t rdmsr32(u_int msr);
868 void wrmsr(u_int msr, uint64_t newval);
875 int rdmsr_safe(u_int msr, uint64_
[all...]
/illumos-gate/usr/src/boot/sys/i386/include/
H A Dcpufunc.h330 rdmsr(u_int msr) argument
334 __asm __volatile("rdmsr" : "=A" (rv) : "c" (msr));
339 rdmsr32(u_int msr) argument
343 __asm __volatile("rdmsr" : "=a" (low) : "c" (msr) : "edx");
387 wrmsr(u_int msr, uint64_t newval) argument
389 __asm __volatile("wrmsr" : : "A" (newval), "c" (msr));
766 uint64_t rdmsr(u_int msr);
788 void wrmsr(u_int msr, uint64_t newval);
795 int rdmsr_safe(u_int msr, uint64_t *val);
796 int wrmsr_safe(u_int msr, uint64_
[all...]
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbftdi/
H A Duftdi_dsd.c1656 uint8_t msr = FTDI_GET_MSR(data->b_rptr); local
1664 if (uf->uf_msr != msr) {
1669 "uftdi_bulkin_cb: new msr: 0x%02x -> 0x%02x",
1670 uf->uf_msr, msr);
1672 uf->uf_msr = msr;
/illumos-gate/usr/src/cmd/bhyve/
H A Duart_emul.c132 uint8_t msr; /* Modem status register (R/W) */ member in struct:uart_softc
350 uint8_t msr; local
357 msr = 0;
359 msr |= MSR_CTS;
361 msr |= MSR_DSR;
363 msr |= MSR_RI;
365 msr |= MSR_DCD;
371 msr = MSR_DCD | MSR_DSR;
373 assert((msr & MSR_DELTA_MASK) == 0);
375 return (msr);
471 uint8_t msr; local
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dasy.c2360 asy_ppsevent(struct asycom *asy, int msr) argument
2364 if ((msr & DCD) == 0)
2370 } else if (msr & DCD) {
2566 int msr, t_cflag = async->async_ttycommon.t_cflag; local
2573 msr = ddi_get8(asy->asy_iohandle, asy->asy_ioaddr + MSR);
2580 (msr & DCTS) ? "DCTS" : " ",
2581 (msr & DDSR) ? "DDSR" : " ",
2582 (msr & DRI) ? "DRI " : " ",
2583 (msr & DDCD) ? "DDCD" : " ",
2584 (msr
[all...]
/illumos-gate/usr/src/uts/i86pc/cpu/generic_cpu/
H A Dgcpu_mca.c2086 uint_t msr = regs[i].cmr_msrnum; local
2090 if (cms_msrinject(hdl, msr, val) != CMS_SUCCESS)
2093 errs += (cmi_hdl_wrmsr(hdl, msr, val) != CMI_SUCCESS);
/illumos-gate/usr/src/uts/sun4/io/
H A Dsu_driver.c131 static void asy_ppsevent(struct asycom *asy, int msr);
1916 asy_ppsevent(struct asycom *asy, int msr) argument
1920 if ((msr & DCD) == 0)
1926 } else if (msr & DCD) {
1979 int msr; local
1981 msr = INB(MSR); /* this resets the interrupt */
1982 asy->asy_cached_msr = msr;
1987 (msr & DCTS) ? "CTS" : " ",
1988 (msr & DDSR) ? "DSR" : " ",
1989 (msr
[all...]
/illumos-gate/usr/src/uts/i86pc/io/vmm/amd/
H A Dsvm.c241 uint64_t msr; local
256 msr = rdmsr(MSR_VM_CR);
257 if ((msr & VM_CR_SVMDIS) != 0) {
350 svm_msr_index(uint64_t msr, int *index, int *bit) argument
355 *bit = (msr % 4) * 2;
358 if (msr <= MSR_PENTIUM_END) {
359 *index = msr / 4;
364 if (msr >= MSR_AMD6TH_START && msr <= MSR_AMD6TH_END) {
365 off = (msr
384 svm_msr_perm(uint8_t *perm_bitmap, uint64_t msr, bool read, bool write) argument
403 svm_msr_rw_ok(uint8_t *perm_bitmap, uint64_t msr) argument
410 svm_msr_rd_ok(uint8_t *perm_bitmap, uint64_t msr) argument
[all...]
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dvmm.h349 } msr; member in union:vm_exit::__anon8
/illumos-gate/usr/src/uts/common/io/rtw/
H A Drtw.c1638 uint8_t msr; local
1643 msr = RTW_READ8(&rsc->sc_regs, RTW_MSR) & ~RTW_MSR_NETYPE_MASK;
1648 msr |= RTW_MSR_NETYPE_ADHOC_OK;
1651 msr |= RTW_MSR_NETYPE_AP_OK;
1654 msr |= RTW_MSR_NETYPE_INFRA_OK;
1657 RTW_WRITE8(&rsc->sc_regs, RTW_MSR, msr);

Completed in 166 milliseconds

12