drm/intel: rename i915_gtt_view_is_*() helpers to intel_gtt_view_is_*()

Make the i915_gtt_view_is_*() helpers less i915 specific, and rename
them intel_gtt_view_is_*().

$ sed -i 's/i915_gtt_view_is_/intel_gtt_view_is_/g' -- $(git grep -l i915_gtt_view_is_)

Reviewed-by: Maarten Lankhorst <dev@lankhorst.se>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/8230339be1738a1f7c87047f2516dfa66b03d9aa.1790780340.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Jani Nikula 2026-09-30 17:59:58 +03:00
parent 042b855e19
commit fe05df7a54
2 changed files with 7 additions and 7 deletions

View File

@ -1289,7 +1289,7 @@ bool intel_plane_uses_fence(const struct intel_plane_state *plane_state)
return intel_plane_needs_fence(display) ||
(plane->fbc && !plane_state->no_fbc_reason &&
i915_gtt_view_is_normal(&plane_state->view.gtt));
intel_gtt_view_is_normal(&plane_state->view.gtt));
}
static int intel_fb_pitch(const struct intel_framebuffer *fb, int color_plane, unsigned int rotation)
@ -1511,7 +1511,7 @@ static u32 calc_plane_remap_info(const struct intel_framebuffer *fb, int color_p
plane_view_height_tiles(fb, color_plane, dims, y));
}
if (i915_gtt_view_is_rotated(&view->gtt)) {
if (intel_gtt_view_is_rotated(&view->gtt)) {
drm_WARN_ON(display->drm, remap_info->linear);
check_array_bounds(display, view->gtt.rotated.plane, color_plane);
@ -1536,7 +1536,7 @@ static u32 calc_plane_remap_info(const struct intel_framebuffer *fb, int color_p
/* rotate the tile dimensions to match the GTT view */
swap(tile_width, tile_height);
} else {
drm_WARN_ON(display->drm, !i915_gtt_view_is_remapped(&view->gtt));
drm_WARN_ON(display->drm, !intel_gtt_view_is_remapped(&view->gtt));
check_array_bounds(display, view->gtt.remapped.plane, color_plane);
@ -1638,7 +1638,7 @@ static void intel_fb_view_init(struct intel_display *display,
memset(view, 0, sizeof(*view));
view->gtt.type = view_type;
if (i915_gtt_view_is_remapped(&view->gtt) &&
if (intel_gtt_view_is_remapped(&view->gtt) &&
intel_fb_needs_pot_stride_remap(fb))
view->gtt.remapped.plane_alignment = SZ_2M / PAGE_SIZE;
}

View File

@ -56,17 +56,17 @@ struct i915_gtt_view {
};
};
static inline bool i915_gtt_view_is_normal(const struct i915_gtt_view *view)
static inline bool intel_gtt_view_is_normal(const struct i915_gtt_view *view)
{
return view->type == I915_GTT_VIEW_NORMAL;
}
static inline bool i915_gtt_view_is_remapped(const struct i915_gtt_view *view)
static inline bool intel_gtt_view_is_remapped(const struct i915_gtt_view *view)
{
return view->type == I915_GTT_VIEW_REMAPPED;
}
static inline bool i915_gtt_view_is_rotated(const struct i915_gtt_view *view)
static inline bool intel_gtt_view_is_rotated(const struct i915_gtt_view *view)
{
return view->type == I915_GTT_VIEW_ROTATED;
}