Lines Matching refs:can

68 	bool can;  member
73 struct can_priv can; /* must be the first member */ member
188 ctx->can = true; in mcba_usb_get_free_ctx()
191 ctx->can = false; in mcba_usb_get_free_ctx()
234 if (ctx->can) { in mcba_usb_write_bulk_callback()
478 priv->can.termination = MCBA_TERMINATION_ENABLED; in mcba_usb_process_ka_usb()
480 priv->can.termination = MCBA_TERMINATION_DISABLED; in mcba_usb_process_ka_usb()
508 if (bitrate != priv->can.bittiming.bitrate) in mcba_usb_process_ka_can()
512 bitrate, priv->can.bittiming.bitrate); in mcba_usb_process_ka_can()
519 priv->can.state = CAN_STATE_BUS_OFF; in mcba_usb_process_ka_can()
523 priv->can.state = CAN_STATE_ERROR_PASSIVE; in mcba_usb_process_ka_can()
527 priv->can.state = CAN_STATE_ERROR_WARNING; in mcba_usb_process_ka_can()
709 priv->can.state = CAN_STATE_ERROR_ACTIVE; in mcba_usb_open()
735 priv->can.state = CAN_STATE_STOPPED; in mcba_usb_close()
782 const u16 bitrate_kbps = priv->can.bittiming.bitrate / 1000; in mcba_net_set_bittiming()
834 priv->can.state = CAN_STATE_STOPPED; in mcba_usb_probe()
835 priv->can.termination_const = mcba_termination; in mcba_usb_probe()
836 priv->can.termination_const_cnt = ARRAY_SIZE(mcba_termination); in mcba_usb_probe()
837 priv->can.bitrate_const = mcba_bitrate; in mcba_usb_probe()
838 priv->can.bitrate_const_cnt = ARRAY_SIZE(mcba_bitrate); in mcba_usb_probe()
840 priv->can.do_set_termination = mcba_set_termination; in mcba_usb_probe()
841 priv->can.do_set_mode = mcba_net_set_mode; in mcba_usb_probe()
842 priv->can.do_get_berr_counter = mcba_net_get_berr_counter; in mcba_usb_probe()
843 priv->can.do_set_bittiming = mcba_net_set_bittiming; in mcba_usb_probe()