/drivers/w1/masters/ |
D | sgi_w1.c | 23 u32 __iomem *mcr; member 28 static u8 sgi_w1_wait(u32 __iomem *mcr) in sgi_w1_wait() argument 33 mcr_val = readl(mcr); in sgi_w1_wait() 49 writel(MCR_PACK(520, 65), dev->mcr); in sgi_w1_reset_bus() 50 ret = sgi_w1_wait(dev->mcr); in sgi_w1_reset_bus() 66 writel(MCR_PACK(6, 13), dev->mcr); in sgi_w1_touch_bit() 68 writel(MCR_PACK(80, 30), dev->mcr); in sgi_w1_touch_bit() 70 ret = sgi_w1_wait(dev->mcr); in sgi_w1_touch_bit() 86 sdev->mcr = devm_platform_ioremap_resource(pdev, 0); in sgi_w1_probe() 87 if (IS_ERR(sdev->mcr)) in sgi_w1_probe() [all …]
|
/drivers/mtd/nand/raw/ |
D | txx9ndfmc.c | 114 u32 mcr = txx9ndfmc_read(dev, TXX9_NDFMCR); in txx9ndfmc_write_buf() local 116 txx9ndfmc_write(dev, mcr | TXX9_NDFMCR_WE, TXX9_NDFMCR); in txx9ndfmc_write_buf() 119 txx9ndfmc_write(dev, mcr, TXX9_NDFMCR); in txx9ndfmc_write_buf() 139 u32 mcr = txx9ndfmc_read(dev, TXX9_NDFMCR); in txx9ndfmc_cmd_ctrl() local 141 mcr &= ~(TXX9_NDFMCR_CLE | TXX9_NDFMCR_ALE | TXX9_NDFMCR_CE); in txx9ndfmc_cmd_ctrl() 142 mcr |= ctrl & NAND_CLE ? TXX9_NDFMCR_CLE : 0; in txx9ndfmc_cmd_ctrl() 143 mcr |= ctrl & NAND_ALE ? TXX9_NDFMCR_ALE : 0; in txx9ndfmc_cmd_ctrl() 145 mcr |= ctrl & NAND_NCE ? TXX9_NDFMCR_CE : 0; in txx9ndfmc_cmd_ctrl() 147 mcr &= ~TXX9_NDFMCR_CS_MASK; in txx9ndfmc_cmd_ctrl() 148 mcr |= TXX9_NDFMCR_CS(txx9_priv->cs); in txx9ndfmc_cmd_ctrl() [all …]
|
/drivers/tty/serial/8250/ |
D | 8250.h | 191 int mcr = 0; in serial8250_TIOCM_to_MCR() local 194 mcr |= UART_MCR_RTS; in serial8250_TIOCM_to_MCR() 196 mcr |= UART_MCR_DTR; in serial8250_TIOCM_to_MCR() 198 mcr |= UART_MCR_OUT1; in serial8250_TIOCM_to_MCR() 200 mcr |= UART_MCR_OUT2; in serial8250_TIOCM_to_MCR() 202 mcr |= UART_MCR_LOOP; in serial8250_TIOCM_to_MCR() 204 return mcr; in serial8250_TIOCM_to_MCR() 207 static inline int serial8250_MCR_to_TIOCM(int mcr) in serial8250_MCR_to_TIOCM() argument 211 if (mcr & UART_MCR_RTS) in serial8250_MCR_to_TIOCM() 213 if (mcr & UART_MCR_DTR) in serial8250_MCR_to_TIOCM() [all …]
|
/drivers/soc/fsl/qbman/ |
D | qman.c | 943 union qm_mc_result **mcr) in qm_mc_result_timeout() argument 948 *mcr = qm_mc_result(portal); in qm_mc_result_timeout() 949 if (*mcr) in qm_mc_result_timeout() 1456 union qm_mc_result *mcr; in qm_congestion_task() local 1462 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qm_congestion_task() 1469 qman_cgrs_and(&rr, (struct qman_cgrs *)&mcr->querycongestion.state, in qm_congestion_task() 1856 union qm_mc_result *mcr; in qman_init_fq() local 1935 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_init_fq() 1941 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == myverb); in qman_init_fq() 1942 res = mcr->result; in qman_init_fq() [all …]
|
D | bman.c | 505 union bm_mc_result **mcr) in bm_mc_result_timeout() argument 510 *mcr = bm_mc_result(portal); in bm_mc_result_timeout() 511 if (*mcr) in bm_mc_result_timeout() 790 union bm_mc_result *mcr; in bman_acquire() local 799 if (!bm_mc_result_timeout(&p->p, &mcr)) { in bman_acquire() 804 ret = mcr->verb & BM_MCR_VERB_ACQUIRE_BUFCOUNT; in bman_acquire() 806 memcpy(&bufs[0], &mcr->bufs[0], num * sizeof(bufs[0])); in bman_acquire()
|
/drivers/usb/serial/ |
D | ch341.c | 97 u8 mcr; member 348 r = ch341_set_handshake(dev, priv->mcr); in ch341_configure() 459 priv->mcr |= CH341_BIT_RTS | CH341_BIT_DTR; in ch341_dtr_rts() 461 priv->mcr &= ~(CH341_BIT_RTS | CH341_BIT_DTR); in ch341_dtr_rts() 463 ch341_set_handshake(port->serial->dev, priv->mcr); in ch341_dtr_rts() 569 priv->mcr &= ~(CH341_BIT_DTR | CH341_BIT_RTS); in ch341_set_termios() 571 priv->mcr |= (CH341_BIT_DTR | CH341_BIT_RTS); in ch341_set_termios() 574 ch341_set_handshake(port->serial->dev, priv->mcr); in ch341_set_termios() 713 priv->mcr |= CH341_BIT_RTS; in ch341_tiocmset() 715 priv->mcr |= CH341_BIT_DTR; in ch341_tiocmset() [all …]
|
D | ark3116.c | 69 __u32 mcr; /* modem control register value */ member 148 priv->mcr = 0; in ark3116_port_probe() 397 ctrl = priv->mcr; in ark3116_tiocmget() 427 priv->mcr |= UART_MCR_RTS; in ark3116_tiocmset() 429 priv->mcr |= UART_MCR_DTR; in ark3116_tiocmset() 431 priv->mcr |= UART_MCR_OUT1; in ark3116_tiocmset() 433 priv->mcr |= UART_MCR_OUT2; in ark3116_tiocmset() 435 priv->mcr &= ~UART_MCR_RTS; in ark3116_tiocmset() 437 priv->mcr &= ~UART_MCR_DTR; in ark3116_tiocmset() 439 priv->mcr &= ~UART_MCR_OUT1; in ark3116_tiocmset() [all …]
|
D | ti_usb_3410_5052.c | 329 static int ti_set_mcr(struct ti_port *tport, unsigned int mcr); 901 unsigned int mcr; in ti_set_termios() local 1001 mcr = tport->tp_shadow_mcr; in ti_set_termios() 1004 mcr &= ~(TI_MCR_DTR | TI_MCR_RTS); in ti_set_termios() 1005 status = ti_set_mcr(tport, mcr); in ti_set_termios() 1020 unsigned int mcr; in ti_tiocmget() local 1025 mcr = tport->tp_shadow_mcr; in ti_tiocmget() 1028 result = ((mcr & TI_MCR_DTR) ? TIOCM_DTR : 0) in ti_tiocmget() 1029 | ((mcr & TI_MCR_RTS) ? TIOCM_RTS : 0) in ti_tiocmget() 1030 | ((mcr & TI_MCR_LOOP) ? TIOCM_LOOP : 0) in ti_tiocmget() [all …]
|
D | whiteheat.c | 147 __u8 mcr; /* FIXME: no locking on mcr */ member 412 if (info->mcr & UART_MCR_DTR) in whiteheat_tiocmget() 414 if (info->mcr & UART_MCR_RTS) in whiteheat_tiocmget() 427 info->mcr |= UART_MCR_RTS; in whiteheat_tiocmset() 429 info->mcr |= UART_MCR_DTR; in whiteheat_tiocmset() 432 info->mcr &= ~UART_MCR_RTS; in whiteheat_tiocmset() 434 info->mcr &= ~UART_MCR_DTR; in whiteheat_tiocmset() 436 firm_set_dtr(port, info->mcr & UART_MCR_DTR); in whiteheat_tiocmset() 437 firm_set_rts(port, info->mcr & UART_MCR_RTS); in whiteheat_tiocmset() 587 info->mcr = command_info->result_buffer[0]; in firm_send_command()
|
D | spcp8x5.c | 180 static int spcp8x5_set_ctrl_line(struct usb_serial_port *port, u8 mcr) in spcp8x5_set_ctrl_line() argument 191 mcr, 0x04, NULL, 0, 100); in spcp8x5_set_ctrl_line() 440 unsigned int mcr; in spcp8x5_tiocmget() local 449 mcr = priv->line_control; in spcp8x5_tiocmget() 452 result = ((mcr & MCR_DTR) ? TIOCM_DTR : 0) in spcp8x5_tiocmget() 453 | ((mcr & MCR_RTS) ? TIOCM_RTS : 0) in spcp8x5_tiocmget()
|
D | mct_u232.c | 275 unsigned char mcr; in mct_u232_set_modem_ctrl() local 282 mcr = MCT_U232_MCR_NONE; in mct_u232_set_modem_ctrl() 284 mcr |= MCT_U232_MCR_DTR; in mct_u232_set_modem_ctrl() 286 mcr |= MCT_U232_MCR_RTS; in mct_u232_set_modem_ctrl() 288 buf[0] = mcr; in mct_u232_set_modem_ctrl() 296 dev_dbg(&port->dev, "set_modem_ctrl: state=0x%x ==> mcr=0x%x\n", control_state, mcr); in mct_u232_set_modem_ctrl() 299 dev_err(&port->dev, "Set MODEM CTRL 0x%x failed (error = %d)\n", mcr, rc); in mct_u232_set_modem_ctrl()
|
D | mos7840.c | 994 __u16 mcr; in mos7840_tiocmget() local 1000 status = mos7840_get_uart_reg(port, MODEM_CONTROL_REGISTER, &mcr); in mos7840_tiocmget() 1003 result = ((mcr & MCR_DTR) ? TIOCM_DTR : 0) in mos7840_tiocmget() 1004 | ((mcr & MCR_RTS) ? TIOCM_RTS : 0) in mos7840_tiocmget() 1005 | ((mcr & MCR_LOOPBACK) ? TIOCM_LOOP : 0) in mos7840_tiocmget() 1021 unsigned int mcr; in mos7840_tiocmset() local 1025 mcr = mos7840_port->shadowMCR; in mos7840_tiocmset() 1027 mcr &= ~MCR_RTS; in mos7840_tiocmset() 1029 mcr &= ~MCR_DTR; in mos7840_tiocmset() 1031 mcr &= ~MCR_LOOPBACK; in mos7840_tiocmset() [all …]
|
D | metro-usb.c | 221 unsigned char mcr = METROUSB_MCR_NONE; in metrousb_set_modem_ctrl() local 228 mcr |= METROUSB_MCR_DTR; in metrousb_set_modem_ctrl() 230 mcr |= METROUSB_MCR_RTS; in metrousb_set_modem_ctrl() 239 __func__, mcr, retval); in metrousb_set_modem_ctrl()
|
D | mos7720.c | 1578 unsigned int mcr ; in mos7720_tiocmget() local 1581 mcr = mos7720_port->shadowMCR; in mos7720_tiocmget() 1584 result = ((mcr & UART_MCR_DTR) ? TIOCM_DTR : 0) /* 0x002 */ in mos7720_tiocmget() 1585 | ((mcr & UART_MCR_RTS) ? TIOCM_RTS : 0) /* 0x004 */ in mos7720_tiocmget() 1599 unsigned int mcr ; in mos7720_tiocmset() local 1601 mcr = mos7720_port->shadowMCR; in mos7720_tiocmset() 1604 mcr |= UART_MCR_RTS; in mos7720_tiocmset() 1606 mcr |= UART_MCR_DTR; in mos7720_tiocmset() 1608 mcr |= UART_MCR_LOOP; in mos7720_tiocmset() 1611 mcr &= ~UART_MCR_RTS; in mos7720_tiocmset() [all …]
|
D | io_ti.c | 1514 static int restore_mcr(struct edgeport_port *port, u8 mcr) in restore_mcr() argument 1518 dev_dbg(&port->port->dev, "%s - %x\n", __func__, mcr); in restore_mcr() 1520 status = ti_do_config(port, UMPC_SET_CLR_DTR, mcr & MCR_DTR); in restore_mcr() 1523 status = ti_do_config(port, UMPC_SET_CLR_RTS, mcr & MCR_RTS); in restore_mcr() 1526 return ti_do_config(port, UMPC_SET_CLR_LOOPBACK, mcr & MCR_LOOPBACK); in restore_mcr() 2369 unsigned int mcr; in edge_tiocmset() local 2373 mcr = edge_port->shadow_mcr; in edge_tiocmset() 2375 mcr |= MCR_RTS; in edge_tiocmset() 2377 mcr |= MCR_DTR; in edge_tiocmset() 2379 mcr |= MCR_LOOPBACK; in edge_tiocmset() [all …]
|
/drivers/i2c/busses/ |
D | i2c-nomadik.c | 302 u32 mcr = 0; in load_i2c_mcr_reg() local 305 mcr |= GEN_MASK(dev->cli.slave_adr, I2C_MCR_A7, 1); in load_i2c_mcr_reg() 309 mcr |= GEN_MASK(2, I2C_MCR_AM, 12); in load_i2c_mcr_reg() 318 mcr |= GEN_MASK(slave_adr_3msb_bits, I2C_MCR_EA10, 8); in load_i2c_mcr_reg() 321 mcr |= GEN_MASK(1, I2C_MCR_AM, 12); in load_i2c_mcr_reg() 325 mcr |= GEN_MASK(0, I2C_MCR_SB, 11); in load_i2c_mcr_reg() 329 mcr |= GEN_MASK(I2C_WRITE, I2C_MCR_OP, 0); in load_i2c_mcr_reg() 331 mcr |= GEN_MASK(I2C_READ, I2C_MCR_OP, 0); in load_i2c_mcr_reg() 335 mcr |= GEN_MASK(1, I2C_MCR_STOP, 14); in load_i2c_mcr_reg() 337 mcr &= ~(GEN_MASK(1, I2C_MCR_STOP, 14)); in load_i2c_mcr_reg() [all …]
|
/drivers/net/wan/ |
D | n2.c | 156 u8 mcr = inb(io + N2_MCR); in n2_set_iface() local 163 mcr |= port->phy_node ? CLOCK_OUT_PORT1 : CLOCK_OUT_PORT0; in n2_set_iface() 169 mcr |= port->phy_node ? CLOCK_OUT_PORT1 : CLOCK_OUT_PORT0; in n2_set_iface() 175 mcr |= port->phy_node ? CLOCK_OUT_PORT1 : CLOCK_OUT_PORT0; in n2_set_iface() 181 mcr &= port->phy_node ? ~CLOCK_OUT_PORT1 : ~CLOCK_OUT_PORT0; in n2_set_iface() 186 outb(mcr, io + N2_MCR); in n2_set_iface() 198 u8 mcr = inb(io + N2_MCR) | in n2_open() local 206 mcr &= port->phy_node ? ~DTR_PORT1 : ~DTR_PORT0; /* set DTR ON */ in n2_open() 207 outb(mcr, io + N2_MCR); in n2_open() 220 u8 mcr = inb(io + N2_MCR) | in n2_close() local [all …]
|
/drivers/tty/serial/ |
D | serial-tegra.c | 194 unsigned long mcr; in set_rts() local 196 mcr = tup->mcr_shadow; in set_rts() 198 mcr |= TEGRA_UART_MCR_RTS_EN; in set_rts() 200 mcr &= ~TEGRA_UART_MCR_RTS_EN; in set_rts() 201 if (mcr != tup->mcr_shadow) { in set_rts() 202 tegra_uart_write(tup, mcr, UART_MCR); in set_rts() 203 tup->mcr_shadow = mcr; in set_rts() 209 unsigned long mcr; in set_dtr() local 211 mcr = tup->mcr_shadow; in set_dtr() 213 mcr |= UART_MCR_DTR; in set_dtr() [all …]
|
D | pxa.c | 45 unsigned char mcr; member 297 unsigned char mcr = 0; in serial_pxa_set_mctrl() local 300 mcr |= UART_MCR_RTS; in serial_pxa_set_mctrl() 302 mcr |= UART_MCR_DTR; in serial_pxa_set_mctrl() 304 mcr |= UART_MCR_OUT1; in serial_pxa_set_mctrl() 306 mcr |= UART_MCR_OUT2; in serial_pxa_set_mctrl() 308 mcr |= UART_MCR_LOOP; in serial_pxa_set_mctrl() 310 mcr |= up->mcr; in serial_pxa_set_mctrl() 312 serial_out(up, UART_MCR, mcr); in serial_pxa_set_mctrl() 336 up->mcr |= UART_MCR_AFE; in serial_pxa_startup() [all …]
|
D | omap-serial.c | 132 unsigned char mcr; member 640 unsigned char mcr = 0, old_mcr, lcr; in serial_omap_set_mctrl() local 644 mcr |= UART_MCR_RTS; in serial_omap_set_mctrl() 646 mcr |= UART_MCR_DTR; in serial_omap_set_mctrl() 648 mcr |= UART_MCR_OUT1; in serial_omap_set_mctrl() 650 mcr |= UART_MCR_OUT2; in serial_omap_set_mctrl() 652 mcr |= UART_MCR_LOOP; in serial_omap_set_mctrl() 657 up->mcr = old_mcr | mcr; in serial_omap_set_mctrl() 658 serial_out(up, UART_MCR, up->mcr); in serial_omap_set_mctrl() 923 up->mcr = serial_in(up, UART_MCR) & ~UART_MCR_TCRTLR; in serial_omap_set_termios() [all …]
|
D | vr41xx_siu.c | 188 uint8_t mcr = 0; in siu_set_mctrl() local 191 mcr |= UART_MCR_DTR; in siu_set_mctrl() 193 mcr |= UART_MCR_RTS; in siu_set_mctrl() 195 mcr |= UART_MCR_OUT1; in siu_set_mctrl() 197 mcr |= UART_MCR_OUT2; in siu_set_mctrl() 199 mcr |= UART_MCR_LOOP; in siu_set_mctrl() 201 siu_write(port, UART_MCR, mcr); in siu_set_mctrl()
|
/drivers/net/can/ |
D | flexcan.c | 271 u32 mcr; /* 0x00 */ member 558 while (timeout-- && !(priv->read(®s->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_low_power_enter_ack() 561 if (!(priv->read(®s->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_low_power_enter_ack() 572 while (timeout-- && (priv->read(®s->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_low_power_exit_ack() 575 if (priv->read(®s->mcr) & FLEXCAN_MCR_LPM_ACK) in flexcan_low_power_exit_ack() 586 reg_mcr = priv->read(®s->mcr); in flexcan_enable_wakeup_irq() 593 priv->write(reg_mcr, ®s->mcr); in flexcan_enable_wakeup_irq() 619 reg_mcr = priv->read(®s->mcr); in flexcan_enter_stop_mode() 621 priv->write(reg_mcr, ®s->mcr); in flexcan_enter_stop_mode() 652 reg_mcr = priv->read(®s->mcr); in flexcan_exit_stop_mode() [all …]
|
/drivers/dma/ |
D | txx9dmac.c | 648 u32 mcr; in txx9dmac_tasklet() local 651 mcr = dma_readl(ddev, MCR); in txx9dmac_tasklet() 652 dev_vdbg(ddev->chan[0]->dma.dev, "tasklet: mcr=%x\n", mcr); in txx9dmac_tasklet() 654 if ((mcr >> (24 + i)) & 0x11) { in txx9dmac_tasklet() 1173 u32 mcr; in txx9dmac_probe() local 1209 mcr = TXX9_DMA_MCR_MSTEN | MCR_LE; in txx9dmac_probe() 1211 mcr |= TXX9_DMA_MCR_FIFUM(pdata->memcpy_chan); in txx9dmac_probe() 1212 dma_writel(ddev, MCR, mcr); in txx9dmac_probe() 1249 u32 mcr; in txx9dmac_resume_noirq() local 1251 mcr = TXX9_DMA_MCR_MSTEN | MCR_LE; in txx9dmac_resume_noirq() [all …]
|
/drivers/video/fbdev/ |
D | cg14.c | 102 u8 mcr; /* Master Control Reg */ member 212 val = sbus_readb(®s->mcr); in __cg14_reset() 214 sbus_writeb(val, ®s->mcr); in __cg14_reset() 315 cur_mode = sbus_readb(®s->mcr); in cg14_ioctl() 336 sbus_writeb(cur_mode, ®s->mcr); in cg14_ioctl()
|
/drivers/pcmcia/ |
D | pxa2xx_sharpsl.c | 111 unsigned short cpr, ncpr, ccr, nccr, mcr, nmcr, imr, nimr; in sharpsl_pcmcia_configure_socket() local 129 nmcr = (mcr = read_scoop_reg(scoop, SCOOP_MCR)) & ~0x0010; in sharpsl_pcmcia_configure_socket() 160 if (mcr != nmcr) in sharpsl_pcmcia_configure_socket()
|