Commit 744d35d3 authored by Thomas Zimmermann's avatar Thomas Zimmermann

fbdev: Align deferred I/O with naming of helpers

Deferred-I/O generator macros generate callbacks for struct fb_ops
that operate on memory ranges in I/O address space or system address
space. Rename the macros to use the _IOMEM_ and _SYSMEM_ infixes of
their underlying helpers. Adapt all users. No functional changes.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarHelge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230729193157.15446-5-tzimmermann@suse.de
parent b21f187f
......@@ -34,7 +34,7 @@ static int drm_fbdev_generic_fb_release(struct fb_info *info, int user)
return 0;
}
FB_GEN_DEFAULT_DEFERRED_SYS_OPS(drm_fbdev_generic,
FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(drm_fbdev_generic,
drm_fb_helper_damage_range,
drm_fb_helper_damage_area);
......
......@@ -85,7 +85,7 @@ static void intel_fbdev_invalidate(struct intel_fbdev *ifbdev)
intel_frontbuffer_invalidate(to_frontbuffer(ifbdev), ORIGIN_CPU);
}
FB_GEN_DEFAULT_DEFERRED_IO_OPS(intel_fbdev,
FB_GEN_DEFAULT_DEFERRED_IOMEM_OPS(intel_fbdev,
drm_fb_helper_damage_range,
drm_fb_helper_damage_area)
......
......@@ -25,7 +25,7 @@ module_param(fbdev, bool, 0600);
* fbdev funcs, to implement legacy fbdev interface on top of drm driver
*/
FB_GEN_DEFAULT_DEFERRED_SYS_OPS(msm_fbdev,
FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(msm_fbdev,
drm_fb_helper_damage_range,
drm_fb_helper_damage_area)
......
......@@ -985,7 +985,7 @@ static void broadsheetfb_defio_damage_area(struct fb_info *info, u32 x, u32 y,
broadsheetfb_dpy_update(par);
}
FB_GEN_DEFAULT_DEFERRED_SYS_OPS(broadsheetfb,
FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(broadsheetfb,
broadsheetfb_defio_damage_range,
broadsheetfb_defio_damage_area)
......
......@@ -135,7 +135,7 @@ static void hecubafb_defio_damage_area(struct fb_info *info, u32 x, u32 y,
hecubafb_dpy_update(par);
}
FB_GEN_DEFAULT_DEFERRED_SYS_OPS(hecubafb,
FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(hecubafb,
hecubafb_defio_damage_range,
hecubafb_defio_damage_area)
......
......@@ -498,7 +498,7 @@ static void metronomefb_defio_damage_area(struct fb_info *info, u32 x, u32 y,
metronomefb_dpy_update(par);
}
FB_GEN_DEFAULT_DEFERRED_SYS_OPS(metronomefb,
FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(metronomefb,
metronomefb_defio_damage_range,
metronomefb_defio_damage_area)
......
......@@ -317,7 +317,7 @@ static void ssd1307fb_defio_damage_area(struct fb_info *info, u32 x, u32 y,
ssd1307fb_update_rect(par, x, y, width, height);
}
FB_GEN_DEFAULT_DEFERRED_SYS_OPS(ssd1307fb,
FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(ssd1307fb,
ssd1307fb_defio_damage_range,
ssd1307fb_defio_damage_area)
......
......@@ -306,7 +306,7 @@ static void xenfb_defio_damage_area(struct fb_info *info, u32 x, u32 y,
xenfb_refresh(xenfb_info, x, y, width, height);
}
FB_GEN_DEFAULT_DEFERRED_SYS_OPS(xenfb,
FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(xenfb,
xenfb_defio_damage_range,
xenfb_defio_damage_area)
......
......@@ -682,11 +682,11 @@ extern int fb_deferred_io_fsync(struct file *file, loff_t start,
__damage_area(info, image->dx, image->dy, image->width, image->height); \
}
#define FB_GEN_DEFAULT_DEFERRED_IO_OPS(__prefix, __damage_range, __damage_area) \
#define FB_GEN_DEFAULT_DEFERRED_IOMEM_OPS(__prefix, __damage_range, __damage_area) \
__FB_GEN_DEFAULT_DEFERRED_OPS_RDWR(__prefix, __damage_range, io) \
__FB_GEN_DEFAULT_DEFERRED_OPS_DRAW(__prefix, __damage_area, cfb)
#define FB_GEN_DEFAULT_DEFERRED_SYS_OPS(__prefix, __damage_range, __damage_area) \
#define FB_GEN_DEFAULT_DEFERRED_SYSMEM_OPS(__prefix, __damage_range, __damage_area) \
__FB_GEN_DEFAULT_DEFERRED_OPS_RDWR(__prefix, __damage_range, sys) \
__FB_GEN_DEFAULT_DEFERRED_OPS_DRAW(__prefix, __damage_area, sys)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment