Lines Matching refs:can
9 * This program is free software; you can redistribute it and/or
34 * Please see include/linux/can/platform/ti_hecc.h for description of
50 #include <linux/can/dev.h>
51 #include <linux/can/error.h>
52 #include <linux/can/platform/ti_hecc.h>
211 struct can_priv can; /* MUST be first member/field */
292 *state = priv->can.state;
298 struct can_bittiming *bit_timing = &priv->can.bittiming;
304 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) {
352 * Note: On HECC, BTC can be programmed only in initialization mode, so
353 * it is expected that the can bittiming parameters are set via ip
429 priv->can.state = CAN_STATE_ERROR_ACTIVE;
440 priv->can.state = CAN_STATE_STOPPED;
666 /* propogate the error condition to the can stack */
677 priv->can.state = CAN_STATE_ERROR_WARNING;
678 ++priv->can.can_stats.error_warning;
692 priv->can.state = CAN_STATE_ERROR_PASSIVE;
693 ++priv->can.can_stats.error_passive;
710 priv->can.state = CAN_STATE_BUS_OFF;
720 ++priv->can.can_stats.bus_error;
832 /* Open common can device */
921 priv->can.bittiming_const = &ti_hecc_bittiming_const;
922 priv->can.do_set_mode = ti_hecc_do_set_mode;
923 priv->can.do_get_state = ti_hecc_get_state;
924 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;
939 priv->can.clock.freq = clk_get_rate(priv->clk);
997 priv->can.state = CAN_STATE_SLEEPING;
1012 priv->can.state = CAN_STATE_ERROR_ACTIVE;