Searched refs:num_sp (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | xhci-mem.c | 353 int num_sp; in xhci_scratchpad_alloc() local 358 num_sp = HCS_MAX_SCRATCHPAD(xhci_readl(&hccr->cr_hcsparams2)); in xhci_scratchpad_alloc() 359 if (!num_sp) in xhci_scratchpad_alloc() 367 scratchpad->sp_array = xhci_malloc(num_sp * sizeof(u64)); in xhci_scratchpad_alloc() 385 buf = memalign(page_size, num_sp * page_size); in xhci_scratchpad_alloc() 388 memset(buf, '\0', num_sp * page_size); in xhci_scratchpad_alloc() 389 xhci_flush_cache((uintptr_t)buf, num_sp * page_size); in xhci_scratchpad_alloc() 391 for (i = 0; i < num_sp; i++) { in xhci_scratchpad_alloc()
|
| /OK3568_Linux_fs/kernel/drivers/usb/host/ |
| H A D | xhci-mem.c | 1739 int num_sp = HCS_MAX_SCRATCHPAD(xhci->hcs_params2); in scratchpad_alloc() local 1742 "Allocating %d scratchpad buffers", num_sp); in scratchpad_alloc() 1744 if (!num_sp) in scratchpad_alloc() 1753 num_sp * sizeof(u64), in scratchpad_alloc() 1758 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc() 1764 for (i = 0; i < num_sp; i++) { in scratchpad_alloc() 1787 dma_free_coherent(dev, num_sp * sizeof(u64), in scratchpad_alloc() 1801 int num_sp; in scratchpad_free() local 1808 num_sp = HCS_MAX_SCRATCHPAD(xhci->hcs_params2); in scratchpad_free() 1810 for (i = 0; i < num_sp; i++) { in scratchpad_free() [all …]
|