Lines Matching refs:bo

18 write_dpt_rotated(struct xe_bo *bo, struct iosys_map *map, u32 *dpt_ofs, u32 bo_ofs,
21 struct xe_device *xe = xe_bo_device(bo);
25 /* TODO: Maybe rewrite so we can traverse the bo addresses sequentially,
33 u64 pte = ggtt->pt_ops->pte_encode_bo(bo, src_idx * XE_PAGE_SIZE,
50 write_dpt_remapped(struct xe_bo *bo, struct iosys_map *map, u32 *dpt_ofs,
54 struct xe_device *xe = xe_bo_device(bo);
56 u64 (*pte_encode_bo)(struct xe_bo *bo, u64 bo_offset, u16 pat_index)
65 pte_encode_bo(bo, src_idx * XE_PAGE_SIZE,
87 struct xe_bo *bo = intel_fb_obj(&fb->base), *dpt;
88 u32 dpt_size, size = bo->ttm.base.size;
125 u64 pte = ggtt->pt_ops->pte_encode_bo(bo, x * XE_PAGE_SIZE,
135 write_dpt_remapped(bo, &dpt->vmap, &dpt_ofs,
147 write_dpt_rotated(bo, &dpt->vmap, &dpt_ofs,
161 write_ggtt_rotated(struct xe_bo *bo, struct xe_ggtt *ggtt, u32 *ggtt_ofs, u32 bo_ofs,
164 struct xe_device *xe = xe_bo_device(bo);
171 u64 pte = ggtt->pt_ops->pte_encode_bo(bo, src_idx * XE_PAGE_SIZE,
188 struct xe_bo *bo = intel_fb_obj(&fb->base);
203 if (xe_bo_is_vram(bo) && ggtt->flags & XE_GGTT_FLAGS_64K)
206 if (bo->ggtt_node.size && view->type == I915_GTT_VIEW_NORMAL) {
207 vma->node = bo->ggtt_node;
209 u32 x, size = bo->ttm.base.size;
217 u64 pte = ggtt->pt_ops->pte_encode_bo(bo, x,
237 write_ggtt_rotated(bo, ggtt, &ggtt_ofs,
258 struct xe_bo *bo = intel_fb_obj(&fb->base);
264 if (IS_DGFX(to_xe_device(bo->ttm.base.dev)) &&
266 !(bo->flags & XE_BO_FLAG_NEEDS_CPU_ACCESS)) {
285 ret = ttm_bo_reserve(&bo->ttm, false, false, NULL);
290 ret = xe_bo_migrate(bo, XE_PL_VRAM0);
292 ret = xe_bo_validate(bo, NULL, true);
294 ttm_bo_pin(&bo->ttm);
295 ttm_bo_unreserve(&bo->ttm);
299 vma->bo = bo;
310 ttm_bo_reserve(&bo->ttm, false, false, NULL);
311 ttm_bo_unpin(&bo->ttm);
312 ttm_bo_unreserve(&bo->ttm);
320 struct xe_device *xe = to_xe_device(vma->bo->ttm.base.dev);
325 else if (!drm_mm_node_allocated(&vma->bo->ggtt_node) ||
326 vma->bo->ggtt_node.start != vma->node.start)
329 ttm_bo_reserve(&vma->bo->ttm, false, false, NULL);
330 ttm_bo_unpin(&vma->bo->ttm);
331 ttm_bo_unreserve(&vma->bo->ttm);
355 struct xe_bo *bo = intel_fb_obj(fb);
359 drm_WARN_ON(bo->ttm.base.dev, !(bo->flags & XE_BO_FLAG_SCANOUT));