Lines Matching refs:main_state
137 unsigned int main_state; member
413 ssi->main_state = 0; in ssip_reset()
435 dev_err(&cl->device, "Main state: %d\n", ssi->main_state); in ssip_dump_state()
438 dev_err(&cl->device, "CMT %s\n", (ssi->main_state == ACTIVE) ? in ssip_dump_state()
467 ssi->main_state, ssi->recv_state, ssi->send_state); in ssip_keep_alive()
516 dev_dbg(&cl->device, "RX start M(%d) R(%d)\n", ssi->main_state, in ssip_start_rx()
523 if ((ssi->main_state != ACTIVE) || (ssi->recv_state == RECV_READY)) { in ssip_start_rx()
524 if (ssi->main_state == INIT) { in ssip_start_rx()
525 ssi->main_state = HANDSHAKE; in ssip_start_rx()
547 dev_dbg(&cl->device, "RX stop M(%d)\n", ssi->main_state); in ssip_stop_rx()
549 if (likely(ssi->main_state == ACTIVE)) in ssip_stop_rx()
668 switch (ssi->main_state) { in ssip_rx_bootinforeq()
675 ssi->main_state = HANDSHAKE; in ssip_rx_bootinforeq()
695 dev_dbg(&cl->device, "Wrong state M(%d)\n", ssi->main_state); in ssip_rx_bootinforeq()
708 if (ssi->main_state != ACTIVE) in ssip_rx_bootinforesp()
713 ssi->main_state); in ssip_rx_bootinforesp()
723 if (ssi->main_state != HANDSHAKE) { in ssip_rx_waketest()
725 ssi->main_state); in ssip_rx_waketest()
733 ssi->main_state = ACTIVE; in ssip_rx_waketest()
753 if (unlikely(ssi->main_state != ACTIVE)) { in ssip_rx_ready()
755 ssi->send_state, ssi->main_state); in ssip_rx_ready()
778 if (unlikely(ssi->main_state != ACTIVE)) { in ssip_rx_strans()
780 ssi->send_state, ssi->main_state); in ssip_rx_strans()
942 ssi->main_state = INIT; in ssip_pn_open()
999 if (unlikely(ssi->main_state != ACTIVE)) { in ssip_pn_xmit()