Lines Matching refs:scratchpad

1659 	xhci->scratchpad = kzalloc_node(sizeof(*xhci->scratchpad), flags,  in scratchpad_alloc()
1661 if (!xhci->scratchpad) in scratchpad_alloc()
1664 xhci->scratchpad->sp_array = dma_alloc_coherent(dev, in scratchpad_alloc()
1666 &xhci->scratchpad->sp_dma, flags); in scratchpad_alloc()
1667 if (!xhci->scratchpad->sp_array) in scratchpad_alloc()
1670 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc()
1672 if (!xhci->scratchpad->sp_buffers) in scratchpad_alloc()
1675 xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma); in scratchpad_alloc()
1683 xhci->scratchpad->sp_array[i] = dma; in scratchpad_alloc()
1684 xhci->scratchpad->sp_buffers[i] = buf; in scratchpad_alloc()
1692 xhci->scratchpad->sp_buffers[i], in scratchpad_alloc()
1693 xhci->scratchpad->sp_array[i]); in scratchpad_alloc()
1695 kfree(xhci->scratchpad->sp_buffers); in scratchpad_alloc()
1699 xhci->scratchpad->sp_array, in scratchpad_alloc()
1700 xhci->scratchpad->sp_dma); in scratchpad_alloc()
1703 kfree(xhci->scratchpad); in scratchpad_alloc()
1704 xhci->scratchpad = NULL; in scratchpad_alloc()
1716 if (!xhci->scratchpad) in scratchpad_free()
1723 xhci->scratchpad->sp_buffers[i], in scratchpad_free()
1724 xhci->scratchpad->sp_array[i]); in scratchpad_free()
1726 kfree(xhci->scratchpad->sp_buffers); in scratchpad_free()
1728 xhci->scratchpad->sp_array, in scratchpad_free()
1729 xhci->scratchpad->sp_dma); in scratchpad_free()
1730 kfree(xhci->scratchpad); in scratchpad_free()
1731 xhci->scratchpad = NULL; in scratchpad_free()