Lines Matching refs:can

16 #include <linux/can.h>
17 #include <linux/can/dev.h>
18 #include <linux/can/skb.h>
19 #include <linux/can/error.h>
150 * Copied from drivers/net/can/sja1000/sja1000.h
217 struct can_priv can;
779 struct can_bittiming *bt = &mod->can.bittiming;
784 /* This algorithm was stolen from drivers/net/can/sja1000/sja1000.c */
790 if (mod->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
809 /* can-on/off request */
817 /* bittiming + can-on/off request */
955 if (mod->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT)
1031 * drivers/net/can/sja1000/sja1000.c file, and adapted as necessary
1037 enum can_state state = mod->can.state;
1042 /* we can only handle the SJA1000 part */
1093 if (!(mod->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING))
1116 mod->can.can_stats.bus_off++;
1130 mod->can.can_stats.bus_error++;
1155 if (state != mod->can.state && (state == CAN_STATE_ERROR_WARNING ||
1159 mod->can.can_stats.error_warning++;
1164 mod->can.can_stats.error_passive++;
1174 mod->can.state = state;
1321 * On these devices, this function can be used to compare a received skb
1322 * with the saved echo skbs so that the hardware echo skb can be dropped.
1587 /* re-enable interrupts so we can send messages */
1658 mod->can.state = CAN_STATE_ERROR_ACTIVE;
1671 mod->can.state = CAN_STATE_STOPPED;
1701 /* check that we can actually transmit */
1719 * emulate it the best we can using ECHO skbs. Add the skb to the ECHO
1766 /* This structure was stolen from drivers/net/can/sja1000/sja1000.c */
1795 mod->can.state = CAN_STATE_ERROR_ACTIVE;
1937 mod->can.clock.freq = ICAN3_CAN_CLOCK;
1938 mod->can.bittiming_const = &ican3_bittiming_const;
1939 mod->can.do_set_mode = ican3_set_mode;
1940 mod->can.do_get_berr_counter = ican3_get_berr_counter;
1941 mod->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES