Lines Matching refs:i
137 int i; in xhci_free_virt_devices() local
152 for (i = 0; i < 31; ++i) in xhci_free_virt_devices()
153 if (virt_dev->eps[i].ring) in xhci_free_virt_devices()
154 xhci_ring_free(virt_dev->eps[i].ring); in xhci_free_virt_devices()
356 int i; in xhci_scratchpad_alloc() local
377 for (i = 0; i < 16; i++) { in xhci_scratchpad_alloc()
382 BUG_ON(i == 16); in xhci_scratchpad_alloc()
384 page_size = 1 << (i + 12); in xhci_scratchpad_alloc()
391 for (i = 0; i < num_sp; i++) { in xhci_scratchpad_alloc()
392 uintptr_t ptr = (uintptr_t)buf + i * page_size; in xhci_scratchpad_alloc()
393 scratchpad->sp_array[i] = cpu_to_le64(ptr); in xhci_scratchpad_alloc()
510 int i; in xhci_mem_init() local
593 for (i = 0; i < MAX_HC_SLOTS; ++i) in xhci_mem_init()
594 ctrl->devs[i] = NULL; in xhci_mem_init()