Lines Matching refs:can
27 #include <linux/can/dev.h>
28 #include <linux/can/error.h>
29 #include <linux/can/led.h>
182 * @can: CAN private data structure.
186 * @tx_max: Maximum number packets the driver can send
198 struct can_priv can;
393 struct can_bittiming *bt = &priv->can.bittiming;
394 struct can_bittiming *dbt = &priv->can.data_bittiming;
493 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)
510 priv->can.state = CAN_STATE_ERROR_ACTIVE;
949 enum can_state old_state = priv->can.state;
952 /* changing error state due to successful frame RX/TX can only
999 priv->can.state = CAN_STATE_BUS_OFF;
1000 priv->can.can_stats.bus_off++;
1008 if (new_state != priv->can.state)
1014 priv->can.can_stats.arbitration_lost++;
1040 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) {
1089 priv->can.can_stats.bus_error++;
1123 priv->can.state = CAN_STATE_SLEEPING;
1127 priv->can.state = CAN_STATE_ERROR_ACTIVE;
1374 /* Disable interrupts and leave the can in configuration mode */
1379 priv->can.state = CAN_STATE_STOPPED;
1649 { .compatible = "xlnx,zynq-can-1.0", .data = &xcan_zynq_data },
1650 { .compatible = "xlnx,axi-can-1.00.a", .data = &xcan_axi_data },
1712 * is supported, we can have 2 frames in the FIFO and use TXFEMP
1716 * FIFO, with watermark at 2 frames, it can happen that TXFWMEMP (less
1741 priv->can.bittiming_const = devtype->bittiming_const;
1742 priv->can.do_set_mode = xcan_do_set_mode;
1743 priv->can.do_get_berr_counter = xcan_get_berr_counter;
1744 priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK |
1748 priv->can.data_bittiming_const =
1752 priv->can.data_bittiming_const =
1757 priv->can.ctrlmode_supported |= CAN_CTRLMODE_FD;
1810 priv->can.clock.freq = clk_get_rate(priv->can_clk);
1830 priv->reg_base, ndev->irq, priv->can.clock.freq,