Lines Matching defs:context
362 /* execute context operation atomically */
367 /* update context */
393 /* execute context operation atomically */
396 /* context was not allocated, maybe the device sent garbage */
643 struct ucan_urb_context *context;
662 /* gather information from the context */
663 context = &up->context_array[echo_index];
665 /* Release context and restart queue if necessary.
666 * Also check if the context was allocated
668 if (!ucan_release_context(up, context))
691 struct ucan_priv *up = urb->context;
820 struct ucan_urb_context *context = urb->context;
822 /* get the urb context */
823 if (WARN_ON_ONCE(!context))
832 up = context->up;
848 can_free_echo_skb(up->netdev, context - up->context_array, NULL);
853 /* release context and restart the queue if necessary */
854 if (!ucan_release_context(up, context))
856 "urb failed, failed to release context\n");
1050 struct ucan_urb_context *context,
1097 m, mlen, ucan_write_bulk_callback, context);
1118 struct ucan_urb_context *context;
1126 /* allocate a context and slow down tx path, if fifo state is low */
1127 context = ucan_alloc_context(up);
1128 echo_index = context - up->context_array;
1130 if (WARN_ON_ONCE(!context))
1134 urb = ucan_prepare_tx_urb(up, context, cf, echo_index);
1152 if (!ucan_release_context(up, context))
1154 "xmit err: failed to release context\n");
1182 if (!ucan_release_context(up, context))
1184 "xmit drop: failed to release context\n");