Lines Matching refs:sgt
222 struct sg_table sgt; member
329 __sg_page_iter_start(&viter->iter, vsgt->sgt->sgl, in vmw_piter_start()
330 vsgt->sgt->orig_nents, p_offset); in vmw_piter_start()
349 dma_unmap_sg(dev, vmw_tt->sgt.sgl, vmw_tt->sgt.nents, in vmw_ttm_unmap_from_dma()
351 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents; in vmw_ttm_unmap_from_dma()
372 ret = dma_map_sg(dev, vmw_tt->sgt.sgl, vmw_tt->sgt.orig_nents, in vmw_ttm_map_for_dma()
377 vmw_tt->sgt.nents = ret; in vmw_ttm_map_for_dma()
410 vsgt->sgt = &vmw_tt->sgt; in vmw_ttm_map_dma()
425 ret = sg_alloc_table_from_pages(&vmw_tt->sgt, vsgt->pages, in vmw_ttm_map_dma()
433 if (vsgt->num_pages > vmw_tt->sgt.nents) { in vmw_ttm_map_dma()
436 vmw_tt->sgt.nents); in vmw_ttm_map_dma()
465 sg_free_table(vmw_tt->vsgt.sgt); in vmw_ttm_map_dma()
466 vmw_tt->vsgt.sgt = NULL; in vmw_ttm_map_dma()
485 if (!vmw_tt->vsgt.sgt) in vmw_ttm_unmap_dma()
492 sg_free_table(vmw_tt->vsgt.sgt); in vmw_ttm_unmap_dma()
493 vmw_tt->vsgt.sgt = NULL; in vmw_ttm_unmap_dma()