Home
last modified time | relevance | path

Searched refs:bman_res (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/gpu/drm/i915/
H A Di915_ttm_buddy_manager.c40 struct i915_ttm_buddy_resource *bman_res; in i915_ttm_buddy_man_alloc() local
51 bman_res = kzalloc_obj(*bman_res); in i915_ttm_buddy_man_alloc()
52 if (!bman_res) in i915_ttm_buddy_man_alloc()
55 ttm_resource_init(bo, place, &bman_res->base); in i915_ttm_buddy_man_alloc()
56 INIT_LIST_HEAD(&bman_res->blocks); in i915_ttm_buddy_man_alloc()
57 bman_res->mm = mm; in i915_ttm_buddy_man_alloc()
60 bman_res->flags |= DRM_BUDDY_TOPDOWN_ALLOCATION; in i915_ttm_buddy_man_alloc()
63 bman_res->flags |= DRM_BUDDY_CONTIGUOUS_ALLOCATION; in i915_ttm_buddy_man_alloc()
66 bman_res->flags |= DRM_BUDDY_RANGE_ALLOCATION; in i915_ttm_buddy_man_alloc()
68 GEM_BUG_ON(!bman_res->base.size); in i915_ttm_buddy_man_alloc()
[all …]
H A Di915_scatterlist.c167 struct i915_ttm_buddy_resource *bman_res = to_ttm_buddy_resource(res); in i915_rsgt_from_buddy_resource() local
170 struct drm_buddy *mm = bman_res->mm; in i915_rsgt_from_buddy_resource()
171 struct list_head *blocks = &bman_res->blocks; in i915_rsgt_from_buddy_resource()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_ttm.c648 struct i915_ttm_buddy_resource *bman_res = to_ttm_buddy_resource(res); in i915_ttm_resource_mappable() local
653 return bman_res->used_visible_size == PFN_UP(bman_res->base.size); in i915_ttm_resource_mappable()