Lines Matching refs:scratchpad

1656 	xhci->scratchpad = kzalloc_node(sizeof(*xhci->scratchpad), flags,  in scratchpad_alloc()
1658 if (!xhci->scratchpad) in scratchpad_alloc()
1661 xhci->scratchpad->sp_array = dma_alloc_coherent(dev, in scratchpad_alloc()
1663 &xhci->scratchpad->sp_dma, flags); in scratchpad_alloc()
1664 if (!xhci->scratchpad->sp_array) in scratchpad_alloc()
1667 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc()
1669 if (!xhci->scratchpad->sp_buffers) in scratchpad_alloc()
1672 xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma); in scratchpad_alloc()
1680 xhci->scratchpad->sp_array[i] = dma; in scratchpad_alloc()
1681 xhci->scratchpad->sp_buffers[i] = buf; in scratchpad_alloc()
1689 xhci->scratchpad->sp_buffers[i], in scratchpad_alloc()
1690 xhci->scratchpad->sp_array[i]); in scratchpad_alloc()
1693 kfree(xhci->scratchpad->sp_buffers); in scratchpad_alloc()
1697 xhci->scratchpad->sp_array, in scratchpad_alloc()
1698 xhci->scratchpad->sp_dma); in scratchpad_alloc()
1701 kfree(xhci->scratchpad); in scratchpad_alloc()
1702 xhci->scratchpad = NULL; in scratchpad_alloc()
1714 if (!xhci->scratchpad) in scratchpad_free()
1721 xhci->scratchpad->sp_buffers[i], in scratchpad_free()
1722 xhci->scratchpad->sp_array[i]); in scratchpad_free()
1724 kfree(xhci->scratchpad->sp_buffers); in scratchpad_free()
1726 xhci->scratchpad->sp_array, in scratchpad_free()
1727 xhci->scratchpad->sp_dma); in scratchpad_free()
1728 kfree(xhci->scratchpad); in scratchpad_free()
1729 xhci->scratchpad = NULL; in scratchpad_free()