Lines Matching refs:mgabo
140 struct mgag200_bo *mgabo = mgag200_bo(bo); in mgag200_bo_evict_flags() local
145 mgag200_ttm_placement(mgabo, TTM_PL_FLAG_SYSTEM); in mgag200_bo_evict_flags()
146 *pl = mgabo->placement; in mgag200_bo_evict_flags()
151 struct mgag200_bo *mgabo = mgag200_bo(bo); in mgag200_bo_verify_access() local
153 return drm_vma_node_verify_access(&mgabo->gem.vma_node, filp); in mgag200_bo_verify_access()
318 struct mgag200_bo *mgabo; in mgag200_bo_create() local
322 mgabo = kzalloc(sizeof(struct mgag200_bo), GFP_KERNEL); in mgag200_bo_create()
323 if (!mgabo) in mgag200_bo_create()
326 ret = drm_gem_object_init(dev, &mgabo->gem, size); in mgag200_bo_create()
328 kfree(mgabo); in mgag200_bo_create()
332 mgabo->bo.bdev = &mdev->ttm.bdev; in mgag200_bo_create()
334 mgag200_ttm_placement(mgabo, TTM_PL_FLAG_VRAM | TTM_PL_FLAG_SYSTEM); in mgag200_bo_create()
339 ret = ttm_bo_init(&mdev->ttm.bdev, &mgabo->bo, size, in mgag200_bo_create()
340 ttm_bo_type_device, &mgabo->placement, in mgag200_bo_create()
346 *pmgabo = mgabo; in mgag200_bo_create()