Searched refs:vmw_tt (Results 1 – 2 of 2) sorted by relevance
249 static void vmw_ttm_unmap_from_dma(struct vmw_ttm_tt *vmw_tt) in vmw_ttm_unmap_from_dma() argument251 struct device *dev = vmw_tt->dev_priv->drm.dev; in vmw_ttm_unmap_from_dma()253 dma_unmap_sgtable(dev, &vmw_tt->sgt, DMA_BIDIRECTIONAL, 0); in vmw_ttm_unmap_from_dma()254 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma()270 static int vmw_ttm_map_for_dma(struct vmw_ttm_tt *vmw_tt) in vmw_ttm_map_for_dma() argument272 struct device *dev = vmw_tt->dev_priv->drm.dev; in vmw_ttm_map_for_dma()274 return dma_map_sgtable(dev, &vmw_tt->sgt, DMA_BIDIRECTIONAL, 0); in vmw_ttm_map_for_dma()287 static int vmw_ttm_map_dma(struct vmw_ttm_tt *vmw_tt) in vmw_ttm_map_dma() argument289 struct vmw_private *dev_priv = vmw_tt->dev_priv; in vmw_ttm_map_dma()290 struct vmw_sg_table *vsgt = &vmw_tt->vsgt; in vmw_ttm_map_dma()[all …]
97 struct vmw_ttm_tt *vmw_tt = in vmw_gem_object_get_sg_table() local100 if (vmw_tt->vsgt.sgt) in vmw_gem_object_get_sg_table()101 return vmw_tt->vsgt.sgt; in vmw_gem_object_get_sg_table()103 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()