Home
last modified time | relevance | path

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

123

/drivers/cpufreq/
Dspeedstep-centrino.c287 static unsigned extract_clock(unsigned msr, unsigned int cpu, int failsafe) in extract_clock() argument
299 msr = (msr >> 8) & 0xff; in extract_clock()
300 return msr * 100000; in extract_clock()
307 msr &= 0xffff; in extract_clock()
312 if (msr == per_cpu(centrino_model, cpu)->op_points[i].driver_data) in extract_clock()
424 unsigned int msr, oldmsr = 0, h = 0, cpu = policy->cpu; in centrino_target() local
463 msr = op_points->driver_data; in centrino_target()
467 if (msr == (oldmsr & 0xffff)) { in centrino_target()
477 msr &= 0xffff; in centrino_target()
478 oldmsr |= msr; in centrino_target()
Dacpi-cpufreq.c77 u64 msr; in boost_state() local
82 msr = lo | ((u64)hi << 32); in boost_state()
83 return !(msr & MSR_IA32_MISC_ENABLE_TURBO_DISABLE); in boost_state()
87 msr = lo | ((u64)hi << 32); in boost_state()
88 return !(msr & MSR_K7_HWCR_CPB_DIS); in boost_state()
210 static unsigned extract_msr(struct cpufreq_policy *policy, u32 msr) in extract_msr() argument
217 msr &= AMD_MSR_RANGE; in extract_msr()
219 msr &= HYGON_MSR_RANGE; in extract_msr()
221 msr &= INTEL_MSR_RANGE; in extract_msr()
226 if (msr == perf->states[pos->driver_data].status) in extract_msr()
/drivers/usb/serial/
Dmct_u232.c306 unsigned char *msr) in mct_u232_get_modem_stat() argument
313 *msr = 0; in mct_u232_get_modem_stat()
327 *msr = 0; in mct_u232_get_modem_stat()
329 *msr = buf[0]; in mct_u232_get_modem_stat()
331 dev_dbg(&port->dev, "get_modem_stat: 0x%x\n", *msr); in mct_u232_get_modem_stat()
337 unsigned char msr) in mct_u232_msr_to_icount() argument
340 if (msr & MCT_U232_MSR_DDSR) in mct_u232_msr_to_icount()
342 if (msr & MCT_U232_MSR_DCTS) in mct_u232_msr_to_icount()
344 if (msr & MCT_U232_MSR_DRI) in mct_u232_msr_to_icount()
346 if (msr & MCT_U232_MSR_DCD) in mct_u232_msr_to_icount()
[all …]
Df81534.c764 u8 msr; in f81534_check_port_hw_disabled() local
771 F81534_MODEM_STATUS_REG, &msr); in f81534_check_port_hw_disabled()
775 if ((msr & msr_mask) != msr_mask) in f81534_check_port_hw_disabled()
1014 static void f81534_msr_changed(struct usb_serial_port *port, u8 msr) in f81534_msr_changed() argument
1021 if (!(msr & UART_MSR_ANY_DELTA)) in f81534_msr_changed()
1026 port_priv->shadow_msr = msr; in f81534_msr_changed()
1030 msr); in f81534_msr_changed()
1033 if (msr & UART_MSR_DCTS) in f81534_msr_changed()
1035 if (msr & UART_MSR_DDSR) in f81534_msr_changed()
1037 if (msr & UART_MSR_DDCD) in f81534_msr_changed()
[all …]
Dark3116.c73 __u32 msr; /* modem status register value */ member
351 priv->msr = *buf; in ark3116_open()
401 status = priv->msr; in ark3116_tiocmget()
468 static void ark3116_update_msr(struct usb_serial_port *port, __u8 msr) in ark3116_update_msr() argument
474 priv->msr = msr; in ark3116_update_msr()
477 if (msr & UART_MSR_ANY_DELTA) { in ark3116_update_msr()
479 if (msr & UART_MSR_DCTS) in ark3116_update_msr()
481 if (msr & UART_MSR_DDSR) in ark3116_update_msr()
483 if (msr & UART_MSR_DDCD) in ark3116_update_msr()
485 if (msr & UART_MSR_TERI) in ark3116_update_msr()
Dti_usb_3410_5052.c332 static void ti_handle_new_msr(struct ti_port *tport, u8 msr);
1019 unsigned int msr; in ti_tiocmget() local
1024 msr = tport->tp_msr; in ti_tiocmget()
1031 | ((msr & TI_MSR_CTS) ? TIOCM_CTS : 0) in ti_tiocmget()
1032 | ((msr & TI_MSR_CD) ? TIOCM_CAR : 0) in ti_tiocmget()
1033 | ((msr & TI_MSR_RI) ? TIOCM_RI : 0) in ti_tiocmget()
1034 | ((msr & TI_MSR_DSR) ? TIOCM_DSR : 0); in ti_tiocmget()
1111 u8 msr; in ti_interrupt_callback() local
1161 msr = data[1]; in ti_interrupt_callback()
1162 dev_dbg(dev, "%s - port %d, msr 0x%02X\n", __func__, port_number, msr); in ti_interrupt_callback()
[all …]
Dssu100.c418 static void ssu100_update_msr(struct usb_serial_port *port, u8 msr) in ssu100_update_msr() argument
424 priv->shadowMSR = msr; in ssu100_update_msr()
427 if (msr & UART_MSR_ANY_DELTA) { in ssu100_update_msr()
429 if (msr & UART_MSR_DCTS) in ssu100_update_msr()
431 if (msr & UART_MSR_DDSR) in ssu100_update_msr()
433 if (msr & UART_MSR_DDCD) in ssu100_update_msr()
435 if (msr & UART_MSR_TERI) in ssu100_update_msr()
Df81232.c704 u8 mcr, msr; in f81232_tiocmget() local
711 msr = port_priv->modem_status; in f81232_tiocmget()
716 (msr & UART_MSR_CTS ? TIOCM_CTS : 0) | in f81232_tiocmget()
717 (msr & UART_MSR_DCD ? TIOCM_CAR : 0) | in f81232_tiocmget()
718 (msr & UART_MSR_RI ? TIOCM_RI : 0) | in f81232_tiocmget()
719 (msr & UART_MSR_DSR ? TIOCM_DSR : 0); in f81232_tiocmget()
813 u8 msr; in f81232_carrier_raised() local
817 msr = priv->modem_status; in f81232_carrier_raised()
820 if (msr & UART_MSR_DCD) in f81232_carrier_raised()
/drivers/i2c/busses/
Di2c-rcar.c483 static void rcar_i2c_irq_send(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_send() argument
488 if (!(msr & MDE)) in rcar_i2c_irq_send()
530 static void rcar_i2c_irq_recv(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_recv() argument
535 if (!(msr & MDR)) in rcar_i2c_irq_recv()
538 if (msr & MAT) { in rcar_i2c_irq_recv()
634 static irqreturn_t rcar_i2c_irq(int irq, struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq() argument
636 if (!msr) { in rcar_i2c_irq()
644 if (msr & MAL) { in rcar_i2c_irq()
650 if (msr & MNR) { in rcar_i2c_irq()
659 if (msr & MST) { 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/powercap/
Dintel_rapl_msr.c100 u32 msr = (u32)ra->reg; in rapl_msr_read_raw() local
102 if (rdmsrl_safe_on_cpu(cpu, msr, &ra->value)) { in rapl_msr_read_raw()
103 pr_debug("failed to read msr 0x%x on cpu %d\n", msr, cpu); in rapl_msr_read_raw()
113 u32 msr = (u32)ra->reg; in rapl_msr_update_func() local
116 ra->err = rdmsrl_safe(msr, &val); in rapl_msr_update_func()
123 ra->err = wrmsrl_safe(msr, val); in rapl_msr_update_func()
/drivers/tty/serial/
Dvr41xx_siu.c206 uint8_t msr; in siu_get_mctrl() local
209 msr = siu_read(port, UART_MSR); in siu_get_mctrl()
210 if (msr & UART_MSR_DCD) in siu_get_mctrl()
212 if (msr & UART_MSR_RI) in siu_get_mctrl()
214 if (msr & UART_MSR_DSR) in siu_get_mctrl()
216 if (msr & UART_MSR_CTS) in siu_get_mctrl()
356 uint8_t msr; in check_modem_status() local
358 msr = siu_read(port, UART_MSR); in check_modem_status()
359 if ((msr & UART_MSR_ANY_DELTA) == 0) in check_modem_status()
361 if (msr & UART_MSR_DDCD) in check_modem_status()
[all …]
Dmen_z135_uart.c183 u8 msr; in men_z135_handle_modem_status() local
185 msr = (uart->stat_reg >> 8) & 0xff; in men_z135_handle_modem_status()
187 if (msr & MEN_Z135_MSR_DDCD) in men_z135_handle_modem_status()
189 msr & MEN_Z135_MSR_DCD); in men_z135_handle_modem_status()
190 if (msr & MEN_Z135_MSR_DCTS) in men_z135_handle_modem_status()
192 msr & MEN_Z135_MSR_CTS); in men_z135_handle_modem_status()
523 u8 msr; in men_z135_get_mctrl() local
525 msr = ioread8(port->membase + MEN_Z135_STAT_REG + 1); in men_z135_get_mctrl()
527 if (msr & MEN_Z135_MSR_CTS) in men_z135_get_mctrl()
529 if (msr & MEN_Z135_MSR_DSR) in men_z135_get_mctrl()
[all …]
Dserial-tegra.c814 unsigned long msr; in tegra_uart_handle_modem_signal_change() local
816 msr = tegra_uart_read(tup, UART_MSR); in tegra_uart_handle_modem_signal_change()
817 if (!(msr & UART_MSR_ANY_DELTA)) in tegra_uart_handle_modem_signal_change()
820 if (msr & UART_MSR_TERI) in tegra_uart_handle_modem_signal_change()
822 if (msr & UART_MSR_DDSR) in tegra_uart_handle_modem_signal_change()
825 if (msr & UART_MSR_DDCD) in tegra_uart_handle_modem_signal_change()
826 uart_handle_dcd_change(&tup->uport, msr & UART_MSR_DCD); in tegra_uart_handle_modem_signal_change()
828 if (msr & UART_MSR_DCTS) in tegra_uart_handle_modem_signal_change()
829 uart_handle_cts_change(&tup->uport, msr & UART_MSR_CTS); in tegra_uart_handle_modem_signal_change()
943 unsigned long msr; in tegra_uart_hw_deinit() local
[all …]
/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()
/drivers/mfd/
Dezx-pcap.c42 u32 msr; member
150 pcap->msr |= 1 << irq_to_pcap(pcap, d->irq); in pcap_mask_irq()
158 pcap->msr &= ~(1 << irq_to_pcap(pcap, d->irq)); in pcap_unmask_irq()
173 ezx_pcap_write(pcap, PCAP_REG_MSR, pcap->msr); in pcap_msr_work()
180 u32 msr, isr, int_sel, service; in pcap_isr_work() local
184 ezx_pcap_read(pcap, PCAP_REG_MSR, &msr); in pcap_isr_work()
193 ezx_pcap_write(pcap, PCAP_REG_MSR, isr | msr); in pcap_isr_work()
197 service = isr & ~msr; in pcap_isr_work()
203 ezx_pcap_write(pcap, PCAP_REG_MSR, pcap->msr); in pcap_isr_work()
475 pcap->msr = PCAP_MASK_ALL_INTERRUPT; in ezx_pcap_probe()
/drivers/misc/
Dcs5535-mfgpt.c47 uint32_t msr, mask, value, dummy; in cs5535_mfgpt_toggle_event() local
66 msr = MSR_MFGPT_NR; in cs5535_mfgpt_toggle_event()
71 msr = MSR_MFGPT_NR; in cs5535_mfgpt_toggle_event()
76 msr = MSR_MFGPT_IRQ; in cs5535_mfgpt_toggle_event()
84 rdmsr(msr, value, dummy); in cs5535_mfgpt_toggle_event()
91 wrmsr(msr, value, dummy); in cs5535_mfgpt_toggle_event()
/drivers/idle/
Dintel_idle.c1431 unsigned long long msr; in bxt_idle_state_table_update() local
1434 rdmsrl(MSR_PKGC6_IRTL, msr); in bxt_idle_state_table_update()
1435 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1441 rdmsrl(MSR_PKGC7_IRTL, msr); in bxt_idle_state_table_update()
1442 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1448 rdmsrl(MSR_PKGC8_IRTL, msr); in bxt_idle_state_table_update()
1449 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1455 rdmsrl(MSR_PKGC9_IRTL, msr); in bxt_idle_state_table_update()
1456 usec = irtl_2_usec(msr); in bxt_idle_state_table_update()
1462 rdmsrl(MSR_PKGC10_IRTL, msr); in bxt_idle_state_table_update()
[all …]
/drivers/thermal/intel/
Dtherm_throt.c203 int msr; in clear_therm_status_log() local
207 msr = MSR_IA32_THERM_STATUS; in clear_therm_status_log()
210 msr = MSR_IA32_PACKAGE_THERM_STATUS; in clear_therm_status_log()
214 rdmsrl(msr, msr_val); in clear_therm_status_log()
216 wrmsrl(msr, msr_val & ~THERM_STATUS_PROCHOT_LOG); in clear_therm_status_log()
221 int msr; in get_therm_status() local
225 msr = MSR_IA32_THERM_STATUS; in get_therm_status()
227 msr = MSR_IA32_PACKAGE_THERM_STATUS; in get_therm_status()
229 rdmsrl(msr, msr_val); in get_therm_status()
/drivers/tty/serial/8250/
D8250.h226 static inline int serial8250_MSR_to_TIOCM(int msr) in serial8250_MSR_to_TIOCM() argument
230 if (msr & UART_MSR_DCD) in serial8250_MSR_to_TIOCM()
232 if (msr & UART_MSR_RI) in serial8250_MSR_to_TIOCM()
234 if (msr & UART_MSR_DSR) in serial8250_MSR_to_TIOCM()
236 if (msr & UART_MSR_CTS) in serial8250_MSR_to_TIOCM()
/drivers/net/hamradio/
Dbaycom_ser_fdx.c252 unsigned char iir, msr; in ser12_interrupt() local
262 msr = inb(MSR(dev->base_addr)); in ser12_interrupt()
264 if ((msr & 8) && bc->opt_dcd) in ser12_interrupt()
265 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); in ser12_interrupt()
296 msr = inb(MSR(dev->base_addr)); in ser12_interrupt()
298 if ((msr & 8) && bc->opt_dcd) in ser12_interrupt()
299 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); in ser12_interrupt()
304 ser12_rx(dev, bc, &ts, msr & 0x10); /* CTS */ in ser12_interrupt()
/drivers/video/fbdev/geode/
Dsuspend_gx.c24 rdmsrl(MSR_GX_MSR_PADSEL, par->msr.padsel); in gx_save_regs()
25 rdmsrl(MSR_GLCP_DOTPLL, par->msr.dotpll); in gx_save_regs()
136 wrmsrl(MSR_GX_MSR_PADSEL, par->msr.padsel); in gx_restore_video_proc()
173 gx_set_dotpll((uint32_t) (par->msr.dotpll >> 32)); in gx_restore_regs()
Dlxfb_ops.c594 rdmsrl(MSR_LX_MSR_PADSEL, par->msr.padsel); in lx_save_regs()
595 rdmsrl(MSR_GLCP_DOTPLL, par->msr.dotpll); in lx_save_regs()
596 rdmsrl(MSR_LX_GLD_MSR_CONFIG, par->msr.dfglcfg); in lx_save_regs()
597 rdmsrl(MSR_LX_SPARE_MSR, par->msr.dcspare); in lx_save_regs()
667 wrmsrl(MSR_LX_SPARE_MSR, par->msr.dcspare); in lx_restore_display_ctlr()
732 wrmsrl(MSR_LX_GLD_MSR_CONFIG, par->msr.dfglcfg); in lx_restore_video_proc()
733 wrmsrl(MSR_LX_MSR_PADSEL, par->msr.padsel); in lx_restore_video_proc()
767 lx_set_dotpll((u32) (par->msr.dotpll >> 32)); in lx_restore_regs()
/drivers/platform/x86/intel/speed_select_if/
Disst_if_common.c477 static bool match_punit_msr_white_list(int msr) in match_punit_msr_white_list() argument
482 if (punit_msr_white_list[i] == msr) in match_punit_msr_white_list()
496 if (!match_punit_msr_white_list(msr_cmd->msr)) in isst_if_msr_cmd_req()
507 msr_cmd->msr, in isst_if_msr_cmd_req()
511 ret = isst_store_cmd(0, msr_cmd->msr, in isst_if_msr_cmd_req()
518 msr_cmd->msr, &data); in isst_if_msr_cmd_req()
/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()

123