Lines Matching defs:state
24 if (new_state <= priv->state)
42 static int can_tx_state_to_frame(struct net_device *dev, enum can_state state)
44 switch (state) {
56 static int can_rx_state_to_frame(struct net_device *dev, enum can_state state)
58 switch (state) {
70 const char *can_get_state_str(const enum can_state state)
72 switch (state) {
99 if (unlikely(new_state == priv->state)) {
100 netdev_warn(dev, "%s: oops, state did not change", __func__);
105 can_get_state_str(priv->state), priv->state,
109 priv->state = new_state;
179 * disabled and the device is in the bus-off state
183 if (priv->state != CAN_STATE_BUS_OFF)
274 priv->state = CAN_STATE_STOPPED;
399 /* Switch carrier on if device was stopped while in bus-off state */