Lines Matching refs:can
249 struct can_priv can; member
333 return (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) && in flexcan_has_and_handle_berr()
378 unsigned int timeout = 1000 * 1000 * 10 / priv->can.bittiming.bitrate; in flexcan_chip_freeze()
554 priv->can.can_stats.bus_error++; in do_bus_err()
604 if (likely(new_state == priv->can.state)) in flexcan_poll_state()
773 const struct can_bittiming *bt = &priv->can.bittiming; in flexcan_set_bittiming()
793 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in flexcan_set_bittiming()
795 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in flexcan_set_bittiming()
797 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in flexcan_set_bittiming()
876 priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in flexcan_chip_start()
942 priv->can.state = CAN_STATE_ERROR_ACTIVE; in flexcan_chip_start()
981 priv->can.state = CAN_STATE_STOPPED; in flexcan_chip_stop()
1220 priv->can.clock.freq = clock_freq; in flexcan_probe()
1221 priv->can.bittiming_const = &flexcan_bittiming_const; in flexcan_probe()
1222 priv->can.do_set_mode = flexcan_set_mode; in flexcan_probe()
1223 priv->can.do_get_berr_counter = flexcan_get_berr_counter; in flexcan_probe()
1224 priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK | in flexcan_probe()
1284 priv->can.state = CAN_STATE_SLEEPING; in flexcan_suspend()
1294 priv->can.state = CAN_STATE_ERROR_ACTIVE; in flexcan_resume()