Lines Matching refs:scratchpad

1671 	xhci->scratchpad = kzalloc_node(sizeof(*xhci->scratchpad), flags,  in scratchpad_alloc()
1673 if (!xhci->scratchpad) in scratchpad_alloc()
1676 xhci->scratchpad->sp_array = dma_alloc_coherent(dev, in scratchpad_alloc()
1678 &xhci->scratchpad->sp_dma, flags); in scratchpad_alloc()
1679 if (!xhci->scratchpad->sp_array) in scratchpad_alloc()
1682 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc()
1684 if (!xhci->scratchpad->sp_buffers) in scratchpad_alloc()
1687 xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma); in scratchpad_alloc()
1695 xhci->scratchpad->sp_array[i] = dma; in scratchpad_alloc()
1696 xhci->scratchpad->sp_buffers[i] = buf; in scratchpad_alloc()
1704 xhci->scratchpad->sp_buffers[i], in scratchpad_alloc()
1705 xhci->scratchpad->sp_array[i]); in scratchpad_alloc()
1708 kfree(xhci->scratchpad->sp_buffers); in scratchpad_alloc()
1712 xhci->scratchpad->sp_array, in scratchpad_alloc()
1713 xhci->scratchpad->sp_dma); in scratchpad_alloc()
1716 kfree(xhci->scratchpad); in scratchpad_alloc()
1717 xhci->scratchpad = NULL; in scratchpad_alloc()
1729 if (!xhci->scratchpad) in scratchpad_free()
1736 xhci->scratchpad->sp_buffers[i], in scratchpad_free()
1737 xhci->scratchpad->sp_array[i]); in scratchpad_free()
1739 kfree(xhci->scratchpad->sp_buffers); in scratchpad_free()
1741 xhci->scratchpad->sp_array, in scratchpad_free()
1742 xhci->scratchpad->sp_dma); in scratchpad_free()
1743 kfree(xhci->scratchpad); in scratchpad_free()
1744 xhci->scratchpad = NULL; in scratchpad_free()