8 #ifdef WANT_URB_PARANOIA
13 #define OZ_MAX_URBS 1000
14 struct urb *g_urb_memory[OZ_MAX_URBS];
23 if (g_nb_urbs < OZ_MAX_URBS) {
24 g_urb_memory[g_nb_urbs++] =
urb;
25 oz_trace(
"%lu: urb up = %d %p\n", jiffies, g_nb_urbs, urb);
29 spin_unlock_irqrestore(&g_urb_mem_lock, irq_state);
39 for (i = 0; i < g_nb_urbs; i++) {
40 if (g_urb_memory[i] == urb) {
43 memcpy(&g_urb_memory[i], &g_urb_memory[i+1],
44 (g_nb_urbs - i) *
sizeof(
struct urb *));
46 jiffies, g_nb_urbs, urb);
49 spin_unlock_irqrestore(&g_urb_mem_lock, irq_state);