Lines Matching refs:scratchpad

1657 	xhci->scratchpad = kzalloc_node(sizeof(*xhci->scratchpad), flags,  in scratchpad_alloc()
1659 if (!xhci->scratchpad) in scratchpad_alloc()
1662 xhci->scratchpad->sp_array = dma_alloc_coherent(dev, in scratchpad_alloc()
1664 &xhci->scratchpad->sp_dma, flags); in scratchpad_alloc()
1665 if (!xhci->scratchpad->sp_array) in scratchpad_alloc()
1668 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc()
1670 if (!xhci->scratchpad->sp_buffers) in scratchpad_alloc()
1673 xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma); in scratchpad_alloc()
1681 xhci->scratchpad->sp_array[i] = dma; in scratchpad_alloc()
1682 xhci->scratchpad->sp_buffers[i] = buf; in scratchpad_alloc()
1690 xhci->scratchpad->sp_buffers[i], in scratchpad_alloc()
1691 xhci->scratchpad->sp_array[i]); in scratchpad_alloc()
1694 kfree(xhci->scratchpad->sp_buffers); in scratchpad_alloc()
1698 xhci->scratchpad->sp_array, in scratchpad_alloc()
1699 xhci->scratchpad->sp_dma); in scratchpad_alloc()
1702 kfree(xhci->scratchpad); in scratchpad_alloc()
1703 xhci->scratchpad = NULL; in scratchpad_alloc()
1715 if (!xhci->scratchpad) in scratchpad_free()
1722 xhci->scratchpad->sp_buffers[i], in scratchpad_free()
1723 xhci->scratchpad->sp_array[i]); in scratchpad_free()
1725 kfree(xhci->scratchpad->sp_buffers); in scratchpad_free()
1727 xhci->scratchpad->sp_array, in scratchpad_free()
1728 xhci->scratchpad->sp_dma); in scratchpad_free()
1729 kfree(xhci->scratchpad); in scratchpad_free()
1730 xhci->scratchpad = NULL; in scratchpad_free()