Lines Matching full:leaf

3  *  - Kvaser linux leaf driver (version 4.78)
54 /* Leaf/usbcan command ids */
87 /* Leaf frequency options */
105 /* Only Leaf-based devices can report M16C error factors,
184 } __packed leaf; member
375 } __packed leaf; member
400 [CMD_TX_ACKNOWLEDGE] = kvaser_fsize(u.leaf.tx_ack),
401 [CMD_GET_SOFTWARE_INFO_REPLY] = kvaser_fsize(u.leaf.softinfo),
402 [CMD_RX_STD_MESSAGE] = kvaser_fsize(u.leaf.rx_can),
403 [CMD_RX_EXT_MESSAGE] = kvaser_fsize(u.leaf.rx_can),
404 [CMD_LEAF_LOG_MESSAGE] = kvaser_fsize(u.leaf.log_message),
405 [CMD_CHIP_STATE_EVENT] = kvaser_fsize(u.leaf.chip_state_event),
406 [CMD_CAN_ERROR_EVENT] = kvaser_fsize(u.leaf.can_error_event),
407 [CMD_GET_CAPABILITIES_RESP] = kvaser_fsize(u.leaf.cap_res),
409 [CMD_ERROR_EVENT] = kvaser_fsize(u.leaf.error_event),
428 /* Summary of a kvaser error event, for a unified Leaf/Usbcan error
443 } leaf; member
605 cmd_tx_can_flags = &cmd->u.tx_can.leaf.flags; in kvaser_usb_leaf_frame_to_cmd()
775 kvaser_usb_leaf_get_software_info_leaf(dev, &cmd.u.leaf.softinfo); in kvaser_usb_leaf_get_software_info_inner()
843 cmd->u.leaf.cap_req.cap_cmd = cpu_to_le16(cap_cmd_req); in kvaser_usb_leaf_get_single_capability()
854 *status = le16_to_cpu(cmd->u.leaf.cap_res.status); in kvaser_usb_leaf_get_single_capability()
859 cap_cmd_res = le16_to_cpu(cmd->u.leaf.cap_res.cap_cmd); in kvaser_usb_leaf_get_single_capability()
863 value = le32_to_cpu(cmd->u.leaf.cap_res.value); in kvaser_usb_leaf_get_single_capability()
864 mask = le32_to_cpu(cmd->u.leaf.cap_res.mask); in kvaser_usb_leaf_get_single_capability()
988 hwtstamp = kvaser_usb_timestamp48_to_ktime(dev->cfg, cmd->u.leaf.tx_ack.time); in kvaser_usb_leaf_tx_acknowledge()
1033 struct kvaser_usb_net_leaf_priv *leaf = in kvaser_usb_leaf_chip_state_req_work() local
1036 struct kvaser_usb_net_priv *priv = leaf->net; in kvaser_usb_leaf_chip_state_req_work()
1046 struct kvaser_usb_net_leaf_priv *leaf = priv->sub_priv; in kvaser_usb_leaf_rx_error_update_can_state() local
1078 if (leaf->joining_bus) { in kvaser_usb_leaf_rx_error_update_can_state()
1083 leaf->joining_bus = false; in kvaser_usb_leaf_rx_error_update_can_state()
1101 if (es->leaf.error_factor) { in kvaser_usb_leaf_rx_error_update_can_state()
1129 struct kvaser_usb_net_leaf_priv *leaf; in kvaser_usb_leaf_rx_error() local
1139 leaf = priv->sub_priv; in kvaser_usb_leaf_rx_error()
1167 leaf->joining_bus)) in kvaser_usb_leaf_rx_error()
1168 schedule_delayed_work(&leaf->chip_state_req_work, in kvaser_usb_leaf_rx_error()
1197 if (es->leaf.error_factor) { in kvaser_usb_leaf_rx_error()
1200 if (es->leaf.error_factor & M16C_EF_ACKE) in kvaser_usb_leaf_rx_error()
1202 if (es->leaf.error_factor & M16C_EF_CRCE) in kvaser_usb_leaf_rx_error()
1204 if (es->leaf.error_factor & M16C_EF_FORME) in kvaser_usb_leaf_rx_error()
1206 if (es->leaf.error_factor & M16C_EF_STFE) in kvaser_usb_leaf_rx_error()
1208 if (es->leaf.error_factor & M16C_EF_BITE0) in kvaser_usb_leaf_rx_error()
1210 if (es->leaf.error_factor & M16C_EF_BITE1) in kvaser_usb_leaf_rx_error()
1212 if (es->leaf.error_factor & M16C_EF_TRE) in kvaser_usb_leaf_rx_error()
1322 es.channel = cmd->u.leaf.can_error_event.channel; in kvaser_usb_leaf_leaf_rx_error()
1323 es.status = cmd->u.leaf.can_error_event.status; in kvaser_usb_leaf_leaf_rx_error()
1324 es.txerr = cmd->u.leaf.can_error_event.tx_errors_count; in kvaser_usb_leaf_leaf_rx_error()
1325 es.rxerr = cmd->u.leaf.can_error_event.rx_errors_count; in kvaser_usb_leaf_leaf_rx_error()
1326 es.leaf.error_factor = cmd->u.leaf.can_error_event.error_factor; in kvaser_usb_leaf_leaf_rx_error()
1329 es.channel = cmd->u.leaf.log_message.channel; in kvaser_usb_leaf_leaf_rx_error()
1330 es.status = cmd->u.leaf.log_message.data[0]; in kvaser_usb_leaf_leaf_rx_error()
1331 es.txerr = cmd->u.leaf.log_message.data[2]; in kvaser_usb_leaf_leaf_rx_error()
1332 es.rxerr = cmd->u.leaf.log_message.data[3]; in kvaser_usb_leaf_leaf_rx_error()
1333 es.leaf.error_factor = cmd->u.leaf.log_message.data[1]; in kvaser_usb_leaf_leaf_rx_error()
1336 es.channel = cmd->u.leaf.chip_state_event.channel; in kvaser_usb_leaf_leaf_rx_error()
1337 es.status = cmd->u.leaf.chip_state_event.status; in kvaser_usb_leaf_leaf_rx_error()
1338 es.txerr = cmd->u.leaf.chip_state_event.tx_errors_count; in kvaser_usb_leaf_leaf_rx_error()
1339 es.rxerr = cmd->u.leaf.chip_state_event.rx_errors_count; in kvaser_usb_leaf_leaf_rx_error()
1340 es.leaf.error_factor = 0; in kvaser_usb_leaf_leaf_rx_error()
1407 rx_data = cmd->u.leaf.rx_can.data; in kvaser_usb_leaf_rx_can_msg()
1408 hwtstamp = kvaser_usb_timestamp48_to_ktime(dev->cfg, cmd->u.leaf.rx_can.time); in kvaser_usb_leaf_rx_can_msg()
1424 cf->can_id = le32_to_cpu(cmd->u.leaf.log_message.id); in kvaser_usb_leaf_rx_can_msg()
1430 can_frame_set_cc_len(cf, cmd->u.leaf.log_message.dlc & 0xF, priv->can.ctrlmode); in kvaser_usb_leaf_rx_can_msg()
1432 if (cmd->u.leaf.log_message.flags & MSG_FLAG_REMOTE_FRAME) in kvaser_usb_leaf_rx_can_msg()
1435 memcpy(cf->data, &cmd->u.leaf.log_message.data, in kvaser_usb_leaf_rx_can_msg()
1470 info1 = le16_to_cpu(cmd->u.leaf.error_event.info1); in kvaser_usb_leaf_error_event_parameter()
1504 error_code = cmd->u.leaf.error_event.error_code; in kvaser_usb_leaf_error_event()
1717 struct kvaser_usb_net_leaf_priv *leaf = priv->sub_priv; in kvaser_usb_leaf_start_chip() local
1720 leaf->joining_bus = true; in kvaser_usb_leaf_start_chip()
1738 struct kvaser_usb_net_leaf_priv *leaf = priv->sub_priv; in kvaser_usb_leaf_stop_chip() local
1743 cancel_delayed_work(&leaf->chip_state_req_work); in kvaser_usb_leaf_stop_chip()
1793 struct kvaser_usb_net_leaf_priv *leaf; in kvaser_usb_leaf_init_channel() local
1795 leaf = devm_kzalloc(&priv->dev->intf->dev, sizeof(*leaf), GFP_KERNEL); in kvaser_usb_leaf_init_channel()
1796 if (!leaf) in kvaser_usb_leaf_init_channel()
1799 leaf->net = priv; in kvaser_usb_leaf_init_channel()
1800 INIT_DELAYED_WORK(&leaf->chip_state_req_work, in kvaser_usb_leaf_init_channel()
1803 priv->sub_priv = leaf; in kvaser_usb_leaf_init_channel()
1810 struct kvaser_usb_net_leaf_priv *leaf = priv->sub_priv; in kvaser_usb_leaf_remove_channel() local
1812 if (leaf) in kvaser_usb_leaf_remove_channel()
1813 cancel_delayed_work_sync(&leaf->chip_state_req_work); in kvaser_usb_leaf_remove_channel()
1866 struct kvaser_usb_net_leaf_priv *leaf = priv->sub_priv; in kvaser_usb_leaf_set_mode() local
1873 leaf->joining_bus = true; in kvaser_usb_leaf_set_mode()