OpenCloudOS-Kernel/drivers/gpu/drm/sun4i
Danilo Krummrich 8c30eecc67 drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr}
The field paddr of struct drm_gem_dma_object holds a DMA address, which
might actually be a physical address. However, depending on the platform,
it can also be a bus address or a virtual address managed by an IOMMU.

Hence, rename the field to dma_addr, which is more applicable.

In order to do this renaming the following coccinelle script was used:

```
	@@
	struct drm_gem_dma_object *gem;
	@@

	- gem->paddr
	+ gem->dma_addr

	@@
	struct drm_gem_dma_object gem;
	@@

	- gem.paddr
	+ gem.dma_addr

	@exists@
	typedef dma_addr_t;
	symbol paddr;
	@@

	dma_addr_t paddr;
	<...
	- paddr
	+ dma_addr
	...>

	@@
	symbol paddr;
	@@
	dma_addr_t
	- paddr
	+ dma_addr
	;

```

This patch is compile-time tested with:

```
	make ARCH={x86_64,arm,arm64} allyesconfig
	make ARCH={x86_64,arm,arm64} drivers/gpu/drm`
```

Acked-by: Sam Ravnborg <sam@ravnborg.org>
Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220802000405.949236-5-dakr@redhat.com
2022-08-03 18:32:27 +02:00
..
Kconfig drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
Makefile
sun4i_backend.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
sun4i_backend.h
sun4i_crtc.c sun4i/drm: engine: Add mode_set callback 2022-04-26 14:24:16 +02:00
sun4i_crtc.h
sun4i_dotclock.c
sun4i_dotclock.h
sun4i_drv.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
sun4i_drv.h
sun4i_framebuffer.c drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
sun4i_framebuffer.h
sun4i_frontend.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
sun4i_frontend.h drm/sun4i: frontend: Rework a bit the phase data 2020-10-26 11:43:30 +01:00
sun4i_hdmi.h drm/sun4i: hdmi: Replace drm_detect_hdmi_monitor() with is_hdmi 2022-04-22 11:51:52 +02:00
sun4i_hdmi_ddc_clk.c
sun4i_hdmi_enc.c drm: Remove linux/i2c.h from drm_crtc.h 2022-07-05 21:15:23 +03:00
sun4i_hdmi_i2c.c drm/sun4i: hdmi: Use more portable I/O helpers 2022-04-26 14:23:47 +02:00
sun4i_hdmi_tmds_clk.c
sun4i_layer.c drm: Remove unnecessary include statements of drm_plane_helper.h 2022-07-26 18:42:04 +02:00
sun4i_layer.h
sun4i_lvds.c drm/bridge: Centralize error message when bridge attach fails 2021-07-28 16:33:12 +03:00
sun4i_lvds.h
sun4i_rgb.c drm/bridge: Centralize error message when bridge attach fails 2021-07-28 16:33:12 +03:00
sun4i_rgb.h
sun4i_tcon.c drm: Remove linux/media-bus-format.h from drm_crtc.h 2022-07-05 21:15:13 +03:00
sun4i_tcon.h drm: Remove linux/fb.h from drm_crtc.h 2022-07-05 21:14:02 +03:00
sun4i_tv.c drm/sun4i: Make use of the helper function devm_platform_ioremap_resource() 2021-09-01 11:43:29 +02:00
sun6i_drc.c
sun6i_mipi_dsi.c drm/sun4i: dsi: delete unnecessary IS_ERR() checks 2022-04-29 16:26:49 +02:00
sun6i_mipi_dsi.h
sun8i_csc.c drm/sun4i: csc: Add support for the new MMIO layout 2022-04-26 14:25:15 +02:00
sun8i_csc.h drm/sun4i: csc: Add support for the new MMIO layout 2022-04-26 14:25:15 +02:00
sun8i_dw_hdmi.c drm/sun4i: dw-hdmi: Fix ddc-en GPIO consumer conflict 2022-06-16 09:48:44 +02:00
sun8i_dw_hdmi.h Linux 5.19-rc6 2022-07-13 10:54:56 +10:00
sun8i_hdmi_phy.c drm/sun4i: sun8i-hdmi-phy: Group PHY ops functions by generation 2022-06-16 09:27:46 +02:00
sun8i_hdmi_phy_clk.c
sun8i_mixer.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
sun8i_mixer.h drm/sun4i: csc: Add support for the new MMIO layout 2022-04-26 14:25:15 +02:00
sun8i_tcon_top.c drm/sun4i: Add support for D1 TCON TOP 2022-04-26 14:25:43 +02:00
sun8i_tcon_top.h
sun8i_ui_layer.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
sun8i_ui_layer.h drm/sun4i: Add alpha property for sun8i UI layer 2021-02-10 11:06:30 +01:00
sun8i_ui_scaler.c
sun8i_ui_scaler.h
sun8i_vi_layer.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
sun8i_vi_layer.h drm/sun4i: Add alpha property for sun8i and sun50i VI layer 2021-02-10 11:06:34 +01:00
sun8i_vi_scaler.c
sun8i_vi_scaler.h
sunxi_engine.h sun4i/drm: engine: Add mode_set callback 2022-04-26 14:24:16 +02:00