Lines Matching refs:u
419 } u; member
639 msg->u.simple.channel = channel; in kvaser_usb_send_simple_msg()
640 msg->u.simple.tid = 0xff; in kvaser_usb_send_simple_msg()
663 dev->fw_version = le32_to_cpu(msg.u.leaf.softinfo.fw_version); in kvaser_usb_get_software_info()
665 le16_to_cpu(msg.u.leaf.softinfo.max_outstanding_tx); in kvaser_usb_get_software_info()
668 dev->fw_version = le32_to_cpu(msg.u.usbcan.softinfo.fw_version); in kvaser_usb_get_software_info()
670 le16_to_cpu(msg.u.usbcan.softinfo.max_outstanding_tx); in kvaser_usb_get_software_info()
690 dev->nchannels = msg.u.cardinfo.nchannels; in kvaser_usb_get_card_info()
710 channel = msg->u.tx_acknowledge_header.channel; in kvaser_usb_tx_acknowledge()
711 tid = msg->u.tx_acknowledge_header.tid; in kvaser_usb_tx_acknowledge()
798 msg->u.simple.channel = priv->channel; in kvaser_usb_simple_msg_async()
1024 es.channel = msg->u.usbcan.chip_state_event.channel; in kvaser_usbcan_rx_error()
1025 es.status = msg->u.usbcan.chip_state_event.status; in kvaser_usbcan_rx_error()
1026 es.txerr = msg->u.usbcan.chip_state_event.tx_errors_count; in kvaser_usbcan_rx_error()
1027 es.rxerr = msg->u.usbcan.chip_state_event.rx_errors_count; in kvaser_usbcan_rx_error()
1033 es.status = msg->u.usbcan.error_event.status_ch0; in kvaser_usbcan_rx_error()
1034 es.txerr = msg->u.usbcan.error_event.tx_errors_count_ch0; in kvaser_usbcan_rx_error()
1035 es.rxerr = msg->u.usbcan.error_event.rx_errors_count_ch0; in kvaser_usbcan_rx_error()
1037 msg->u.usbcan.error_event.status_ch1; in kvaser_usbcan_rx_error()
1045 es.status = msg->u.usbcan.error_event.status_ch1; in kvaser_usbcan_rx_error()
1046 es.txerr = msg->u.usbcan.error_event.tx_errors_count_ch1; in kvaser_usbcan_rx_error()
1047 es.rxerr = msg->u.usbcan.error_event.rx_errors_count_ch1; in kvaser_usbcan_rx_error()
1049 msg->u.usbcan.error_event.status_ch0; in kvaser_usbcan_rx_error()
1067 es.channel = msg->u.leaf.error_event.channel; in kvaser_leaf_rx_error()
1068 es.status = msg->u.leaf.error_event.status; in kvaser_leaf_rx_error()
1069 es.txerr = msg->u.leaf.error_event.tx_errors_count; in kvaser_leaf_rx_error()
1070 es.rxerr = msg->u.leaf.error_event.rx_errors_count; in kvaser_leaf_rx_error()
1071 es.leaf.error_factor = msg->u.leaf.error_event.error_factor; in kvaser_leaf_rx_error()
1074 es.channel = msg->u.leaf.log_message.channel; in kvaser_leaf_rx_error()
1075 es.status = msg->u.leaf.log_message.data[0]; in kvaser_leaf_rx_error()
1076 es.txerr = msg->u.leaf.log_message.data[2]; in kvaser_leaf_rx_error()
1077 es.rxerr = msg->u.leaf.log_message.data[3]; in kvaser_leaf_rx_error()
1078 es.leaf.error_factor = msg->u.leaf.log_message.data[1]; in kvaser_leaf_rx_error()
1081 es.channel = msg->u.leaf.chip_state_event.channel; in kvaser_leaf_rx_error()
1082 es.status = msg->u.leaf.chip_state_event.status; in kvaser_leaf_rx_error()
1083 es.txerr = msg->u.leaf.chip_state_event.tx_errors_count; in kvaser_leaf_rx_error()
1084 es.rxerr = msg->u.leaf.chip_state_event.rx_errors_count; in kvaser_leaf_rx_error()
1103 if (msg->u.rx_can_header.flag & (MSG_FLAG_ERROR_FRAME | in kvaser_usb_rx_can_err()
1106 msg->u.rx_can_header.flag); in kvaser_usb_rx_can_err()
1112 if (msg->u.rx_can_header.flag & MSG_FLAG_OVERRUN) { in kvaser_usb_rx_can_err()
1138 u8 channel = msg->u.rx_can_header.channel; in kvaser_usb_rx_can_msg()
1150 if ((msg->u.rx_can_header.flag & MSG_FLAG_ERROR_FRAME) && in kvaser_usb_rx_can_msg()
1154 } else if (msg->u.rx_can_header.flag & (MSG_FLAG_ERROR_FRAME | in kvaser_usb_rx_can_msg()
1159 } else if (msg->u.rx_can_header.flag & ~MSG_FLAG_REMOTE_FRAME) { in kvaser_usb_rx_can_msg()
1162 msg->u.rx_can_header.flag); in kvaser_usb_rx_can_msg()
1168 rx_msg = msg->u.leaf.rx_can.msg; in kvaser_usb_rx_can_msg()
1171 rx_msg = msg->u.usbcan.rx_can.msg; in kvaser_usb_rx_can_msg()
1182 cf->can_id = le32_to_cpu(msg->u.leaf.log_message.id); in kvaser_usb_rx_can_msg()
1188 cf->can_dlc = get_can_dlc(msg->u.leaf.log_message.dlc); in kvaser_usb_rx_can_msg()
1190 if (msg->u.leaf.log_message.flags & MSG_FLAG_REMOTE_FRAME) in kvaser_usb_rx_can_msg()
1193 memcpy(cf->data, &msg->u.leaf.log_message.data, in kvaser_usb_rx_can_msg()
1208 if (msg->u.rx_can_header.flag & MSG_FLAG_REMOTE_FRAME) in kvaser_usb_rx_can_msg()
1224 u8 channel = msg->u.simple.channel; in kvaser_usb_start_chip_reply()
1247 u8 channel = msg->u.simple.channel; in kvaser_usb_stop_chip_reply()
1457 msg->u.ctrl_mode.tid = 0xff; in kvaser_usb_set_opt_mode()
1458 msg->u.ctrl_mode.channel = priv->channel; in kvaser_usb_set_opt_mode()
1461 msg->u.ctrl_mode.ctrl_mode = KVASER_CTRL_MODE_SILENT; in kvaser_usb_set_opt_mode()
1463 msg->u.ctrl_mode.ctrl_mode = KVASER_CTRL_MODE_NORMAL; in kvaser_usb_set_opt_mode()
1590 msg->u.flush_queue.channel = priv->channel; in kvaser_usb_flush_queue()
1591 msg->u.flush_queue.flags = 0x00; in kvaser_usb_flush_queue()
1683 msg->u.tx_can.channel = priv->channel; in kvaser_usb_start_xmit()
1687 msg_tx_can_flags = &msg->u.tx_can.leaf.flags; in kvaser_usb_start_xmit()
1690 msg_tx_can_flags = &msg->u.tx_can.usbcan.flags; in kvaser_usb_start_xmit()
1698 msg->u.tx_can.msg[0] = (cf->can_id >> 24) & 0x1f; in kvaser_usb_start_xmit()
1699 msg->u.tx_can.msg[1] = (cf->can_id >> 18) & 0x3f; in kvaser_usb_start_xmit()
1700 msg->u.tx_can.msg[2] = (cf->can_id >> 14) & 0x0f; in kvaser_usb_start_xmit()
1701 msg->u.tx_can.msg[3] = (cf->can_id >> 6) & 0xff; in kvaser_usb_start_xmit()
1702 msg->u.tx_can.msg[4] = cf->can_id & 0x3f; in kvaser_usb_start_xmit()
1705 msg->u.tx_can.msg[0] = (cf->can_id >> 6) & 0x1f; in kvaser_usb_start_xmit()
1706 msg->u.tx_can.msg[1] = cf->can_id & 0x3f; in kvaser_usb_start_xmit()
1709 msg->u.tx_can.msg[5] = cf->can_dlc; in kvaser_usb_start_xmit()
1710 memcpy(&msg->u.tx_can.msg[6], cf->data, cf->can_dlc); in kvaser_usb_start_xmit()
1743 msg->u.tx_can.tid = context->echo_index; in kvaser_usb_start_xmit()
1815 msg->u.busparams.channel = priv->channel; in kvaser_usb_set_bittiming()
1816 msg->u.busparams.tid = 0xff; in kvaser_usb_set_bittiming()
1817 msg->u.busparams.bitrate = cpu_to_le32(bt->bitrate); in kvaser_usb_set_bittiming()
1818 msg->u.busparams.sjw = bt->sjw; in kvaser_usb_set_bittiming()
1819 msg->u.busparams.tseg1 = bt->prop_seg + bt->phase_seg1; in kvaser_usb_set_bittiming()
1820 msg->u.busparams.tseg2 = bt->phase_seg2; in kvaser_usb_set_bittiming()
1823 msg->u.busparams.no_samp = 3; in kvaser_usb_set_bittiming()
1825 msg->u.busparams.no_samp = 1; in kvaser_usb_set_bittiming()