Lines Matching refs:MAX_TX_URBS
100 #define MAX_TX_URBS 16 /* must be power of 2 */ macro
217 struct esd_tx_urb_context tx_contexts[MAX_TX_URBS];
369 context = &priv->tx_contexts[msg->msg.txdone.hnd & (MAX_TX_URBS - 1)]; in esd_usb2_tx_done_msg()
381 context->echo_index = MAX_TX_URBS; in esd_usb2_tx_done_msg()
686 for (j = 0; j < MAX_TX_URBS; j++) in unlink_all_urbs()
687 priv->tx_contexts[j].echo_index = MAX_TX_URBS; in unlink_all_urbs()
770 for (i = 0; i < MAX_TX_URBS; i++) { in esd_usb2_start_xmit()
771 if (priv->tx_contexts[i].echo_index == MAX_TX_URBS) { in esd_usb2_start_xmit()
806 if (atomic_read(&priv->active_tx_jobs) >= MAX_TX_URBS) in esd_usb2_start_xmit()
987 netdev = alloc_candev(sizeof(*priv), MAX_TX_URBS); in esd_usb2_probe_one_net()
999 for (i = 0; i < MAX_TX_URBS; i++) in esd_usb2_probe_one_net()
1000 priv->tx_contexts[i].echo_index = MAX_TX_URBS; in esd_usb2_probe_one_net()