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

/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/cpu/generic_cpu/
H A Dgcpu_main.c84 uint64_t msr; local
101 if (cmi_hdl_rdmsr(hdl, MSR_PLATFORM_INFO, &msr) != CMI_SUCCESS) {
105 if ((msr & MSR_PLATFORM_INFO_PPIN) == 0) {
109 if (cmi_hdl_rdmsr(hdl, MSR_PPIN_CTL, &msr) != CMI_SUCCESS) {
113 if ((msr & MSR_PPIN_CTL_ENABLED) == 0) {
114 if ((msr & MSR_PPIN_CTL_LOCKED) != 0) {
124 if (cmi_hdl_rdmsr(hdl, MSR_PPIN, &msr) != CMI_SUCCESS) {
135 return (kmem_asprintf("iv0-INTC-%x-%llx", cmi_hdl_chipsig(hdl), msr));
H A Dgcpu_mca.c2083 uint_t msr = regs[i].cmr_msrnum; local
2087 if (cms_msrinject(hdl, msr, val) != CMS_SUCCESS)
2090 errs += (cmi_hdl_wrmsr(hdl, msr, val) != CMI_SUCCESS);
/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 Dmp_startup.c715 msr_warning(cpu_t *cp, const char *rw, uint_t msr, int error) argument
718 cp->cpu_id, rw, msr, error);
935 const uint_t msr = MSR_AMD_PATCHLEVEL; local
938 if ((err = checked_rdmsr(msr, &value)) != 0) {
939 msr_warning(cpu, "rd", msr, err);
996 const uint_t msr = MSR_AMD_HWCR; local
1015 if ((error = checked_rdmsr(msr, &value)) != 0) {
1016 msr_warning(cpu, "rd", msr, error);
1021 if ((error = checked_wrmsr(msr, value)) != 0) {
1022 msr_warning(cpu, "wr", msr, erro
1043 const uint_t msr = MSR_AMD_PATCHLEVEL; local
1081 const uint_t msr = MSR_AMD_NB_CFG; local
[all...]
H A Dmachdep.c1177 checked_rdmsr(uint_t msr, uint64_t *value) argument
1181 *value = rdmsr(msr);
1190 checked_wrmsr(uint_t msr, uint64_t value) argument
1194 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/intel/io/coretemp/
H A Dcoretemp.c102 uint_t msr = (uint_t)arg1; local
109 if (checked_rdmsr(msr, valp) == 0) {
128 coretemp_rdmsr(coretemp_t *ct, cmi_hdl_t hdl, uint_t msr, uint64_t *valp) argument
136 (void) coretemp_rdmsr_xc((xc_arg_t)msr, (xc_arg_t)valp,
140 xc_call((xc_arg_t)msr, (xc_arg_t)valp, (xc_arg_t)&ret,
/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/uts/sun4/io/
H A Dsu_driver.c131 static void asy_ppsevent(struct asycom *asy, int msr);
1918 asy_ppsevent(struct asycom *asy, int msr) argument
1922 if ((msr & DCD) == 0)
1928 } else if (msr & DCD) {
1981 int msr; local
1983 msr = INB(MSR); /* this resets the interrupt */
1984 asy->asy_cached_msr = msr;
1989 (msr & DCTS) ? "CTS" : " ",
1990 (msr & DDSR) ? "DSR" : " ",
1991 (msr
[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/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 246 milliseconds