Lines Matching refs:vsgt
135 void vmw_piter_start(struct vmw_piter *viter, const struct vmw_sg_table *vsgt, in vmw_piter_start() argument
139 viter->num_pages = vsgt->num_pages; in vmw_piter_start()
140 viter->pages = vsgt->pages; in vmw_piter_start()
141 switch (vsgt->mode) { in vmw_piter_start()
145 viter->addrs = vsgt->addrs; in vmw_piter_start()
151 __sg_page_iter_start(&viter->iter.base, vsgt->sgt->sgl, in vmw_piter_start()
152 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start()
208 struct vmw_sg_table *vsgt = &vmw_tt->vsgt; in vmw_ttm_map_dma() local
214 vsgt->mode = dev_priv->map_mode; in vmw_ttm_map_dma()
215 vsgt->pages = vmw_tt->dma_ttm.pages; in vmw_ttm_map_dma()
216 vsgt->num_pages = vmw_tt->dma_ttm.num_pages; in vmw_ttm_map_dma()
217 vsgt->addrs = vmw_tt->dma_ttm.dma_address; in vmw_ttm_map_dma()
218 vsgt->sgt = NULL; in vmw_ttm_map_dma()
223 vsgt->sgt = &vmw_tt->sgt; in vmw_ttm_map_dma()
225 &vmw_tt->sgt, vsgt->pages, vsgt->num_pages, 0, in vmw_ttm_map_dma()
226 (unsigned long)vsgt->num_pages << PAGE_SHIFT, in vmw_ttm_map_dma()
244 sg_free_table(vmw_tt->vsgt.sgt); in vmw_ttm_map_dma()
245 vmw_tt->vsgt.sgt = NULL; in vmw_ttm_map_dma()
263 if (!vmw_tt->vsgt.sgt) in vmw_ttm_unmap_dma()
270 sg_free_table(vmw_tt->vsgt.sgt); in vmw_ttm_unmap_dma()
271 vmw_tt->vsgt.sgt = NULL; in vmw_ttm_unmap_dma()
295 return &vmw_tt->vsgt; in vmw_bo_sg_table()
321 ret = vmw_gmr_bind(vmw_be->dev_priv, &vmw_be->vsgt, in vmw_ttm_bind()
333 &vmw_be->vsgt, ttm->num_pages, in vmw_ttm_bind()