Lines Matching refs:rx_state
638 enum can_state rx_state, in ti_hecc_change_state() argument
649 priv->can.state = max(tx_state, rx_state); in ti_hecc_change_state()
653 can_change_state(priv->ndev, cf, tx_state, rx_state); in ti_hecc_change_state()
655 if (max(tx_state, rx_state) != CAN_STATE_BUS_OFF) { in ti_hecc_change_state()
688 enum can_state rx_state, tx_state; in ti_hecc_interrupt() local
694 rx_state = rec >= tec ? CAN_STATE_ERROR_WARNING : 0; in ti_hecc_interrupt()
697 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
702 rx_state = rec >= tec ? CAN_STATE_ERROR_PASSIVE : 0; in ti_hecc_interrupt()
705 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
710 rx_state = CAN_STATE_BUS_OFF; in ti_hecc_interrupt()
717 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
720 enum can_state new_state, tx_state, rx_state; in ti_hecc_interrupt() local
732 rx_state = rec >= tec ? new_state : 0; in ti_hecc_interrupt()
734 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()