linux/drivers/gpu/drm/meson
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 drm/meson: rename venc_cvbs to encoder_cvbs 2021-11-12 10:10:01 +01:00
meson_crtc.c
meson_crtc.h
meson_drv.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
meson_drv.h
meson_dw_hdmi.c drm/meson: encoder_hdmi: switch to bridge DRM_BRIDGE_ATTACH_NO_CONNECTOR 2021-11-12 10:10:01 +01:00
meson_dw_hdmi.h
meson_encoder_cvbs.c drm/meson: encoder_cvbs: Fix refcount leak in meson_encoder_cvbs_init 2022-06-07 14:25:16 +02:00
meson_encoder_cvbs.h drm/meson: rename venc_cvbs to encoder_cvbs 2021-11-12 10:10:01 +01:00
meson_encoder_hdmi.c drm/meson: encoder_hdmi: Fix refcount leak in meson_encoder_hdmi_init 2022-06-07 14:25:16 +02:00
meson_encoder_hdmi.h drm/meson: split out encoder from meson_dw_hdmi 2021-11-12 10:09:19 +01:00
meson_osd_afbcd.c drm/meson: osd_afbcd: Add an exit callback to struct meson_afbcd_ops 2022-01-03 12:28:25 +01:00
meson_osd_afbcd.h drm/meson: osd_afbcd: Add an exit callback to struct meson_afbcd_ops 2022-01-03 12:28:25 +01:00
meson_overlay.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
meson_overlay.h
meson_plane.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
meson_plane.h
meson_rdma.c
meson_rdma.h
meson_registers.h drm/meson: fix colour distortion from HDR set during vendor u-boot 2021-08-10 10:00:02 +02:00
meson_vclk.c
meson_vclk.h
meson_venc.c drm/meson: Fix few typo 2021-03-19 10:40:54 +01:00
meson_venc.h
meson_viu.c drm/meson: fix colour distortion from HDR set during vendor u-boot 2021-08-10 10:00:02 +02:00
meson_viu.h
meson_vpp.c
meson_vpp.h