Lines Matching refs:state

49  * - when a buffer transitions to empty state, rotate order and priorities
51 * - it may be assumed that buffers transition to empty state in FIFO order (because we manage
155 * ctucan_state_to_str() - Converts CAN controller state code to corresponding text
156 * @state: CAN controller state code
158 * Return: Pointer to string representation of the error state
160 static const char *ctucan_state_to_str(enum can_state state)
164 if (state >= 0 && state < CAN_STATE_MAX)
165 txt = ctucan_state_strings[state];
368 * Routine expects that chip is in reset state. It setups initial
371 * state to %CAN_STATE_STOPPED.
425 priv->can.state = CAN_STATE_STOPPED;
440 * This check the drivers state and calls the corresponding modes to set.
511 * 1. TXT Buffer is not writable (it is in wrong state)
748 * ctucan_read_fault_state() - Reads CTU CAN FDs fault confinement state.
751 * Returns: Fault confinement state of controller
775 WARN(true, "Invalid error state");
806 enum can_state state;
812 state = ctucan_read_fault_state(priv);
826 * FCSI: fault confinement state changed
831 netdev_info(ndev, "state changes from %s to %s\n",
832 ctucan_state_to_str(priv->can.state),
833 ctucan_state_to_str(state));
835 if (priv->can.state == state)
837 "current and previous state is the same! (missed interrupt?)\n");
839 priv->can.state = state;
840 switch (state) {
876 netdev_warn(ndev, "unhandled error state (%d:%s)!\n",
877 state, ctucan_state_to_str(state));
1030 netdev_warn(ndev, "TXB in Error state\n");
1039 netdev_warn(ndev, "TXB in Aborted state\n");
1049 "BUG: TXB#%u not in a finished state (0x%x)!\n",
1187 priv->can.state = CAN_STATE_STOPPED;
1318 priv->can.state = CAN_STATE_SLEEPING;
1329 priv->can.state = CAN_STATE_ERROR_ACTIVE;