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
32 #include <linux/can/led.h>
33 #include <linux/can/dev.h>
494 struct can_priv can; /* Must be the first member */
939 priv->can.can_stats.bus_error++;
979 priv->can.can_stats.arbitration_lost++;
990 priv->can.state = CAN_STATE_ERROR_WARNING;
991 priv->can.can_stats.error_warning++;
1000 priv->can.state = CAN_STATE_ERROR_PASSIVE;
1001 priv->can.can_stats.error_passive++;
1011 priv->can.state = CAN_STATE_BUS_OFF;
1012 priv->can.can_stats.bus_off++;
1116 enum can_state rx_state, tx_state, state = priv->can.state;
1126 if (state != priv->can.state) {
1128 state, priv->can.state, txerr, rxerr);
1166 if (unlikely((priv->can.state != CAN_STATE_ERROR_ACTIVE) &&
1167 (priv->can.state != CAN_STATE_BUS_OFF)))
1182 const struct can_bittiming *bt = &priv->can.bittiming;
1183 const struct can_bittiming *dbt = &priv->can.data_bittiming;
1194 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) {
1255 priv->can.state = CAN_STATE_ERROR_ACTIVE;
1323 priv->can.state = CAN_STATE_STOPPED;
1364 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) {
1376 if (priv->can.state == CAN_STATE_ERROR_PASSIVE)
1423 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) {
1449 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) {
1579 priv->can.clock.freq = fcan_freq;
1580 dev_info(&pdev->dev, "can_clk rate is %u\n", priv->can.clock.freq);
1583 priv->can.bittiming_const = &rcar_canfd_nom_bittiming_const;
1584 priv->can.data_bittiming_const =
1589 priv->can.ctrlmode_supported = CAN_CTRLMODE_BERR_REPORTING;
1592 priv->can.bittiming_const = &rcar_canfd_bittiming_const;
1593 priv->can.ctrlmode_supported = CAN_CTRLMODE_BERR_REPORTING;
1596 priv->can.do_set_mode = rcar_canfd_do_set_mode;
1597 priv->can.do_get_berr_counter = rcar_canfd_get_berr_counter;
1643 if (of_property_read_bool(pdev->dev.of_node, "renesas,no-can-fd"))