diff options
| author | Jani Nikula <jani.nikula@intel.com> | 2026-09-30 17:59:59 +0300 |
|---|---|---|
| committer | Jani Nikula <jani.nikula@intel.com> | 2026-10-01 12:26:54 +0300 |
| commit | 468a755f203ea2f364452f7f1e009ffe8484a6a3 (patch) | |
| tree | ff18985995a66c4f04e132579f91651baaaf38b9 /include/drm | |
| parent | fe05df7a540aaf940d294cad137b0ae8bb578387 (diff) | |
drm/intel: rename i915_gtt_view* struct/enum to intel_gtt_view*
Make enum i915_gtt_view_type and struct i915_gtt_view less i915
specific, and rename them enum intel_gtt_view_type and struct
intel_gtt_view, respectively.
$ sed -i 's/i915_gtt_view/intel_gtt_view/g' -- $(git grep -l i915_gtt_view)
Reviewed-by: Maarten Lankhorst <dev@lankhorst.se>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/4ca4ad3d11b0f8167a54d69d6eef0c8a78218c53.1790780340.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'include/drm')
| -rw-r--r-- | include/drm/intel/display_parent_interface.h | 8 | ||||
| -rw-r--r-- | include/drm/intel/gtt_view_types.h | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/include/drm/intel/display_parent_interface.h b/include/drm/intel/display_parent_interface.h index f36134e89cb6..464fb588cb60 100644 --- a/include/drm/intel/display_parent_interface.h +++ b/include/drm/intel/display_parent_interface.h @@ -16,11 +16,11 @@ struct drm_mode_fb_cmd2; struct drm_plane_state; struct drm_scanout_buffer; struct fb_info; -struct i915_gtt_view; struct i915_vma; struct intel_dpt; struct intel_dsb_buffer; struct intel_frontbuffer; +struct intel_gtt_view; struct intel_hdcp_gsc_context; struct intel_initial_plane_config; struct intel_panic; @@ -31,7 +31,7 @@ struct seq_file; struct vm_area_struct; struct intel_fb_pin_params { - const struct i915_gtt_view *view; + const struct intel_gtt_view *view; unsigned int alignment; unsigned int phys_alignment; unsigned int vtd_guard; @@ -101,9 +101,9 @@ struct intel_display_fb_pin_interface { struct i915_vma *ggtt_vma); struct i915_vma *(*reuse_vma)(struct i915_vma *old_ggtt_vma, struct drm_gem_object *old_obj, - const struct i915_gtt_view *old_view, + const struct intel_gtt_view *old_view, struct drm_gem_object *new_obj, - const struct i915_gtt_view *new_view, + const struct intel_gtt_view *new_view, u32 *out_offset); void (*get_map)(struct i915_vma *vma, struct iosys_map *map); }; diff --git a/include/drm/intel/gtt_view_types.h b/include/drm/intel/gtt_view_types.h index 61d2289a8921..3ad2a1026db1 100644 --- a/include/drm/intel/gtt_view_types.h +++ b/include/drm/intel/gtt_view_types.h @@ -39,15 +39,15 @@ struct intel_remapped_info { u32 plane_alignment; } __packed; -enum i915_gtt_view_type { +enum intel_gtt_view_type { I915_GTT_VIEW_NORMAL = 0, I915_GTT_VIEW_ROTATED = sizeof(struct intel_rotation_info), I915_GTT_VIEW_PARTIAL = sizeof(struct intel_partial_info), I915_GTT_VIEW_REMAPPED = sizeof(struct intel_remapped_info), }; -struct i915_gtt_view { - enum i915_gtt_view_type type; +struct intel_gtt_view { + enum intel_gtt_view_type type; union { /* Members need to contain no holes/padding */ struct intel_partial_info partial; @@ -56,17 +56,17 @@ struct i915_gtt_view { }; }; -static inline bool intel_gtt_view_is_normal(const struct i915_gtt_view *view) +static inline bool intel_gtt_view_is_normal(const struct intel_gtt_view *view) { return view->type == I915_GTT_VIEW_NORMAL; } -static inline bool intel_gtt_view_is_remapped(const struct i915_gtt_view *view) +static inline bool intel_gtt_view_is_remapped(const struct intel_gtt_view *view) { return view->type == I915_GTT_VIEW_REMAPPED; } -static inline bool intel_gtt_view_is_rotated(const struct i915_gtt_view *view) +static inline bool intel_gtt_view_is_rotated(const struct intel_gtt_view *view) { return view->type == I915_GTT_VIEW_ROTATED; } |
