• Home
  • Raw
  • Download

Lines Matching refs:sgt

624 	struct sg_table *sgt;  in drm_gem_map_dma_buf()  local
633 sgt = obj->funcs->get_sg_table(obj); in drm_gem_map_dma_buf()
634 if (IS_ERR(sgt)) in drm_gem_map_dma_buf()
635 return sgt; in drm_gem_map_dma_buf()
637 ret = dma_map_sgtable(attach->dev, sgt, dir, in drm_gem_map_dma_buf()
640 sg_free_table(sgt); in drm_gem_map_dma_buf()
641 kfree(sgt); in drm_gem_map_dma_buf()
642 sgt = ERR_PTR(ret); in drm_gem_map_dma_buf()
645 return sgt; in drm_gem_map_dma_buf()
658 struct sg_table *sgt, in drm_gem_unmap_dma_buf() argument
661 if (!sgt) in drm_gem_unmap_dma_buf()
664 dma_unmap_sgtable(attach->dev, sgt, dir, DMA_ATTR_SKIP_CPU_SYNC); in drm_gem_unmap_dma_buf()
665 sg_free_table(sgt); in drm_gem_unmap_dma_buf()
666 kfree(sgt); in drm_gem_unmap_dma_buf()
851 unsigned long drm_prime_get_contiguous_size(struct sg_table *sgt) in drm_prime_get_contiguous_size() argument
853 dma_addr_t expected = sg_dma_address(sgt->sgl); in drm_prime_get_contiguous_size()
858 for_each_sgtable_dma_sg(sgt, sg, i) { in drm_prime_get_contiguous_size()
918 struct sg_table *sgt; in drm_gem_prime_import_dev() local
943 sgt = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL); in drm_gem_prime_import_dev()
944 if (IS_ERR(sgt)) { in drm_gem_prime_import_dev()
945 ret = PTR_ERR(sgt); in drm_gem_prime_import_dev()
949 obj = dev->driver->gem_prime_import_sg_table(dev, attach, sgt); in drm_gem_prime_import_dev()
961 dma_buf_unmap_attachment(attach, sgt, DMA_BIDIRECTIONAL); in drm_gem_prime_import_dev()
1002 int __deprecated drm_prime_sg_to_page_array(struct sg_table *sgt, in drm_prime_sg_to_page_array() argument
1009 for_each_sgtable_page(sgt, &page_iter, 0) { in drm_prime_sg_to_page_array()
1029 int drm_prime_sg_to_dma_addr_array(struct sg_table *sgt, dma_addr_t *addrs, in drm_prime_sg_to_dma_addr_array() argument
1035 for_each_sgtable_dma_page(sgt, &dma_iter, 0) { in drm_prime_sg_to_dma_addr_array()