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()
1023 es.channel = msg->u.usbcan.chip_state_event.channel; in kvaser_usbcan_rx_error()
1024 es.status = msg->u.usbcan.chip_state_event.status; in kvaser_usbcan_rx_error()
1025 es.txerr = msg->u.usbcan.chip_state_event.tx_errors_count; in kvaser_usbcan_rx_error()
1026 es.rxerr = msg->u.usbcan.chip_state_event.rx_errors_count; in kvaser_usbcan_rx_error()
1032 es.status = msg->u.usbcan.error_event.status_ch0; in kvaser_usbcan_rx_error()
1033 es.txerr = msg->u.usbcan.error_event.tx_errors_count_ch0; in kvaser_usbcan_rx_error()
1034 es.rxerr = msg->u.usbcan.error_event.rx_errors_count_ch0; in kvaser_usbcan_rx_error()
1036 msg->u.usbcan.error_event.status_ch1; in kvaser_usbcan_rx_error()
1044 es.status = msg->u.usbcan.error_event.status_ch1; in kvaser_usbcan_rx_error()
1045 es.txerr = msg->u.usbcan.error_event.tx_errors_count_ch1; in kvaser_usbcan_rx_error()
1046 es.rxerr = msg->u.usbcan.error_event.rx_errors_count_ch1; in kvaser_usbcan_rx_error()
1048 msg->u.usbcan.error_event.status_ch0; in kvaser_usbcan_rx_error()
1066 es.channel = msg->u.leaf.error_event.channel; in kvaser_leaf_rx_error()
1067 es.status = msg->u.leaf.error_event.status; in kvaser_leaf_rx_error()
1068 es.txerr = msg->u.leaf.error_event.tx_errors_count; in kvaser_leaf_rx_error()
1069 es.rxerr = msg->u.leaf.error_event.rx_errors_count; in kvaser_leaf_rx_error()
1070 es.leaf.error_factor = msg->u.leaf.error_event.error_factor; in kvaser_leaf_rx_error()
1073 es.channel = msg->u.leaf.log_message.channel; in kvaser_leaf_rx_error()
1074 es.status = msg->u.leaf.log_message.data[0]; in kvaser_leaf_rx_error()
1075 es.txerr = msg->u.leaf.log_message.data[2]; in kvaser_leaf_rx_error()
1076 es.rxerr = msg->u.leaf.log_message.data[3]; in kvaser_leaf_rx_error()
1077 es.leaf.error_factor = msg->u.leaf.log_message.data[1]; in kvaser_leaf_rx_error()
1080 es.channel = msg->u.leaf.chip_state_event.channel; in kvaser_leaf_rx_error()
1081 es.status = msg->u.leaf.chip_state_event.status; in kvaser_leaf_rx_error()
1082 es.txerr = msg->u.leaf.chip_state_event.tx_errors_count; in kvaser_leaf_rx_error()
1083 es.rxerr = msg->u.leaf.chip_state_event.rx_errors_count; in kvaser_leaf_rx_error()
1102 if (msg->u.rx_can_header.flag & (MSG_FLAG_ERROR_FRAME | in kvaser_usb_rx_can_err()
1105 msg->u.rx_can_header.flag); in kvaser_usb_rx_can_err()
1111 if (msg->u.rx_can_header.flag & MSG_FLAG_OVERRUN) { in kvaser_usb_rx_can_err()
1137 u8 channel = msg->u.rx_can_header.channel; in kvaser_usb_rx_can_msg()
1149 if ((msg->u.rx_can_header.flag & MSG_FLAG_ERROR_FRAME) && in kvaser_usb_rx_can_msg()
1153 } else if (msg->u.rx_can_header.flag & (MSG_FLAG_ERROR_FRAME | in kvaser_usb_rx_can_msg()
1158 } else if (msg->u.rx_can_header.flag & ~MSG_FLAG_REMOTE_FRAME) { in kvaser_usb_rx_can_msg()
1161 msg->u.rx_can_header.flag); in kvaser_usb_rx_can_msg()
1167 rx_msg = msg->u.leaf.rx_can.msg; in kvaser_usb_rx_can_msg()
1170 rx_msg = msg->u.usbcan.rx_can.msg; in kvaser_usb_rx_can_msg()
1181 cf->can_id = le32_to_cpu(msg->u.leaf.log_message.id); in kvaser_usb_rx_can_msg()
1187 cf->can_dlc = get_can_dlc(msg->u.leaf.log_message.dlc); in kvaser_usb_rx_can_msg()
1189 if (msg->u.leaf.log_message.flags & MSG_FLAG_REMOTE_FRAME) in kvaser_usb_rx_can_msg()
1192 memcpy(cf->data, &msg->u.leaf.log_message.data, in kvaser_usb_rx_can_msg()
1207 if (msg->u.rx_can_header.flag & MSG_FLAG_REMOTE_FRAME) in kvaser_usb_rx_can_msg()
1223 u8 channel = msg->u.simple.channel; in kvaser_usb_start_chip_reply()
1246 u8 channel = msg->u.simple.channel; in kvaser_usb_stop_chip_reply()
1456 msg->u.ctrl_mode.tid = 0xff; in kvaser_usb_set_opt_mode()
1457 msg->u.ctrl_mode.channel = priv->channel; in kvaser_usb_set_opt_mode()
1460 msg->u.ctrl_mode.ctrl_mode = KVASER_CTRL_MODE_SILENT; in kvaser_usb_set_opt_mode()
1462 msg->u.ctrl_mode.ctrl_mode = KVASER_CTRL_MODE_NORMAL; in kvaser_usb_set_opt_mode()
1589 msg->u.flush_queue.channel = priv->channel; in kvaser_usb_flush_queue()
1590 msg->u.flush_queue.flags = 0x00; in kvaser_usb_flush_queue()
1682 msg->u.tx_can.channel = priv->channel; in kvaser_usb_start_xmit()
1686 msg_tx_can_flags = &msg->u.tx_can.leaf.flags; in kvaser_usb_start_xmit()
1689 msg_tx_can_flags = &msg->u.tx_can.usbcan.flags; in kvaser_usb_start_xmit()
1697 msg->u.tx_can.msg[0] = (cf->can_id >> 24) & 0x1f; in kvaser_usb_start_xmit()
1698 msg->u.tx_can.msg[1] = (cf->can_id >> 18) & 0x3f; in kvaser_usb_start_xmit()
1699 msg->u.tx_can.msg[2] = (cf->can_id >> 14) & 0x0f; in kvaser_usb_start_xmit()
1700 msg->u.tx_can.msg[3] = (cf->can_id >> 6) & 0xff; in kvaser_usb_start_xmit()
1701 msg->u.tx_can.msg[4] = cf->can_id & 0x3f; in kvaser_usb_start_xmit()
1704 msg->u.tx_can.msg[0] = (cf->can_id >> 6) & 0x1f; in kvaser_usb_start_xmit()
1705 msg->u.tx_can.msg[1] = cf->can_id & 0x3f; in kvaser_usb_start_xmit()
1708 msg->u.tx_can.msg[5] = cf->can_dlc; in kvaser_usb_start_xmit()
1709 memcpy(&msg->u.tx_can.msg[6], cf->data, cf->can_dlc); in kvaser_usb_start_xmit()
1742 msg->u.tx_can.tid = context->echo_index; in kvaser_usb_start_xmit()
1814 msg->u.busparams.channel = priv->channel; in kvaser_usb_set_bittiming()
1815 msg->u.busparams.tid = 0xff; in kvaser_usb_set_bittiming()
1816 msg->u.busparams.bitrate = cpu_to_le32(bt->bitrate); in kvaser_usb_set_bittiming()
1817 msg->u.busparams.sjw = bt->sjw; in kvaser_usb_set_bittiming()
1818 msg->u.busparams.tseg1 = bt->prop_seg + bt->phase_seg1; in kvaser_usb_set_bittiming()
1819 msg->u.busparams.tseg2 = bt->phase_seg2; in kvaser_usb_set_bittiming()
1822 msg->u.busparams.no_samp = 3; in kvaser_usb_set_bittiming()
1824 msg->u.busparams.no_samp = 1; in kvaser_usb_set_bittiming()