Lines Matching refs:scratchpad

1747 	xhci->scratchpad = kzalloc_node(sizeof(*xhci->scratchpad), flags,  in scratchpad_alloc()
1749 if (!xhci->scratchpad) in scratchpad_alloc()
1752 xhci->scratchpad->sp_array = dma_alloc_coherent(dev, in scratchpad_alloc()
1754 &xhci->scratchpad->sp_dma, flags); in scratchpad_alloc()
1755 if (!xhci->scratchpad->sp_array) in scratchpad_alloc()
1758 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc()
1760 if (!xhci->scratchpad->sp_buffers) in scratchpad_alloc()
1763 xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma); in scratchpad_alloc()
1771 xhci->scratchpad->sp_array[i] = dma; in scratchpad_alloc()
1772 xhci->scratchpad->sp_buffers[i] = buf; in scratchpad_alloc()
1780 xhci->scratchpad->sp_buffers[i], in scratchpad_alloc()
1781 xhci->scratchpad->sp_array[i]); in scratchpad_alloc()
1784 kfree(xhci->scratchpad->sp_buffers); in scratchpad_alloc()
1788 xhci->scratchpad->sp_array, in scratchpad_alloc()
1789 xhci->scratchpad->sp_dma); in scratchpad_alloc()
1792 kfree(xhci->scratchpad); in scratchpad_alloc()
1793 xhci->scratchpad = NULL; in scratchpad_alloc()
1805 if (!xhci->scratchpad) in scratchpad_free()
1812 xhci->scratchpad->sp_buffers[i], in scratchpad_free()
1813 xhci->scratchpad->sp_array[i]); in scratchpad_free()
1815 kfree(xhci->scratchpad->sp_buffers); in scratchpad_free()
1817 xhci->scratchpad->sp_array, in scratchpad_free()
1818 xhci->scratchpad->sp_dma); in scratchpad_free()
1819 kfree(xhci->scratchpad); in scratchpad_free()
1820 xhci->scratchpad = NULL; in scratchpad_free()