linux/drivers/media/platform
Jim Quinlan e0d072782c dma-mapping: introduce DMA range map, supplanting dma_pfn_offset
The new field 'dma_range_map' in struct device is used to facilitate the
use of single or multiple offsets between mapping regions of cpu addrs and
dma addrs.  It subsumes the role of "dev->dma_pfn_offset" which was only
capable of holding a single uniform offset and had no region bounds
checking.

The function of_dma_get_range() has been modified so that it takes a single
argument -- the device node -- and returns a map, NULL, or an error code.
The map is an array that holds the information regarding the DMA regions.
Each range entry contains the address offset, the cpu_start address, the
dma_start address, and the size of the region.

of_dma_configure() is the typical manner to set range offsets but there are
a number of ad hoc assignments to "dev->dma_pfn_offset" in the kernel
driver code.  These cases now invoke the function
dma_direct_set_offset(dev, cpu_addr, dma_addr, size).

Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
[hch: various interface cleanups]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Tested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
2020-09-17 18:43:56 +02:00
..
am437x media: use v4l2_rect_enclosed helper 2020-07-04 12:30:13 +02:00
atmel media: atmel: atmel-isc: rework component offsets 2020-07-19 07:55:39 +02:00
cadence media: Kconfig files: use select for V4L2 subdevs and MC 2020-04-14 10:29:05 +02:00
coda media: coda: jpeg: add NULL check after kmalloc 2020-07-04 11:56:37 +02:00
davinci media: davinci: vpif_capture: fix potential double free 2020-08-06 11:32:02 +02:00
exynos-gsc media: Add V4L2_TYPE_IS_CAPTURE helper 2020-07-19 08:13:24 +02:00
exynos4-is media: exynos4-is: Add missed check for pinctrl_lookup_state() 2020-07-04 12:44:12 +02:00
marvell-ccic media: cafe-driver: use generic power management 2020-08-06 11:26:42 +02:00
mtk-jpeg media: Add V4L2_TYPE_IS_CAPTURE helper 2020-07-19 08:13:24 +02:00
mtk-mdp media: mtk-mdp: Fix a refcounting bug on error in init 2020-08-06 11:27:45 +02:00
mtk-vcodec media: mtk-vpu: avoid unaligned access to DTCM buffer. 2020-03-12 16:25:33 +01:00
mtk-vpu media: mtk-vpu: load vpu firmware from the new location 2020-03-24 17:11:47 +01:00
omap media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
omap3isp media updates for v5.9-rc1 2020-08-07 13:00:53 -07:00
qcom media: camss: fix memory leaks on error handling paths in probe 2020-08-06 13:58:40 +02:00
rcar-vin media: rcar-csi2: Rename confirm_start() to phy_post_init() to match its usage 2020-07-04 12:43:00 +02:00
rockchip/rga media: rockchip: rga: Only set output CSC mode for RGB input 2020-07-04 12:44:59 +02:00
s3c-camif media: samsung: Rename Samsung and Exynos to lowercase 2020-07-04 12:41:12 +02:00
s5p-g2d media: s5p-g2d: Fix a memory leak in an error handling path in 'g2d_probe()' 2020-07-19 08:14:00 +02:00
s5p-jpeg media: use v4l2_rect_enclosed helper 2020-07-04 12:30:13 +02:00
s5p-mfc iommu/exynos: Use dev_iommu_priv_get/set() 2020-06-30 11:59:48 +02:00
sti media: Add V4L2_TYPE_IS_CAPTURE helper 2020-07-19 08:13:24 +02:00
stm32 media: move CEC platform drivers to a separate directory 2020-04-15 12:06:40 +02:00
sunxi dma-mapping: introduce DMA range map, supplanting dma_pfn_offset 2020-09-17 18:43:56 +02:00
ti-vpe media: ti-vpe: cal: Split CAMERARX handling to cal-camerarx.c 2020-07-19 10:40:43 +02:00
vsp1 media: vsp1: dl: Fix NULL pointer dereference on unbind 2020-07-04 12:02:02 +02:00
xilinx media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver 2020-06-23 13:11:46 +02:00
aspeed-video.c media: aspeed: add AST2600 support 2020-03-02 15:53:39 +01:00
fsl-viu.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
imx-pxp.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
imx-pxp.h media: imx-pxp: add i.MX Pixel Pipeline driver 2018-09-11 13:32:17 -04:00
Kconfig media: media: sh_veu: Remove driver 2020-05-14 14:34:38 +02:00
m2m-deinterlace.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
Makefile media: media: sh_veu: Remove driver 2020-05-14 14:34:38 +02:00
mx2_emmaprp.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
pxa_camera.c media: pxa_camera: remove an impossible condition 2020-07-04 12:43:19 +02:00
rcar-fcp.c media: platform: fcp: Set appropriate DMA parameters 2020-04-21 13:33:50 +02:00
rcar_drif.c media: rcar_drif: Do not print error in case of EPROBE_DEFER for dma channel 2020-03-02 16:09:04 +01:00
rcar_fdp1.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
rcar_jpu.c media: Add V4L2_TYPE_IS_CAPTURE helper 2020-07-19 08:13:24 +02:00
renesas-ceu.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
sh_vou.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
via-camera.c Power management updates for 5.7-rc1 2020-03-30 15:05:01 -07:00
via-camera.h media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
video-mux.c media: video-mux: Create media links in bound notifier 2020-05-18 14:20:56 +02:00