Lines Matching refs:mcr
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()
2382 mcr &= ~MCR_RTS; in edge_tiocmset()
2384 mcr &= ~MCR_DTR; in edge_tiocmset()
2386 mcr &= ~MCR_LOOPBACK; in edge_tiocmset()
2388 edge_port->shadow_mcr = mcr; in edge_tiocmset()
2391 restore_mcr(edge_port, mcr); in edge_tiocmset()
2401 unsigned int mcr; in edge_tiocmget() local
2407 mcr = edge_port->shadow_mcr; in edge_tiocmget()
2408 result = ((mcr & MCR_DTR) ? TIOCM_DTR: 0) /* 0x002 */ in edge_tiocmget()
2409 | ((mcr & MCR_RTS) ? TIOCM_RTS: 0) /* 0x004 */ in edge_tiocmget()