Lines Matching refs:can
99 priv->can.state = CAN_STATE_ERROR_ACTIVE; in pucan_set_normal_mode()
111 priv->can.state = CAN_STATE_ERROR_ACTIVE; in pucan_set_listen_only_mode()
124 priv->can.ctrlmode & in pucan_set_timing_slow()
365 priv->can.state = CAN_STATE_BUS_OFF; in pucan_handle_status()
366 priv->can.can_stats.bus_off++; in pucan_handle_status()
373 priv->can.state = CAN_STATE_ERROR_PASSIVE; in pucan_handle_status()
374 priv->can.can_stats.error_passive++; in pucan_handle_status()
386 priv->can.state = CAN_STATE_ERROR_WARNING; in pucan_handle_status()
387 priv->can.can_stats.error_warning++; in pucan_handle_status()
397 } else if (priv->can.state != CAN_STATE_ERROR_ACTIVE) { in pucan_handle_status()
521 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in peak_canfd_start()
585 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) { in peak_canfd_open()
586 if (priv->can.ctrlmode & CAN_CTRLMODE_FD_NON_ISO) in peak_canfd_open()
623 return pucan_set_timing_slow(priv, &priv->can.bittiming); in peak_canfd_set_bittiming()
630 return pucan_set_timing_fast(priv, &priv->can.data_bittiming); in peak_canfd_set_data_bittiming()
706 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in peak_canfd_start_xmit()
722 priv->echo_idx = (priv->echo_idx + 1) % priv->can.echo_skb_max; in peak_canfd_start_xmit()
728 should_stop_tx_queue = !!(priv->can.echo_skb[priv->echo_idx]); in peak_canfd_start_xmit()
731 if (priv->can.ctrlmode & CAN_CTRLMODE_FD) in peak_canfd_start_xmit()
774 priv->can.state = CAN_STATE_STOPPED; in alloc_peak_canfd_dev()
775 priv->can.bittiming_const = &peak_canfd_nominal_const; in alloc_peak_canfd_dev()
776 priv->can.data_bittiming_const = &peak_canfd_data_const; in alloc_peak_canfd_dev()
778 priv->can.do_set_mode = peak_canfd_set_mode; in alloc_peak_canfd_dev()
779 priv->can.do_get_berr_counter = peak_canfd_get_berr_counter; in alloc_peak_canfd_dev()
780 priv->can.do_set_bittiming = peak_canfd_set_bittiming; in alloc_peak_canfd_dev()
781 priv->can.do_set_data_bittiming = peak_canfd_set_data_bittiming; in alloc_peak_canfd_dev()
782 priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK | in alloc_peak_canfd_dev()