Lines Matching refs:msr
1559 static void handle_new_msr(struct edgeport_port *edge_port, __u8 msr) in handle_new_msr() argument
1564 dev_dbg(&edge_port->port->dev, "%s - %02x\n", __func__, msr); in handle_new_msr()
1566 if (msr & (EDGEPORT_MSR_DELTA_CTS | EDGEPORT_MSR_DELTA_DSR | in handle_new_msr()
1571 if (msr & EDGEPORT_MSR_DELTA_CTS) in handle_new_msr()
1573 if (msr & EDGEPORT_MSR_DELTA_DSR) in handle_new_msr()
1575 if (msr & EDGEPORT_MSR_DELTA_CD) in handle_new_msr()
1577 if (msr & EDGEPORT_MSR_DELTA_RI) in handle_new_msr()
1583 edge_port->shadow_msr = msr & 0xf0; in handle_new_msr()
1588 if (msr & EDGEPORT_MSR_CTS) in handle_new_msr()
1640 __u8 msr; in edge_interrupt_callback() local
1709 msr = data[1]; in edge_interrupt_callback()
1711 __func__, port_number, msr); in edge_interrupt_callback()
1712 handle_new_msr(edge_port, msr); in edge_interrupt_callback()
2442 unsigned int msr; in edge_tiocmget() local
2448 msr = edge_port->shadow_msr; in edge_tiocmget()
2452 | ((msr & EDGEPORT_MSR_CTS) ? TIOCM_CTS: 0) /* 0x020 */ in edge_tiocmget()
2453 | ((msr & EDGEPORT_MSR_CD) ? TIOCM_CAR: 0) /* 0x040 */ in edge_tiocmget()
2454 | ((msr & EDGEPORT_MSR_RI) ? TIOCM_RI: 0) /* 0x080 */ in edge_tiocmget()
2455 | ((msr & EDGEPORT_MSR_DSR) ? TIOCM_DSR: 0); /* 0x100 */ in edge_tiocmget()