/drivers/cpufreq/ |
D | speedstep-centrino.c | 287 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()
|
D | acpi-cpufreq.c | 77 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/ |
D | mct_u232.c | 306 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 …]
|
D | f81534.c | 766 u8 msr; in f81534_check_port_hw_disabled() local 773 F81534_MODEM_STATUS_REG, &msr); in f81534_check_port_hw_disabled() 777 if ((msr & msr_mask) != msr_mask) in f81534_check_port_hw_disabled() 1016 static void f81534_msr_changed(struct usb_serial_port *port, u8 msr) in f81534_msr_changed() argument 1023 if (!(msr & UART_MSR_ANY_DELTA)) in f81534_msr_changed() 1028 port_priv->shadow_msr = msr; in f81534_msr_changed() 1032 msr); in f81534_msr_changed() 1035 if (msr & UART_MSR_DCTS) in f81534_msr_changed() 1037 if (msr & UART_MSR_DDSR) in f81534_msr_changed() 1039 if (msr & UART_MSR_DDCD) in f81534_msr_changed() [all …]
|
D | ark3116.c | 73 __u32 msr; /* modem status register value */ member 353 priv->msr = *buf; in ark3116_open() 415 status = priv->msr; in ark3116_tiocmget() 482 static void ark3116_update_msr(struct usb_serial_port *port, __u8 msr) in ark3116_update_msr() argument 488 priv->msr = msr; in ark3116_update_msr() 491 if (msr & UART_MSR_ANY_DELTA) { in ark3116_update_msr() 493 if (msr & UART_MSR_DCTS) in ark3116_update_msr() 495 if (msr & UART_MSR_DDSR) in ark3116_update_msr() 497 if (msr & UART_MSR_DDCD) in ark3116_update_msr() 499 if (msr & UART_MSR_TERI) in ark3116_update_msr()
|
D | ti_usb_3410_5052.c | 336 static void ti_handle_new_msr(struct ti_port *tport, u8 msr); 1032 unsigned int msr; in ti_tiocmget() local 1037 msr = tport->tp_msr; in ti_tiocmget() 1044 | ((msr & TI_MSR_CTS) ? TIOCM_CTS : 0) in ti_tiocmget() 1045 | ((msr & TI_MSR_CD) ? TIOCM_CAR : 0) in ti_tiocmget() 1046 | ((msr & TI_MSR_RI) ? TIOCM_RI : 0) in ti_tiocmget() 1047 | ((msr & TI_MSR_DSR) ? TIOCM_DSR : 0); in ti_tiocmget() 1124 u8 msr; in ti_interrupt_callback() local 1174 msr = data[1]; in ti_interrupt_callback() 1175 dev_dbg(dev, "%s - port %d, msr 0x%02X\n", __func__, port_number, msr); in ti_interrupt_callback() [all …]
|
D | ssu100.c | 435 static void ssu100_update_msr(struct usb_serial_port *port, u8 msr) in ssu100_update_msr() argument 441 priv->shadowMSR = msr; in ssu100_update_msr() 444 if (msr & UART_MSR_ANY_DELTA) { in ssu100_update_msr() 446 if (msr & UART_MSR_DCTS) in ssu100_update_msr() 448 if (msr & UART_MSR_DDSR) in ssu100_update_msr() 450 if (msr & UART_MSR_DDCD) in ssu100_update_msr() 452 if (msr & UART_MSR_TERI) in ssu100_update_msr()
|
D | f81232.c | 708 u8 mcr, msr; in f81232_tiocmget() local 715 msr = port_priv->modem_status; in f81232_tiocmget() 720 (msr & UART_MSR_CTS ? TIOCM_CTS : 0) | in f81232_tiocmget() 721 (msr & UART_MSR_DCD ? TIOCM_CAR : 0) | in f81232_tiocmget() 722 (msr & UART_MSR_RI ? TIOCM_RI : 0) | in f81232_tiocmget() 723 (msr & UART_MSR_DSR ? TIOCM_DSR : 0); in f81232_tiocmget() 817 u8 msr; in f81232_carrier_raised() local 821 msr = priv->modem_status; in f81232_carrier_raised() 824 if (msr & UART_MSR_DCD) in f81232_carrier_raised()
|
/drivers/powercap/ |
D | intel_rapl_msr.c | 90 u32 msr = (u32)ra->reg; in rapl_msr_read_raw() local 92 if (rdmsrl_safe_on_cpu(cpu, msr, &ra->value)) { in rapl_msr_read_raw() 93 pr_debug("failed to read msr 0x%x on cpu %d\n", msr, cpu); in rapl_msr_read_raw() 103 u32 msr = (u32)ra->reg; in rapl_msr_update_func() local 106 ra->err = rdmsrl_safe(msr, &val); in rapl_msr_update_func() 113 ra->err = wrmsrl_safe(msr, val); in rapl_msr_update_func()
|
/drivers/i2c/busses/ |
D | i2c-rcar.c | 480 static void rcar_i2c_irq_send(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_send() argument 485 if (!(msr & MDE)) in rcar_i2c_irq_send() 527 static void rcar_i2c_irq_recv(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_recv() argument 532 if (!(msr & MDR)) in rcar_i2c_irq_recv() 535 if (msr & MAT) { in rcar_i2c_irq_recv() 631 static irqreturn_t rcar_i2c_irq(int irq, struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq() argument 633 if (!msr) { in rcar_i2c_irq() 641 if (msr & MAL) { in rcar_i2c_irq() 647 if (msr & MNR) { in rcar_i2c_irq() 655 if (msr & MST) { in rcar_i2c_irq() [all …]
|
D | i2c-sh7760.c | 117 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/tty/serial/ |
D | vr41xx_siu.c | 206 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 …]
|
D | men_z135_uart.c | 183 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 …]
|
D | serial-tegra.c | 809 unsigned long msr; in tegra_uart_handle_modem_signal_change() local 811 msr = tegra_uart_read(tup, UART_MSR); in tegra_uart_handle_modem_signal_change() 812 if (!(msr & UART_MSR_ANY_DELTA)) in tegra_uart_handle_modem_signal_change() 815 if (msr & UART_MSR_TERI) in tegra_uart_handle_modem_signal_change() 817 if (msr & UART_MSR_DDSR) in tegra_uart_handle_modem_signal_change() 820 if (msr & UART_MSR_DDCD) in tegra_uart_handle_modem_signal_change() 821 uart_handle_dcd_change(&tup->uport, msr & UART_MSR_DCD); in tegra_uart_handle_modem_signal_change() 823 if (msr & UART_MSR_DCTS) in tegra_uart_handle_modem_signal_change() 824 uart_handle_cts_change(&tup->uport, msr & UART_MSR_CTS); in tegra_uart_handle_modem_signal_change() 938 unsigned long msr; in tegra_uart_hw_deinit() local [all …]
|
/drivers/video/fbdev/i810/ |
D | i810_gtf.c | 129 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/ |
D | ezx-pcap.c | 42 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/ |
D | cs5535-mfgpt.c | 47 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/tty/serial/8250/ |
D | 8250.h | 225 static inline int serial8250_MSR_to_TIOCM(int msr) in serial8250_MSR_to_TIOCM() argument 229 if (msr & UART_MSR_DCD) in serial8250_MSR_to_TIOCM() 231 if (msr & UART_MSR_RI) in serial8250_MSR_to_TIOCM() 233 if (msr & UART_MSR_DSR) in serial8250_MSR_to_TIOCM() 235 if (msr & UART_MSR_CTS) in serial8250_MSR_to_TIOCM()
|
/drivers/idle/ |
D | intel_idle.c | 1391 unsigned long long msr; in bxt_idle_state_table_update() local 1394 rdmsrl(MSR_PKGC6_IRTL, msr); in bxt_idle_state_table_update() 1395 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1401 rdmsrl(MSR_PKGC7_IRTL, msr); in bxt_idle_state_table_update() 1402 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1408 rdmsrl(MSR_PKGC8_IRTL, msr); in bxt_idle_state_table_update() 1409 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1415 rdmsrl(MSR_PKGC9_IRTL, msr); in bxt_idle_state_table_update() 1416 usec = irtl_2_usec(msr); in bxt_idle_state_table_update() 1422 rdmsrl(MSR_PKGC10_IRTL, msr); in bxt_idle_state_table_update() [all …]
|
/drivers/net/hamradio/ |
D | baycom_ser_fdx.c | 252 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/ |
D | suspend_gx.c | 24 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()
|
D | lxfb_ops.c | 594 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() 731 wrmsrl(MSR_LX_GLD_MSR_CONFIG, par->msr.dfglcfg); in lx_restore_video_proc() 732 wrmsrl(MSR_LX_MSR_PADSEL, par->msr.padsel); in lx_restore_video_proc() 766 lx_set_dotpll((u32) (par->msr.dotpll >> 32)); in lx_restore_regs()
|
/drivers/platform/x86/intel_speed_select_if/ |
D | isst_if_common.c | 390 static bool match_punit_msr_white_list(int msr) in match_punit_msr_white_list() argument 395 if (punit_msr_white_list[i] == msr) in match_punit_msr_white_list() 409 if (!match_punit_msr_white_list(msr_cmd->msr)) in isst_if_msr_cmd_req() 420 msr_cmd->msr, in isst_if_msr_cmd_req() 424 ret = isst_store_cmd(0, msr_cmd->msr, in isst_if_msr_cmd_req() 431 msr_cmd->msr, &data); in isst_if_msr_cmd_req()
|
/drivers/ssb/ |
D | driver_extif.c | 43 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/thermal/ |
D | mtk_thermal.c | 264 const int *msr; member 424 .msr = mt8173_msr, 455 .msr = mt2701_msr, 486 .msr = mt2712_msr, 511 .msr = mt7622_msr, 544 .msr = mt8183_msr, 655 raw = readl(mt->thermal_base + conf->msr[i]); in mtk_thermal_bank_temperature()
|