b048457c54
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> Link: https://lore.kernel.org/r/b617f284e2ab8b6b48fff150eba1638641646edd.1629640046.git.christophe.jaillet@wanadoo.fr Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> |
||
---|---|---|
.. | ||
alcor.c | ||
atmel-mci.c | ||
au1xmmc.c | ||
bcm2835.c | ||
cavium-octeon.c | ||
cavium-thunderx.c | ||
cavium.c | ||
cavium.h | ||
cb710-mmc.c | ||
cb710-mmc.h | ||
cqhci-core.c | ||
cqhci-crypto.c | ||
cqhci-crypto.h | ||
cqhci.h | ||
davinci_mmc.c | ||
dw_mmc-bluefield.c | ||
dw_mmc-exynos.c | ||
dw_mmc-exynos.h | ||
dw_mmc-hi3798cv200.c | ||
dw_mmc-k3.c | ||
dw_mmc-pci.c | ||
dw_mmc-pltfm.c | ||
dw_mmc-pltfm.h | ||
dw_mmc-rockchip.c | ||
dw_mmc.c | ||
dw_mmc.h | ||
jz4740_mmc.c | ||
Kconfig | ||
Makefile | ||
meson-gx-mmc.c | ||
meson-mx-sdhc-clkc.c | ||
meson-mx-sdhc-mmc.c | ||
meson-mx-sdhc.h | ||
meson-mx-sdio.c | ||
mmc_hsq.c | ||
mmc_hsq.h | ||
mmc_spi.c | ||
mmci_qcom_dml.c | ||
mmci_stm32_sdmmc.c | ||
mmci.c | ||
mmci.h | ||
moxart-mmc.c | ||
mtk-sd.c | ||
mvsdio.c | ||
mvsdio.h | ||
mxcmmc.c | ||
mxs-mmc.c | ||
of_mmc_spi.c | ||
omap_hsmmc.c | ||
omap.c | ||
owl-mmc.c | ||
pxamci.c | ||
pxamci.h | ||
renesas_sdhi_core.c | ||
renesas_sdhi_internal_dmac.c | ||
renesas_sdhi_sys_dmac.c | ||
renesas_sdhi.h | ||
rtsx_pci_sdmmc.c | ||
rtsx_usb_sdmmc.c | ||
s3cmci.c | ||
s3cmci.h | ||
sdhci_am654.c | ||
sdhci_f_sdh30.c | ||
sdhci_f_sdh30.h | ||
sdhci-acpi.c | ||
sdhci-bcm-kona.c | ||
sdhci-brcmstb.c | ||
sdhci-cadence.c | ||
sdhci-cns3xxx.c | ||
sdhci-dove.c | ||
sdhci-esdhc-imx.c | ||
sdhci-esdhc-mcf.c | ||
sdhci-esdhc.h | ||
sdhci-iproc.c | ||
sdhci-milbeaut.c | ||
sdhci-msm.c | ||
sdhci-of-arasan.c | ||
sdhci-of-aspeed-test.c | ||
sdhci-of-aspeed.c | ||
sdhci-of-at91.c | ||
sdhci-of-dwcmshc.c | ||
sdhci-of-esdhc.c | ||
sdhci-of-hlwd.c | ||
sdhci-of-sparx5.c | ||
sdhci-omap.c | ||
sdhci-pci-arasan.c | ||
sdhci-pci-core.c | ||
sdhci-pci-data.c | ||
sdhci-pci-dwc-mshc.c | ||
sdhci-pci-gli.c | ||
sdhci-pci-o2micro.c | ||
sdhci-pci.h | ||
sdhci-pic32.c | ||
sdhci-pltfm.c | ||
sdhci-pltfm.h | ||
sdhci-pxav2.c | ||
sdhci-pxav3.c | ||
sdhci-s3c.c | ||
sdhci-spear.c | ||
sdhci-sprd.c | ||
sdhci-st.c | ||
sdhci-tegra.c | ||
sdhci-xenon-phy.c | ||
sdhci-xenon.c | ||
sdhci-xenon.h | ||
sdhci.c | ||
sdhci.h | ||
sdricoh_cs.c | ||
sh_mmcif.c | ||
sunxi-mmc.c | ||
tifm_sd.c | ||
tmio_mmc_core.c | ||
tmio_mmc.c | ||
tmio_mmc.h | ||
toshsd.c | ||
toshsd.h | ||
uniphier-sd.c | ||
usdhi6rol0.c | ||
ushc.c | ||
via-sdmmc.c | ||
vub300.c | ||
wbsd.c | ||
wbsd.h | ||
wmt-sdmmc.c |