Lines Matching refs:context_array
303 struct ucan_urb_context *context_array; member
316 if (!up->context_array) in ucan_release_context_array()
322 kfree(up->context_array); in ucan_release_context_array()
323 up->context_array = NULL; in ucan_release_context_array()
333 up->context_array = kcalloc(up->device_info.tx_fifo, in ucan_alloc_context_array()
334 sizeof(*up->context_array), in ucan_alloc_context_array()
336 if (!up->context_array) { in ucan_alloc_context_array()
343 up->context_array[i].allocated = false; in ucan_alloc_context_array()
344 up->context_array[i].up = up; in ucan_alloc_context_array()
359 if (WARN_ON_ONCE(!up->context_array)) in ucan_alloc_context()
366 if (!up->context_array[i].allocated) { in ucan_alloc_context()
368 ret = &up->context_array[i]; in ucan_alloc_context()
369 up->context_array[i].allocated = true; in ucan_alloc_context()
390 if (WARN_ON_ONCE(!up->context_array)) in ucan_release_context()
663 context = &up->context_array[echo_index]; in ucan_tx_complete_msg()
698 if (WARN_ON(!up->context_array)) { in ucan_read_bulk_callback()
848 can_free_echo_skb(up->netdev, context - up->context_array, NULL); in ucan_write_bulk_callback()
1128 echo_index = context - up->context_array; in ucan_start_xmit()
1509 up->context_array = NULL; in ucan_probe()