Lines Matching refs:can

7 /* The R-Car CAN FD controller can operate in either one of the below two modes
12 * mode, the controller acts as a CAN FD node that can also interoperate with
16 * "renesas,no-can-fd" optional property to the device tree node. A h/w reset is
26 #include <linux/can/dev.h>
529 struct can_priv can; /* Must be the first member */
1019 priv->can.can_stats.bus_error++;
1059 priv->can.can_stats.arbitration_lost++;
1070 priv->can.state = CAN_STATE_ERROR_WARNING;
1071 priv->can.can_stats.error_warning++;
1080 priv->can.state = CAN_STATE_ERROR_PASSIVE;
1081 priv->can.can_stats.error_passive++;
1091 priv->can.state = CAN_STATE_BUS_OFF;
1092 priv->can.can_stats.bus_off++;
1224 enum can_state rx_state, tx_state, state = priv->can.state;
1234 if (state != priv->can.state) {
1236 state, priv->can.state, txerr, rxerr);
1288 if (unlikely(priv->can.state != CAN_STATE_ERROR_ACTIVE &&
1289 priv->can.state != CAN_STATE_BUS_OFF))
1320 const struct can_bittiming *bt = &priv->can.bittiming;
1321 const struct can_bittiming *dbt = &priv->can.data_bittiming;
1332 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) {
1403 priv->can.state = CAN_STATE_ERROR_ACTIVE;
1478 priv->can.state = CAN_STATE_STOPPED;
1520 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) || is_gen4(gpriv)) {
1532 if (priv->can.state == CAN_STATE_ERROR_PASSIVE)
1579 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) || is_gen4(gpriv)) {
1585 if ((priv->can.ctrlmode & CAN_CTRLMODE_FD) &&
1607 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) {
1747 priv->can.bitrate_max = transceiver->attrs.max_link_rate;
1748 priv->can.clock.freq = fcan_freq;
1749 dev_info(dev, "can_clk rate is %u\n", priv->can.clock.freq);
1799 priv->can.bittiming_const = &rcar_canfd_nom_bittiming_const;
1800 priv->can.data_bittiming_const =
1807 priv->can.ctrlmode_supported = CAN_CTRLMODE_BERR_REPORTING;
1810 priv->can.bittiming_const = &rcar_canfd_bittiming_const;
1811 priv->can.ctrlmode_supported = CAN_CTRLMODE_BERR_REPORTING;
1814 priv->can.do_set_mode = rcar_canfd_do_set_mode;
1815 priv->can.do_get_berr_counter = rcar_canfd_get_berr_counter;
1866 if (of_property_read_bool(dev->of_node, "renesas,no-can-fd"))