Lines Matching refs:tx_state
635 enum can_state tx_state) in ti_hecc_change_state() argument
645 priv->can.state = max(tx_state, rx_state); in ti_hecc_change_state()
649 can_change_state(priv->ndev, cf, tx_state, rx_state); in ti_hecc_change_state()
651 if (max(tx_state, rx_state) != CAN_STATE_BUS_OFF) { in ti_hecc_change_state()
683 enum can_state rx_state, tx_state; in ti_hecc_interrupt() local
690 tx_state = rec <= tec ? CAN_STATE_ERROR_WARNING : 0; in ti_hecc_interrupt()
692 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
698 tx_state = rec <= tec ? CAN_STATE_ERROR_PASSIVE : 0; in ti_hecc_interrupt()
700 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
706 tx_state = CAN_STATE_BUS_OFF; in ti_hecc_interrupt()
712 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()
715 enum can_state new_state, tx_state, rx_state; in ti_hecc_interrupt() local
728 tx_state = rec <= tec ? new_state : 0; in ti_hecc_interrupt()
729 ti_hecc_change_state(ndev, rx_state, tx_state); in ti_hecc_interrupt()