Lines Matching refs:npages
33 int i, npages; in xhci_scratchpad_fini() local
34 npages = xhcip->xhci_caps.xcap_max_scratch; in xhci_scratchpad_fini()
35 for (i = 0; i < npages; i++) { in xhci_scratchpad_fini()
39 sizeof (xhci_dma_buffer_t) * npages); in xhci_scratchpad_fini()
57 int npages, i; in xhci_scratchpad_alloc() local
66 npages = xhcip->xhci_caps.xcap_max_scratch; in xhci_scratchpad_alloc()
71 B_TRUE, sizeof (uint64_t) * npages, B_FALSE) == B_FALSE) { in xhci_scratchpad_alloc()
87 xsp->xsp_scratch_dma = kmem_zalloc(sizeof (xhci_dma_buffer_t) * npages, in xhci_scratchpad_alloc()
89 for (i = 0; i < npages; i++) { in xhci_scratchpad_alloc()
164 int i, npages; in xhci_context_init() local
176 npages = xhcip->xhci_caps.xcap_max_scratch; in xhci_context_init()
177 for (i = 0; i < npages; i++) { in xhci_context_init()