/drivers/mtd/nand/ |
D | txx9ndfmc.c | 118 u32 mcr = txx9ndfmc_read(dev, TXX9_NDFMCR); in txx9ndfmc_write_buf() local 120 txx9ndfmc_write(dev, mcr | TXX9_NDFMCR_WE, TXX9_NDFMCR); in txx9ndfmc_write_buf() 123 txx9ndfmc_write(dev, mcr, TXX9_NDFMCR); in txx9ndfmc_write_buf() 144 u32 mcr = txx9ndfmc_read(dev, TXX9_NDFMCR); in txx9ndfmc_cmd_ctrl() local 146 mcr &= ~(TXX9_NDFMCR_CLE | TXX9_NDFMCR_ALE | TXX9_NDFMCR_CE); in txx9ndfmc_cmd_ctrl() 147 mcr |= ctrl & NAND_CLE ? TXX9_NDFMCR_CLE : 0; in txx9ndfmc_cmd_ctrl() 148 mcr |= ctrl & NAND_ALE ? TXX9_NDFMCR_ALE : 0; in txx9ndfmc_cmd_ctrl() 150 mcr |= ctrl & NAND_NCE ? TXX9_NDFMCR_CE : 0; in txx9ndfmc_cmd_ctrl() 152 mcr &= ~TXX9_NDFMCR_CS_MASK; in txx9ndfmc_cmd_ctrl() 153 mcr |= TXX9_NDFMCR_CS(txx9_priv->cs); in txx9ndfmc_cmd_ctrl() [all …]
|
/drivers/spi/ |
D | spi-txx9.c | 155 u32 mcr; in txx9spi_work_one() local 162 mcr = txx9spi_rd(c, TXx9_SPMCR); in txx9spi_work_one() 163 if (unlikely((mcr & TXx9_SPMCR_OPMODE) == TXx9_SPMCR_ACTIVE)) { in txx9spi_work_one() 168 mcr &= ~(TXx9_SPMCR_OPMODE | TXx9_SPMCR_SPSTP | TXx9_SPMCR_BCLR); in txx9spi_work_one() 171 txx9spi_wr(c, mcr | TXx9_SPMCR_CONFIG | TXx9_SPMCR_BCLR, TXx9_SPMCR); in txx9spi_work_one() 195 txx9spi_wr(c, mcr | TXx9_SPMCR_CONFIG | TXx9_SPMCR_BCLR, in txx9spi_work_one() 199 txx9spi_wr(c, mcr | TXx9_SPMCR_ACTIVE, TXx9_SPMCR); in txx9spi_work_one() 278 txx9spi_wr(c, mcr | TXx9_SPMCR_CONFIG | TXx9_SPMCR_BCLR, TXx9_SPMCR); in txx9spi_work_one() 330 u32 mcr; in txx9spi_probe() local 365 mcr = txx9spi_rd(c, TXx9_SPMCR); in txx9spi_probe() [all …]
|
/drivers/net/can/ |
D | flexcan.c | 211 u32 mcr; /* 0x00 */ member 344 reg = flexcan_read(®s->mcr); in flexcan_chip_enable() 346 flexcan_write(reg, ®s->mcr); in flexcan_chip_enable() 348 while (timeout-- && (flexcan_read(®s->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_enable() 351 if (flexcan_read(®s->mcr) & FLEXCAN_MCR_LPM_ACK) in flexcan_chip_enable() 363 reg = flexcan_read(®s->mcr); in flexcan_chip_disable() 365 flexcan_write(reg, ®s->mcr); in flexcan_chip_disable() 367 while (timeout-- && !(flexcan_read(®s->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_disable() 370 if (!(flexcan_read(®s->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_disable() 382 reg = flexcan_read(®s->mcr); in flexcan_chip_freeze() [all …]
|
/drivers/i2c/busses/ |
D | i2c-nomadik.c | 305 u32 mcr = 0; in load_i2c_mcr_reg() local 308 mcr |= GEN_MASK(dev->cli.slave_adr, I2C_MCR_A7, 1); in load_i2c_mcr_reg() 312 mcr |= GEN_MASK(2, I2C_MCR_AM, 12); in load_i2c_mcr_reg() 321 mcr |= GEN_MASK(slave_adr_3msb_bits, I2C_MCR_EA10, 8); in load_i2c_mcr_reg() 324 mcr |= GEN_MASK(1, I2C_MCR_AM, 12); in load_i2c_mcr_reg() 328 mcr |= GEN_MASK(0, I2C_MCR_SB, 11); in load_i2c_mcr_reg() 332 mcr |= GEN_MASK(I2C_WRITE, I2C_MCR_OP, 0); in load_i2c_mcr_reg() 334 mcr |= GEN_MASK(I2C_READ, I2C_MCR_OP, 0); in load_i2c_mcr_reg() 338 mcr |= GEN_MASK(1, I2C_MCR_STOP, 14); in load_i2c_mcr_reg() 340 mcr &= ~(GEN_MASK(1, I2C_MCR_STOP, 14)); in load_i2c_mcr_reg() [all …]
|
/drivers/net/wan/ |
D | n2.c | 171 u8 mcr = inb(io + N2_MCR); in n2_set_iface() local 178 mcr |= port->phy_node ? CLOCK_OUT_PORT1 : CLOCK_OUT_PORT0; in n2_set_iface() 184 mcr |= port->phy_node ? CLOCK_OUT_PORT1 : CLOCK_OUT_PORT0; in n2_set_iface() 190 mcr |= port->phy_node ? CLOCK_OUT_PORT1 : CLOCK_OUT_PORT0; in n2_set_iface() 196 mcr &= port->phy_node ? ~CLOCK_OUT_PORT1 : ~CLOCK_OUT_PORT0; in n2_set_iface() 201 outb(mcr, io + N2_MCR); in n2_set_iface() 215 u8 mcr = inb(io + N2_MCR) | (port->phy_node ? TX422_PORT1:TX422_PORT0); in n2_open() local 222 mcr &= port->phy_node ? ~DTR_PORT1 : ~DTR_PORT0; /* set DTR ON */ in n2_open() 223 outb(mcr, io + N2_MCR); in n2_open() 238 u8 mcr = inb(io+N2_MCR) | (port->phy_node ? TX422_PORT1 : TX422_PORT0); in n2_close() local [all …]
|
/drivers/usb/serial/ |
D | ark3116.c | 73 __u32 mcr; /* modem control register value */ member 161 priv->mcr = 0; in ark3116_port_probe() 455 ctrl = priv->mcr; in ark3116_tiocmget() 485 priv->mcr |= UART_MCR_RTS; in ark3116_tiocmset() 487 priv->mcr |= UART_MCR_DTR; in ark3116_tiocmset() 489 priv->mcr |= UART_MCR_OUT1; in ark3116_tiocmset() 491 priv->mcr |= UART_MCR_OUT2; in ark3116_tiocmset() 493 priv->mcr &= ~UART_MCR_RTS; in ark3116_tiocmset() 495 priv->mcr &= ~UART_MCR_DTR; in ark3116_tiocmset() 497 priv->mcr &= ~UART_MCR_OUT1; in ark3116_tiocmset() [all …]
|
D | ti_usb_3410_5052.c | 117 static int ti_set_mcr(struct ti_port *tport, unsigned int mcr); 710 unsigned int mcr; in ti_set_termios() local 821 mcr = tport->tp_shadow_mcr; in ti_set_termios() 824 mcr &= ~(TI_MCR_DTR | TI_MCR_RTS); in ti_set_termios() 825 status = ti_set_mcr(tport, mcr); in ti_set_termios() 841 unsigned int mcr; in ti_tiocmget() local 849 mcr = tport->tp_shadow_mcr; in ti_tiocmget() 852 result = ((mcr & TI_MCR_DTR) ? TIOCM_DTR : 0) in ti_tiocmget() 853 | ((mcr & TI_MCR_RTS) ? TIOCM_RTS : 0) in ti_tiocmget() 854 | ((mcr & TI_MCR_LOOP) ? TIOCM_LOOP : 0) in ti_tiocmget() [all …]
|
D | mos7720.c | 1754 unsigned int mcr ; in mos7720_tiocmget() local 1757 mcr = mos7720_port->shadowMCR; in mos7720_tiocmget() 1760 result = ((mcr & UART_MCR_DTR) ? TIOCM_DTR : 0) /* 0x002 */ in mos7720_tiocmget() 1761 | ((mcr & UART_MCR_RTS) ? TIOCM_RTS : 0) /* 0x004 */ in mos7720_tiocmget() 1775 unsigned int mcr ; in mos7720_tiocmset() local 1777 mcr = mos7720_port->shadowMCR; in mos7720_tiocmset() 1780 mcr |= UART_MCR_RTS; in mos7720_tiocmset() 1782 mcr |= UART_MCR_DTR; in mos7720_tiocmset() 1784 mcr |= UART_MCR_LOOP; in mos7720_tiocmset() 1787 mcr &= ~UART_MCR_RTS; in mos7720_tiocmset() [all …]
|
D | spcp8x5.c | 186 static int spcp8x5_set_ctrl_line(struct usb_serial_port *port, u8 mcr) in spcp8x5_set_ctrl_line() argument 197 mcr, 0x04, NULL, 0, 100); in spcp8x5_set_ctrl_line() 443 unsigned int mcr; in spcp8x5_tiocmget() local 452 mcr = priv->line_control; in spcp8x5_tiocmget() 455 result = ((mcr & MCR_DTR) ? TIOCM_DTR : 0) in spcp8x5_tiocmget() 456 | ((mcr & MCR_RTS) ? TIOCM_RTS : 0) in spcp8x5_tiocmget()
|
D | whiteheat.c | 152 __u8 mcr; /* FIXME: no locking on mcr */ member 447 if (info->mcr & UART_MCR_DTR) in whiteheat_tiocmget() 449 if (info->mcr & UART_MCR_RTS) in whiteheat_tiocmget() 462 info->mcr |= UART_MCR_RTS; in whiteheat_tiocmset() 464 info->mcr |= UART_MCR_DTR; in whiteheat_tiocmset() 467 info->mcr &= ~UART_MCR_RTS; in whiteheat_tiocmset() 469 info->mcr &= ~UART_MCR_DTR; in whiteheat_tiocmset() 471 firm_set_dtr(port, info->mcr & UART_MCR_DTR); in whiteheat_tiocmset() 472 firm_set_rts(port, info->mcr & UART_MCR_RTS); in whiteheat_tiocmset() 643 memcpy(&info->mcr, command_info->result_buffer, in firm_send_command()
|
D | mct_u232.c | 279 unsigned char mcr; in mct_u232_set_modem_ctrl() local 286 mcr = MCT_U232_MCR_NONE; in mct_u232_set_modem_ctrl() 288 mcr |= MCT_U232_MCR_DTR; in mct_u232_set_modem_ctrl() 290 mcr |= MCT_U232_MCR_RTS; in mct_u232_set_modem_ctrl() 292 buf[0] = mcr; in mct_u232_set_modem_ctrl() 300 dev_dbg(&port->dev, "set_modem_ctrl: state=0x%x ==> mcr=0x%x\n", control_state, mcr); in mct_u232_set_modem_ctrl() 303 dev_err(&port->dev, "Set MODEM CTRL 0x%x failed (error = %d)\n", mcr, rc); in mct_u232_set_modem_ctrl()
|
D | metro-usb.c | 240 unsigned char mcr = METROUSB_MCR_NONE; in metrousb_set_modem_ctrl() local 247 mcr |= METROUSB_MCR_DTR; in metrousb_set_modem_ctrl() 249 mcr |= METROUSB_MCR_RTS; in metrousb_set_modem_ctrl() 258 __func__, mcr, retval); in metrousb_set_modem_ctrl()
|
D | io_ti.c | 1394 static int restore_mcr(struct edgeport_port *port, __u8 mcr) in restore_mcr() argument 1398 dev_dbg(&port->port->dev, "%s - %x\n", __func__, mcr); in restore_mcr() 1400 status = ti_do_config(port, UMPC_SET_CLR_DTR, mcr & MCR_DTR); in restore_mcr() 1403 status = ti_do_config(port, UMPC_SET_CLR_RTS, mcr & MCR_RTS); in restore_mcr() 1406 return ti_do_config(port, UMPC_SET_CLR_LOOPBACK, mcr & MCR_LOOPBACK); in restore_mcr() 2272 unsigned int mcr; in edge_tiocmset() local 2276 mcr = edge_port->shadow_mcr; in edge_tiocmset() 2278 mcr |= MCR_RTS; in edge_tiocmset() 2280 mcr |= MCR_DTR; in edge_tiocmset() 2282 mcr |= MCR_LOOPBACK; in edge_tiocmset() [all …]
|
/drivers/tty/serial/ |
D | serial-tegra.c | 178 unsigned long mcr; in set_rts() local 180 mcr = tup->mcr_shadow; in set_rts() 182 mcr |= TEGRA_UART_MCR_RTS_EN; in set_rts() 184 mcr &= ~TEGRA_UART_MCR_RTS_EN; in set_rts() 185 if (mcr != tup->mcr_shadow) { in set_rts() 186 tegra_uart_write(tup, mcr, UART_MCR); in set_rts() 187 tup->mcr_shadow = mcr; in set_rts() 194 unsigned long mcr; in set_dtr() local 196 mcr = tup->mcr_shadow; in set_dtr() 198 mcr |= UART_MCR_DTR; in set_dtr() [all …]
|
D | pxa.c | 54 unsigned char mcr; member 303 unsigned char mcr = 0; in serial_pxa_set_mctrl() local 306 mcr |= UART_MCR_RTS; in serial_pxa_set_mctrl() 308 mcr |= UART_MCR_DTR; in serial_pxa_set_mctrl() 310 mcr |= UART_MCR_OUT1; in serial_pxa_set_mctrl() 312 mcr |= UART_MCR_OUT2; in serial_pxa_set_mctrl() 314 mcr |= UART_MCR_LOOP; in serial_pxa_set_mctrl() 316 mcr |= up->mcr; in serial_pxa_set_mctrl() 318 serial_out(up, UART_MCR, mcr); in serial_pxa_set_mctrl() 342 up->mcr |= UART_MCR_AFE; in serial_pxa_startup() [all …]
|
D | serial_ks8695.c | 297 unsigned int mcr; in ks8695uart_set_mctrl() local 299 mcr = UART_GET_MCR(port); in ks8695uart_set_mctrl() 301 mcr |= URMC_URRTS; in ks8695uart_set_mctrl() 303 mcr &= ~URMC_URRTS; in ks8695uart_set_mctrl() 306 mcr |= URMC_URDTR; in ks8695uart_set_mctrl() 308 mcr &= ~URMC_URDTR; in ks8695uart_set_mctrl() 310 UART_PUT_MCR(port, mcr); in ks8695uart_set_mctrl()
|
D | omap-serial.c | 142 unsigned char mcr; member 683 unsigned char mcr = 0, old_mcr; in serial_omap_set_mctrl() local 687 mcr |= UART_MCR_RTS; in serial_omap_set_mctrl() 689 mcr |= UART_MCR_DTR; in serial_omap_set_mctrl() 691 mcr |= UART_MCR_OUT1; in serial_omap_set_mctrl() 693 mcr |= UART_MCR_OUT2; in serial_omap_set_mctrl() 695 mcr |= UART_MCR_LOOP; in serial_omap_set_mctrl() 701 up->mcr = old_mcr | mcr; in serial_omap_set_mctrl() 702 serial_out(up, UART_MCR, up->mcr); in serial_omap_set_mctrl() 972 up->mcr = serial_in(up, UART_MCR) & ~UART_MCR_TCRTLR; in serial_omap_set_termios() [all …]
|
D | mfd.c | 79 unsigned char mcr; member 724 unsigned char mcr = 0; in serial_hsu_set_mctrl() local 727 mcr |= UART_MCR_RTS; in serial_hsu_set_mctrl() 729 mcr |= UART_MCR_DTR; in serial_hsu_set_mctrl() 731 mcr |= UART_MCR_OUT1; in serial_hsu_set_mctrl() 733 mcr |= UART_MCR_OUT2; in serial_hsu_set_mctrl() 735 mcr |= UART_MCR_LOOP; in serial_hsu_set_mctrl() 737 mcr |= up->mcr; in serial_hsu_set_mctrl() 739 serial_out(up, UART_MCR, mcr); in serial_hsu_set_mctrl() 1012 up->mcr |= UART_MCR_AFE | UART_MCR_RTS; in serial_hsu_set_termios() [all …]
|
D | vr41xx_siu.c | 205 uint8_t mcr = 0; in siu_set_mctrl() local 208 mcr |= UART_MCR_DTR; in siu_set_mctrl() 210 mcr |= UART_MCR_RTS; in siu_set_mctrl() 212 mcr |= UART_MCR_OUT1; in siu_set_mctrl() 214 mcr |= UART_MCR_OUT2; in siu_set_mctrl() 216 mcr |= UART_MCR_LOOP; in siu_set_mctrl() 218 siu_write(port, UART_MCR, mcr); in siu_set_mctrl()
|
/drivers/sn/ |
D | ioc3.c | 42 unsigned mcr; in nic_wait() local 45 mcr = readl(&idd->vma->mcr); in nic_wait() 46 } while (!(mcr & 2)); in nic_wait() 48 return mcr & 1; in nic_wait() 57 writel(mcr_pack(500, 65), &idd->vma->mcr); in nic_reset() 72 writel(mcr_pack(6, 13), &idd->vma->mcr); in nic_read_bit() 84 writel(mcr_pack(6, 110), &idd->vma->mcr); in nic_write_bit() 86 writel(mcr_pack(80, 30), &idd->vma->mcr); in nic_write_bit()
|
/drivers/gpu/drm/gma500/ |
D | psb_drv.h | 785 int mcr = (0xD0<<24) | (port << 16) | (offset << 8); in MRST_MSG_READ32() local 788 pci_write_config_dword(pci_root, 0xD0, mcr); in MRST_MSG_READ32() 795 int mcr = (0xE0<<24) | (port << 16) | (offset << 8) | 0xF0; in MRST_MSG_WRITE32() local 798 pci_write_config_dword(pci_root, 0xD0, mcr); in MRST_MSG_WRITE32() 803 int mcr = (0x10<<24) | (port << 16) | (offset << 8); in MDFLD_MSG_READ32() local 806 pci_write_config_dword(pci_root, 0xD0, mcr); in MDFLD_MSG_READ32() 813 int mcr = (0x11<<24) | (port << 16) | (offset << 8) | 0xF0; in MDFLD_MSG_WRITE32() local 816 pci_write_config_dword(pci_root, 0xD0, mcr); in MDFLD_MSG_WRITE32()
|
/drivers/staging/comedi/drivers/ |
D | mite.c | 354 unsigned int chor, chcr, mcr, dcr, lkcr; in mite_prep_dma() local 389 mcr = CR_RL(64) | CR_ASEQUP; in mite_prep_dma() 392 mcr |= CR_PSIZE8; in mite_prep_dma() 395 mcr |= CR_PSIZE16; in mite_prep_dma() 398 mcr |= CR_PSIZE32; in mite_prep_dma() 404 writel(mcr, mite->mite_io_addr + MITE_MCR(mite_chan->channel)); in mite_prep_dma()
|
/drivers/dma/ |
D | txx9dmac.c | 655 u32 mcr; in txx9dmac_tasklet() local 658 mcr = dma_readl(ddev, MCR); in txx9dmac_tasklet() 659 dev_vdbg(ddev->chan[0]->dma.dev, "tasklet: mcr=%x\n", mcr); in txx9dmac_tasklet() 661 if ((mcr >> (24 + i)) & 0x11) { in txx9dmac_tasklet() 1185 u32 mcr; in txx9dmac_probe() local 1222 mcr = TXX9_DMA_MCR_MSTEN | MCR_LE; in txx9dmac_probe() 1224 mcr |= TXX9_DMA_MCR_FIFUM(pdata->memcpy_chan); in txx9dmac_probe() 1225 dma_writel(ddev, MCR, mcr); in txx9dmac_probe() 1262 u32 mcr; in txx9dmac_resume_noirq() local 1264 mcr = TXX9_DMA_MCR_MSTEN | MCR_LE; in txx9dmac_resume_noirq() [all …]
|
/drivers/video/fbdev/ |
D | cg14.c | 101 u8 mcr; /* Master Control Reg */ member 211 val = sbus_readb(®s->mcr); in __cg14_reset() 213 sbus_writeb(val, ®s->mcr); in __cg14_reset() 314 cur_mode = sbus_readb(®s->mcr); in cg14_ioctl() 335 sbus_writeb(cur_mode, ®s->mcr); in cg14_ioctl()
|
/drivers/pcmcia/ |
D | pxa2xx_sharpsl.c | 115 unsigned short cpr, ncpr, ccr, nccr, mcr, nmcr, imr, nimr; in sharpsl_pcmcia_configure_socket() local 133 nmcr = (mcr = read_scoop_reg(scoop, SCOOP_MCR)) & ~0x0010; in sharpsl_pcmcia_configure_socket() 164 if (mcr != nmcr) in sharpsl_pcmcia_configure_socket()
|