Searched refs:vmw_tt (Results 1 – 2 of 2) sorted by relevance
167 static void vmw_ttm_unmap_from_dma(struct vmw_ttm_tt *vmw_tt) in vmw_ttm_unmap_from_dma() argument169 struct device *dev = vmw_tt->dev_priv->drm.dev; in vmw_ttm_unmap_from_dma()171 dma_unmap_sgtable(dev, &vmw_tt->sgt, DMA_BIDIRECTIONAL, 0); in vmw_ttm_unmap_from_dma()172 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma()188 static int vmw_ttm_map_for_dma(struct vmw_ttm_tt *vmw_tt) in vmw_ttm_map_for_dma() argument190 struct device *dev = vmw_tt->dev_priv->drm.dev; in vmw_ttm_map_for_dma()192 return dma_map_sgtable(dev, &vmw_tt->sgt, DMA_BIDIRECTIONAL, 0); in vmw_ttm_map_for_dma()205 static int vmw_ttm_map_dma(struct vmw_ttm_tt *vmw_tt) in vmw_ttm_map_dma() argument207 struct vmw_private *dev_priv = vmw_tt->dev_priv; in vmw_ttm_map_dma()208 struct vmw_sg_table *vsgt = &vmw_tt->vsgt; in vmw_ttm_map_dma()[all …]
83 struct vmw_ttm_tt *vmw_tt = in vmw_gem_object_get_sg_table() local86 if (vmw_tt->vsgt.sgt) in vmw_gem_object_get_sg_table()87 return vmw_tt->vsgt.sgt; in vmw_gem_object_get_sg_table()89 return drm_prime_pages_to_sg(obj->dev, vmw_tt->dma_ttm.pages, vmw_tt->dma_ttm.num_pages); in vmw_gem_object_get_sg_table()