Lines Matching refs:can_state
480 enum can_state can_state = priv->can.state; in f81604_handle_can_bus_errors() local
517 can_state = CAN_STATE_BUS_OFF; in f81604_handle_can_bus_errors()
519 can_state = CAN_STATE_ERROR_WARNING; in f81604_handle_can_bus_errors()
521 can_state = CAN_STATE_ERROR_ACTIVE; in f81604_handle_can_bus_errors()
561 if (can_state == CAN_STATE_ERROR_PASSIVE) in f81604_handle_can_bus_errors()
562 can_state = CAN_STATE_ERROR_WARNING; in f81604_handle_can_bus_errors()
564 can_state = CAN_STATE_ERROR_PASSIVE; in f81604_handle_can_bus_errors()
567 netdev_dbg(netdev, "error passive interrupt: %d\n", can_state); in f81604_handle_can_bus_errors()
584 if (can_state != priv->can.state) { in f81604_handle_can_bus_errors()
585 enum can_state tx_state, rx_state; in f81604_handle_can_bus_errors()
587 tx_state = data->txerr >= data->rxerr ? can_state : 0; in f81604_handle_can_bus_errors()
588 rx_state = data->txerr <= data->rxerr ? can_state : 0; in f81604_handle_can_bus_errors()
592 if (can_state == CAN_STATE_BUS_OFF) in f81604_handle_can_bus_errors()