Lines Matching refs:can
10 * This program is free software; you can redistribute it and/or
35 #include <linux/can/dev.h>
36 #include <linux/can/error.h>
37 #include <linux/can/led.h>
38 #include <linux/can/rx-offload.h>
188 struct can_priv can; /* MUST be first member/field */
267 struct can_bittiming *bit_timing = &priv->can.bittiming;
273 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) {
324 /* Note: On HECC, BTC can be programmed only in initialization mode, so
325 * it is expected that the can bittiming parameters are set via ip
409 priv->can.state = CAN_STATE_ERROR_ACTIVE;
423 priv->can.state = CAN_STATE_STOPPED;
612 /* propagate the error condition to the can stack */
622 ++priv->can.can_stats.bus_error;
659 priv->can.state = max(tx_state, rx_state);
728 } else if (unlikely(priv->can.state != CAN_STATE_ERROR_ACTIVE)) {
740 if (new_state < priv->can.state) {
806 /* Open common can device */
915 priv->can.bittiming_const = &ti_hecc_bittiming_const;
916 priv->can.do_set_mode = ti_hecc_do_set_mode;
917 priv->can.do_get_berr_counter = ti_hecc_get_berr_counter;
918 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;
934 priv->can.clock.freq = clk_get_rate(priv->clk);
1002 priv->can.state = CAN_STATE_SLEEPING;
1020 priv->can.state = CAN_STATE_ERROR_ACTIVE;