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>
247 struct can_priv can; /* must be the first member */
351 dev->can.state = CAN_STATE_BUS_OFF;
356 dev->can.state = CAN_STATE_ERROR_WARNING;
357 dev->can.can_stats.error_warning++;
359 dev->can.state = CAN_STATE_ERROR_ACTIVE;
360 dev->can.can_stats.error_passive++;
368 dev->can.can_stats.bus_error++;
393 if (dev->can.state == CAN_STATE_ERROR_WARNING ||
394 dev->can.state == CAN_STATE_ERROR_PASSIVE) {
690 dev->can.state = CAN_STATE_ERROR_ACTIVE;
945 struct can_bittiming *bt = &dev->can.bittiming;
951 if (dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
1014 dev->can.state = CAN_STATE_STOPPED;
1015 dev->can.clock.freq = EMS_USB_ARM7_CLOCK;
1016 dev->can.bittiming_const = &ems_usb_bittiming_const;
1017 dev->can.do_set_bittiming = ems_usb_set_bittiming;
1018 dev->can.do_set_mode = ems_usb_set_mode;
1019 dev->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;