Home
last modified time | relevance | path

Searched refs:vmw_tt (Results 1 – 2 of 2) sorted by relevance

/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c249 static void vmw_ttm_unmap_from_dma(struct vmw_ttm_tt *vmw_tt) in vmw_ttm_unmap_from_dma() argument
251 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() argument
272 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() argument
289 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 …]
Dvmwgfx_gem.c97 struct vmw_ttm_tt *vmw_tt = in vmw_gem_object_get_sg_table() local
100 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()