Lines Matching refs:rx_state
88 } rx_state; member
209 mctp_prdebug("state: %d, char 0x%02x", serial->rx_state, c); in mctp_rx_consume_one()
211 assert(!pkt == (serial->rx_state == STATE_WAIT_SYNC_START || in mctp_rx_consume_one()
212 serial->rx_state == STATE_WAIT_REVISION || in mctp_rx_consume_one()
213 serial->rx_state == STATE_WAIT_LEN)); in mctp_rx_consume_one()
215 switch (serial->rx_state) { in mctp_rx_consume_one()
222 serial->rx_state = STATE_WAIT_REVISION; in mctp_rx_consume_one()
228 serial->rx_state = STATE_WAIT_LEN; in mctp_rx_consume_one()
244 serial->rx_state = STATE_WAIT_SYNC_START; in mctp_rx_consume_one()
251 serial->rx_state = STATE_WAIT_SYNC_START; in mctp_rx_consume_one()
256 serial->rx_state = STATE_DATA; in mctp_rx_consume_one()
264 serial->rx_state = STATE_DATA_ESCAPED; in mctp_rx_consume_one()
270 serial->rx_state = STATE_WAIT_FCS1; in mctp_rx_consume_one()
279 serial->rx_state = STATE_WAIT_FCS1; in mctp_rx_consume_one()
281 serial->rx_state = STATE_DATA; in mctp_rx_consume_one()
286 serial->rx_state = STATE_WAIT_FCS2; in mctp_rx_consume_one()
290 serial->rx_state = STATE_WAIT_SYNC_END; in mctp_rx_consume_one()
308 serial->rx_state = STATE_WAIT_SYNC_START; in mctp_rx_consume_one()
312 mctp_prdebug(" -> state: %d", serial->rx_state); in mctp_rx_consume_one()
399 serial->rx_state = STATE_WAIT_SYNC_START; in mctp_serial_init()