Lines Matching refs:can

127 			priv->can.state = CAN_STATE_STOPPED;  in set_reset_mode()
150 priv->can.state = CAN_STATE_ERROR_ACTIVE; in set_normal_mode()
152 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in set_normal_mode()
161 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in set_normal_mode()
163 if (priv->can.ctrlmode & CAN_CTRLMODE_PRESUME_ACK) in set_normal_mode()
209 if (priv->can.state != CAN_STATE_STOPPED) in sja1000_start()
247 struct can_bittiming *bt = &priv->can.bittiming; in sja1000_set_bittiming()
253 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in sja1000_set_bittiming()
297 fi = can_get_cc_dlc(cf, priv->can.ctrlmode); in sja1000_start_xmit()
323 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in sja1000_start_xmit()
326 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in sja1000_start_xmit()
369 can_frame_set_cc_len(cf, fi & 0x0F, priv->can.ctrlmode); in sja1000_rx()
395 enum can_state state = priv->can.state; in sja1000_err()
433 priv->can.can_stats.bus_error++; in sja1000_err()
475 priv->can.can_stats.arbitration_lost++; in sja1000_err()
480 if (state != priv->can.state) { in sja1000_err()
525 if (priv->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT && in sja1000_interrupt()
630 priv->can.bittiming_const = &sja1000_bittiming_const; in alloc_sja1000dev()
631 priv->can.do_set_bittiming = sja1000_set_bittiming; in alloc_sja1000dev()
632 priv->can.do_set_mode = sja1000_set_mode; in alloc_sja1000dev()
633 priv->can.do_get_berr_counter = sja1000_get_berr_counter; in alloc_sja1000dev()
634 priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK | in alloc_sja1000dev()