Lines Matching refs:can
38 #include <linux/can/dev.h>
39 #include <linux/can/error.h>
159 struct can_priv can; /* must be the first member! */
257 const struct can_bittiming *bt = &priv->can.bittiming;
260 reg_br = ((priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) << 24) |
290 priv->can.state = CAN_STATE_ERROR_ACTIVE;
310 priv->can.state = state;
458 * @cf: can frame where to store message
461 * given can frame. "mb" and "cf" must be valid.
565 priv->can.can_stats.bus_error++;
573 priv->can.can_stats.bus_error++;
589 priv->can.can_stats.bus_error++;
598 priv->can.can_stats.bus_error++;
702 * we get a TX int for the last can frame directly before a
721 switch (priv->can.state) {
731 priv->can.can_stats.error_warning++;
747 priv->can.can_stats.error_passive++;
764 priv->can.can_stats.restarts++;
804 priv->can.can_stats.bus_off++;
807 if (!priv->can.restart_ms) {
845 if (likely(new_state == priv->can.state))
858 priv->can.state = new_state;
1024 priv->can.clock.freq = clk_get_rate(clk);
1025 priv->can.bittiming_const = &at91_bittiming_const;
1026 priv->can.do_set_bittiming = at91_set_bittiming;
1027 priv->can.do_set_mode = at91_set_mode;
1028 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;