drm/{i915, xe}/stolen: rename i915_stolen_fb to intel_stolen_node

Use a more generic name than one that refers to "i915" and "fb".

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/925fd07d3f2a6115c71984f5a40a06c9eb46a539.1758732183.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Jani Nikula
2025-09-24 19:43:30 +03:00
parent 996ad9cd3e
commit 3198609ecc
3 changed files with 7 additions and 7 deletions

View File

@@ -102,7 +102,7 @@ struct intel_fbc {
struct mutex lock;
unsigned int busy_bits;
struct i915_stolen_fb compressed_fb, compressed_llb;
struct intel_stolen_node compressed_fb, compressed_llb;
enum intel_fbc_id id;

View File

@@ -12,7 +12,7 @@ struct drm_i915_private;
struct drm_mm_node;
struct drm_i915_gem_object;
#define i915_stolen_fb drm_mm_node
#define intel_stolen_node drm_mm_node
int i915_gem_stolen_insert_node(struct drm_i915_private *i915,
struct drm_mm_node *node, u64 size,

View File

@@ -12,12 +12,12 @@
struct xe_bo;
struct i915_stolen_fb {
struct intel_stolen_node {
struct xe_bo *bo;
};
static inline int i915_gem_stolen_insert_node_in_range(struct xe_device *xe,
struct i915_stolen_fb *fb,
struct intel_stolen_node *fb,
u32 size, u32 align,
u32 start, u32 end)
{
@@ -47,7 +47,7 @@ static inline int i915_gem_stolen_insert_node_in_range(struct xe_device *xe,
}
static inline int i915_gem_stolen_insert_node(struct xe_device *xe,
struct i915_stolen_fb *fb,
struct intel_stolen_node *fb,
u32 size, u32 align)
{
/* Not used on xe */
@@ -56,7 +56,7 @@ static inline int i915_gem_stolen_insert_node(struct xe_device *xe,
}
static inline void i915_gem_stolen_remove_node(struct xe_device *xe,
struct i915_stolen_fb *fb)
struct intel_stolen_node *fb)
{
xe_bo_unpin_map_no_vm(fb->bo);
fb->bo = NULL;
@@ -65,7 +65,7 @@ static inline void i915_gem_stolen_remove_node(struct xe_device *xe,
#define i915_gem_stolen_initialized(xe) (!!ttm_manager_type(&(xe)->ttm, XE_PL_STOLEN))
#define i915_gem_stolen_node_allocated(fb) (!!((fb)->bo))
static inline u32 i915_gem_stolen_node_offset(struct i915_stolen_fb *fb)
static inline u32 i915_gem_stolen_node_offset(struct intel_stolen_node *fb)
{
struct xe_res_cursor res;