Home
last modified time | relevance | path

Searched refs:num_sp (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/usb/host/
H A Dxhci-mem.c352 int num_sp; in xhci_scratchpad_alloc() local
357 num_sp = HCS_MAX_SCRATCHPAD(xhci_readl(&hccr->cr_hcsparams2)); in xhci_scratchpad_alloc()
358 if (!num_sp) in xhci_scratchpad_alloc()
366 scratchpad->sp_array = xhci_malloc(num_sp * sizeof(u64)); in xhci_scratchpad_alloc()
384 buf = memalign(page_size, num_sp * page_size); in xhci_scratchpad_alloc()
387 memset(buf, '\0', num_sp * page_size); in xhci_scratchpad_alloc()
388 xhci_flush_cache((uintptr_t)buf, num_sp * page_size); in xhci_scratchpad_alloc()
390 for (i = 0; i < num_sp; i++) { in xhci_scratchpad_alloc()
/openbmc/linux/drivers/usb/host/
H A Dxhci-mem.c1627 int num_sp = HCS_MAX_SCRATCHPAD(xhci->hcs_params2); in scratchpad_alloc() local
1630 "Allocating %d scratchpad buffers", num_sp); in scratchpad_alloc()
1632 if (!num_sp) in scratchpad_alloc()
1641 size_mul(sizeof(u64), num_sp), in scratchpad_alloc()
1646 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc()
1652 for (i = 0; i < num_sp; i++) { in scratchpad_alloc()
1674 dma_free_coherent(dev, num_sp * sizeof(u64), in scratchpad_alloc()
1688 int num_sp; in scratchpad_free() local
1695 num_sp = HCS_MAX_SCRATCHPAD(xhci->hcs_params2); in scratchpad_free()
1697 for (i = 0; i < num_sp; i++) { in scratchpad_free()
[all …]