mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-09 13:11:03 +00:00
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
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| sun4i_backend.c | ||
| sun4i_backend.h | ||
| sun4i_crtc.c | ||
| sun4i_crtc.h | ||
| sun4i_dotclock.c | ||
| sun4i_dotclock.h | ||
| sun4i_drv.c | ||
| sun4i_drv.h | ||
| sun4i_framebuffer.c | ||
| sun4i_framebuffer.h | ||
| sun4i_frontend.c | ||
| sun4i_frontend.h | ||
| sun4i_hdmi_ddc_clk.c | ||
| sun4i_hdmi_enc.c | ||
| sun4i_hdmi_i2c.c | ||
| sun4i_hdmi_tmds_clk.c | ||
| sun4i_hdmi.h | ||
| sun4i_layer.c | ||
| sun4i_layer.h | ||
| sun4i_lvds.c | ||
| sun4i_lvds.h | ||
| sun4i_rgb.c | ||
| sun4i_rgb.h | ||
| sun4i_tcon.c | ||
| sun4i_tcon.h | ||
| sun4i_tv.c | ||
| sun6i_drc.c | ||
| sun6i_mipi_dsi.c | ||
| sun6i_mipi_dsi.h | ||
| sun8i_csc.c | ||
| sun8i_csc.h | ||
| sun8i_dw_hdmi.c | ||
| sun8i_dw_hdmi.h | ||
| sun8i_hdmi_phy_clk.c | ||
| sun8i_hdmi_phy.c | ||
| sun8i_mixer.c | ||
| sun8i_mixer.h | ||
| sun8i_tcon_top.c | ||
| sun8i_tcon_top.h | ||
| sun8i_ui_layer.c | ||
| sun8i_ui_layer.h | ||
| sun8i_ui_scaler.c | ||
| sun8i_ui_scaler.h | ||
| sun8i_vi_layer.c | ||
| sun8i_vi_layer.h | ||
| sun8i_vi_scaler.c | ||
| sun8i_vi_scaler.h | ||
| sunxi_engine.h | ||