Lines Matching refs:ast
50 static int mgag200_ttm_global_init(struct mga_device *ast) in mgag200_ttm_global_init() argument
55 global_ref = &ast->ttm.mem_global_ref; in mgag200_ttm_global_init()
67 ast->ttm.bo_global_ref.mem_glob = in mgag200_ttm_global_init()
68 ast->ttm.mem_global_ref.object; in mgag200_ttm_global_init()
69 global_ref = &ast->ttm.bo_global_ref.ref; in mgag200_ttm_global_init()
77 drm_global_item_unref(&ast->ttm.mem_global_ref); in mgag200_ttm_global_init()
84 mgag200_ttm_global_release(struct mga_device *ast) in mgag200_ttm_global_release() argument
86 if (ast->ttm.mem_global_ref.release == NULL) in mgag200_ttm_global_release()
89 drm_global_item_unref(&ast->ttm.bo_global_ref.ref); in mgag200_ttm_global_release()
90 drm_global_item_unref(&ast->ttm.mem_global_ref); in mgag200_ttm_global_release()
91 ast->ttm.mem_global_ref.release = NULL; in mgag200_ttm_global_release()