Lines Matching refs:can
243 struct can_priv can; member
543 priv->can.state = CAN_STATE_ERROR_ACTIVE; in mcp251x_do_set_mode()
545 if (priv->can.restart_ms == 0) in mcp251x_do_set_mode()
566 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) { in mcp251x_set_normal_mode()
569 } else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) { in mcp251x_set_normal_mode()
587 priv->can.state = CAN_STATE_ERROR_ACTIVE; in mcp251x_set_normal_mode()
594 struct can_bittiming *bt = &priv->can.bittiming; in mcp251x_do_set_bittiming()
600 (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES ? in mcp251x_do_set_bittiming()
717 priv->can.state = CAN_STATE_STOPPED; in mcp251x_stop()
751 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_tx_work_handler()
873 switch (priv->can.state) { in mcp251x_can_ist()
877 priv->can.can_stats.error_warning++; in mcp251x_can_ist()
881 priv->can.can_stats.error_passive++; in mcp251x_can_ist()
886 priv->can.state = new_state; in mcp251x_can_ist()
905 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_can_ist()
906 if (priv->can.restart_ms == 0) { in mcp251x_can_ist()
908 priv->can.can_stats.bus_off++; in mcp251x_can_ist()
1064 priv->can.bittiming_const = &mcp251x_bittiming_const; in mcp251x_can_probe()
1065 priv->can.do_set_mode = mcp251x_do_set_mode; in mcp251x_can_probe()
1066 priv->can.clock.freq = freq / 2; in mcp251x_can_probe()
1067 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES | in mcp251x_can_probe()