/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 508 msr = per_cpu(centrino_model, cpu)->op_points[newstate].index; in centrino_target() 512 if (msr == (oldmsr & 0xffff)) { in centrino_target() 520 freqs.new = extract_clock(msr, cpu, 0); in centrino_target() 523 target_freq, freqs.old, freqs.new, msr); in centrino_target() [all …]
|
D | acpi-cpufreq.c | 99 static unsigned extract_msr(u32 msr, struct acpi_cpufreq_data *data) in extract_msr() argument 104 msr &= INTEL_MSR_RANGE; in extract_msr() 108 if (msr == perf->states[data->freq_table[i].index].status) in extract_msr() 139 struct msr_addr msr; member 153 rdmsr(cmd->addr.msr.reg, cmd->val, h); in do_drv_read() 173 rdmsr(cmd->addr.msr.reg, lo, hi); in do_drv_write() 175 wrmsr(cmd->addr.msr.reg, lo, hi); in do_drv_write() 218 cmd.addr.msr.reg = MSR_IA32_PERF_STATUS; in get_cur_val() 326 cmd.addr.msr.reg = MSR_IA32_PERF_CTL; in acpi_cpufreq_target()
|
/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() 375 uint8_t msr; in check_modem_status() local 377 msr = siu_read(port, UART_MSR); in check_modem_status() 378 if ((msr & UART_MSR_ANY_DELTA) == 0) in check_modem_status() 380 if (msr & UART_MSR_DDCD) in check_modem_status() [all …]
|
D | pnx8xxx_uart.c | 323 unsigned int msr; in pnx8xxx_get_mctrl() local 327 msr = serial_in(sport, PNX8XXX_MCR); in pnx8xxx_get_mctrl() 329 mctrl |= msr & PNX8XXX_UART_MCR_CTS ? TIOCM_CTS : 0; in pnx8xxx_get_mctrl() 330 mctrl |= msr & PNX8XXX_UART_MCR_DCD ? TIOCM_CAR : 0; in pnx8xxx_get_mctrl() 339 unsigned int msr; in pnx8xxx_set_mctrl()
|
/drivers/usb/serial/ |
D | mct_u232.c | 333 unsigned char *msr) in mct_u232_get_modem_stat() argument 340 *msr = 0; in mct_u232_get_modem_stat() 351 *msr = 0; in mct_u232_get_modem_stat() 353 *msr = buf[0]; in mct_u232_get_modem_stat() 355 dbg("get_modem_stat: 0x%x", *msr); in mct_u232_get_modem_stat() 361 unsigned char msr) in mct_u232_msr_to_icount() argument 364 if (msr & MCT_U232_MSR_DDSR) in mct_u232_msr_to_icount() 366 if (msr & MCT_U232_MSR_DCTS) in mct_u232_msr_to_icount() 368 if (msr & MCT_U232_MSR_DRI) in mct_u232_msr_to_icount() 370 if (msr & MCT_U232_MSR_DCD) in mct_u232_msr_to_icount() [all …]
|
D | ark3116.c | 86 __u32 msr; /* modem status register value */ member 387 priv->msr = ark3116_read_reg(serial, UART_MSR, buf); in ark3116_open() 501 status = priv->msr; in ark3116_tiocmget() 568 static void ark3116_update_msr(struct usb_serial_port *port, __u8 msr) in ark3116_update_msr() argument 574 priv->msr = msr; in ark3116_update_msr() 577 if (msr & UART_MSR_ANY_DELTA) { in ark3116_update_msr() 579 if (msr & UART_MSR_DCTS) in ark3116_update_msr() 581 if (msr & UART_MSR_DDSR) in ark3116_update_msr() 583 if (msr & UART_MSR_DDCD) in ark3116_update_msr() 585 if (msr & UART_MSR_TERI) in ark3116_update_msr()
|
D | ti_usb_3410_5052.c | 132 static void ti_handle_new_msr(struct ti_port *tport, __u8 msr); 990 unsigned int msr; in ti_tiocmget() local 1000 msr = tport->tp_msr; in ti_tiocmget() 1007 | ((msr & TI_MSR_CTS) ? TIOCM_CTS : 0) in ti_tiocmget() 1008 | ((msr & TI_MSR_CD) ? TIOCM_CAR : 0) in ti_tiocmget() 1009 | ((msr & TI_MSR_RI) ? TIOCM_RI : 0) in ti_tiocmget() 1010 | ((msr & TI_MSR_DSR) ? TIOCM_DSR : 0); in ti_tiocmget() 1088 __u8 msr; in ti_interrupt_callback() local 1143 msr = data[1]; in ti_interrupt_callback() 1144 dbg("%s - port %d, msr 0x%02X", __func__, port_number, msr); in ti_interrupt_callback() [all …]
|
D | ssu100.c | 547 static void ssu100_update_msr(struct usb_serial_port *port, u8 msr) in ssu100_update_msr() argument 553 priv->shadowMSR = msr; in ssu100_update_msr() 556 if (msr & UART_MSR_ANY_DELTA) { in ssu100_update_msr() 558 if (msr & UART_MSR_DCTS) in ssu100_update_msr() 560 if (msr & UART_MSR_DDSR) in ssu100_update_msr() 562 if (msr & UART_MSR_DDCD) in ssu100_update_msr() 564 if (msr & UART_MSR_TERI) in ssu100_update_msr()
|
D | io_ti.c | 1532 static void handle_new_msr(struct edgeport_port *edge_port, __u8 msr) in handle_new_msr() argument 1537 dbg("%s - %02x", __func__, msr); in handle_new_msr() 1539 if (msr & (EDGEPORT_MSR_DELTA_CTS | EDGEPORT_MSR_DELTA_DSR | in handle_new_msr() 1544 if (msr & EDGEPORT_MSR_DELTA_CTS) in handle_new_msr() 1546 if (msr & EDGEPORT_MSR_DELTA_DSR) in handle_new_msr() 1548 if (msr & EDGEPORT_MSR_DELTA_CD) in handle_new_msr() 1550 if (msr & EDGEPORT_MSR_DELTA_RI) in handle_new_msr() 1556 edge_port->shadow_msr = msr & 0xf0; in handle_new_msr() 1561 if (msr & EDGEPORT_MSR_CTS) { in handle_new_msr() 1623 __u8 msr; in edge_interrupt_callback() local [all …]
|
/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/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() 483 pcap->msr = PCAP_MASK_ALL_INTERRUPT; in ezx_pcap_probe()
|
/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()
|
D | i810.h | 222 u8 msr; member 242 u8 cr39, cr41, cr70, sr01, msr; member
|
/drivers/i2c/busses/ |
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/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 | 660 __u8 msr = 0, MOUT_Value = 0; in BoxSetHW_FlowCtrl() local 677 msr = SERIAL_MSR_CTS; in BoxSetHW_FlowCtrl() 680 msr = 0; in BoxSetHW_FlowCtrl() 682 MOUT_Value |= msr; in BoxSetHW_FlowCtrl() 1383 u8 msr; in qt_real_tiocmget() local 1396 MODEM_STATUS_REGISTER, &msr); in qt_real_tiocmget() 1405 | ((msr & SERIAL_MSR_CTS) ? TIOCM_CTS : 0) in qt_real_tiocmget() 1407 | ((msr & SERIAL_MSR_CD) ? TIOCM_CAR : 0) in qt_real_tiocmget() 1409 | ((msr & SERIAL_MSR_RI) ? TIOCM_RI : 0) in qt_real_tiocmget() 1411 | ((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 | 716 u64 msr = 0; in acpi_throttling_rdmsr() local 728 msr = (msr_high << 32) | msr_low; in acpi_throttling_rdmsr() 729 *value = (u64) msr; in acpi_throttling_rdmsr() 738 u64 msr; in acpi_throttling_wrmsr() local 745 msr = value; in acpi_throttling_wrmsr() 747 msr & 0xffffffff, msr >> 32); in acpi_throttling_wrmsr()
|
/drivers/isdn/i4l/ |
D | isdn_tty.c | 299 info->msr &= ~UART_MSR_CTS; in isdn_tty_tint() 444 info->msr &= ~UART_MSR_CTS; in isdn_tty_senddown() 725 if ((info->msr & UART_MSR_RI) && in isdn_tty_modem_hup() 728 info->msr &= ~(UART_MSR_DCD | UART_MSR_RI); in isdn_tty_modem_hup() 1074 info->msr |= (UART_MSR_DSR | UART_MSR_CTS); in isdn_tty_startup() 1092 info->msr &= ~UART_MSR_RI; in isdn_tty_shutdown() 1159 info->msr |= UART_MSR_CTS; in isdn_tty_write() 1201 info->msr |= UART_MSR_CTS; in isdn_tty_write() 1363 status = info->msr; in isdn_tty_tiocmget() 1555 (do_clocal || (info->msr & UART_MSR_DCD))) { in isdn_tty_block_til_ready() [all …]
|
/drivers/ata/ |
D | pata_cs5536.c | 45 module_param_named(msr, use_msr, int, 0644); 46 MODULE_PARM_DESC(msr, "Force using MSR to configure IDE function (Default: 0)");
|
/drivers/ide/ |
D | cs5536.c | 313 module_param_named(msr, use_msr, int, 0644); 314 MODULE_PARM_DESC(msr, "Force using MSR to configure IDE function (Default: 0)");
|