Lines Matching refs:bo
52 struct radeon_bo *bo = container_of(mn, struct radeon_bo, notifier); in radeon_mn_invalidate() local
56 if (!bo->tbo.ttm || !radeon_ttm_tt_is_bound(bo->tbo.bdev, bo->tbo.ttm)) in radeon_mn_invalidate()
62 r = radeon_bo_reserve(bo, true); in radeon_mn_invalidate()
68 r = dma_resv_wait_timeout_rcu(bo->tbo.base.resv, true, false, in radeon_mn_invalidate()
73 radeon_ttm_placement_from_domain(bo, RADEON_GEM_DOMAIN_CPU); in radeon_mn_invalidate()
74 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_mn_invalidate()
78 radeon_bo_unreserve(bo); in radeon_mn_invalidate()
95 int radeon_mn_register(struct radeon_bo *bo, unsigned long addr) in radeon_mn_register() argument
99 ret = mmu_interval_notifier_insert(&bo->notifier, current->mm, addr, in radeon_mn_register()
100 radeon_bo_size(bo), &radeon_mn_ops); in radeon_mn_register()
110 mmu_interval_read_begin(&bo->notifier); in radeon_mn_register()
121 void radeon_mn_unregister(struct radeon_bo *bo) in radeon_mn_unregister() argument
123 if (!bo->notifier.mm) in radeon_mn_unregister()
125 mmu_interval_notifier_remove(&bo->notifier); in radeon_mn_unregister()
126 bo->notifier.mm = NULL; in radeon_mn_unregister()