drm/i915/gem: s/i915_gem_object_get_frontbuffer/i915_gem_object_frontbuffer_lookup/

The i915_gem_object_get_frontbuffer() name is rather confusing wrt.
intel_frontbuffer_get(). Rename to i915_gem_object_frontbuffer_lookup()
to make things less confusing.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251016185408.22735-11-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Ville Syrjälä
2025-10-16 21:54:08 +03:00
parent 965930962a
commit f85cd99e2c
4 changed files with 7 additions and 7 deletions

View File

@@ -478,7 +478,7 @@ void __i915_gem_object_flush_frontbuffer(struct drm_i915_gem_object *obj,
{
struct i915_frontbuffer *front;
front = i915_gem_object_get_frontbuffer(obj);
front = i915_gem_object_frontbuffer_lookup(obj);
if (front) {
intel_frontbuffer_flush(&front->base, origin);
i915_gem_object_frontbuffer_put(front);
@@ -490,7 +490,7 @@ void __i915_gem_object_invalidate_frontbuffer(struct drm_i915_gem_object *obj,
{
struct i915_frontbuffer *front;
front = i915_gem_object_get_frontbuffer(obj);
front = i915_gem_object_frontbuffer_lookup(obj);
if (front) {
intel_frontbuffer_invalidate(&front->base, origin);
i915_gem_object_frontbuffer_put(front);

View File

@@ -28,7 +28,7 @@ i915_gem_object_frontbuffer_get(struct drm_i915_gem_object *obj)
struct drm_i915_private *i915 = to_i915(obj->base.dev);
struct i915_frontbuffer *front, *cur;
front = i915_gem_object_get_frontbuffer(obj);
front = i915_gem_object_frontbuffer_lookup(obj);
if (front)
return front;

View File

@@ -46,8 +46,8 @@ void i915_gem_object_frontbuffer_ref(struct i915_frontbuffer *front);
void i915_gem_object_frontbuffer_put(struct i915_frontbuffer *front);
/**
* i915_gem_object_get_frontbuffer - Get the object's frontbuffer
* @obj: The object whose frontbuffer to get.
* i915_gem_object_frontbuffer_lookup - Look up the object's frontbuffer
* @obj: The object whose frontbuffer to look up.
*
* Get pointer to object's frontbuffer if such exists. Please note that RCU
* mechanism is used to handle e.g. ongoing removal of frontbuffer pointer.
@@ -55,7 +55,7 @@ void i915_gem_object_frontbuffer_put(struct i915_frontbuffer *front);
* Return: pointer to object's frontbuffer is such exists or NULL
*/
static inline struct i915_frontbuffer *
i915_gem_object_get_frontbuffer(const struct drm_i915_gem_object *obj)
i915_gem_object_frontbuffer_lookup(const struct drm_i915_gem_object *obj)
{
struct i915_frontbuffer *front;

View File

@@ -1992,7 +1992,7 @@ int _i915_vma_move_to_active(struct i915_vma *vma,
if (flags & EXEC_OBJECT_WRITE) {
struct i915_frontbuffer *front;
front = i915_gem_object_get_frontbuffer(obj);
front = i915_gem_object_frontbuffer_lookup(obj);
if (unlikely(front)) {
if (intel_frontbuffer_invalidate(&front->base, ORIGIN_CS))
i915_active_add_request(&front->write, rq);