Lines Matching refs:can
251 struct can_priv can; member
337 return (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) && in flexcan_has_and_handle_berr()
382 unsigned int timeout = 1000 * 1000 * 10 / priv->can.bittiming.bitrate; in flexcan_chip_freeze()
558 priv->can.can_stats.bus_error++; in do_bus_err()
608 if (likely(new_state == priv->can.state)) in flexcan_poll_state()
775 const struct can_bittiming *bt = &priv->can.bittiming; in flexcan_set_bittiming()
795 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in flexcan_set_bittiming()
797 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in flexcan_set_bittiming()
799 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in flexcan_set_bittiming()
874 priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in flexcan_chip_start()
940 priv->can.state = CAN_STATE_ERROR_ACTIVE; in flexcan_chip_start()
980 priv->can.state = CAN_STATE_STOPPED; in flexcan_chip_stop()
1216 priv->can.clock.freq = clock_freq; in flexcan_probe()
1217 priv->can.bittiming_const = &flexcan_bittiming_const; in flexcan_probe()
1218 priv->can.do_set_mode = flexcan_set_mode; in flexcan_probe()
1219 priv->can.do_get_berr_counter = flexcan_get_berr_counter; in flexcan_probe()
1220 priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK | in flexcan_probe()
1279 priv->can.state = CAN_STATE_SLEEPING; in flexcan_suspend()
1289 priv->can.state = CAN_STATE_ERROR_ACTIVE; in flexcan_resume()