Lines Matching defs:can
4 * This driver started as a derivative of linux/drivers/net/can/slcan.c
34 #include <linux/can.h>
35 #include <linux/can/dev.h>
36 #include <linux/can/error.h>
37 #include <linux/can/rx-offload.h>
68 struct can_priv can;
243 /* We can only set the bitrate as a fraction of 500000.
247 elm->can_bitrate_divisor = 500000 / elm->can.bittiming.bitrate;
293 elm->can.can_stats.bus_off++;
295 elm->can.state = CAN_STATE_BUS_OFF;
316 * The reason to use strings is so we can easily include them in the C
380 * They can be of various formats:
432 * We use the fact that we can always read from elm->rxbuf.
586 !!(elm->can.ctrlmode & CAN_CTRLMODE_LISTENONLY));
591 !(elm->can.ctrlmode & CAN_CTRLMODE_LISTENONLY));
764 /* open_candev() checks for elm->can.bittiming.bitrate != 0 */
782 elm->can.state = CAN_STATE_ERROR_ACTIVE;
804 elm->can.state = CAN_STATE_STOPPED;
991 /* ELM327 can only handle bitrates that are integer divisors of 500 kHz,
1029 elm->can.bitrate_const = can327_bitrate_const;
1030 elm->can.bitrate_const_cnt = ARRAY_SIZE(can327_bitrate_const);
1031 elm->can.ctrlmode_supported = CAN_CTRLMODE_LISTENONLY;