Lines Matching refs:copy_buf
559 struct drm_buf *copy_buf; in mach64_dma_dispatch_vertex() local
574 copy_buf = mach64_freelist_get(dev_priv); in mach64_dma_dispatch_vertex()
575 if (copy_buf == NULL) { in mach64_dma_dispatch_vertex()
584 verify_ret = copy_from_user_vertex(GETBUFPTR(copy_buf), buf, used); in mach64_dma_dispatch_vertex()
587 mach64_freelist_put(dev_priv, copy_buf); in mach64_dma_dispatch_vertex()
591 copy_buf->used = used; in mach64_dma_dispatch_vertex()
593 DMASETPTR(copy_buf); in mach64_dma_dispatch_vertex()
623 if (copy_buf->pending) { in mach64_dma_dispatch_vertex()
629 mach64_freelist_put(dev_priv, copy_buf); in mach64_dma_dispatch_vertex()
660 struct drm_buf *copy_buf; in mach64_dma_dispatch_blit() local
701 copy_buf = mach64_freelist_get(dev_priv); in mach64_dma_dispatch_blit()
702 if (copy_buf == NULL) { in mach64_dma_dispatch_blit()
717 verify_ret = copy_from_user_blit(GETBUFPTR(copy_buf), blit->buf, used); in mach64_dma_dispatch_blit()
720 mach64_freelist_put(dev_priv, copy_buf); in mach64_dma_dispatch_blit()
724 copy_buf->used = used; in mach64_dma_dispatch_blit()
734 DMASETPTR(copy_buf); in mach64_dma_dispatch_blit()