Lines Matching full:view
66 const struct i915_gtt_view *view) in checked_vma_instance() argument
71 vma = i915_vma_instance(obj, vm, view); in checked_vma_instance()
88 if (i915_vma_compare(vma, vm, view)) { in checked_vma_instance()
591 struct i915_gtt_view view = { in igt_vma_rotate_remap() local
596 struct intel_remapped_plane_info *plane_info = view.remapped.plane; in igt_vma_rotate_remap()
605 plane_info[0].dst_stride = view.type == I915_GTT_VIEW_ROTATED ? in igt_vma_rotate_remap()
609 plane_info[1].dst_stride = view.type == I915_GTT_VIEW_ROTATED ? in igt_vma_rotate_remap()
619 vma = checked_vma_instance(obj, vm, &view); in igt_vma_rotate_remap()
631 expected_pages = remapped_size(view.type, &plane_info[0], &plane_info[1]); in igt_vma_rotate_remap()
633 if (view.type == I915_GTT_VIEW_ROTATED && in igt_vma_rotate_remap()
641 if (view.type == I915_GTT_VIEW_REMAPPED && in igt_vma_rotate_remap()
670 for (n = 0; n < ARRAY_SIZE(view.rotated.plane); n++) { in igt_vma_rotate_remap()
671 if (view.type == I915_GTT_VIEW_ROTATED) in igt_vma_rotate_remap()
672 sg = assert_rotated(obj, &view.rotated, n, sg); in igt_vma_rotate_remap()
674 sg = assert_remapped(obj, &view.remapped, n, sg); in igt_vma_rotate_remap()
677 view.type == I915_GTT_VIEW_ROTATED ? in igt_vma_rotate_remap()
744 struct i915_gtt_view *view, in assert_pin() argument
762 if (view && view->type != I915_GTT_VIEW_NORMAL) { in assert_pin()
763 if (memcmp(&vma->gtt_view, view, sizeof(*view))) { in assert_pin()
776 pr_err("Not the normal ggtt view! Found %d\n", in assert_pin()
821 struct i915_gtt_view view; in igt_vma_partial() local
823 view.type = I915_GTT_VIEW_PARTIAL; in igt_vma_partial()
824 view.partial.offset = offset; in igt_vma_partial()
825 view.partial.size = sz; in igt_vma_partial()
828 view.type = I915_GTT_VIEW_NORMAL; in igt_vma_partial()
830 vma = checked_vma_instance(obj, vm, &view); in igt_vma_partial()
840 if (!assert_pin(vma, &view, sz*PAGE_SIZE, p->name)) { in igt_vma_partial()
999 struct i915_gtt_view view = { in igt_vma_remapped_gtt() local
1003 struct intel_remapped_plane_info *plane_info = view.rotated.plane; in igt_vma_remapped_gtt()
1018 vma = i915_gem_object_ggtt_pin(obj, &view, 0, 0, PIN_MAPPABLE); in igt_vma_remapped_gtt()
1071 src_idx = rotated_index(&view.rotated, 0, x, y); in igt_vma_remapped_gtt()
1073 src_idx = remapped_index(&view.remapped, 0, x, y); in igt_vma_remapped_gtt()