Lines Matching refs:ttm_dev
423 static void update_global_total_pages(struct ttm_device *ttm_dev, in update_global_total_pages() argument
427 struct xe_device *xe = ttm_to_xe_device(ttm_dev); in update_global_total_pages()
518 static int xe_ttm_tt_populate(struct ttm_device *ttm_dev, struct ttm_tt *tt, in xe_ttm_tt_populate() argument
533 err = ttm_tt_restore(ttm_dev, tt, ctx); in xe_ttm_tt_populate()
536 err = ttm_pool_alloc(&ttm_dev->pool, tt, ctx); in xe_ttm_tt_populate()
542 xe_ttm_tt_account_add(ttm_to_xe_device(ttm_dev), tt); in xe_ttm_tt_populate()
543 update_global_total_pages(ttm_dev, tt->num_pages); in xe_ttm_tt_populate()
548 static void xe_ttm_tt_unpopulate(struct ttm_device *ttm_dev, struct ttm_tt *tt) in xe_ttm_tt_unpopulate() argument
550 struct xe_device *xe = ttm_to_xe_device(ttm_dev); in xe_ttm_tt_unpopulate()
558 ttm_pool_free(&ttm_dev->pool, tt); in xe_ttm_tt_unpopulate()
560 update_global_total_pages(ttm_dev, -(long)tt->num_pages); in xe_ttm_tt_unpopulate()
563 static void xe_ttm_tt_destroy(struct ttm_device *ttm_dev, struct ttm_tt *tt) in xe_ttm_tt_destroy() argument