• Home
  • Raw
  • Download

Lines Matching refs:scratchpad

1668 	xhci->scratchpad = kzalloc_node(sizeof(*xhci->scratchpad), flags,  in scratchpad_alloc()
1670 if (!xhci->scratchpad) in scratchpad_alloc()
1673 xhci->scratchpad->sp_array = dma_alloc_coherent(dev, in scratchpad_alloc()
1675 &xhci->scratchpad->sp_dma, flags); in scratchpad_alloc()
1676 if (!xhci->scratchpad->sp_array) in scratchpad_alloc()
1679 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc()
1681 if (!xhci->scratchpad->sp_buffers) in scratchpad_alloc()
1684 xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma); in scratchpad_alloc()
1692 xhci->scratchpad->sp_array[i] = dma; in scratchpad_alloc()
1693 xhci->scratchpad->sp_buffers[i] = buf; in scratchpad_alloc()
1701 xhci->scratchpad->sp_buffers[i], in scratchpad_alloc()
1702 xhci->scratchpad->sp_array[i]); in scratchpad_alloc()
1705 kfree(xhci->scratchpad->sp_buffers); in scratchpad_alloc()
1709 xhci->scratchpad->sp_array, in scratchpad_alloc()
1710 xhci->scratchpad->sp_dma); in scratchpad_alloc()
1713 kfree(xhci->scratchpad); in scratchpad_alloc()
1714 xhci->scratchpad = NULL; in scratchpad_alloc()
1726 if (!xhci->scratchpad) in scratchpad_free()
1733 xhci->scratchpad->sp_buffers[i], in scratchpad_free()
1734 xhci->scratchpad->sp_array[i]); in scratchpad_free()
1736 kfree(xhci->scratchpad->sp_buffers); in scratchpad_free()
1738 xhci->scratchpad->sp_array, in scratchpad_free()
1739 xhci->scratchpad->sp_dma); in scratchpad_free()
1740 kfree(xhci->scratchpad); in scratchpad_free()
1741 xhci->scratchpad = NULL; in scratchpad_free()