Lines Matching refs:msr
1439 static void handle_new_msr(struct edgeport_port *edge_port, __u8 msr) in handle_new_msr() argument
1444 dev_dbg(&edge_port->port->dev, "%s - %02x\n", __func__, msr); in handle_new_msr()
1446 if (msr & (EDGEPORT_MSR_DELTA_CTS | EDGEPORT_MSR_DELTA_DSR | in handle_new_msr()
1451 if (msr & EDGEPORT_MSR_DELTA_CTS) in handle_new_msr()
1453 if (msr & EDGEPORT_MSR_DELTA_DSR) in handle_new_msr()
1455 if (msr & EDGEPORT_MSR_DELTA_CD) in handle_new_msr()
1457 if (msr & EDGEPORT_MSR_DELTA_RI) in handle_new_msr()
1463 edge_port->shadow_msr = msr & 0xf0; in handle_new_msr()
1468 if (msr & EDGEPORT_MSR_CTS) { in handle_new_msr()
1525 __u8 msr; in edge_interrupt_callback() local
1587 msr = data[1]; in edge_interrupt_callback()
1589 __func__, port_number, msr); in edge_interrupt_callback()
1590 handle_new_msr(edge_port, msr); in edge_interrupt_callback()
2331 unsigned int msr; in edge_tiocmget() local
2337 msr = edge_port->shadow_msr; in edge_tiocmget()
2341 | ((msr & EDGEPORT_MSR_CTS) ? TIOCM_CTS: 0) /* 0x020 */ in edge_tiocmget()
2342 | ((msr & EDGEPORT_MSR_CD) ? TIOCM_CAR: 0) /* 0x040 */ in edge_tiocmget()
2343 | ((msr & EDGEPORT_MSR_RI) ? TIOCM_RI: 0) /* 0x080 */ in edge_tiocmget()
2344 | ((msr & EDGEPORT_MSR_DSR) ? TIOCM_DSR: 0); /* 0x100 */ in edge_tiocmget()