Home
last modified time | relevance | path

Searched refs:mcr (Results 1 – 25 of 64) sorted by relevance

123

/drivers/mtd/nand/
Dtxx9ndfmc.c117 u32 mcr = txx9ndfmc_read(dev, TXX9_NDFMCR); in txx9ndfmc_write_buf() local
119 txx9ndfmc_write(dev, mcr | TXX9_NDFMCR_WE, TXX9_NDFMCR); in txx9ndfmc_write_buf()
122 txx9ndfmc_write(dev, mcr, TXX9_NDFMCR); in txx9ndfmc_write_buf()
143 u32 mcr = txx9ndfmc_read(dev, TXX9_NDFMCR); in txx9ndfmc_cmd_ctrl() local
145 mcr &= ~(TXX9_NDFMCR_CLE | TXX9_NDFMCR_ALE | TXX9_NDFMCR_CE); in txx9ndfmc_cmd_ctrl()
146 mcr |= ctrl & NAND_CLE ? TXX9_NDFMCR_CLE : 0; in txx9ndfmc_cmd_ctrl()
147 mcr |= ctrl & NAND_ALE ? TXX9_NDFMCR_ALE : 0; in txx9ndfmc_cmd_ctrl()
149 mcr |= ctrl & NAND_NCE ? TXX9_NDFMCR_CE : 0; in txx9ndfmc_cmd_ctrl()
151 mcr &= ~TXX9_NDFMCR_CS_MASK; in txx9ndfmc_cmd_ctrl()
152 mcr |= TXX9_NDFMCR_CS(txx9_priv->cs); in txx9ndfmc_cmd_ctrl()
[all …]
/drivers/soc/fsl/qbman/
Dqman.c919 union qm_mc_result **mcr) in qm_mc_result_timeout() argument
924 *mcr = qm_mc_result(portal); in qm_mc_result_timeout()
925 if (*mcr) in qm_mc_result_timeout()
1380 union qm_mc_result *mcr; in qm_congestion_task() local
1386 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qm_congestion_task()
1392 qman_cgrs_and(&rr, (struct qman_cgrs *)&mcr->querycongestion.state, in qm_congestion_task()
1768 union qm_mc_result *mcr; in qman_init_fq() local
1835 if (!qm_mc_result_timeout(&p->p, &mcr)) { in qman_init_fq()
1841 DPAA_ASSERT((mcr->verb & QM_MCR_VERB_MASK) == myverb); in qman_init_fq()
1842 res = mcr->result; in qman_init_fq()
[all …]
Dbman.c482 union bm_mc_result **mcr) in bm_mc_result_timeout() argument
487 *mcr = bm_mc_result(portal); in bm_mc_result_timeout()
488 if (*mcr) in bm_mc_result_timeout()
768 union bm_mc_result *mcr; in bman_acquire() local
777 if (!bm_mc_result_timeout(&p->p, &mcr)) { in bman_acquire()
782 ret = mcr->verb & BM_MCR_VERB_ACQUIRE_BUFCOUNT; in bman_acquire()
784 memcpy(&bufs[0], &mcr->bufs[0], num * sizeof(bufs[0])); in bman_acquire()
/drivers/spi/
Dspi-txx9.c154 u32 mcr; in txx9spi_work_one() local
161 mcr = txx9spi_rd(c, TXx9_SPMCR); in txx9spi_work_one()
162 if (unlikely((mcr & TXx9_SPMCR_OPMODE) == TXx9_SPMCR_ACTIVE)) { in txx9spi_work_one()
167 mcr &= ~(TXx9_SPMCR_OPMODE | TXx9_SPMCR_SPSTP | TXx9_SPMCR_BCLR); in txx9spi_work_one()
170 txx9spi_wr(c, mcr | TXx9_SPMCR_CONFIG | TXx9_SPMCR_BCLR, TXx9_SPMCR); in txx9spi_work_one()
194 txx9spi_wr(c, mcr | TXx9_SPMCR_CONFIG | TXx9_SPMCR_BCLR, in txx9spi_work_one()
198 txx9spi_wr(c, mcr | TXx9_SPMCR_ACTIVE, TXx9_SPMCR); in txx9spi_work_one()
277 txx9spi_wr(c, mcr | TXx9_SPMCR_CONFIG | TXx9_SPMCR_BCLR, TXx9_SPMCR); in txx9spi_work_one()
329 u32 mcr; in txx9spi_probe() local
364 mcr = txx9spi_rd(c, TXx9_SPMCR); in txx9spi_probe()
[all …]
/drivers/net/can/
Dflexcan.c203 u32 mcr; /* 0x00 */ member
347 reg = flexcan_read(&regs->mcr); in flexcan_chip_enable()
349 flexcan_write(reg, &regs->mcr); in flexcan_chip_enable()
351 while (timeout-- && (flexcan_read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_enable()
354 if (flexcan_read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK) in flexcan_chip_enable()
366 reg = flexcan_read(&regs->mcr); in flexcan_chip_disable()
368 flexcan_write(reg, &regs->mcr); in flexcan_chip_disable()
370 while (timeout-- && !(flexcan_read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_disable()
373 if (!(flexcan_read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_disable()
385 reg = flexcan_read(&regs->mcr); in flexcan_chip_freeze()
[all …]
/drivers/i2c/busses/
Di2c-nomadik.c305 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/
Dn2.c171 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/
Dark3116.c73 __u32 mcr; /* modem control register value */ member
168 priv->mcr = 0; in ark3116_port_probe()
462 ctrl = priv->mcr; in ark3116_tiocmget()
492 priv->mcr |= UART_MCR_RTS; in ark3116_tiocmset()
494 priv->mcr |= UART_MCR_DTR; in ark3116_tiocmset()
496 priv->mcr |= UART_MCR_OUT1; in ark3116_tiocmset()
498 priv->mcr |= UART_MCR_OUT2; in ark3116_tiocmset()
500 priv->mcr &= ~UART_MCR_RTS; in ark3116_tiocmset()
502 priv->mcr &= ~UART_MCR_DTR; in ark3116_tiocmset()
504 priv->mcr &= ~UART_MCR_OUT1; in ark3116_tiocmset()
[all …]
Dti_usb_3410_5052.c335 static int ti_set_mcr(struct ti_port *tport, unsigned int mcr);
934 unsigned int mcr; in ti_set_termios() local
1042 mcr = tport->tp_shadow_mcr; in ti_set_termios()
1045 mcr &= ~(TI_MCR_DTR | TI_MCR_RTS); in ti_set_termios()
1046 status = ti_set_mcr(tport, mcr); in ti_set_termios()
1062 unsigned int mcr; in ti_tiocmget() local
1067 mcr = tport->tp_shadow_mcr; in ti_tiocmget()
1070 result = ((mcr & TI_MCR_DTR) ? TIOCM_DTR : 0) in ti_tiocmget()
1071 | ((mcr & TI_MCR_RTS) ? TIOCM_RTS : 0) in ti_tiocmget()
1072 | ((mcr & TI_MCR_LOOP) ? TIOCM_LOOP : 0) in ti_tiocmget()
[all …]
Dmos7720.c1752 unsigned int mcr ; in mos7720_tiocmget() local
1755 mcr = mos7720_port->shadowMCR; in mos7720_tiocmget()
1758 result = ((mcr & UART_MCR_DTR) ? TIOCM_DTR : 0) /* 0x002 */ in mos7720_tiocmget()
1759 | ((mcr & UART_MCR_RTS) ? TIOCM_RTS : 0) /* 0x004 */ in mos7720_tiocmget()
1773 unsigned int mcr ; in mos7720_tiocmset() local
1775 mcr = mos7720_port->shadowMCR; in mos7720_tiocmset()
1778 mcr |= UART_MCR_RTS; in mos7720_tiocmset()
1780 mcr |= UART_MCR_DTR; in mos7720_tiocmset()
1782 mcr |= UART_MCR_LOOP; in mos7720_tiocmset()
1785 mcr &= ~UART_MCR_RTS; in mos7720_tiocmset()
[all …]
Dspcp8x5.c199 static int spcp8x5_set_ctrl_line(struct usb_serial_port *port, u8 mcr) in spcp8x5_set_ctrl_line() argument
210 mcr, 0x04, NULL, 0, 100); in spcp8x5_set_ctrl_line()
462 unsigned int mcr; in spcp8x5_tiocmget() local
471 mcr = priv->line_control; in spcp8x5_tiocmget()
474 result = ((mcr & MCR_DTR) ? TIOCM_DTR : 0) in spcp8x5_tiocmget()
475 | ((mcr & MCR_RTS) ? TIOCM_RTS : 0) in spcp8x5_tiocmget()
Dwhiteheat.c152 __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()
Dmct_u232.c279 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()
Dmetro-usb.c240 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()
Dio_ti.c1523 static int restore_mcr(struct edgeport_port *port, __u8 mcr) in restore_mcr() argument
1527 dev_dbg(&port->port->dev, "%s - %x\n", __func__, mcr); in restore_mcr()
1529 status = ti_do_config(port, UMPC_SET_CLR_DTR, mcr & MCR_DTR); in restore_mcr()
1532 status = ti_do_config(port, UMPC_SET_CLR_RTS, mcr & MCR_RTS); in restore_mcr()
1535 return ti_do_config(port, UMPC_SET_CLR_LOOPBACK, mcr & MCR_LOOPBACK); in restore_mcr()
2411 unsigned int mcr; in edge_tiocmset() local
2415 mcr = edge_port->shadow_mcr; in edge_tiocmset()
2417 mcr |= MCR_RTS; in edge_tiocmset()
2419 mcr |= MCR_DTR; in edge_tiocmset()
2421 mcr |= MCR_LOOPBACK; in edge_tiocmset()
[all …]
/drivers/tty/serial/
Dpxa.c53 unsigned char mcr; member
305 unsigned char mcr = 0; in serial_pxa_set_mctrl() local
308 mcr |= UART_MCR_RTS; in serial_pxa_set_mctrl()
310 mcr |= UART_MCR_DTR; in serial_pxa_set_mctrl()
312 mcr |= UART_MCR_OUT1; in serial_pxa_set_mctrl()
314 mcr |= UART_MCR_OUT2; in serial_pxa_set_mctrl()
316 mcr |= UART_MCR_LOOP; in serial_pxa_set_mctrl()
318 mcr |= up->mcr; in serial_pxa_set_mctrl()
320 serial_out(up, UART_MCR, mcr); in serial_pxa_set_mctrl()
344 up->mcr |= UART_MCR_AFE; in serial_pxa_startup()
[all …]
Dserial-tegra.c178 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()
193 unsigned long mcr; in set_dtr() local
195 mcr = tup->mcr_shadow; in set_dtr()
197 mcr |= UART_MCR_DTR; in set_dtr()
[all …]
Dserial_ks8695.c297 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()
Domap-serial.c143 unsigned char mcr; member
669 unsigned char mcr = 0, old_mcr, lcr; in serial_omap_set_mctrl() local
673 mcr |= UART_MCR_RTS; in serial_omap_set_mctrl()
675 mcr |= UART_MCR_DTR; in serial_omap_set_mctrl()
677 mcr |= UART_MCR_OUT1; in serial_omap_set_mctrl()
679 mcr |= UART_MCR_OUT2; in serial_omap_set_mctrl()
681 mcr |= UART_MCR_LOOP; in serial_omap_set_mctrl()
687 up->mcr = old_mcr | mcr; in serial_omap_set_mctrl()
688 serial_out(up, UART_MCR, up->mcr); in serial_omap_set_mctrl()
964 up->mcr = serial_in(up, UART_MCR) & ~UART_MCR_TCRTLR; in serial_omap_set_termios()
[all …]
/drivers/sn/
Dioc3.c42 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/
Dpsb_drv.h792 int mcr = (0xD0<<24) | (port << 16) | (offset << 8); in MRST_MSG_READ32() local
795 pci_write_config_dword(pci_root, 0xD0, mcr); in MRST_MSG_READ32()
802 int mcr = (0xE0<<24) | (port << 16) | (offset << 8) | 0xF0; in MRST_MSG_WRITE32() local
805 pci_write_config_dword(pci_root, 0xD0, mcr); in MRST_MSG_WRITE32()
810 int mcr = (0x10<<24) | (port << 16) | (offset << 8); in MDFLD_MSG_READ32() local
813 pci_write_config_dword(pci_root, 0xD0, mcr); in MDFLD_MSG_READ32()
820 int mcr = (0x11<<24) | (port << 16) | (offset << 8) | 0xF0; in MDFLD_MSG_WRITE32() local
823 pci_write_config_dword(pci_root, 0xD0, mcr); in MDFLD_MSG_WRITE32()
/drivers/tty/serial/8250/
D8250_port.c531 unsigned char mcr = serial8250_in_MCR(p); in serial8250_em485_rts_after_send() local
534 mcr |= UART_MCR_RTS; in serial8250_em485_rts_after_send()
536 mcr &= ~UART_MCR_RTS; in serial8250_em485_rts_after_send()
537 serial8250_out_MCR(p, mcr); in serial8250_em485_rts_after_send()
1538 unsigned char mcr; in start_tx_rs485() local
1546 mcr = serial8250_in_MCR(up); in start_tx_rs485()
1548 !!(mcr & UART_MCR_RTS)) { in start_tx_rs485()
1550 mcr |= UART_MCR_RTS; in start_tx_rs485()
1552 mcr &= ~UART_MCR_RTS; in start_tx_rs485()
1553 serial8250_out_MCR(up, mcr); in start_tx_rs485()
[all …]
/drivers/dma/
Dtxx9dmac.c652 u32 mcr; in txx9dmac_tasklet() local
655 mcr = dma_readl(ddev, MCR); in txx9dmac_tasklet()
656 dev_vdbg(ddev->chan[0]->dma.dev, "tasklet: mcr=%x\n", mcr); in txx9dmac_tasklet()
658 if ((mcr >> (24 + i)) & 0x11) { in txx9dmac_tasklet()
1180 u32 mcr; in txx9dmac_probe() local
1217 mcr = TXX9_DMA_MCR_MSTEN | MCR_LE; in txx9dmac_probe()
1219 mcr |= TXX9_DMA_MCR_FIFUM(pdata->memcpy_chan); in txx9dmac_probe()
1220 dma_writel(ddev, MCR, mcr); in txx9dmac_probe()
1259 u32 mcr; in txx9dmac_resume_noirq() local
1261 mcr = TXX9_DMA_MCR_MSTEN | MCR_LE; in txx9dmac_resume_noirq()
[all …]
/drivers/video/fbdev/
Dcg14.c101 u8 mcr; /* Master Control Reg */ member
211 val = sbus_readb(&regs->mcr); in __cg14_reset()
213 sbus_writeb(val, &regs->mcr); in __cg14_reset()
314 cur_mode = sbus_readb(&regs->mcr); in cg14_ioctl()
335 sbus_writeb(cur_mode, &regs->mcr); in cg14_ioctl()
/drivers/pcmcia/
Dpxa2xx_sharpsl.c115 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()

123