Lines Matching refs:can
212 struct can_priv can; /* MUST be first member/field */ member
290 struct can_bittiming *bit_timing = &priv->can.bittiming; in ti_hecc_set_btc()
296 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) { in ti_hecc_set_btc()
421 priv->can.state = CAN_STATE_ERROR_ACTIVE; in ti_hecc_start()
432 priv->can.state = CAN_STATE_STOPPED; in ti_hecc_stop()
679 priv->can.state = CAN_STATE_ERROR_WARNING; in ti_hecc_error()
680 ++priv->can.can_stats.error_warning; in ti_hecc_error()
694 priv->can.state = CAN_STATE_ERROR_PASSIVE; in ti_hecc_error()
695 ++priv->can.can_stats.error_passive; in ti_hecc_error()
712 priv->can.state = CAN_STATE_BUS_OFF; in ti_hecc_error()
718 ++priv->can.can_stats.bus_off; in ti_hecc_error()
723 ++priv->can.can_stats.bus_error; in ti_hecc_error()
931 priv->can.bittiming_const = &ti_hecc_bittiming_const; in ti_hecc_probe()
932 priv->can.do_set_mode = ti_hecc_do_set_mode; in ti_hecc_probe()
933 priv->can.do_get_berr_counter = ti_hecc_get_berr_counter; in ti_hecc_probe()
934 priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES; in ti_hecc_probe()
950 priv->can.clock.freq = clk_get_rate(priv->clk); in ti_hecc_probe()
1010 priv->can.state = CAN_STATE_SLEEPING; in ti_hecc_suspend()
1025 priv->can.state = CAN_STATE_ERROR_ACTIVE; in ti_hecc_resume()