Lines Matching defs:context
457 struct esd_tx_urb_context *context;
462 context = &priv->tx_contexts[msg->txdone.hnd & (ESD_USB_MAX_TX_URBS - 1)];
466 stats->tx_bytes += can_get_echo_skb(netdev, context->echo_index,
470 can_free_echo_skb(netdev, context->echo_index, NULL);
473 /* Release context */
474 context->echo_index = ESD_USB_MAX_TX_URBS;
482 struct esd_usb *dev = urb->context;
557 struct esd_tx_urb_context *context = urb->context;
562 WARN_ON(!context);
564 priv = context->priv;
818 struct esd_tx_urb_context *context = NULL;
880 context = &priv->tx_contexts[i];
886 if (!context) {
887 netdev_warn(netdev, "couldn't find free context\n");
892 context->priv = priv;
893 context->echo_index = i;
900 esd_usb_write_bulk_callback, context);
906 can_put_echo_skb(skb, netdev, context->echo_index, 0);
916 can_free_echo_skb(netdev, context->echo_index, NULL);