Lines Matching refs:sgt
209 struct sg_table *sgt; member
402 dma_unmap_sg(to_dma_dev(drm_dev), g2d_userptr->sgt->sgl, in g2d_userptr_put_dma_addr()
403 g2d_userptr->sgt->nents, DMA_BIDIRECTIONAL); in g2d_userptr_put_dma_addr()
418 sg_free_table(g2d_userptr->sgt); in g2d_userptr_put_dma_addr()
419 kfree(g2d_userptr->sgt); in g2d_userptr_put_dma_addr()
433 struct sg_table *sgt; in g2d_userptr_get_dma_addr() local
505 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL); in g2d_userptr_get_dma_addr()
506 if (!sgt) { in g2d_userptr_get_dma_addr()
511 ret = sg_alloc_table_from_pages(sgt, in g2d_userptr_get_dma_addr()
519 g2d_userptr->sgt = sgt; in g2d_userptr_get_dma_addr()
521 if (!dma_map_sg(to_dma_dev(drm_dev), sgt->sgl, sgt->nents, in g2d_userptr_get_dma_addr()
528 g2d_userptr->dma_addr = sgt->sgl[0].dma_address; in g2d_userptr_get_dma_addr()
543 sg_free_table(sgt); in g2d_userptr_get_dma_addr()
546 kfree(sgt); in g2d_userptr_get_dma_addr()