Lines Matching refs:can
26 #include <linux/can.h>
27 #include <linux/can/dev.h>
28 #include <linux/can/error.h>
29 #include <linux/can/platform/cc770.h>
44 * 3. Message object 15 can receive all types of frames, also RTR and EFF.
53 * The message objects 1..14 can be used for TX and RX while the message
57 * for the message object 15 can be defined via kernel module parameter
205 priv->can.state = CAN_STATE_STOPPED;
236 priv->can.state = CAN_STATE_ERROR_ACTIVE;
332 if (priv->can.state != CAN_STATE_STOPPED)
357 struct can_bittiming *bt = &priv->can.bittiming;
363 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
523 priv->can.state = CAN_STATE_BUS_OFF;
524 priv->can.can_stats.bus_off++;
532 priv->can.state = CAN_STATE_ERROR_PASSIVE;
533 priv->can.can_stats.error_passive++;
537 priv->can.state = CAN_STATE_ERROR_WARNING;
538 priv->can.can_stats.error_warning++;
544 priv->can.state = CAN_STATE_ERROR_ACTIVE;
720 if (priv->can.state == CAN_STATE_STOPPED)
816 priv->can.bittiming_const = &cc770_bittiming_const;
817 priv->can.do_set_bittiming = cc770_set_bittiming;
818 priv->can.do_set_mode = cc770_set_mode;
819 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;
859 priv->can.do_get_berr_counter = cc770_get_berr_counter;