linux/drivers/gpu/drm/mediatek
Lucas De Marchi 7938f42181 dma-buf-map: Rename to iosys-map
Rename struct dma_buf_map to struct iosys_map and corresponding APIs.
Over time dma-buf-map grew up to more functionality than the one used by
dma-buf: in fact it's just a shim layer to abstract system memory, that
can be accessed via regular load and store, from IO memory that needs to
be acessed via arch helpers.

The idea is to extend this API so it can fulfill other needs, internal
to a single driver. Example: in the i915 driver it's desired to share
the implementation for integrated graphics, which uses mostly system
memory, with discrete graphics, which may need to access IO memory.

The conversion was mostly done with the following semantic patch:

	@r1@
	@@
	- struct dma_buf_map
	+ struct iosys_map

	@r2@
	@@
	(
	- DMA_BUF_MAP_INIT_VADDR
	+ IOSYS_MAP_INIT_VADDR
	|
	- dma_buf_map_set_vaddr
	+ iosys_map_set_vaddr
	|
	- dma_buf_map_set_vaddr_iomem
	+ iosys_map_set_vaddr_iomem
	|
	- dma_buf_map_is_equal
	+ iosys_map_is_equal
	|
	- dma_buf_map_is_null
	+ iosys_map_is_null
	|
	- dma_buf_map_is_set
	+ iosys_map_is_set
	|
	- dma_buf_map_clear
	+ iosys_map_clear
	|
	- dma_buf_map_memcpy_to
	+ iosys_map_memcpy_to
	|
	- dma_buf_map_incr
	+ iosys_map_incr
	)

	@@
	@@
	- #include <linux/dma-buf-map.h>
	+ #include <linux/iosys-map.h>

Then some files had their includes adjusted and some comments were
update to remove mentions to dma-buf-map.

Since this is not specific to dma-buf anymore, move the documentation to
the "Bus-Independent Device Accesses" section.

v2:
  - Squash patches

v3:
  - Fix wrong removal of dma-buf.h from MAINTAINERS
  - Move documentation from dma-buf.rst to device-io.rst

v4:
  - Change documentation title and level

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220204170541.829227-1-lucas.demarchi@intel.com
2022-02-07 16:35:35 -08:00
..
Kconfig
Makefile drm/mediatek: Separate aal sub driver 2021-07-25 08:25:45 +08:00
mtk_cec.c
mtk_cec.h
mtk_disp_aal.c drm for v5.15-rc1 2021-09-01 11:26:46 -07:00
mtk_disp_ccorr.c drm/mediatek: Add support for Mediatek SoC MT8192 2021-11-16 07:29:48 +08:00
mtk_disp_color.c drm/mediatek: Add component_del in OVL and COLOR remove function 2021-08-12 07:00:50 +08:00
mtk_disp_drv.h drm/mediatek: Separate aal sub driver 2021-07-25 08:25:45 +08:00
mtk_disp_gamma.c drm/mediatek/mtk_disp_gamma: Strip and demote non-conformant kernel-doc header 2021-06-03 13:28:39 +02:00
mtk_disp_ovl.c drm/mediatek: Add support for Mediatek SoC MT8192 2021-11-16 07:29:48 +08:00
mtk_disp_rdma.c drm/mediatek: Add support for Mediatek SoC MT8192 2021-11-16 07:29:48 +08:00
mtk_dpi_regs.h
mtk_dpi.c drm for v5.15-rc1 2021-09-01 11:26:46 -07:00
mtk_drm_crtc.c drm/mediatek: Clear pending flag when cmdq packet is done 2021-11-18 07:37:12 +08:00
mtk_drm_crtc.h
mtk_drm_ddp_comp.c drm/mediatek: Adjust to the alphabetic order for mediatek-drm 2021-12-03 07:46:39 +08:00
mtk_drm_ddp_comp.h drm/mediatek: Adjust to the alphabetic order for mediatek-drm 2021-12-03 07:46:39 +08:00
mtk_drm_drv.c drm/mediatek: Adjust to the alphabetic order for mediatek-drm 2021-12-03 07:46:39 +08:00
mtk_drm_drv.h drm/mediatek: Separate aal sub driver 2021-07-25 08:25:45 +08:00
mtk_drm_gem.c dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
mtk_drm_gem.h dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
mtk_drm_plane.c drm/mediatek: Set the default value of rotation to DRM_MODE_ROTATE_0 2021-12-14 07:17:50 +08:00
mtk_drm_plane.h
mtk_dsi.c drm/mediatek: mtk_dsi: Reset the dsi0 hardware 2021-10-08 15:15:26 +02:00
mtk_hdmi_ddc.c
mtk_hdmi_regs.h
mtk_hdmi.c drm/mediatek: hdmi: Perform NULL pointer check for mtk_hdmi_conf 2021-12-13 21:01:11 +08:00
mtk_hdmi.h