Lines Matching refs:can
13 #include <linux/can.h>
14 #include <linux/can/dev.h>
15 #include <linux/can/error.h>
16 #include <linux/can/rx-offload.h>
145 u32 id; /* can identifier */
166 struct can_priv can;
469 enum can_state new_state = priv->can.state;
490 if (unlikely(new_state == priv->can.state))
534 priv->can.can_stats.bus_error++;
616 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)
630 struct can_bittiming *bt = &priv->can.bittiming;
678 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)
681 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)
701 /* Set a `lec` value so that we can check for updates later */
721 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)
728 priv->can.state = CAN_STATE_ERROR_ACTIVE;
816 priv->can.state = CAN_STATE_STOPPED;
954 if (of_property_read_bool(np, "st,can-primary"))
956 else if (of_property_read_bool(np, "st,can-secondary"))
1001 priv->can.clock.freq = clk_get_rate(clk);
1005 priv->can.bittiming_const = &bxcan_bittiming_const;
1006 priv->can.do_set_mode = bxcan_do_set_mode;
1007 priv->can.do_get_berr_counter = bxcan_get_berr_counter;
1008 priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK |
1024 dev_info(dev, "clk: %d Hz, IRQs: %d, %d, %d\n", priv->can.clock.freq,
1058 priv->can.state = CAN_STATE_SLEEPING;
1073 priv->can.state = CAN_STATE_ERROR_ACTIVE;