Lines Matching refs:can
27 #include <linux/can.h>
28 #include <linux/can/dev.h>
29 #include <linux/can/error.h>
30 #include <linux/can/platform/cc770.h>
45 * 3. Message object 15 can receive all types of frames, also RTR and EFF.
54 * The message objects 1..14 can be used for TX and RX while the message
58 * for the message object 15 can be defined via kernel module parameter
206 priv->can.state = CAN_STATE_STOPPED;
237 priv->can.state = CAN_STATE_ERROR_ACTIVE;
333 if (priv->can.state != CAN_STATE_STOPPED)
358 struct can_bittiming *bt = &priv->can.bittiming;
364 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
525 priv->can.state = CAN_STATE_BUS_OFF;
526 priv->can.can_stats.bus_off++;
534 priv->can.state = CAN_STATE_ERROR_PASSIVE;
535 priv->can.can_stats.error_passive++;
539 priv->can.state = CAN_STATE_ERROR_WARNING;
540 priv->can.can_stats.error_warning++;
546 priv->can.state = CAN_STATE_ERROR_ACTIVE;
716 if (priv->can.state == CAN_STATE_STOPPED)
812 priv->can.bittiming_const = &cc770_bittiming_const;
813 priv->can.do_set_bittiming = cc770_set_bittiming;
814 priv->can.do_set_mode = cc770_set_mode;
815 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;
860 priv->can.do_get_berr_counter = cc770_get_berr_counter;