Lines Matching refs:msr
341 static void ti_handle_new_msr(struct ti_port *tport, u8 msr);
1061 unsigned int msr; in ti_tiocmget() local
1066 msr = tport->tp_msr; in ti_tiocmget()
1073 | ((msr & TI_MSR_CTS) ? TIOCM_CTS : 0) in ti_tiocmget()
1074 | ((msr & TI_MSR_CD) ? TIOCM_CAR : 0) in ti_tiocmget()
1075 | ((msr & TI_MSR_RI) ? TIOCM_RI : 0) in ti_tiocmget()
1076 | ((msr & TI_MSR_DSR) ? TIOCM_DSR : 0); in ti_tiocmget()
1153 u8 msr; in ti_interrupt_callback() local
1203 msr = data[1]; in ti_interrupt_callback()
1204 dev_dbg(dev, "%s - port %d, msr 0x%02X\n", __func__, port_number, msr); in ti_interrupt_callback()
1205 ti_handle_new_msr(tport, msr); in ti_interrupt_callback()
1478 static void ti_handle_new_msr(struct ti_port *tport, u8 msr) in ti_handle_new_msr() argument
1484 dev_dbg(&tport->tp_port->dev, "%s - msr 0x%02X\n", __func__, msr); in ti_handle_new_msr()
1486 if (msr & TI_MSR_DELTA_MASK) { in ti_handle_new_msr()
1489 if (msr & TI_MSR_DELTA_CTS) in ti_handle_new_msr()
1491 if (msr & TI_MSR_DELTA_DSR) in ti_handle_new_msr()
1493 if (msr & TI_MSR_DELTA_CD) in ti_handle_new_msr()
1495 if (msr & TI_MSR_DELTA_RI) in ti_handle_new_msr()
1501 tport->tp_msr = msr & TI_MSR_MASK; in ti_handle_new_msr()
1506 if (msr & TI_MSR_CTS) in ti_handle_new_msr()