Lines Matching refs:mcr
1523 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()
2424 mcr &= ~MCR_RTS; in edge_tiocmset()
2426 mcr &= ~MCR_DTR; in edge_tiocmset()
2428 mcr &= ~MCR_LOOPBACK; in edge_tiocmset()
2430 edge_port->shadow_mcr = mcr; in edge_tiocmset()
2433 restore_mcr(edge_port, mcr); in edge_tiocmset()
2443 unsigned int mcr; in edge_tiocmget() local
2449 mcr = edge_port->shadow_mcr; in edge_tiocmget()
2450 result = ((mcr & MCR_DTR) ? TIOCM_DTR: 0) /* 0x002 */ in edge_tiocmget()
2451 | ((mcr & MCR_RTS) ? TIOCM_RTS: 0) /* 0x004 */ in edge_tiocmget()