Lines Matching refs:can
26 #include <linux/can/dev.h>
27 #include <linux/can/error.h>
28 #include <linux/can/rx-offload.h>
178 struct can_priv can; /* MUST be first member/field */
257 struct can_bittiming *bit_timing = &priv->can.bittiming;
263 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) {
314 /* Note: On HECC, BTC can be programmed only in initialization mode, so
315 * it is expected that the can bittiming parameters are set via ip
399 priv->can.state = CAN_STATE_ERROR_ACTIVE;
413 priv->can.state = CAN_STATE_STOPPED;
602 /* propagate the error condition to the can stack */
612 ++priv->can.can_stats.bus_error;
649 priv->can.state = max(tx_state, rx_state);
719 } else if (unlikely(priv->can.state != CAN_STATE_ERROR_ACTIVE)) {
731 if (new_state < priv->can.state) {
798 /* Open common can device */
906 priv->can.bittiming_const = &ti_hecc_bittiming_const;
907 priv->can.do_set_mode = ti_hecc_do_set_mode;
908 priv->can.do_get_berr_counter = ti_hecc_get_berr_counter;
909 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;
925 priv->can.clock.freq = clk_get_rate(priv->clk);
989 priv->can.state = CAN_STATE_SLEEPING;
1007 priv->can.state = CAN_STATE_ERROR_ACTIVE;