/drivers/cpufreq/ |
D | speedstep-centrino.c | 285 static unsigned extract_clock(unsigned msr, unsigned int cpu, int failsafe) in extract_clock() argument 297 msr = (msr >> 8) & 0xff; in extract_clock() 298 return msr * 100000; in extract_clock() 305 msr &= 0xffff; in extract_clock() 310 if (msr == per_cpu(centrino_model, cpu)->op_points[i].index) in extract_clock() 457 unsigned int msr, oldmsr = 0, h = 0, cpu = policy->cpu; in centrino_target() local 504 msr = per_cpu(centrino_model, cpu)->op_points[newstate].index; in centrino_target() 508 if (msr == (oldmsr & 0xffff)) { in centrino_target() 516 freqs.new = extract_clock(msr, cpu, 0); in centrino_target() 519 target_freq, freqs.old, freqs.new, msr); in centrino_target() [all …]
|
D | acpi-cpufreq.c | 84 static struct msr __percpu *msrs; 89 u64 msr; in boost_state() local 94 msr = lo | ((u64)hi << 32); in boost_state() 95 return !(msr & MSR_IA32_MISC_ENABLE_TURBO_DISABLE); in boost_state() 98 msr = lo | ((u64)hi << 32); in boost_state() 99 return !(msr & MSR_K7_HWCR_CPB_DIS); in boost_state() 126 struct msr *reg = per_cpu_ptr(msrs, cpu); in boost_set_msrs() 222 static unsigned extract_msr(u32 msr, struct acpi_cpufreq_data *data) in extract_msr() argument 228 msr &= AMD_MSR_RANGE; in extract_msr() 230 msr &= INTEL_MSR_RANGE; in extract_msr() [all …]
|
/drivers/i2c/busses/ |
D | i2c-rcar.c | 352 static int rcar_i2c_irq_send(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_send() argument 361 if (!(msr & MDE)) in rcar_i2c_irq_send() 368 if (msr & MAT) in rcar_i2c_irq_send() 413 static int rcar_i2c_irq_recv(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_recv() argument 422 if (!(msr & MDR)) in rcar_i2c_irq_recv() 425 if (msr & MAT) { in rcar_i2c_irq_recv() 458 u32 msr; in rcar_i2c_irq() local 463 msr = rcar_i2c_status_get(priv); in rcar_i2c_irq() 468 if (msr & MAL) { in rcar_i2c_irq() 482 if (msr & MST) { in rcar_i2c_irq() [all …]
|
D | i2c-sh7760.c | 118 unsigned long msr, fsr, fier, len; in sh7760_i2c_irq() local 120 msr = IN32(id, I2CMSR); in sh7760_i2c_irq() 124 if (msr & MSR_MAL) { in sh7760_i2c_irq() 132 if (msr & MSR_MNR) { in sh7760_i2c_irq() 147 msr &= ~MSR_MAT; in sh7760_i2c_irq() 153 if (msr & MSR_MST) { in sh7760_i2c_irq() 159 if (msr & MSR_MAT) in sh7760_i2c_irq() 232 OUT32(id, I2CMSR, ~msr); in sh7760_i2c_irq()
|
/drivers/usb/serial/ |
D | mct_u232.c | 311 unsigned char *msr) in mct_u232_get_modem_stat() argument 318 *msr = 0; in mct_u232_get_modem_stat() 328 *msr = 0; in mct_u232_get_modem_stat() 330 *msr = buf[0]; in mct_u232_get_modem_stat() 332 dev_dbg(&port->dev, "get_modem_stat: 0x%x\n", *msr); in mct_u232_get_modem_stat() 338 unsigned char msr) in mct_u232_msr_to_icount() argument 341 if (msr & MCT_U232_MSR_DDSR) in mct_u232_msr_to_icount() 343 if (msr & MCT_U232_MSR_DCTS) in mct_u232_msr_to_icount() 345 if (msr & MCT_U232_MSR_DRI) in mct_u232_msr_to_icount() 347 if (msr & MCT_U232_MSR_DCD) in mct_u232_msr_to_icount() [all …]
|
D | ark3116.c | 78 __u32 msr; /* modem status register value */ member 377 priv->msr = ark3116_read_reg(serial, UART_MSR, buf); in ark3116_open() 447 status = priv->msr; in ark3116_tiocmget() 514 static void ark3116_update_msr(struct usb_serial_port *port, __u8 msr) in ark3116_update_msr() argument 520 priv->msr = msr; in ark3116_update_msr() 523 if (msr & UART_MSR_ANY_DELTA) { in ark3116_update_msr() 525 if (msr & UART_MSR_DCTS) in ark3116_update_msr() 527 if (msr & UART_MSR_DDSR) in ark3116_update_msr() 529 if (msr & UART_MSR_DDCD) in ark3116_update_msr() 531 if (msr & UART_MSR_TERI) in ark3116_update_msr()
|
D | ti_usb_3410_5052.c | 128 static void ti_handle_new_msr(struct ti_port *tport, __u8 msr); 914 unsigned int msr; in ti_tiocmget() local 922 msr = tport->tp_msr; in ti_tiocmget() 929 | ((msr & TI_MSR_CTS) ? TIOCM_CTS : 0) in ti_tiocmget() 930 | ((msr & TI_MSR_CD) ? TIOCM_CAR : 0) in ti_tiocmget() 931 | ((msr & TI_MSR_RI) ? TIOCM_RI : 0) in ti_tiocmget() 932 | ((msr & TI_MSR_DSR) ? TIOCM_DSR : 0); in ti_tiocmget() 1006 __u8 msr; in ti_interrupt_callback() local 1058 msr = data[1]; in ti_interrupt_callback() 1059 dev_dbg(dev, "%s - port %d, msr 0x%02X\n", __func__, port_number, msr); in ti_interrupt_callback() [all …]
|
D | ssu100.c | 446 static void ssu100_update_msr(struct usb_serial_port *port, u8 msr) in ssu100_update_msr() argument 452 priv->shadowMSR = msr; in ssu100_update_msr() 455 if (msr & UART_MSR_ANY_DELTA) { in ssu100_update_msr() 457 if (msr & UART_MSR_DCTS) in ssu100_update_msr() 459 if (msr & UART_MSR_DDSR) in ssu100_update_msr() 461 if (msr & UART_MSR_DDCD) in ssu100_update_msr() 463 if (msr & UART_MSR_TERI) in ssu100_update_msr()
|
D | io_ti.c | 1439 static void handle_new_msr(struct edgeport_port *edge_port, __u8 msr) in handle_new_msr() argument 1444 dev_dbg(&edge_port->port->dev, "%s - %02x\n", __func__, msr); in handle_new_msr() 1446 if (msr & (EDGEPORT_MSR_DELTA_CTS | EDGEPORT_MSR_DELTA_DSR | in handle_new_msr() 1451 if (msr & EDGEPORT_MSR_DELTA_CTS) in handle_new_msr() 1453 if (msr & EDGEPORT_MSR_DELTA_DSR) in handle_new_msr() 1455 if (msr & EDGEPORT_MSR_DELTA_CD) in handle_new_msr() 1457 if (msr & EDGEPORT_MSR_DELTA_RI) in handle_new_msr() 1463 edge_port->shadow_msr = msr & 0xf0; in handle_new_msr() 1468 if (msr & EDGEPORT_MSR_CTS) { in handle_new_msr() 1525 __u8 msr; in edge_interrupt_callback() local [all …]
|
/drivers/tty/serial/ |
D | vr41xx_siu.c | 223 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 …]
|
D | serial-tegra.c | 641 unsigned long msr; in tegra_uart_handle_modem_signal_change() local 643 msr = tegra_uart_read(tup, UART_MSR); in tegra_uart_handle_modem_signal_change() 644 if (!(msr & UART_MSR_ANY_DELTA)) in tegra_uart_handle_modem_signal_change() 647 if (msr & UART_MSR_TERI) in tegra_uart_handle_modem_signal_change() 649 if (msr & UART_MSR_DDSR) in tegra_uart_handle_modem_signal_change() 652 if (msr & UART_MSR_DDCD) in tegra_uart_handle_modem_signal_change() 653 uart_handle_dcd_change(&tup->uport, msr & UART_MSR_DCD); in tegra_uart_handle_modem_signal_change() 655 if (msr & UART_MSR_DCTS) in tegra_uart_handle_modem_signal_change() 656 uart_handle_cts_change(&tup->uport, msr & UART_MSR_CTS); in tegra_uart_handle_modem_signal_change() 773 unsigned long msr; in tegra_uart_hw_deinit() local [all …]
|
D | pnx8xxx_uart.c | 322 unsigned int msr; in pnx8xxx_get_mctrl() local 326 msr = serial_in(sport, PNX8XXX_MCR); in pnx8xxx_get_mctrl() 328 mctrl |= msr & PNX8XXX_UART_MCR_CTS ? TIOCM_CTS : 0; in pnx8xxx_get_mctrl() 329 mctrl |= msr & PNX8XXX_UART_MCR_DCD ? TIOCM_CAR : 0; in pnx8xxx_get_mctrl() 338 unsigned int msr; in pnx8xxx_set_mctrl()
|
/drivers/video/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()
|
D | i810_dvt.c | 266 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/ |
D | ezx-pcap.c | 46 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() 481 pcap->msr = PCAP_MASK_ALL_INTERRUPT; in ezx_pcap_probe()
|
/drivers/misc/ |
D | cs5535-mfgpt.c | 50 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/net/hamradio/ |
D | baycom_ser_fdx.c | 291 unsigned char iir, msr; in ser12_interrupt() local 301 msr = inb(MSR(dev->base_addr)); in ser12_interrupt() 303 if ((msr & 8) && bc->opt_dcd) in ser12_interrupt() 304 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); in ser12_interrupt() 335 msr = inb(MSR(dev->base_addr)); in ser12_interrupt() 337 if ((msr & 8) && bc->opt_dcd) in ser12_interrupt() 338 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); in ser12_interrupt() 343 ser12_rx(dev, bc, &tv, msr & 0x10); /* CTS */ in ser12_interrupt()
|
/drivers/video/geode/ |
D | suspend_gx.c | 30 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()
|
D | lxfb_ops.c | 600 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/ |
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/staging/serqt_usb2/ |
D | serqt_usb2.c | 619 __u8 msr = 0, MOUT_Value = 0; in BoxSetHW_FlowCtrl() local 636 msr = SERIAL_MSR_CTS; in BoxSetHW_FlowCtrl() 639 msr = 0; in BoxSetHW_FlowCtrl() 641 MOUT_Value |= msr; in BoxSetHW_FlowCtrl() 1330 u8 msr; in qt_real_tiocmget() local 1341 MODEM_STATUS_REGISTER, &msr); in qt_real_tiocmget() 1350 | ((msr & SERIAL_MSR_CTS) ? TIOCM_CTS : 0) in qt_real_tiocmget() 1352 | ((msr & SERIAL_MSR_CD) ? TIOCM_CAR : 0) in qt_real_tiocmget() 1354 | ((msr & SERIAL_MSR_RI) ? TIOCM_RI : 0) in qt_real_tiocmget() 1356 | ((msr & SERIAL_MSR_DSR) ? TIOCM_DSR : 0); in qt_real_tiocmget()
|
/drivers/bluetooth/ |
D | dtl1_cs.c | 290 unsigned char msr; in dtl1_interrupt() local 337 msr = inb(iobase + UART_MSR); in dtl1_interrupt() 339 if (info->ri_latch ^ (msr & UART_MSR_RI)) { in dtl1_interrupt() 340 info->ri_latch = msr & UART_MSR_RI; in dtl1_interrupt()
|
/drivers/acpi/ |
D | processor_throttling.c | 717 u64 msr = 0; in acpi_throttling_rdmsr() local 729 msr = (msr_high << 32) | msr_low; in acpi_throttling_rdmsr() 730 *value = (u64) msr; in acpi_throttling_rdmsr() 739 u64 msr; in acpi_throttling_wrmsr() local 746 msr = value; in acpi_throttling_wrmsr() 748 msr & 0xffffffff, msr >> 32); in acpi_throttling_wrmsr()
|
/drivers/isdn/i4l/ |
D | isdn_tty.c | 301 info->msr &= ~UART_MSR_CTS; in isdn_tty_tint() 446 info->msr &= ~UART_MSR_CTS; in isdn_tty_senddown() 727 if ((info->msr & UART_MSR_RI) && in isdn_tty_modem_hup() 730 info->msr &= ~(UART_MSR_DCD | UART_MSR_RI); in isdn_tty_modem_hup() 1079 info->msr |= (UART_MSR_DSR | UART_MSR_CTS); in isdn_tty_startup() 1097 info->msr &= ~UART_MSR_RI; in isdn_tty_shutdown() 1164 info->msr |= UART_MSR_CTS; in isdn_tty_write() 1206 info->msr |= UART_MSR_CTS; in isdn_tty_write() 1368 status = info->msr; in isdn_tty_tiocmget() 1762 return info->msr & UART_MSR_DCD; in isdn_tty_carrier_raised() [all …]
|
/drivers/ata/ |
D | pata_cs5536.c | 46 module_param_named(msr, use_msr, int, 0644); 47 MODULE_PARM_DESC(msr, "Force using MSR to configure IDE function (Default: 0)");
|