Lines Matching refs:can
244 struct can_priv can; member
544 priv->can.state = CAN_STATE_ERROR_ACTIVE; in mcp251x_do_set_mode()
546 if (priv->can.restart_ms == 0) in mcp251x_do_set_mode()
567 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) { in mcp251x_set_normal_mode()
570 } else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) { in mcp251x_set_normal_mode()
588 priv->can.state = CAN_STATE_ERROR_ACTIVE; in mcp251x_set_normal_mode()
595 struct can_bittiming *bt = &priv->can.bittiming; in mcp251x_do_set_bittiming()
601 (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES ? in mcp251x_do_set_bittiming()
718 priv->can.state = CAN_STATE_STOPPED; in mcp251x_stop()
752 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_tx_work_handler()
874 switch (priv->can.state) { in mcp251x_can_ist()
878 priv->can.can_stats.error_warning++; in mcp251x_can_ist()
882 priv->can.can_stats.error_passive++; in mcp251x_can_ist()
887 priv->can.state = new_state; in mcp251x_can_ist()
906 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_can_ist()
907 if (priv->can.restart_ms == 0) { in mcp251x_can_ist()
909 priv->can.can_stats.bus_off++; in mcp251x_can_ist()
1065 priv->can.bittiming_const = &mcp251x_bittiming_const; in mcp251x_can_probe()
1066 priv->can.do_set_mode = mcp251x_do_set_mode; in mcp251x_can_probe()
1067 priv->can.clock.freq = freq / 2; in mcp251x_can_probe()
1068 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES | in mcp251x_can_probe()