Home
last modified time | relevance | path

Searched refs:max_tx_urbs (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_core.c464 int i, max_tx_urbs; in kvaser_usb_reset_tx_urb_contexts() local
466 max_tx_urbs = priv->dev->max_tx_urbs; in kvaser_usb_reset_tx_urb_contexts()
469 for (i = 0; i < max_tx_urbs; i++) in kvaser_usb_reset_tx_urb_contexts()
470 priv->tx_contexts[i].echo_index = max_tx_urbs; in kvaser_usb_reset_tx_urb_contexts()
667 for (i = 0; i < dev->max_tx_urbs; i++) { in kvaser_usb_start_xmit()
668 if (priv->tx_contexts[i].echo_index == dev->max_tx_urbs) { in kvaser_usb_start_xmit()
673 if (priv->active_tx_contexts >= (int)dev->max_tx_urbs) in kvaser_usb_start_xmit()
695 context->echo_index = dev->max_tx_urbs; in kvaser_usb_start_xmit()
719 context->echo_index = dev->max_tx_urbs; in kvaser_usb_start_xmit()
807 netdev = alloc_candev(struct_size(priv, tx_contexts, dev->max_tx_urbs), in kvaser_usb_init_one()
[all …]
Dkvaser_usb.h103 unsigned int max_tx_urbs; member
Dkvaser_usb_leaf.c670 dev->max_tx_urbs = le16_to_cpu(softinfo->max_outstanding_tx); in kvaser_usb_leaf_get_software_info_leaf()
714 dev->max_tx_urbs = in kvaser_usb_leaf_get_software_info_inner()
897 context = &priv->tx_contexts[tid % dev->max_tx_urbs]; in kvaser_usb_leaf_tx_acknowledge()
925 context->echo_index = dev->max_tx_urbs; in kvaser_usb_leaf_tx_acknowledge()
Dkvaser_usb_hydra.c1195 context = &priv->tx_contexts[transid % dev->max_tx_urbs]; in kvaser_usb_hydra_tx_acknowledge()
1200 context->echo_index = dev->max_tx_urbs; in kvaser_usb_hydra_tx_acknowledge()
1798 dev->max_tx_urbs = min_t(unsigned int, KVASER_USB_MAX_TX_URBS, in kvaser_usb_hydra_get_software_info()