Lines Matching refs:xe_tt
290 struct xe_ttm_tt *xe_tt = container_of(tt, struct xe_ttm_tt, ttm); in xe_tt_map_sg() local
296 if (xe_tt->sg) in xe_tt_map_sg()
299 ret = sg_alloc_table_from_pages_segment(&xe_tt->sgt, tt->pages, in xe_tt_map_sg()
302 xe_sg_segment_size(xe_tt->dev), in xe_tt_map_sg()
307 xe_tt->sg = &xe_tt->sgt; in xe_tt_map_sg()
308 ret = dma_map_sgtable(xe_tt->dev, xe_tt->sg, DMA_BIDIRECTIONAL, in xe_tt_map_sg()
311 sg_free_table(xe_tt->sg); in xe_tt_map_sg()
312 xe_tt->sg = NULL; in xe_tt_map_sg()
321 struct xe_ttm_tt *xe_tt = container_of(tt, struct xe_ttm_tt, ttm); in xe_tt_unmap_sg() local
323 if (xe_tt->sg) { in xe_tt_unmap_sg()
324 dma_unmap_sgtable(xe_tt->dev, xe_tt->sg, in xe_tt_unmap_sg()
326 sg_free_table(xe_tt->sg); in xe_tt_unmap_sg()
327 xe_tt->sg = NULL; in xe_tt_unmap_sg()
334 struct xe_ttm_tt *xe_tt = container_of(tt, struct xe_ttm_tt, ttm); in xe_bo_sg() local
336 return xe_tt->sg; in xe_bo_sg()
557 struct xe_ttm_tt *xe_tt = container_of(ttm_bo->ttm, struct xe_ttm_tt, in xe_bo_move_dmabuf() local
578 xe_tt->sg = sg; in xe_bo_move_dmabuf()
1082 struct xe_ttm_tt *xe_tt = container_of(ttm_bo->ttm, in xe_ttm_bo_delete_mem_notify() local
1088 xe_tt->sg = NULL; in xe_ttm_bo_delete_mem_notify()