Lines Matching refs:scratchpad
1671 /* Set up the scratchpad buffer array and scratchpad buffers, if needed. */
1679 "Allocating %d scratchpad buffers", num_sp);
1684 xhci->scratchpad = kzalloc_node(sizeof(*xhci->scratchpad), flags,
1686 if (!xhci->scratchpad)
1689 xhci->scratchpad->sp_array = dma_alloc_coherent(dev,
1691 &xhci->scratchpad->sp_dma, flags);
1692 if (!xhci->scratchpad->sp_array)
1695 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *),
1697 if (!xhci->scratchpad->sp_buffers)
1700 xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma);
1708 xhci->scratchpad->sp_array[i] = dma;
1709 xhci->scratchpad->sp_buffers[i] = buf;
1717 xhci->scratchpad->sp_buffers[i],
1718 xhci->scratchpad->sp_array[i]);
1721 kfree(xhci->scratchpad->sp_buffers);
1725 xhci->scratchpad->sp_array,
1726 xhci->scratchpad->sp_dma);
1729 kfree(xhci->scratchpad);
1730 xhci->scratchpad = NULL;
1742 if (!xhci->scratchpad)
1749 xhci->scratchpad->sp_buffers[i],
1750 xhci->scratchpad->sp_array[i]);
1752 kfree(xhci->scratchpad->sp_buffers);
1754 xhci->scratchpad->sp_array,
1755 xhci->scratchpad->sp_dma);
1756 kfree(xhci->scratchpad);
1757 xhci->scratchpad = NULL;