Lines Matching refs:can
6 * This program is free software; you can redistribute it and/or modify it
26 #include <linux/can.h>
27 #include <linux/can/dev.h>
28 #include <linux/can/error.h>
210 struct can_priv can; /* must be the first member */
249 priv->can.state = CAN_STATE_BUS_OFF;
254 priv->can.state = CAN_STATE_ERROR_WARNING;
255 priv->can.can_stats.error_warning++;
258 priv->can.state = CAN_STATE_ERROR_PASSIVE;
259 priv->can.can_stats.error_passive++;
262 priv->can.state = CAN_STATE_ERROR_ACTIVE;
266 priv->can.can_stats.bus_error++;
291 if (priv->can.state == CAN_STATE_ERROR_WARNING ||
292 priv->can.state == CAN_STATE_ERROR_PASSIVE) {
625 * filter configuration for an ID subset. In this case you can add
646 priv->can.state = CAN_STATE_ERROR_ACTIVE;
859 priv->can.state = CAN_STATE_STOPPED;
891 struct can_bittiming *bt = &priv->can.bittiming;
904 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
975 priv->can.state = CAN_STATE_STOPPED;
976 priv->can.clock.freq = ESD_USB2_CAN_CLOCK;
977 priv->can.bittiming_const = &esd_usb2_bittiming_const;
978 priv->can.do_set_bittiming = esd_usb2_set_bittiming;
979 priv->can.do_set_mode = esd_usb2_set_mode;
980 priv->can.do_get_berr_counter = esd_usb2_get_berr_counter;
981 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;