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()
554 static int xe_ttm_tt_populate(struct ttm_device *ttm_dev, struct ttm_tt *tt, in xe_ttm_tt_populate() argument
569 err = ttm_tt_restore(ttm_dev, tt, ctx); in xe_ttm_tt_populate()
572 err = ttm_pool_alloc(&ttm_dev->pool, tt, ctx); in xe_ttm_tt_populate()
578 xe_ttm_tt_account_add(ttm_to_xe_device(ttm_dev), tt); in xe_ttm_tt_populate()
579 update_global_total_pages(ttm_dev, tt->num_pages); in xe_ttm_tt_populate()
584 static void xe_ttm_tt_unpopulate(struct ttm_device *ttm_dev, struct ttm_tt *tt) in xe_ttm_tt_unpopulate() argument
586 struct xe_device *xe = ttm_to_xe_device(ttm_dev); in xe_ttm_tt_unpopulate()
594 ttm_pool_free(&ttm_dev->pool, tt); in xe_ttm_tt_unpopulate()
596 update_global_total_pages(ttm_dev, -(long)tt->num_pages); in xe_ttm_tt_unpopulate()
599 static void xe_ttm_tt_destroy(struct ttm_device *ttm_dev, struct ttm_tt *tt) in xe_ttm_tt_destroy() argument