Home
last modified time | relevance | path

Searched refs:msr (Results 1 – 25 of 63) sorted by relevance

123

/drivers/cpufreq/
Dspeedstep-centrino.c286 static unsigned extract_clock(unsigned msr, unsigned int cpu, int failsafe) in extract_clock() argument
298 msr = (msr >> 8) & 0xff; in extract_clock()
299 return msr * 100000; in extract_clock()
306 msr &= 0xffff; in extract_clock()
311 if (msr == per_cpu(centrino_model, cpu)->op_points[i].driver_data) in extract_clock()
423 unsigned int msr, oldmsr = 0, h = 0, cpu = policy->cpu; in centrino_target() local
462 msr = op_points->driver_data; in centrino_target()
466 if (msr == (oldmsr & 0xffff)) { in centrino_target()
476 msr &= 0xffff; in centrino_target()
477 oldmsr |= msr; in centrino_target()
Dacpi-cpufreq.c87 static struct msr __percpu *msrs;
92 u64 msr; in boost_state() local
97 msr = lo | ((u64)hi << 32); in boost_state()
98 return !(msr & MSR_IA32_MISC_ENABLE_TURBO_DISABLE); in boost_state()
101 msr = lo | ((u64)hi << 32); in boost_state()
102 return !(msr & MSR_K7_HWCR_CPB_DIS); in boost_state()
129 struct msr *reg = per_cpu_ptr(msrs, cpu); in boost_set_msrs()
217 static unsigned extract_msr(struct cpufreq_policy *policy, u32 msr) in extract_msr() argument
224 msr &= AMD_MSR_RANGE; in extract_msr()
226 msr &= INTEL_MSR_RANGE; in extract_msr()
[all …]
/drivers/usb/serial/
Dmct_u232.c310 unsigned char *msr) in mct_u232_get_modem_stat() argument
317 *msr = 0; in mct_u232_get_modem_stat()
331 *msr = 0; in mct_u232_get_modem_stat()
333 *msr = buf[0]; in mct_u232_get_modem_stat()
335 dev_dbg(&port->dev, "get_modem_stat: 0x%x\n", *msr); in mct_u232_get_modem_stat()
341 unsigned char msr) in mct_u232_msr_to_icount() argument
344 if (msr & MCT_U232_MSR_DDSR) in mct_u232_msr_to_icount()
346 if (msr & MCT_U232_MSR_DCTS) in mct_u232_msr_to_icount()
348 if (msr & MCT_U232_MSR_DRI) in mct_u232_msr_to_icount()
350 if (msr & MCT_U232_MSR_DCD) in mct_u232_msr_to_icount()
[all …]
Dark3116.c77 __u32 msr; /* modem status register value */ member
386 priv->msr = *buf; in ark3116_open()
466 status = priv->msr; in ark3116_tiocmget()
533 static void ark3116_update_msr(struct usb_serial_port *port, __u8 msr) in ark3116_update_msr() argument
539 priv->msr = msr; in ark3116_update_msr()
542 if (msr & UART_MSR_ANY_DELTA) { in ark3116_update_msr()
544 if (msr & UART_MSR_DCTS) in ark3116_update_msr()
546 if (msr & UART_MSR_DDSR) in ark3116_update_msr()
548 if (msr & UART_MSR_DDCD) in ark3116_update_msr()
550 if (msr & UART_MSR_TERI) in ark3116_update_msr()
Df81232.c505 u8 mcr, msr; in f81232_tiocmget() local
512 msr = port_priv->modem_status; in f81232_tiocmget()
517 (msr & UART_MSR_CTS ? TIOCM_CTS : 0) | in f81232_tiocmget()
518 (msr & UART_MSR_DCD ? TIOCM_CAR : 0) | in f81232_tiocmget()
519 (msr & UART_MSR_RI ? TIOCM_RI : 0) | in f81232_tiocmget()
520 (msr & UART_MSR_DSR ? TIOCM_DSR : 0); in f81232_tiocmget()
578 u8 msr; in f81232_carrier_raised() local
582 msr = priv->modem_status; in f81232_carrier_raised()
585 if (msr & UART_MSR_DCD) in f81232_carrier_raised()
Dti_usb_3410_5052.c341 static void ti_handle_new_msr(struct ti_port *tport, u8 msr);
1061 unsigned int msr; in ti_tiocmget() local
1066 msr = tport->tp_msr; in ti_tiocmget()
1073 | ((msr & TI_MSR_CTS) ? TIOCM_CTS : 0) in ti_tiocmget()
1074 | ((msr & TI_MSR_CD) ? TIOCM_CAR : 0) in ti_tiocmget()
1075 | ((msr & TI_MSR_RI) ? TIOCM_RI : 0) in ti_tiocmget()
1076 | ((msr & TI_MSR_DSR) ? TIOCM_DSR : 0); in ti_tiocmget()
1153 u8 msr; in ti_interrupt_callback() local
1203 msr = data[1]; in ti_interrupt_callback()
1204 dev_dbg(dev, "%s - port %d, msr 0x%02X\n", __func__, port_number, msr); in ti_interrupt_callback()
[all …]
Dssu100.c458 static void ssu100_update_msr(struct usb_serial_port *port, u8 msr) in ssu100_update_msr() argument
464 priv->shadowMSR = msr; in ssu100_update_msr()
467 if (msr & UART_MSR_ANY_DELTA) { in ssu100_update_msr()
469 if (msr & UART_MSR_DCTS) in ssu100_update_msr()
471 if (msr & UART_MSR_DDSR) in ssu100_update_msr()
473 if (msr & UART_MSR_DDCD) in ssu100_update_msr()
475 if (msr & UART_MSR_TERI) in ssu100_update_msr()
Dio_ti.c1559 static void handle_new_msr(struct edgeport_port *edge_port, __u8 msr) in handle_new_msr() argument
1564 dev_dbg(&edge_port->port->dev, "%s - %02x\n", __func__, msr); in handle_new_msr()
1566 if (msr & (EDGEPORT_MSR_DELTA_CTS | EDGEPORT_MSR_DELTA_DSR | in handle_new_msr()
1571 if (msr & EDGEPORT_MSR_DELTA_CTS) in handle_new_msr()
1573 if (msr & EDGEPORT_MSR_DELTA_DSR) in handle_new_msr()
1575 if (msr & EDGEPORT_MSR_DELTA_CD) in handle_new_msr()
1577 if (msr & EDGEPORT_MSR_DELTA_RI) in handle_new_msr()
1583 edge_port->shadow_msr = msr & 0xf0; in handle_new_msr()
1588 if (msr & EDGEPORT_MSR_CTS) in handle_new_msr()
1640 __u8 msr; in edge_interrupt_callback() local
[all …]
/drivers/tty/serial/
Dvr41xx_siu.c223 uint8_t msr; in siu_get_mctrl() local
226 msr = siu_read(port, UART_MSR); in siu_get_mctrl()
227 if (msr & UART_MSR_DCD) in siu_get_mctrl()
229 if (msr & UART_MSR_RI) in siu_get_mctrl()
231 if (msr & UART_MSR_DSR) in siu_get_mctrl()
233 if (msr & UART_MSR_CTS) in siu_get_mctrl()
373 uint8_t msr; in check_modem_status() local
375 msr = siu_read(port, UART_MSR); in check_modem_status()
376 if ((msr & UART_MSR_ANY_DELTA) == 0) in check_modem_status()
378 if (msr & UART_MSR_DDCD) in check_modem_status()
[all …]
Dmen_z135_uart.c186 u8 msr; in men_z135_handle_modem_status() local
188 msr = (uart->stat_reg >> 8) & 0xff; in men_z135_handle_modem_status()
190 if (msr & MEN_Z135_MSR_DDCD) in men_z135_handle_modem_status()
192 msr & MEN_Z135_MSR_DCD); in men_z135_handle_modem_status()
193 if (msr & MEN_Z135_MSR_DCTS) in men_z135_handle_modem_status()
195 msr & MEN_Z135_MSR_CTS); in men_z135_handle_modem_status()
527 u8 msr; in men_z135_get_mctrl() local
529 msr = ioread8(port->membase + MEN_Z135_STAT_REG + 1); in men_z135_get_mctrl()
531 if (msr & MEN_Z135_MSR_CTS) in men_z135_get_mctrl()
533 if (msr & MEN_Z135_MSR_DSR) in men_z135_get_mctrl()
[all …]
Dserial-tegra.c664 unsigned long msr; in tegra_uart_handle_modem_signal_change() local
666 msr = tegra_uart_read(tup, UART_MSR); in tegra_uart_handle_modem_signal_change()
667 if (!(msr & UART_MSR_ANY_DELTA)) in tegra_uart_handle_modem_signal_change()
670 if (msr & UART_MSR_TERI) in tegra_uart_handle_modem_signal_change()
672 if (msr & UART_MSR_DDSR) in tegra_uart_handle_modem_signal_change()
675 if (msr & UART_MSR_DDCD) in tegra_uart_handle_modem_signal_change()
676 uart_handle_dcd_change(&tup->uport, msr & UART_MSR_DCD); in tegra_uart_handle_modem_signal_change()
678 if (msr & UART_MSR_DCTS) in tegra_uart_handle_modem_signal_change()
679 uart_handle_cts_change(&tup->uport, msr & UART_MSR_CTS); in tegra_uart_handle_modem_signal_change()
780 unsigned long msr; in tegra_uart_hw_deinit() local
[all …]
/drivers/i2c/busses/
Di2c-rcar.c422 static void rcar_i2c_irq_send(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_send() argument
427 if (!(msr & MDE)) in rcar_i2c_irq_send()
445 if (msr & MAT) in rcar_i2c_irq_send()
472 static void rcar_i2c_irq_recv(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_recv() argument
477 if (!(msr & MDR)) in rcar_i2c_irq_recv()
480 if (msr & MAT) { in rcar_i2c_irq_recv()
564 u32 msr, val; in rcar_i2c_irq() local
570 msr = rcar_i2c_read(priv, ICMSR); in rcar_i2c_irq()
573 msr &= rcar_i2c_read(priv, ICMIER); in rcar_i2c_irq()
574 if (!msr) { in rcar_i2c_irq()
[all …]
Di2c-sh7760.c117 unsigned long msr, fsr, fier, len; in sh7760_i2c_irq() local
119 msr = IN32(id, I2CMSR); in sh7760_i2c_irq()
123 if (msr & MSR_MAL) { in sh7760_i2c_irq()
131 if (msr & MSR_MNR) { in sh7760_i2c_irq()
146 msr &= ~MSR_MAT; in sh7760_i2c_irq()
152 if (msr & MSR_MST) { in sh7760_i2c_irq()
158 if (msr & MSR_MAT) in sh7760_i2c_irq()
231 OUT32(id, I2CMSR, ~msr); in sh7760_i2c_irq()
/drivers/video/fbdev/i810/
Di810_gtf.c129 u8 msr = 0; in i810fb_encode_registers() local
191 msr |= 1 << 6; in i810fb_encode_registers()
193 msr |= 1 << 7; in i810fb_encode_registers()
194 par->regs.msr = msr; in i810fb_encode_registers()
Di810_dvt.c266 if (~(std_modes[mode].msr & (1 << 6))) in i810fb_fill_var_timings()
268 if (~(std_modes[mode].msr & (1 << 7))) in i810fb_fill_var_timings()
/drivers/mfd/
Dezx-pcap.c46 u32 msr; member
151 pcap->msr |= 1 << irq_to_pcap(pcap, d->irq); in pcap_mask_irq()
159 pcap->msr &= ~(1 << irq_to_pcap(pcap, d->irq)); in pcap_unmask_irq()
174 ezx_pcap_write(pcap, PCAP_REG_MSR, pcap->msr); in pcap_msr_work()
181 u32 msr, isr, int_sel, service; in pcap_isr_work() local
185 ezx_pcap_read(pcap, PCAP_REG_MSR, &msr); in pcap_isr_work()
194 ezx_pcap_write(pcap, PCAP_REG_MSR, isr | msr); in pcap_isr_work()
198 service = isr & ~msr; in pcap_isr_work()
204 ezx_pcap_write(pcap, PCAP_REG_MSR, pcap->msr); in pcap_isr_work()
472 pcap->msr = PCAP_MASK_ALL_INTERRUPT; in ezx_pcap_probe()
/drivers/misc/
Dcs5535-mfgpt.c50 uint32_t msr, mask, value, dummy; in cs5535_mfgpt_toggle_event() local
69 msr = MSR_MFGPT_NR; in cs5535_mfgpt_toggle_event()
74 msr = MSR_MFGPT_NR; in cs5535_mfgpt_toggle_event()
79 msr = MSR_MFGPT_IRQ; in cs5535_mfgpt_toggle_event()
87 rdmsr(msr, value, dummy); in cs5535_mfgpt_toggle_event()
94 wrmsr(msr, value, dummy); in cs5535_mfgpt_toggle_event()
/drivers/idle/
Dintel_idle.c1254 unsigned long long msr; in bxt_idle_state_table_update() local
1257 rdmsrl(MSR_PKGC6_IRTL, msr); in bxt_idle_state_table_update()
1258 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1264 rdmsrl(MSR_PKGC7_IRTL, msr); in bxt_idle_state_table_update()
1265 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1271 rdmsrl(MSR_PKGC8_IRTL, msr); in bxt_idle_state_table_update()
1272 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1278 rdmsrl(MSR_PKGC9_IRTL, msr); in bxt_idle_state_table_update()
1279 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1285 rdmsrl(MSR_PKGC10_IRTL, msr); in bxt_idle_state_table_update()
[all …]
/drivers/net/hamradio/
Dbaycom_ser_fdx.c293 unsigned char iir, msr; in ser12_interrupt() local
303 msr = inb(MSR(dev->base_addr)); in ser12_interrupt()
305 if ((msr & 8) && bc->opt_dcd) in ser12_interrupt()
306 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); in ser12_interrupt()
337 msr = inb(MSR(dev->base_addr)); in ser12_interrupt()
339 if ((msr & 8) && bc->opt_dcd) in ser12_interrupt()
340 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); in ser12_interrupt()
345 ser12_rx(dev, bc, &ts, msr & 0x10); /* CTS */ in ser12_interrupt()
/drivers/video/fbdev/geode/
Dsuspend_gx.c30 rdmsrl(MSR_GX_MSR_PADSEL, par->msr.padsel); in gx_save_regs()
31 rdmsrl(MSR_GLCP_DOTPLL, par->msr.dotpll); in gx_save_regs()
142 wrmsrl(MSR_GX_MSR_PADSEL, par->msr.padsel); in gx_restore_video_proc()
179 gx_set_dotpll((uint32_t) (par->msr.dotpll >> 32)); in gx_restore_regs()
Dlxfb_ops.c600 rdmsrl(MSR_LX_MSR_PADSEL, par->msr.padsel); in lx_save_regs()
601 rdmsrl(MSR_GLCP_DOTPLL, par->msr.dotpll); in lx_save_regs()
602 rdmsrl(MSR_LX_GLD_MSR_CONFIG, par->msr.dfglcfg); in lx_save_regs()
603 rdmsrl(MSR_LX_SPARE_MSR, par->msr.dcspare); in lx_save_regs()
673 wrmsrl(MSR_LX_SPARE_MSR, par->msr.dcspare); in lx_restore_display_ctlr()
737 wrmsrl(MSR_LX_GLD_MSR_CONFIG, par->msr.dfglcfg); in lx_restore_video_proc()
738 wrmsrl(MSR_LX_MSR_PADSEL, par->msr.padsel); in lx_restore_video_proc()
772 lx_set_dotpll((u32) (par->msr.dotpll >> 32)); in lx_restore_regs()
/drivers/ssb/
Ddriver_extif.c43 u8 save_mcr, msr = 0; in serial_exists() local
48 msr = regs[UART_MSR] & (UART_MSR_DCD | UART_MSR_RI in serial_exists()
52 return (msr == (UART_MSR_DCD | UART_MSR_CTS)); in serial_exists()
/drivers/powercap/
Dintel_rapl.c812 u32 msr; in rapl_read_data_raw() local
819 msr = rd->msrs[rp->id]; in rapl_read_data_raw()
820 if (!msr) in rapl_read_data_raw()
836 if (rdmsrl_safe_on_cpu(cpu, msr, &value)) { in rapl_read_data_raw()
837 pr_debug("failed to read msr 0x%x on cpu %d\n", msr, cpu); in rapl_read_data_raw()
1410 unsigned msr; in rapl_check_domain() local
1415 msr = MSR_PKG_ENERGY_STATUS; in rapl_check_domain()
1418 msr = MSR_PP0_ENERGY_STATUS; in rapl_check_domain()
1421 msr = MSR_PP1_ENERGY_STATUS; in rapl_check_domain()
1424 msr = MSR_DRAM_ENERGY_STATUS; in rapl_check_domain()
[all …]
/drivers/bluetooth/
Ddtl1_cs.c293 unsigned char msr; in dtl1_interrupt() local
340 msr = inb(iobase + UART_MSR); in dtl1_interrupt()
342 if (info->ri_latch ^ (msr & UART_MSR_RI)) { in dtl1_interrupt()
343 info->ri_latch = msr & UART_MSR_RI; in dtl1_interrupt()
/drivers/acpi/
Dprocessor_throttling.c725 u64 msr = 0; in acpi_throttling_rdmsr() local
737 msr = (msr_high << 32) | msr_low; in acpi_throttling_rdmsr()
738 *value = (u64) msr; in acpi_throttling_rdmsr()
747 u64 msr; in acpi_throttling_wrmsr() local
754 msr = value; in acpi_throttling_wrmsr()
756 msr & 0xffffffff, msr >> 32); in acpi_throttling_wrmsr()

123