Lines Matching refs:ttm_dev
459 static void update_global_total_pages(struct ttm_device *ttm_dev, in update_global_total_pages() argument
463 struct xe_device *xe = ttm_to_xe_device(ttm_dev); in update_global_total_pages()
553 static int xe_ttm_tt_populate(struct ttm_device *ttm_dev, struct ttm_tt *tt, in xe_ttm_tt_populate() argument
568 err = ttm_tt_restore(ttm_dev, tt, ctx); in xe_ttm_tt_populate()
571 err = ttm_pool_alloc(&ttm_dev->pool, tt, ctx); in xe_ttm_tt_populate()
577 xe_ttm_tt_account_add(ttm_to_xe_device(ttm_dev), tt); in xe_ttm_tt_populate()
578 update_global_total_pages(ttm_dev, tt->num_pages); in xe_ttm_tt_populate()
583 static void xe_ttm_tt_unpopulate(struct ttm_device *ttm_dev, struct ttm_tt *tt) in xe_ttm_tt_unpopulate() argument
585 struct xe_device *xe = ttm_to_xe_device(ttm_dev); in xe_ttm_tt_unpopulate()
593 ttm_pool_free(&ttm_dev->pool, tt); in xe_ttm_tt_unpopulate()
595 update_global_total_pages(ttm_dev, -(long)tt->num_pages); in xe_ttm_tt_unpopulate()
598 static void xe_ttm_tt_destroy(struct ttm_device *ttm_dev, struct ttm_tt *tt) in xe_ttm_tt_destroy() argument