linux/drivers/media/pci/cx18
Christophe JAILLET 887069f424 media: switch from 'pci_' to 'dma_' API
The wrappers in include/linux/pci-dma-compat.h should go away.

The patch has been generated with the coccinelle script below.

It has been compile tested.

@@
@@
-    PCI_DMA_BIDIRECTIONAL
+    DMA_BIDIRECTIONAL

@@
@@
-    PCI_DMA_TODEVICE
+    DMA_TO_DEVICE

@@
@@
-    PCI_DMA_FROMDEVICE
+    DMA_FROM_DEVICE

@@
@@
-    PCI_DMA_NONE
+    DMA_NONE

@@
expression e1, e2, e3;
@@
-    pci_alloc_consistent(e1, e2, e3)
+    dma_alloc_coherent(&e1->dev, e2, e3, GFP_)

@@
expression e1, e2, e3;
@@
-    pci_zalloc_consistent(e1, e2, e3)
+    dma_alloc_coherent(&e1->dev, e2, e3, GFP_)

@@
expression e1, e2, e3, e4;
@@
-    pci_free_consistent(e1, e2, e3, e4)
+    dma_free_coherent(&e1->dev, e2, e3, e4)

@@
expression e1, e2, e3, e4;
@@
-    pci_map_single(e1, e2, e3, e4)
+    dma_map_single(&e1->dev, e2, e3, e4)

@@
expression e1, e2, e3, e4;
@@
-    pci_unmap_single(e1, e2, e3, e4)
+    dma_unmap_single(&e1->dev, e2, e3, e4)

@@
expression e1, e2, e3, e4, e5;
@@
-    pci_map_page(e1, e2, e3, e4, e5)
+    dma_map_page(&e1->dev, e2, e3, e4, e5)

@@
expression e1, e2, e3, e4;
@@
-    pci_unmap_page(e1, e2, e3, e4)
+    dma_unmap_page(&e1->dev, e2, e3, e4)

@@
expression e1, e2, e3, e4;
@@
-    pci_map_sg(e1, e2, e3, e4)
+    dma_map_sg(&e1->dev, e2, e3, e4)

@@
expression e1, e2, e3, e4;
@@
-    pci_unmap_sg(e1, e2, e3, e4)
+    dma_unmap_sg(&e1->dev, e2, e3, e4)

@@
expression e1, e2, e3, e4;
@@
-    pci_dma_sync_single_for_cpu(e1, e2, e3, e4)
+    dma_sync_single_for_cpu(&e1->dev, e2, e3, e4)

@@
expression e1, e2, e3, e4;
@@
-    pci_dma_sync_single_for_device(e1, e2, e3, e4)
+    dma_sync_single_for_device(&e1->dev, e2, e3, e4)

@@
expression e1, e2, e3, e4;
@@
-    pci_dma_sync_sg_for_cpu(e1, e2, e3, e4)
+    dma_sync_sg_for_cpu(&e1->dev, e2, e3, e4)

@@
expression e1, e2, e3, e4;
@@
-    pci_dma_sync_sg_for_device(e1, e2, e3, e4)
+    dma_sync_sg_for_device(&e1->dev, e2, e3, e4)

@@
expression e1, e2;
@@
-    pci_dma_mapping_error(e1, e2)
+    dma_mapping_error(&e1->dev, e2)

@@
expression e1, e2;
@@
-    pci_set_dma_mask(e1, e2)
+    dma_set_mask(&e1->dev, e2)

@@
expression e1, e2;
@@
-    pci_set_consistent_dma_mask(e1, e2)
+    dma_set_coherent_mask(&e1->dev, e2)

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Akihiro Tsukada <tskd08@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-09-30 10:07:55 +02:00
..
cx18-alsa-main.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
cx18-alsa-pcm.c media: cx18: Drop superfluous ioctl PCM ops 2019-12-13 09:33:14 +01:00
cx18-alsa-pcm.h
cx18-alsa.h
cx18-audio.c
cx18-audio.h
cx18-av-audio.c media: drivers: media: pci: cx18: Spelling fix of minimze to minimize in the file cx18-av-audio.c 2021-03-11 11:59:42 +01:00
cx18-av-core.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
cx18-av-core.h
cx18-av-firmware.c
cx18-av-vbi.c
cx18-cards.c media: cx18: Replace http links with https ones 2020-07-19 14:00:32 +02:00
cx18-cards.h
cx18-controls.c
cx18-controls.h
cx18-driver.c media: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
cx18-driver.h
cx18-dvb.c
cx18-dvb.h
cx18-fileops.c
cx18-fileops.h
cx18-firmware.c media: drivers/media/pci/cx18: Fix a spelling minimze to minimize in the file cx18-firmware.c 2021-03-11 11:59:42 +01:00
cx18-firmware.h
cx18-gpio.c
cx18-gpio.h
cx18-i2c.c media: pci: cx18: convert to i2c_new_scanned_device 2020-01-08 14:32:28 +01:00
cx18-i2c.h
cx18-io.c
cx18-io.h
cx18-ioctl.c media: Rename V4L2_PIX_FMT_HM12 to V4L2_PIX_FMT_NV12_16L16 2021-09-30 10:07:39 +02:00
cx18-ioctl.h
cx18-irq.c
cx18-irq.h
cx18-mailbox.c
cx18-mailbox.h
cx18-queue.c media: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
cx18-queue.h
cx18-scb.c
cx18-scb.h
cx18-streams.c media: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
cx18-streams.h
cx18-vbi.c
cx18-vbi.h
cx18-version.h
cx18-video.c
cx18-video.h
cx23418.h
Kconfig Revert "media: Kconfig: better support hybrid TV devices" 2020-04-14 11:00:30 +02:00
Makefile