dma-mapping: use unsigned long for dma_attrs
Subsystems (50)
[email protected]
maintainerPATCH 5/18 dma-mapping: use unsigned long for dma_attrs
From: Krzysztof Kozlowski <[email protected]>
Subject: dma-mapping: use unsigned long for dma_attrs
The dma-mapping core and the implementations do not change the DMA attributes passed by pointer. Thus the pointer can point to const data. However the attributes do not have to be a bitfield. Instead unsigned long will do fine:
1. This is just simpler. Both in terms of reading the code and setting attributes. Instead of initializing local attributes on the stack and passing pointer to it to dma_set_attr(), just set the bits.
2. It brings safeness and checking for const correctness because the attributes are passed by value.
Semantic patches for this change (at least most of them):
===
virtual patch
virtual context
@r@
identifier f, attrs;
@@
f(...,
- struct dma_attrs *attrs
+ unsigned long attrs
, ...)
{
...
}
@@
identifier r.f;
@@
f(...,
- NULL
+ 0
)
===
// Options: --all-includes
virtual patch
virtual context
@r@
identifier f, attrs;
type t;
@@
t f(..., struct dma_attrs *attrs);
@@
identifier r.f;
@@
f(...,
- NULL
+ 0
)
===
---
Documentation/DMA-API.txt | 33 +- Documentation/DMA-attributes.txt | 2 arch/alpha/include/asm/dma-mapping.h | 2 arch/alpha/kernel/pci-noop.c | 2 arch/alpha/kernel/pci_iommu.c | 12 arch/arc/mm/dma.c | 12 arch/arm/common/dmabounce.c | 4 arch/arm/include/asm/dma-mapping.h | 13 - arch/arm/include/asm/xen/page-coherent.h | 16 - arch/arm/mm/dma-mapping.c | 129 ++++------ arch/arm/xen/mm.c | 8 arch/arm64/mm/dma-mapping.c | 66 ++--- arch/avr32/mm/dma-coherent.c | 12 arch/blackfin/kernel/dma-mapping.c | 8 arch/c6x/include/asm/dma-mapping.h | 4 arch/c6x/kernel/dma.c | 9 arch/c6x/mm/dma-coherent.c | 4 arch/cris/arch-v32/drivers/pci/dma.c | 9 arch/frv/mb93090-mb00/pci-dma-nommu.c | 8 arch/frv/mb93090-mb00/pci-dma.c | 9 arch/h8300/kernel/dma.c | 8 arch/hexagon/include/asm/dma-mapping.h | 1 arch/hexagon/kernel/dma.c | 8 arch/ia64/hp/common/sba_iommu.c | 22 - arch/ia64/include/asm/machvec.h | 1 arch/ia64/kernel/pci-swiotlb.c | 4 arch/ia64/sn/pci/pci_dma.c | 22 - arch/m68k/kernel/dma.c | 12 arch/metag/kernel/dma.c | 16 - arch/microblaze/include/asm/dma-mapping.h | 1 arch/microblaze/kernel/dma.c | 12 arch/mips/cavium-octeon/dma-octeon.c | 8 arch/mips/loongson64/common/dma-swiotlb.c | 10 arch/mips/mm/dma-default.c | 20 - arch/mips/netlogic/common/nlm-dma.c | 4 arch/mn10300/mm/dma-alloc.c | 8 arch/nios2/mm/dma-mapping.c | 12 arch/openrisc/kernel/dma.c | 21 - arch/parisc/kernel/pci-dma.c | 18 - arch/powerpc/include/asm/dma-mapping.h | 7 arch/powerpc/include/asm/iommu.h | 10 arch/powerpc/kernel/dma-iommu.c | 12 arch/powerpc/kernel/dma.c | 18 - arch/powerpc/kernel/ibmebus.c | 12 arch/powerpc/kernel/iommu.c | 12 arch/powerpc/kernel/vio.c | 12 arch/powerpc/platforms/cell/iommu.c | 28 +- arch/powerpc/platforms/pasemi/iommu.c | 2 arch/powerpc/platforms/powernv/npu-dma.c | 8 arch/powerpc/platforms/powernv/pci-ioda.c | 4 arch/powerpc/platforms/powernv/pci.c | 2 arch/powerpc/platforms/powernv/pci.h | 2 arch/powerpc/platforms/ps3/system-bus.c | 18 - arch/powerpc/platforms/pseries/iommu.c | 6 arch/powerpc/sysdev/dart_iommu.c | 2 arch/s390/include/asm/dma-mapping.h | 1 arch/s390/pci/pci_dma.c | 23 - arch/sh/include/asm/dma-mapping.h | 4 arch/sh/kernel/dma-nommu.c | 4 arch/sh/mm/consistent.c | 4 arch/sparc/kernel/iommu.c | 12 arch/sparc/kernel/ioport.c | 24 - arch/sparc/kernel/pci_sun4v.c | 12 arch/tile/kernel/pci-dma.c | 28 +- arch/unicore32/mm/dma-swiotlb.c | 4 arch/x86/include/asm/dma-mapping.h | 5 arch/x86/include/asm/swiotlb.h | 4 arch/x86/include/asm/xen/page-coherent.h | 9 arch/x86/kernel/amd_gart_64.c | 20 - arch/x86/kernel/pci-calgary_64.c | 14 - arch/x86/kernel/pci-dma.c | 4 arch/x86/kernel/pci-nommu.c | 4 arch/x86/kernel/pci-swiotlb.c | 4 arch/x86/pci/sta2x11-fixup.c | 2 arch/x86/pci/vmd.c | 16 - arch/xtensa/kernel/pci-dma.c | 12 drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 2 drivers/gpu/drm/exynos/exynos_drm_g2d.c | 12 drivers/gpu/drm/exynos/exynos_drm_gem.c | 20 - drivers/gpu/drm/exynos/exynos_drm_gem.h | 2 drivers/gpu/drm/mediatek/mtk_drm_gem.c | 13 - drivers/gpu/drm/mediatek/mtk_drm_gem.h | 2 drivers/gpu/drm/msm/msm_drv.c | 13 - drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c | 13 - drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 17 - drivers/gpu/drm/rockchip/rockchip_drm_gem.h | 2 drivers/infiniband/core/umem.c | 7 drivers/iommu/amd_iommu.c | 12 drivers/iommu/dma-iommu.c | 8 drivers/iommu/intel-iommu.c | 12 drivers/media/platform/sti/bdisp/bdisp-hw.c | 26 -- drivers/media/v4l2-core/videobuf2-dma-contig.c | 28 -- drivers/media/v4l2-core/videobuf2-dma-sg.c | 21 - drivers/media/v4l2-core/videobuf2-vmalloc.c | 2 drivers/misc/mic/host/mic_boot.c | 20 - drivers/parisc/ccio-dma.c | 16 - drivers/parisc/sba_iommu.c | 16 - drivers/remoteproc/qcom_q6v5_pil.c | 7 drivers/video/fbdev/omap2/omapfb/omapfb-main.c | 12 drivers/video/fbdev/omap2/omapfb/omapfb.h | 3 drivers/xen/swiotlb-xen.c | 14 - include/linux/dma-attrs.h | 71 ----- include/linux/dma-iommu.h | 6 include/linux/dma-mapping.h | 128 ++++++--- include/linux/swiotlb.h | 10 include/media/videobuf2-core.h | 6 include/media/videobuf2-dma-contig.h | 2 include/rdma/ib_verbs.h | 17 - include/xen/swiotlb-xen.h | 12 lib/dma-noop.c | 9 lib/swiotlb.c | 13 - 111 files changed, 705 insertions(+), 804 deletions(-)
Documentation/DMA-API.txt renamed from Documentation/DMA-API.txt~dma-mapping-use-unsigned-long-for-dma_attrs +14 -19
@@ -369,35 +369,32 @@ See also dma_map_single(). dma_addr_t dma_map_single_attrs(struct device *dev, void *cpu_addr, size_t size, enum dma_data_direction dir, - struct dma_attrs *attrs) + unsigned long attrs) void dma_unmap_single_attrs(struct device *dev, dma_addr_t dma_addr, size_t size, enum dma_data_direction dir, - struct dma_attrs *attrs) + unsigned long attrs) int dma_map_sg_attrs(struct device *dev, struct scatterlist *sgl, int nents, enum dma_data_direction dir, - struct dma_attrs *attrs) + unsigned long attrs) void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sgl, int nents, enum dma_data_direction dir, - struct dma_attrs *attrs) + unsigned long attrs) The four functions above are just like the counterpart functions without the _attrs suffixes, except that they pass an optional -struct dma_attrs*. - -struct dma_attrs encapsulates a set of "DMA attributes". For the -definition of struct dma_attrs see linux/dma-attrs.h. +dma_attrs. The interpretation of DMA attributes is architecture-specific, and each attribute should be documented in Documentation/DMA-attributes.txt. -If struct dma_attrs* is NULL, the semantics of each of these -functions is identical to those of the corresponding function +If dma_attrs are 0, the semantics of each of these functions +is identical to those of the corresponding function without the _attrs suffix. As a result dma_map_single_attrs() can generally replace dma_map_single(), etc.
@@ -405,15 +402,15 @@ As an example of the use of the *_attrs you could pass an attribute DMA_ATTR_FOO when mapping memory for DMA: -#include <linux/dma-attrs.h> -/* DMA_ATTR_FOO should be defined in linux/dma-attrs.h and +#include <linux/dma-mapping.h> +/* DMA_ATTR_FOO should be defined in linux/dma-mapping.h and * documented in Documentation/DMA-attributes.txt */ ... - DEFINE_DMA_ATTRS(attrs); - dma_set_attr(DMA_ATTR_FOO, &attrs); + unsigned long attr; + attr |= DMA_ATTR_FOO; .... - n = dma_map_sg_attrs(dev, sg, nents, DMA_TO_DEVICE, &attr); + n = dma_map_sg_attrs(dev, sg, nents, DMA_TO_DEVICE, attr); .... Architectures that care about DMA_ATTR_FOO would check for its
@@ -422,12 +419,10 @@ routines, e.g.: void whizco_dma_map_sg_attrs(struct device *dev, dma_addr_t dma_addr, size_t size, enum dma_data_direction dir, - struct dma_attrs *attrs) + unsigned long attrs) { .... - int foo = dma_get_attr(DMA_ATTR_FOO, attrs); - .... - if (foo) + if (attrs & DMA_ATTR_FOO) /* twizzle the frobnozzle */ ....
Documentation/DMA-attributes.txt renamed from Documentation/DMA-attributes.txt~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
@@ -2,7 +2,7 @@ ============== This document describes the semantics of the DMA attributes that are -defined in linux/dma-attrs.h. +defined in linux/dma-mapping.h. DMA_ATTR_WRITE_BARRIER ----------------------
arch/alpha/include/asm/dma-mapping.h renamed from arch/alpha/include/asm/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +0 -2
@@ -1,8 +1,6 @@#ifndef _ALPHA_DMA_MAPPING_H#define _ALPHA_DMA_MAPPING_H -#include <linux/dma-attrs.h> -extern struct dma_map_ops *dma_ops;static inline struct dma_map_ops *get_dma_ops (struct device *dev)
arch/alpha/kernel/pci-noop.c renamed from arch/alpha/kernel/pci-noop.c~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
@@ -109,7 +109,7 @@ sys_pciconfig_write(unsigned long bus, ustatic void *alpha_noop_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {void *ret;
arch/alpha/kernel/pci_iommu.c renamed from arch/alpha/kernel/pci_iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -349,7 +349,7 @@ static struct pci_dev *alpha_gendev_to_pstatic dma_addr_t alpha_pci_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct pci_dev *pdev =alpha_gendev_to_pci (dev);int dac_allowed;
@@ -369,7 +369,7 @@ static dma_addr_t alpha_pci_map_page(strstatic void alpha_pci_unmap_page (struct device *dev,dma_addr_t dma_addr,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long flags;struct pci_dev *pdev =alpha_gendev_to_pci (dev);
@@ -433,7 +433,7 @@ static void alpha_pci_unmap_page(structstatic void *alpha_pci_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_addrp,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {struct pci_dev *pdev =alpha_gendev_to_pci (dev);void *cpu_addr;
@@ -478,7 +478,7 @@ try_again:static void alpha_pci_free_coherent (struct device *dev,size_t size,void *cpu_addr,dma_addr_t dma_addr, -struct dma_attrs *attrs) +unsigned long attrs) {struct pci_dev *pdev =alpha_gendev_to_pci (dev);pci_unmap_single (pdev, dma_addr, size,PCI_DMA_BIDIRECTIONAL );
@@ -651,7 +651,7 @@ sg_fill(struct device *dev, struct scattstatic int alpha_pci_map_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct pci_dev *pdev =alpha_gendev_to_pci (dev);struct scatterlist *start, *end, *out;
@@ -729,7 +729,7 @@ static int alpha_pci_map_sg(struct devicstatic void alpha_pci_unmap_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct pci_dev *pdev =alpha_gendev_to_pci (dev);unsigned long flags;
arch/arc/mm/dma.c renamed from arch/arc/mm/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -22,7 +22,7 @@static void *arc_dma_alloc (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {unsigned long order =get_order (size);struct page *page;
@@ -46,7 +46,7 @@ static void *arc_dma_alloc(struct device* (vs. always going to memory - thus are faster) */ if ((is_isa_arcv2 () && ioc_exists) || -dma_get_attr (DMA_ATTR_NON_CONSISTENT , attrs)) + (attrs &DMA_ATTR_NON_CONSISTENT )) need_coh =0 ;/*
@@ -90,13 +90,13 @@ static void *arc_dma_alloc(struct device }static void arc_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {phys_addr_t paddr =plat_dma_to_phys (dev, dma_handle);struct page *page =virt_to_page (paddr);int is_non_coh =1 ; - is_non_coh =dma_get_attr (DMA_ATTR_NON_CONSISTENT , attrs) || + is_non_coh = (attrs &DMA_ATTR_NON_CONSISTENT ) || (is_isa_arcv2 () && ioc_exists);if (PageHighMem (page) || !is_non_coh)
@@ -130,7 +130,7 @@ static void _dma_cache_sync(phys_addr_tstatic dma_addr_t arc_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {phys_addr_t paddr =page_to_phys (page) + offset;_dma_cache_sync (paddr, size, dir);
@@ -138,7 +138,7 @@ static dma_addr_t arc_dma_map_page(struc }static int arc_dma_map_sg (struct device *dev,struct scatterlist *sg, -int nents,enum dma_data_direction dir,struct dma_attrs *attrs) +int nents,enum dma_data_direction dir,unsigned long attrs) {struct scatterlist *s;int i;
arch/arm/common/dmabounce.c renamed from arch/arm/common/dmabounce.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
@@ -310,7 +310,7 @@ static inline void unmap_single(struct d*/ static dma_addr_t dmabounce_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t dma_addr;int ret;
@@ -344,7 +344,7 @@ static dma_addr_t dmabounce_map_page(str* should be) */ static void dmabounce_unmap_page (struct device *dev,dma_addr_t dma_addr,size_t size, -enum dma_data_direction dir,struct dma_attrs *attrs) +enum dma_data_direction dir,unsigned long attrs) {struct safe_buffer *buf;
arch/arm/include/asm/dma-mapping.h renamed from arch/arm/include/asm/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +6 -7
@@ -5,7 +5,6 @@#include <linux/mm_types.h> #include <linux/scatterlist.h> -#include <linux/dma-attrs.h> #include <linux/dma-debug.h> #include <asm/memory.h>
@@ -174,7 +173,7 @@ static inline void dma_mark_clean(void ** to be the device-viewed address. */ extern void *arm_dma_alloc (struct device *dev,size_t size,dma_addr_t *handle, -gfp_t gfp,struct dma_attrs *attrs); +gfp_t gfp,unsigned long attrs);/** * arm_dma_free - free memory allocated by arm_dma_alloc
@@ -191,7 +190,7 @@ extern void *arm_dma_alloc(struct device* during and after this call executing are illegal. */ extern void arm_dma_free (struct device *dev,size_t size,void *cpu_addr, -dma_addr_t handle,struct dma_attrs *attrs); +dma_addr_t handle,unsigned long attrs);/** * arm_dma_mmap - map a coherent DMA allocation into user space
@@ -208,7 +207,7 @@ extern void arm_dma_free(struct device **/ extern int arm_dma_mmap (struct device *dev,struct vm_area_struct *vma,void *cpu_addr,dma_addr_t dma_addr,size_t size, -struct dma_attrs *attrs); +unsigned long attrs);/* * This can be called during early boot to increase the size of the atomic
@@ -262,16 +261,16 @@ extern void dmabounce_unregister_dev(str* The scatter list versions of the above methods. */ extern int arm_dma_map_sg (struct device *,struct scatterlist *,int , -enum dma_data_direction ,struct dma_attrs *attrs); +enum dma_data_direction ,unsigned long attrs);extern void arm_dma_unmap_sg (struct device *,struct scatterlist *,int , -enum dma_data_direction ,struct dma_attrs *attrs); +enum dma_data_direction ,unsigned long attrs);extern void arm_dma_sync_sg_for_cpu (struct device *,struct scatterlist *,int ,enum dma_data_direction );extern void arm_dma_sync_sg_for_device (struct device *,struct scatterlist *,int ,enum dma_data_direction );extern int arm_dma_get_sgtable (struct device *dev,struct sg_table *sgt,void *cpu_addr,dma_addr_t dma_addr,size_t size, -struct dma_attrs *attrs); +unsigned long attrs);#endif /* __KERNEL__ */ #endif
arch/arm/include/asm/xen/page-coherent.h renamed from arch/arm/include/asm/xen/page-coherent.h~dma-mapping-use-unsigned-long-for-dma_attrs +6 -10
@@ -2,15 +2,14 @@#define _ASM_ARM_XEN_PAGE_COHERENT_H#include <asm/page.h> -#include <linux/dma-attrs.h> #include <linux/dma-mapping.h> void __xen_dma_map_page (struct device *hwdev,struct page *page,dma_addr_t dev_addr,unsigned long offset,size_t size, -enum dma_data_direction dir,struct dma_attrs *attrs); +enum dma_data_direction dir,unsigned long attrs);void __xen_dma_unmap_page (struct device *hwdev,dma_addr_t handle,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs); +unsigned long attrs);void __xen_dma_sync_single_for_cpu (struct device *hwdev,dma_addr_t handle,size_t size,enum dma_data_direction dir);
@@ -18,22 +17,20 @@ void __xen_dma_sync_single_for_device(st dma_addr_t handle, size_t size, enum dma_data_direction dir);static inline void *xen_alloc_coherent_pages (struct device *hwdev,size_t size, -dma_addr_t *dma_handle,gfp_t flags, -struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t flags,unsigned long attrs) {return __generic_dma_ops (hwdev)->alloc (hwdev, size, dma_handle, flags, attrs); }static inline void xen_free_coherent_pages (struct device *hwdev,size_t size, -void *cpu_addr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +void *cpu_addr,dma_addr_t dma_handle,unsigned long attrs) {__generic_dma_ops (hwdev)->free (hwdev, size, cpu_addr, dma_handle, attrs); }static inline void xen_dma_map_page (struct device *hwdev,struct page *page,dma_addr_t dev_addr,unsigned long offset,size_t size, -enum dma_data_direction dir,struct dma_attrs *attrs) +enum dma_data_direction dir,unsigned long attrs) {unsigned long page_pfn =page_to_xen_pfn (page);unsigned long dev_pfn =XEN_PFN_DOWN (dev_addr);
@@ -58,8 +55,7 @@ static inline void xen_dma_map_page(stru }static inline void xen_dma_unmap_page (struct device *hwdev,dma_addr_t handle, -size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +size_t size,enum dma_data_direction dir,unsigned long attrs) {unsigned long pfn =PFN_DOWN (handle);/*
arch/arm/mm/dma-mapping.c renamed from arch/arm/mm/dma-mapping.c~dma-mapping-use-unsigned-long-for-dma_attrs +63 -66
442 lines not on this page · raw message
arch/arm/xen/mm.c renamed from arch/arm/xen/mm.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -4
@@ -98,11 +98,11 @@ static void __xen_dma_page_cpu_to_dev(stvoid __xen_dma_map_page (struct device *hwdev,struct page *page,dma_addr_t dev_addr,unsigned long offset,size_t size, -enum dma_data_direction dir,struct dma_attrs *attrs) +enum dma_data_direction dir,unsigned long attrs) {if (is_device_dma_coherent (hwdev))return ; -if (dma_get_attr (DMA_ATTR_SKIP_CPU_SYNC , attrs)) +if (attrs &DMA_ATTR_SKIP_CPU_SYNC )return ;__xen_dma_page_cpu_to_dev (hwdev, dev_addr, size, dir);
@@ -110,12 +110,12 @@ void __xen_dma_map_page(struct device *hvoid __xen_dma_unmap_page (struct device *hwdev,dma_addr_t handle,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {if (is_device_dma_coherent (hwdev))return ; -if (dma_get_attr (DMA_ATTR_SKIP_CPU_SYNC , attrs)) +if (attrs &DMA_ATTR_SKIP_CPU_SYNC )return ;__xen_dma_page_dev_to_cpu (hwdev, handle, size, dir);
arch/arm64/mm/dma-mapping.c renamed from arch/arm64/mm/dma-mapping.c~dma-mapping-use-unsigned-long-for-dma_attrs +33 -33
246 lines not on this page · raw message
arch/avr32/mm/dma-coherent.c renamed from arch/avr32/mm/dma-coherent.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -99,7 +99,7 @@ static void __dma_free(struct device *de }static void *avr32_dma_alloc (struct device *dev,size_t size, -dma_addr_t *handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *handle,gfp_t gfp,unsigned long attrs) {struct page *page;dma_addr_t phys;
@@ -109,7 +109,7 @@ static void *avr32_dma_alloc(struct devireturn NULL ; phys =page_to_phys (page); -if (dma_get_attr (DMA_ATTR_WRITE_COMBINE , attrs)) { +if (attrs &DMA_ATTR_WRITE_COMBINE ) {/* Now, map the page into P3 with write-combining turned on */ *handle = phys;return __ioremap (phys, size, _PAGE_BUFFER);
@@ -119,11 +119,11 @@ static void *avr32_dma_alloc(struct devi }static void avr32_dma_free (struct device *dev,size_t size, -void *cpu_addr,dma_addr_t handle,struct dma_attrs *attrs) +void *cpu_addr,dma_addr_t handle,unsigned long attrs) {struct page *page; -if (dma_get_attr (DMA_ATTR_WRITE_COMBINE , attrs)) { +if (attrs &DMA_ATTR_WRITE_COMBINE ) {iounmap (cpu_addr); page =phys_to_page (handle);
@@ -142,7 +142,7 @@ static void avr32_dma_free(struct devicestatic dma_addr_t avr32_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size, -enum dma_data_direction direction,struct dma_attrs *attrs) +enum dma_data_direction direction,unsigned long attrs) {void *cpu_addr =page_address (page) + offset;
@@ -152,7 +152,7 @@ static dma_addr_t avr32_dma_map_page(strstatic int avr32_dma_map_sg (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {int i;struct scatterlist *sg;
arch/blackfin/kernel/dma-mapping.c renamed from arch/blackfin/kernel/dma-mapping.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -4
@@ -79,7 +79,7 @@ static void __free_dma_pages(unsigned lo }static void *bfin_dma_alloc (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {void *ret;
@@ -94,7 +94,7 @@ static void *bfin_dma_alloc(struct devic }static void bfin_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {__free_dma_pages ((unsigned long )vaddr,get_pages (size)); }
@@ -111,7 +111,7 @@ EXPORT_SYMBOL(__dma_sync);static int bfin_dma_map_sg (struct device *dev,struct scatterlist *sg_list,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int i;
@@ -139,7 +139,7 @@ static void bfin_dma_sync_sg_for_device(static dma_addr_t bfin_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t handle = (dma_addr_t)(page_address (page) + offset);
arch/c6x/include/asm/dma-mapping.h renamed from arch/c6x/include/asm/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
@@ -26,8 +26,8 @@ static inline struct dma_map_ops *get_dmextern void coherent_mem_init (u32 start,u32 size);void *c6x_dma_alloc (struct device *dev,size_t size,dma_addr_t *handle, -gfp_t gfp,struct dma_attrs *attrs); +gfp_t gfp,unsigned long attrs);void c6x_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs); +dma_addr_t dma_handle,unsigned long attrs);#endif /* _ASM_C6X_DMA_MAPPING_H */
arch/c6x/kernel/dma.c renamed from arch/c6x/kernel/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -5
@@ -38,7 +38,7 @@ static void c6x_dma_sync(dma_addr_t handstatic dma_addr_t c6x_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t handle =virt_to_phys (page_address (page) + offset);
@@ -47,13 +47,13 @@ static dma_addr_t c6x_dma_map_page(struc }static void c6x_dma_unmap_page (struct device *dev,dma_addr_t handle, -size_t size,enum dma_data_direction dir,struct dma_attrs *attrs) +size_t size,enum dma_data_direction dir,unsigned long attrs) {c6x_dma_sync (handle, size, dir); }static int c6x_dma_map_sg (struct device *dev,struct scatterlist *sglist, -int nents,enum dma_data_direction dir,struct dma_attrs *attrs) +int nents,enum dma_data_direction dir,unsigned long attrs) {struct scatterlist *sg;int i;
@@ -67,8 +67,7 @@ static int c6x_dma_map_sg(struct device }static void c6x_dma_unmap_sg (struct device *dev,struct scatterlist *sglist, -int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +int nents,enum dma_data_direction dir,unsigned long attrs) {struct scatterlist *sg;int i;
arch/c6x/mm/dma-coherent.c renamed from arch/c6x/mm/dma-coherent.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
@@ -74,7 +74,7 @@ static void __free_dma_pages(u32 addr, i* virtual and DMA address for that space. */ void *c6x_dma_alloc (struct device *dev,size_t size,dma_addr_t *handle, -gfp_t gfp,struct dma_attrs *attrs) +gfp_t gfp,unsigned long attrs) {u32 paddr;int order;
@@ -99,7 +99,7 @@ void *c6x_dma_alloc(struct device *dev,* Free DMA coherent memory as defined by the above mapping. */ void c6x_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {int order;
arch/cris/arch-v32/drivers/pci/dma.c renamed from arch/cris/arch-v32/drivers/pci/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -5
@@ -17,7 +17,7 @@#include <asm/io.h> static void *v32_dma_alloc (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {void *ret;
@@ -37,22 +37,21 @@ static void *v32_dma_alloc(struct device }static void v32_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {free_pages ((unsigned long )vaddr,get_order (size)); }static inline dma_addr_t v32_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size, -enum dma_data_direction direction, -struct dma_attrs *attrs) +enum dma_data_direction direction,unsigned long attrs) {return page_to_phys (page) + offset; }static inline int v32_dma_map_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {printk ("Map sg\n" );return nents;
arch/frv/mb93090-mb00/pci-dma-nommu.c renamed from arch/frv/mb93090-mb00/pci-dma-nommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -4
@@ -35,7 +35,7 @@ static DEFINE_SPINLOCK(dma_alloc_lock);static LIST_HEAD (dma_alloc_list);static void *frv_dma_alloc (struct device *hwdev,size_t size,dma_addr_t *dma_handle, -gfp_t gfp,struct dma_attrs *attrs) +gfp_t gfp,unsigned long attrs) {struct dma_alloc_record *new;struct list_head *this = &dma_alloc_list;
@@ -86,7 +86,7 @@ static void *frv_dma_alloc(struct device }static void frv_dma_free (struct device *hwdev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {struct dma_alloc_record *rec;unsigned long flags;
@@ -107,7 +107,7 @@ static void frv_dma_free(struct device *static int frv_dma_map_sg (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {int i;struct scatterlist *sg;
@@ -124,7 +124,7 @@ static int frv_dma_map_sg(struct devicestatic dma_addr_t frv_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size, -enum dma_data_direction direction,struct dma_attrs *attrs) +enum dma_data_direction direction,unsigned long attrs) {BUG_ON (direction ==DMA_NONE );flush_dcache_page (page);
arch/frv/mb93090-mb00/pci-dma.c renamed from arch/frv/mb93090-mb00/pci-dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -5
@@ -19,8 +19,7 @@#include <asm/io.h> static void *frv_dma_alloc (struct device *hwdev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp, -struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {void *ret;
@@ -32,14 +31,14 @@ static void *frv_dma_alloc(struct device }static void frv_dma_free (struct device *hwdev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {consistent_free (vaddr); }static int frv_dma_map_sg (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long dampr2;void *vaddr;
@@ -69,7 +68,7 @@ static int frv_dma_map_sg(struct devicestatic dma_addr_t frv_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size, -enum dma_data_direction direction,struct dma_attrs *attrs) +enum dma_data_direction direction,unsigned long attrs) {flush_dcache_page (page);return (dma_addr_t )page_to_phys (page) + offset;
arch/h8300/kernel/dma.c renamed from arch/h8300/kernel/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -4
@@ -12,7 +12,7 @@static void *dma_alloc (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {void *ret;
@@ -32,7 +32,7 @@ static void *dma_alloc(struct device *destatic void dma_free (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {free_pages ((unsigned long )vaddr,get_order (size));
@@ -41,14 +41,14 @@ static void dma_free(struct device *dev,static dma_addr_t map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {return page_to_phys (page) + offset; }static int map_sg (struct device *dev,struct scatterlist *sgl,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int i;
arch/hexagon/include/asm/dma-mapping.h renamed from arch/hexagon/include/asm/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +0 -1
@@ -26,7 +26,6 @@#include <linux/mm.h> #include <linux/scatterlist.h> #include <linux/dma-debug.h> -#include <linux/dma-attrs.h> #include <asm/io.h> struct device ;
arch/hexagon/kernel/dma.c renamed from arch/hexagon/kernel/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -4
@@ -51,7 +51,7 @@ static struct gen_pool *coherent_pool;static void *hexagon_dma_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_addr,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) {void *ret;
@@ -84,7 +84,7 @@ static void *hexagon_dma_alloc_coherent( }static void hexagon_free_coherent (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_addr,struct dma_attrs *attrs) +dma_addr_t dma_addr,unsigned long attrs) {gen_pool_free (coherent_pool, (unsigned long ) vaddr, size); }
@@ -105,7 +105,7 @@ static int check_addr(const char *name,static int hexagon_map_sg (struct device *hwdev,struct scatterlist *sg,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *s;int i;
@@ -172,7 +172,7 @@ static inline void dma_sync(void *addr,static dma_addr_t hexagon_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t bus =page_to_phys (page) + offset;WARN_ON (size ==0 );
arch/ia64/hp/common/sba_iommu.c renamed from arch/ia64/hp/common/sba_iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +11 -11
@@ -919,7 +919,7 @@ sba_mark_invalid(struct ioc *ioc, dma_adstatic dma_addr_t sba_map_page (struct device *dev,struct page *page,unsigned long poff,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct ioc *ioc;void *addr =page_address (page) + poff;
@@ -1005,7 +1005,7 @@ static dma_addr_t sba_map_page(struct destatic dma_addr_t sba_map_single_attrs (struct device *dev,void *addr,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {return sba_map_page (dev,virt_to_page (addr), (unsigned long )addr & ~PAGE_MASK , size, dir, attrs);
@@ -1046,7 +1046,7 @@ sba_mark_clean(struct ioc *ioc, dma_addr* See Documentation/DMA-API-HOWTO.txt */ static void sba_unmap_page (struct device *dev,dma_addr_t iova,size_t size, -enum dma_data_direction dir,struct dma_attrs *attrs) +enum dma_data_direction dir,unsigned long attrs) {struct ioc *ioc;#if DELAYED_RESOURCE_CNT >0
@@ -1115,7 +1115,7 @@ static void sba_unmap_page(struct device }void sba_unmap_single_attrs (struct device *dev,dma_addr_t iova,size_t size, -enum dma_data_direction dir,struct dma_attrs *attrs) +enum dma_data_direction dir,unsigned long attrs) {sba_unmap_page (dev, iova, size, dir, attrs); }
@@ -1130,7 +1130,7 @@ void sba_unmap_single_attrs(struct devic*/ static void *sba_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle, -gfp_t flags,struct dma_attrs *attrs) +gfp_t flags,unsigned long attrs) {struct ioc *ioc;void *addr;
@@ -1175,7 +1175,7 @@ sba_alloc_coherent(struct device *dev, s* device to map single to get an iova mapping. */ *dma_handle =sba_map_single_attrs (&ioc->sac_only_dev->dev, addr, - size,0 ,NULL ); + size,0 ,0 );return addr; }
@@ -1191,9 +1191,9 @@ sba_alloc_coherent(struct device *dev, s* See Documentation/DMA-API-HOWTO.txt */ static void sba_free_coherent (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) { -sba_unmap_single_attrs (dev, dma_handle, size,0 ,NULL ); +sba_unmap_single_attrs (dev, dma_handle, size,0 ,0 );free_pages ((unsigned long ) vaddr,get_order (size)); }
@@ -1442,7 +1442,7 @@ sba_coalesce_chunks(struct ioc *ioc, strstatic void sba_unmap_sg_attrs (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs); +unsigned long attrs);/** * sba_map_sg - map Scatter/Gather list * @dev: instance of PCI owned by the driver that's asking.
@@ -1455,7 +1455,7 @@ static void sba_unmap_sg_attrs(struct de*/ static int sba_map_sg_attrs (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct ioc *ioc;int coalesced, filled =0 ;
@@ -1551,7 +1551,7 @@ static int sba_map_sg_attrs(struct devic*/ static void sba_unmap_sg_attrs (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {#ifdef ASSERT_PDIR_SANITY struct ioc *ioc;
arch/ia64/include/asm/machvec.h renamed from arch/ia64/include/asm/machvec.h~dma-mapping-use-unsigned-long-for-dma_attrs +0 -1
@@ -22,7 +22,6 @@ struct pci_bus;struct task_struct ;struct pci_dev ;struct msi_desc ; -struct dma_attrs ;typedef void ia64_mv_setup_t (char **);typedef void ia64_mv_cpu_init_t (void );
arch/ia64/kernel/pci-swiotlb.c renamed from arch/ia64/kernel/pci-swiotlb.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
@@ -16,7 +16,7 @@ EXPORT_SYMBOL(swiotlb);static void *ia64_swiotlb_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {if (dev->coherent_dma_mask !=DMA_BIT_MASK (64 )) gfp |=GFP_DMA ;
@@ -25,7 +25,7 @@ static void *ia64_swiotlb_alloc_coherentstatic void ia64_swiotlb_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_addr, -struct dma_attrs *attrs) +unsigned long attrs) {swiotlb_free_coherent (dev, size, vaddr, dma_addr); }
arch/ia64/sn/pci/pci_dma.c renamed from arch/ia64/sn/pci/pci_dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +8 -14
@@ -77,7 +77,7 @@ EXPORT_SYMBOL(sn_dma_set_mask);*/ static void *sn_dma_alloc_coherent (struct device *dev,size_t size,dma_addr_t * dma_handle,gfp_t flags, -struct dma_attrs *attrs) +unsigned long attrs) {void *cpuaddr;unsigned long phys_addr;
@@ -138,7 +138,7 @@ static void *sn_dma_alloc_coherent(struc* any associated IOMMU mappings. */ static void sn_dma_free_coherent (struct device *dev,size_t size,void *cpu_addr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {struct pci_dev *pdev =to_pci_dev (dev);struct sn_pcibus_provider *provider =SN_PCIDEV_BUSPROVIDER (pdev);
@@ -176,21 +176,18 @@ static void sn_dma_free_coherent(structstatic dma_addr_t sn_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {void *cpu_addr =page_address (page) + offset;dma_addr_t dma_addr;unsigned long phys_addr;struct pci_dev *pdev =to_pci_dev (dev);struct sn_pcibus_provider *provider =SN_PCIDEV_BUSPROVIDER (pdev); -int dmabarr; - - dmabarr =dma_get_attr (DMA_ATTR_WRITE_BARRIER , attrs);BUG_ON (!dev_is_pci (dev)); phys_addr =__pa (cpu_addr); -if (dmabarr) +if (attrs &DMA_ATTR_WRITE_BARRIER ) dma_addr = provider->dma_map_consistent (pdev, phys_addr, size,SN_DMA_ADDR_PHYS );else
@@ -218,7 +215,7 @@ static dma_addr_t sn_dma_map_page(struct*/ static void sn_dma_unmap_page (struct device *dev,dma_addr_t dma_addr,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct pci_dev *pdev =to_pci_dev (dev);struct sn_pcibus_provider *provider =SN_PCIDEV_BUSPROVIDER (pdev);
@@ -240,7 +237,7 @@ static void sn_dma_unmap_page(struct dev*/ static void sn_dma_unmap_sg (struct device *dev,struct scatterlist *sgl,int nhwentries,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {int i;struct pci_dev *pdev =to_pci_dev (dev);
@@ -273,16 +270,13 @@ static void sn_dma_unmap_sg(struct devic*/ static int sn_dma_map_sg (struct device *dev,struct scatterlist *sgl,int nhwentries,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long phys_addr;struct scatterlist *saved_sg = sgl, *sg;struct pci_dev *pdev =to_pci_dev (dev);struct sn_pcibus_provider *provider =SN_PCIDEV_BUSPROVIDER (pdev);int i; -int dmabarr; - - dmabarr =dma_get_attr (DMA_ATTR_WRITE_BARRIER , attrs);BUG_ON (!dev_is_pci (dev));
@@ -292,7 +286,7 @@ static int sn_dma_map_sg(struct device *for_each_sg (sgl, sg, nhwentries, i) {dma_addr_t dma_addr; phys_addr =SG_ENT_PHYS_ADDRESS (sg); -if (dmabarr) +if (attrs &DMA_ATTR_WRITE_BARRIER ) dma_addr = provider->dma_map_consistent(pdev, phys_addr, sg->length,
arch/m68k/kernel/dma.c renamed from arch/m68k/kernel/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -19,7 +19,7 @@#if defined(CONFIG_MMU ) && !defined(CONFIG_COLDFIRE )static void *m68k_dma_alloc (struct device *dev,size_t size,dma_addr_t *handle, -gfp_t flag,struct dma_attrs *attrs) +gfp_t flag,unsigned long attrs) {struct page *page, **map;pgprot_t pgprot;
@@ -62,7 +62,7 @@ static void *m68k_dma_alloc(struct devic }static void m68k_dma_free (struct device *dev,size_t size,void *addr, -dma_addr_t handle,struct dma_attrs *attrs) +dma_addr_t handle,unsigned long attrs) {pr_debug ("dma_free_coherent: %p, %x\n" , addr, handle);vfree (addr);
@@ -73,7 +73,7 @@ static void m68k_dma_free(struct device#include <asm/cacheflush.h> static void *m68k_dma_alloc (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {void *ret;/* ignore region specifiers */
@@ -91,7 +91,7 @@ static void *m68k_dma_alloc(struct devic }static void m68k_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {free_pages ((unsigned long )vaddr,get_order (size)); }
@@ -130,7 +130,7 @@ static void m68k_dma_sync_sg_for_device(static dma_addr_t m68k_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t handle =page_to_phys (page) + offset;
@@ -139,7 +139,7 @@ static dma_addr_t m68k_dma_map_page(stru }static int m68k_dma_map_sg (struct device *dev,struct scatterlist *sglist, -int nents,enum dma_data_direction dir,struct dma_attrs *attrs) +int nents,enum dma_data_direction dir,unsigned long attrs) {int i;struct scatterlist *sg;
arch/metag/kernel/dma.c renamed from arch/metag/kernel/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +8 -8
@@ -172,7 +172,7 @@ out:* virtual and bus address for that space. */ static void *metag_dma_alloc (struct device *dev,size_t size, -dma_addr_t *handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *handle,gfp_t gfp,unsigned long attrs) {struct page *page;struct metag_vm_region *c;
@@ -268,7 +268,7 @@ no_page:* free a page as defined by the above mapping. */ static void metag_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {struct metag_vm_region *c;unsigned long flags, addr;
@@ -331,13 +331,13 @@ no_area:static int metag_dma_mmap (struct device *dev,struct vm_area_struct *vma,void *cpu_addr,dma_addr_t dma_addr,size_t size, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long flags, user_size, kern_size;struct metag_vm_region *c;int ret = -ENXIO ; -if (dma_get_attr (DMA_ATTR_WRITE_COMBINE , attrs)) +if (attrs &DMA_ATTR_WRITE_COMBINE ) vma->vm_page_prot =pgprot_writecombine (vma->vm_page_prot);else vma->vm_page_prot =pgprot_noncached (vma->vm_page_prot);
@@ -482,7 +482,7 @@ static void dma_sync_for_cpu(void *vaddrstatic dma_addr_t metag_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size, -enum dma_data_direction direction,struct dma_attrs *attrs) +enum dma_data_direction direction,unsigned long attrs) {dma_sync_for_device ((void *)(page_to_phys (page) + offset), size, direction);
@@ -491,14 +491,14 @@ static dma_addr_t metag_dma_map_page(strstatic void metag_dma_unmap_page (struct device *dev,dma_addr_t dma_address,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {dma_sync_for_cpu (phys_to_virt (dma_address), size, direction); }static int metag_dma_map_sg (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int i;
@@ -516,7 +516,7 @@ static int metag_dma_map_sg(struct devicstatic void metag_dma_unmap_sg (struct device *dev,struct scatterlist *sglist,int nhwentries,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int i;
arch/microblaze/include/asm/dma-mapping.h renamed from arch/microblaze/include/asm/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +0 -1
@@ -25,7 +25,6 @@#include <linux/mm.h> #include <linux/scatterlist.h> #include <linux/dma-debug.h> -#include <linux/dma-attrs.h> #include <asm/io.h> #include <asm/cacheflush.h>
arch/microblaze/kernel/dma.c renamed from arch/microblaze/kernel/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -17,7 +17,7 @@static void *dma_direct_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) {#ifdef NOT_COHERENT_CACHE return consistent_alloc (flag, size, dma_handle);
@@ -42,7 +42,7 @@ static void *dma_direct_alloc_coherent(sstatic void dma_direct_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {#ifdef NOT_COHERENT_CACHE consistent_free (size, vaddr);
@@ -53,7 +53,7 @@ static void dma_direct_free_coherent(strstatic int dma_direct_map_sg (struct device *dev,struct scatterlist *sgl,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int i;
@@ -78,7 +78,7 @@ static inline dma_addr_t dma_direct_map_unsigned long offset, size_t size, enum dma_data_direction direction, - struct dma_attrs *attrs) + unsigned long attrs) { __dma_sync(page_to_phys(page) + offset, size, direction);return page_to_phys (page) + offset;
@@ -88,7 +88,7 @@ static inline void dma_direct_unmap_pagedma_addr_t dma_address, size_t size, enum dma_data_direction direction, - struct dma_attrs *attrs) + unsigned long attrs) {/* There is not necessary to do cache cleanup *
@@ -157,7 +157,7 @@ dma_direct_sync_sg_for_device(struct devstatic int dma_direct_mmap_coherent (struct device *dev,struct vm_area_struct *vma,void *cpu_addr,dma_addr_t handle,size_t size, -struct dma_attrs *attrs) +unsigned long attrs) {#ifdef CONFIG_MMU unsigned long user_count = (vma->vm_end - vma->vm_start) >>PAGE_SHIFT ;
arch/mips/cavium-octeon/dma-octeon.c renamed from arch/mips/cavium-octeon/dma-octeon.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -4
@@ -125,7 +125,7 @@ static phys_addr_t octeon_small_dma_to_pstatic dma_addr_t octeon_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t daddr =swiotlb_map_page (dev, page, offset, size, direction, attrs);
@@ -135,7 +135,7 @@ static dma_addr_t octeon_dma_map_page(st }static int octeon_dma_map_sg (struct device *dev,struct scatterlist *sg, -int nents,enum dma_data_direction direction,struct dma_attrs *attrs) +int nents,enum dma_data_direction direction,unsigned long attrs) {int r =swiotlb_map_sg_attrs (dev, sg, nents, direction, attrs);mb ();
@@ -157,7 +157,7 @@ static void octeon_dma_sync_sg_for_devic }static void *octeon_dma_alloc_coherent (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {void *ret;
@@ -189,7 +189,7 @@ static void *octeon_dma_alloc_coherent(s }static void octeon_dma_free_coherent (struct device *dev,size_t size, -void *vaddr,dma_addr_t dma_handle,struct dma_attrs *attrs) +void *vaddr,dma_addr_t dma_handle,unsigned long attrs) {swiotlb_free_coherent (dev, size, vaddr, dma_handle); }
arch/mips/loongson64/common/dma-swiotlb.c renamed from arch/mips/loongson64/common/dma-swiotlb.c~dma-mapping-use-unsigned-long-for-dma_attrs +5 -5
@@ -10,7 +10,7 @@#include <dma-coherence.h> static void *loongson_dma_alloc_coherent (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {void *ret;
@@ -41,7 +41,7 @@ static void *loongson_dma_alloc_coherent }static void loongson_dma_free_coherent (struct device *dev,size_t size, -void *vaddr,dma_addr_t dma_handle,struct dma_attrs *attrs) +void *vaddr,dma_addr_t dma_handle,unsigned long attrs) {swiotlb_free_coherent (dev, size, vaddr, dma_handle); }
@@ -49,7 +49,7 @@ static void loongson_dma_free_coherent(sstatic dma_addr_t loongson_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t daddr =swiotlb_map_page (dev, page, offset, size, dir, attrs);
@@ -59,9 +59,9 @@ static dma_addr_t loongson_dma_map_page(static int loongson_dma_map_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) { -int r =swiotlb_map_sg_attrs (dev, sg, nents, dir,NULL ); +int r =swiotlb_map_sg_attrs (dev, sg, nents, dir,0 );mb ();return r;
arch/mips/mm/dma-default.c renamed from arch/mips/mm/dma-default.c~dma-mapping-use-unsigned-long-for-dma_attrs +10 -10
@@ -131,7 +131,7 @@ static void *mips_dma_alloc_noncoherent( }static void *mips_dma_alloc_coherent (struct device *dev,size_t size, -dma_addr_t * dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {void *ret;struct page *page =NULL ;
@@ -141,7 +141,7 @@ static void *mips_dma_alloc_coherent(str* XXX: seems like the coherent and non-coherent implementations could * be consolidated. */ -if (dma_get_attr (DMA_ATTR_NON_CONSISTENT , attrs)) +if (attrs &DMA_ATTR_NON_CONSISTENT )return mips_dma_alloc_noncoherent (dev, size, dma_handle, gfp); gfp =massage_gfp_flags (dev, gfp);
@@ -176,13 +176,13 @@ static void mips_dma_free_noncoherent(st }static void mips_dma_free_coherent (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {unsigned long addr = (unsigned long ) vaddr;unsigned int count =PAGE_ALIGN (size) >>PAGE_SHIFT ;struct page *page =NULL ; -if (dma_get_attr (DMA_ATTR_NON_CONSISTENT , attrs)) { +if (attrs &DMA_ATTR_NON_CONSISTENT ) {mips_dma_free_noncoherent (dev, size, vaddr, dma_handle);return ; }
@@ -200,7 +200,7 @@ static void mips_dma_free_coherent(strucstatic int mips_dma_mmap (struct device *dev,struct vm_area_struct *vma,void *cpu_addr,dma_addr_t dma_addr,size_t size, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long user_count = (vma->vm_end - vma->vm_start) >>PAGE_SHIFT ;unsigned long count =PAGE_ALIGN (size) >>PAGE_SHIFT ;
@@ -214,7 +214,7 @@ static int mips_dma_mmap(struct device * pfn =page_to_pfn (virt_to_page ((void *)addr)); -if (dma_get_attr (DMA_ATTR_WRITE_COMBINE , attrs)) +if (attrs &DMA_ATTR_WRITE_COMBINE ) vma->vm_page_prot =pgprot_writecombine (vma->vm_page_prot);else vma->vm_page_prot =pgprot_noncached (vma->vm_page_prot);
@@ -291,7 +291,7 @@ static inline void __dma_sync(struct pag }static void mips_dma_unmap_page (struct device *dev,dma_addr_t dma_addr, -size_t size,enum dma_data_direction direction,struct dma_attrs *attrs) +size_t size,enum dma_data_direction direction,unsigned long attrs) {if (cpu_needs_post_dma_flush (dev)) __dma_sync(dma_addr_to_page(dev, dma_addr),
@@ -301,7 +301,7 @@ static void mips_dma_unmap_page(struct d }static int mips_dma_map_sg (struct device *dev,struct scatterlist *sglist, -int nents,enum dma_data_direction direction,struct dma_attrs *attrs) +int nents,enum dma_data_direction direction,unsigned long attrs) {int i;struct scatterlist *sg;
@@ -322,7 +322,7 @@ static int mips_dma_map_sg(struct devicestatic dma_addr_t mips_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {if (!plat_device_is_coherent (dev))__dma_sync (page, offset, size, direction);
@@ -332,7 +332,7 @@ static dma_addr_t mips_dma_map_page(strustatic void mips_dma_unmap_sg (struct device *dev,struct scatterlist *sglist,int nhwentries,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {int i;struct scatterlist *sg;
arch/mips/netlogic/common/nlm-dma.c renamed from arch/mips/netlogic/common/nlm-dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
@@ -45,7 +45,7 @@static char *nlm_swiotlb;static void *nlm_dma_alloc_coherent (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {/* ignore region specifiers */ gfp &= ~(__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM);
@@ -62,7 +62,7 @@ static void *nlm_dma_alloc_coherent(stru }static void nlm_dma_free_coherent (struct device *dev,size_t size, -void *vaddr,dma_addr_t dma_handle,struct dma_attrs *attrs) +void *vaddr,dma_addr_t dma_handle,unsigned long attrs) {swiotlb_free_coherent (dev, size, vaddr, dma_handle); }
arch/mn10300/mm/dma-alloc.c renamed from arch/mn10300/mm/dma-alloc.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -4
@@ -21,7 +21,7 @@static unsigned long pci_sram_allocated =0xbc000000 ;static void *mn10300_dma_alloc (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {unsigned long addr;void *ret;
@@ -63,7 +63,7 @@ done: }static void mn10300_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {unsigned long addr = (unsigned long ) vaddr & ~0x20000000 ;
@@ -75,7 +75,7 @@ static void mn10300_dma_free(struct devistatic int mn10300_dma_map_sg (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int i;
@@ -92,7 +92,7 @@ static int mn10300_dma_map_sg(struct devstatic dma_addr_t mn10300_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size, -enum dma_data_direction direction,struct dma_attrs *attrs) +enum dma_data_direction direction,unsigned long attrs) {return page_to_bus (page) + offset; }
arch/nios2/mm/dma-mapping.c renamed from arch/nios2/mm/dma-mapping.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -59,7 +59,7 @@ static inline void __dma_sync_for_cpu(vo }static void *nios2_dma_alloc (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t gfp,unsigned long attrs) {void *ret;
@@ -84,7 +84,7 @@ static void *nios2_dma_alloc(struct devi }static void nios2_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {unsigned long addr = (unsigned long )CAC_ADDR ((unsigned long ) vaddr);
@@ -93,7 +93,7 @@ static void nios2_dma_free(struct devicestatic int nios2_dma_map_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {int i;
@@ -113,7 +113,7 @@ static int nios2_dma_map_sg(struct devicstatic dma_addr_t nios2_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {void *addr =page_address (page) + offset;
@@ -123,14 +123,14 @@ static dma_addr_t nios2_dma_map_page(strstatic void nios2_dma_unmap_page (struct device *dev,dma_addr_t dma_address,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {__dma_sync_for_cpu (phys_to_virt (dma_address), size, direction); }static void nios2_dma_unmap_sg (struct device *dev,struct scatterlist *sg,int nhwentries,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {void *addr;int i;
arch/openrisc/kernel/dma.c renamed from arch/openrisc/kernel/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +10 -11
@@ -22,7 +22,6 @@#include <linux/dma-mapping.h> #include <linux/dma-debug.h> #include <linux/export.h> -#include <linux/dma-attrs.h> #include <asm/cpuinfo.h> #include <asm/spr_defs.h>
@@ -83,7 +82,7 @@ page_clear_nocache(pte_t *pte, unsignedstatic void *or1k_dma_alloc (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long va;void *page;
@@ -101,7 +100,7 @@ or1k_dma_alloc(struct device *dev, size_ va = (unsigned long )page; -if (!dma_get_attr (DMA_ATTR_NON_CONSISTENT , attrs)) { +if ((attrs &DMA_ATTR_NON_CONSISTENT ) ==0 ) {/* * We need to iterate through the pages, clearing the dcache for * them and setting the cache-inhibit bit.
@@ -117,7 +116,7 @@ or1k_dma_alloc(struct device *dev, size_static void or1k_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {unsigned long va = (unsigned long )vaddr;struct mm_walk walk = {
@@ -125,7 +124,7 @@ or1k_dma_free(struct device *dev, size_t .mm = &init_mm }; -if (!dma_get_attr (DMA_ATTR_NON_CONSISTENT , attrs)) { +if ((attrs &DMA_ATTR_NON_CONSISTENT ) ==0 ) {/* walk_page_range shouldn't be able to fail here */ WARN_ON (walk_page_range (va, va + size, &walk)); }
@@ -137,7 +136,7 @@ static dma_addr_t or1k_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction dir, - struct dma_attrs *attrs) + unsigned long attrs) { unsigned long cl;dma_addr_t addr =page_to_phys (page) + offset;
@@ -170,7 +169,7 @@ or1k_map_page(struct device *dev, structstatic void or1k_unmap_page (struct device *dev,dma_addr_t dma_handle,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {/* Nothing special to do here... */ }
@@ -178,14 +177,14 @@ or1k_unmap_page(struct device *dev, dma_static int or1k_map_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *s;int i;for_each_sg (sg, s, nents, i) { s->dma_address =or1k_map_page (dev,sg_page (s), s->offset, - s->length, dir,NULL ); + s->length, dir,0 ); }return nents;
@@ -194,13 +193,13 @@ or1k_map_sg(struct device *dev, struct sstatic void or1k_unmap_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *s;int i;for_each_sg (sg, s, nents, i) { -or1k_unmap_page (dev,sg_dma_address (s),sg_dma_len (s), dir,NULL ); +or1k_unmap_page (dev,sg_dma_address (s),sg_dma_len (s), dir,0 ); } }
arch/parisc/kernel/pci-dma.c renamed from arch/parisc/kernel/pci-dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +9 -9
@@ -414,7 +414,7 @@ pcxl_dma_init(void)__initcall (pcxl_dma_init);static void *pa11_dma_alloc (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t flag,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t flag,unsigned long attrs) {unsigned long vaddr;unsigned long paddr;
@@ -441,7 +441,7 @@ static void *pa11_dma_alloc(struct devic }static void pa11_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {int order;
@@ -454,7 +454,7 @@ static void pa11_dma_free(struct devicestatic dma_addr_t pa11_dma_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size, -enum dma_data_direction direction,struct dma_attrs *attrs) +enum dma_data_direction direction,unsigned long attrs) {void *addr =page_address (page) + offset;BUG_ON (direction ==DMA_NONE );
@@ -465,7 +465,7 @@ static dma_addr_t pa11_dma_map_page(strustatic void pa11_dma_unmap_page (struct device *dev,dma_addr_t dma_handle,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {BUG_ON (direction ==DMA_NONE );
@@ -484,7 +484,7 @@ static void pa11_dma_unmap_page(struct dstatic int pa11_dma_map_sg (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {int i;struct scatterlist *sg;
@@ -503,7 +503,7 @@ static int pa11_dma_map_sg(struct devicestatic void pa11_dma_unmap_sg (struct device *dev,struct scatterlist *sglist,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {int i;struct scatterlist *sg;
@@ -577,11 +577,11 @@ struct dma_map_ops pcxl_dma_ops = { };static void *pcx_dma_alloc (struct device *dev,size_t size, -dma_addr_t *dma_handle,gfp_t flag,struct dma_attrs *attrs) +dma_addr_t *dma_handle,gfp_t flag,unsigned long attrs) {void *addr; -if (!dma_get_attr (DMA_ATTR_NON_CONSISTENT , attrs)) +if ((attrs &DMA_ATTR_NON_CONSISTENT ) ==0 )return NULL ; addr = (void *)__get_free_pages (flag,get_order (size));
@@ -592,7 +592,7 @@ static void *pcx_dma_alloc(struct device }static void pcx_dma_free (struct device *dev,size_t size,void *vaddr, -dma_addr_t iova,struct dma_attrs *attrs) +dma_addr_t iova,unsigned long attrs) {free_pages ((unsigned long )vaddr,get_order (size));return ;
arch/powerpc/include/asm/dma-mapping.h renamed from arch/powerpc/include/asm/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +3 -4
@@ -13,7 +13,6 @@/* need struct page definitions */ #include <linux/mm.h> #include <linux/scatterlist.h> -#include <linux/dma-attrs.h> #include <linux/dma-debug.h> #include <asm/io.h> #include <asm/swiotlb.h>
@@ -25,14 +24,14 @@/* Some dma direct funcs must be visible for use in other dma_ops */ extern void *__dma_direct_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs); +unsigned long attrs);extern void __dma_direct_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs); +unsigned long attrs);extern int dma_direct_mmap_coherent (struct device *dev,struct vm_area_struct *vma,void *cpu_addr,dma_addr_t handle, -size_t size,struct dma_attrs *attrs); +size_t size,unsigned long attrs);#ifdef CONFIG_NOT_COHERENT_CACHE /*
arch/powerpc/include/asm/iommu.h renamed from arch/powerpc/include/asm/iommu.h~dma-mapping-use-unsigned-long-for-dma_attrs +5 -5
@@ -53,7 +53,7 @@ struct iommu_table_ops { long index, long npages, unsigned long uaddr, enum dma_data_direction direction, - struct dma_attrs *attrs); + unsigned long attrs);#ifdef CONFIG_IOMMU_API /* * Exchanges existing TCE with new TCE plus direction bits;
@@ -248,12 +248,12 @@ extern int ppc_iommu_map_sg(struct devic struct scatterlist *sglist, int nelems, unsigned long mask, enum dma_data_direction direction, - struct dma_attrs *attrs); + unsigned long attrs);extern void ppc_iommu_unmap_sg (struct iommu_table *tbl,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs); +unsigned long attrs); extern void *iommu_alloc_coherent(struct device *dev, struct iommu_table *tbl, size_t size, dma_addr_t *dma_handle,
@@ -264,10 +264,10 @@ extern dma_addr_t iommu_map_page(struct struct page *page, unsigned long offset, size_t size, unsigned long mask, enum dma_data_direction direction, - struct dma_attrs *attrs); + unsigned long attrs);extern void iommu_unmap_page (struct iommu_table *tbl,dma_addr_t dma_handle,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs); +unsigned long attrs);extern void iommu_init_early_pSeries (void );extern void iommu_init_early_dart (struct pci_controller_ops *controller_ops);
arch/powerpc/kernel/dma-iommu.c renamed from arch/powerpc/kernel/dma-iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -18,7 +18,7 @@*/ static void *dma_iommu_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) { return iommu_alloc_coherent(dev, get_iommu_table_base(dev), size, dma_handle, dev->coherent_dma_mask, flag,
@@ -27,7 +27,7 @@ static void *dma_iommu_alloc_coherent(ststatic void dma_iommu_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {iommu_free_coherent (get_iommu_table_base (dev), size, vaddr, dma_handle); }
@@ -40,7 +40,7 @@ static void dma_iommu_free_coherent(strustatic dma_addr_t dma_iommu_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {return iommu_map_page (dev,get_iommu_table_base (dev), page, offset, size,device_to_mask (dev), direction, attrs);
@@ -49,7 +49,7 @@ static dma_addr_t dma_iommu_map_page(strstatic void dma_iommu_unmap_page (struct device *dev,dma_addr_t dma_handle,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {iommu_unmap_page (get_iommu_table_base (dev), dma_handle, size, direction, attrs);
@@ -58,7 +58,7 @@ static void dma_iommu_unmap_page(structstatic int dma_iommu_map_sg (struct device *dev,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {return ppc_iommu_map_sg (dev,get_iommu_table_base (dev), sglist, nelems,device_to_mask (dev), direction, attrs);
@@ -66,7 +66,7 @@ static int dma_iommu_map_sg(struct devicstatic void dma_iommu_unmap_sg (struct device *dev,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {ppc_iommu_unmap_sg (get_iommu_table_base (dev), sglist, nelems, direction, attrs);
arch/powerpc/kernel/dma.c renamed from arch/powerpc/kernel/dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +9 -9
@@ -64,7 +64,7 @@ static int dma_direct_dma_supported(struvoid *__dma_direct_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) {void *ret;#ifdef CONFIG_NOT_COHERENT_CACHE
@@ -121,7 +121,7 @@ void *__dma_direct_alloc_coherent(structvoid __dma_direct_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {#ifdef CONFIG_NOT_COHERENT_CACHE __dma_free_coherent (size, vaddr);
@@ -132,7 +132,7 @@ void __dma_direct_free_coherent(struct dstatic void *dma_direct_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) {struct iommu_table *iommu;
@@ -156,7 +156,7 @@ static void *dma_direct_alloc_coherent(sstatic void dma_direct_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {struct iommu_table *iommu;
@@ -177,7 +177,7 @@ static void dma_direct_free_coherent(strint dma_direct_mmap_coherent (struct device *dev,struct vm_area_struct *vma,void *cpu_addr,dma_addr_t handle,size_t size, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long pfn;
@@ -195,7 +195,7 @@ int dma_direct_mmap_coherent(struct devistatic int dma_direct_map_sg (struct device *dev,struct scatterlist *sgl,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int i;
@@ -211,7 +211,7 @@ static int dma_direct_map_sg(struct devistatic void dma_direct_unmap_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) { }
@@ -232,7 +232,7 @@ static inline dma_addr_t dma_direct_map_unsigned long offset, size_t size, enum dma_data_direction dir, - struct dma_attrs *attrs) + unsigned long attrs) { BUG_ON(dir == DMA_NONE);__dma_sync_page (page, offset, size, dir);
@@ -243,7 +243,7 @@ static inline void dma_direct_unmap_pagedma_addr_t dma_address, size_t size, enum dma_data_direction direction, - struct dma_attrs *attrs) + unsigned long attrs) { }
arch/powerpc/kernel/ibmebus.c renamed from arch/powerpc/kernel/ibmebus.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -65,7 +65,7 @@ static void *ibmebus_alloc_coherent(strusize_t size, dma_addr_t *dma_handle, gfp_t flag, - struct dma_attrs *attrs) + unsigned long attrs) { void *mem;
@@ -78,7 +78,7 @@ static void *ibmebus_alloc_coherent(strustatic void ibmebus_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {kfree (vaddr); }
@@ -88,7 +88,7 @@ static dma_addr_t ibmebus_map_page(strucunsigned long offset, size_t size, enum dma_data_direction direction, - struct dma_attrs *attrs) + unsigned long attrs) { return (dma_addr_t)(page_address(page) + offset); }
@@ -97,7 +97,7 @@ static void ibmebus_unmap_page(struct dedma_addr_t dma_addr, size_t size, enum dma_data_direction direction, - struct dma_attrs *attrs) + unsigned long attrs) { return; }
@@ -105,7 +105,7 @@ static void ibmebus_unmap_page(struct destatic int ibmebus_map_sg (struct device *dev,struct scatterlist *sgl,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int i;
@@ -121,7 +121,7 @@ static int ibmebus_map_sg(struct devicestatic void ibmebus_unmap_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {return ; }
arch/powerpc/kernel/iommu.c renamed from arch/powerpc/kernel/iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -307,7 +307,7 @@ static dma_addr_t iommu_alloc(struct dev void *page, unsigned int npages, enum dma_data_direction direction, unsigned long mask, unsigned int align_order, - struct dma_attrs *attrs) + unsigned long attrs) { unsigned long entry;dma_addr_t ret =DMA_ERROR_CODE ;
@@ -431,7 +431,7 @@ static void iommu_free(struct iommu_tablint ppc_iommu_map_sg (struct device *dev,struct iommu_table *tbl,struct scatterlist *sglist,int nelems,unsigned long mask,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t dma_next =0 , dma_addr;struct scatterlist *s, *outs, *segstart;
@@ -574,7 +574,7 @@ int ppc_iommu_map_sg(struct device *dev,void ppc_iommu_unmap_sg (struct iommu_table *tbl,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;
@@ -753,7 +753,7 @@ void iommu_free_table(struct iommu_tabledma_addr_t iommu_map_page (struct device *dev,struct iommu_table *tbl,struct page *page,unsigned long offset,size_t size,unsigned long mask,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t dma_handle =DMA_ERROR_CODE ;void *vaddr;
@@ -790,7 +790,7 @@ dma_addr_t iommu_map_page(struct devicevoid iommu_unmap_page (struct iommu_table *tbl,dma_addr_t dma_handle,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned int npages;
@@ -845,7 +845,7 @@ void *iommu_alloc_coherent(struct device nio_pages = size >> tbl->it_page_shift; io_order =get_iommu_order (size, tbl); mapping =iommu_alloc (dev, tbl, ret, nio_pages,DMA_BIDIRECTIONAL , - mask >> tbl->it_page_shift, io_order,NULL ); + mask >> tbl->it_page_shift, io_order,0 );if (mapping ==DMA_ERROR_CODE ) {free_pages ((unsigned long )ret, order);return NULL ;
arch/powerpc/kernel/vio.c renamed from arch/powerpc/kernel/vio.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -482,7 +482,7 @@ static void vio_cmo_balance(struct work_static void *vio_dma_iommu_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) {struct vio_dev *viodev =to_vio_dev (dev);void *ret;
@@ -503,7 +503,7 @@ static void *vio_dma_iommu_alloc_coherenstatic void vio_dma_iommu_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {struct vio_dev *viodev =to_vio_dev (dev);
@@ -515,7 +515,7 @@ static void vio_dma_iommu_free_coherent(static dma_addr_t vio_dma_iommu_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct vio_dev *viodev =to_vio_dev (dev);struct iommu_table *tbl;
@@ -539,7 +539,7 @@ static dma_addr_t vio_dma_iommu_map_pagestatic void vio_dma_iommu_unmap_page (struct device *dev,dma_addr_t dma_handle,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct vio_dev *viodev =to_vio_dev (dev);struct iommu_table *tbl;
@@ -552,7 +552,7 @@ static void vio_dma_iommu_unmap_page(strstatic int vio_dma_iommu_map_sg (struct device *dev,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct vio_dev *viodev =to_vio_dev (dev);struct iommu_table *tbl;
@@ -588,7 +588,7 @@ static int vio_dma_iommu_map_sg(struct dstatic void vio_dma_iommu_unmap_sg (struct device *dev,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct vio_dev *viodev =to_vio_dev (dev);struct iommu_table *tbl;
arch/powerpc/platforms/cell/iommu.c renamed from arch/powerpc/platforms/cell/iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +14 -14
@@ -166,7 +166,7 @@ static void invalidate_tce_cache(structstatic int tce_build_cell (struct iommu_table *tbl,long index,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {int i;unsigned long *io_pte, base_pte;
@@ -193,7 +193,7 @@ static int tce_build_cell(struct iommu_t base_pte =CBE_IOPTE_PP_W |CBE_IOPTE_PP_R |CBE_IOPTE_M |CBE_IOPTE_SO_RW | (window->ioid & CBE_IOPTE_IOID_Mask);#endif -if (unlikely (dma_get_attr (DMA_ATTR_WEAK_ORDERING , attrs))) +if (unlikely (attrs &DMA_ATTR_WEAK_ORDERING )) base_pte &= ~CBE_IOPTE_SO_RW ; io_pte = (unsigned long *)tbl->it_base + (index - tbl->it_offset);
@@ -526,7 +526,7 @@ cell_iommu_setup_window(struct cbe_iommu__set_bit (0 , window->table.it_map);tce_build_cell (&window->table, window->table.it_offset,1 , - (unsigned long )iommu->pad_page,DMA_TO_DEVICE ,NULL ); + (unsigned long )iommu->pad_page,DMA_TO_DEVICE ,0 );return window; }
@@ -572,7 +572,7 @@ static struct iommu_table *cell_get_iommstatic void *dma_fixed_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) {if (iommu_fixed_is_weak) return iommu_alloc_coherent(dev, cell_get_iommu_table(dev),
@@ -586,7 +586,7 @@ static void *dma_fixed_alloc_coherent(ststatic void dma_fixed_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {if (iommu_fixed_is_weak) iommu_free_coherent(cell_get_iommu_table(dev), size, vaddr,
@@ -598,9 +598,9 @@ static void dma_fixed_free_coherent(strustatic dma_addr_t dma_fixed_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) { -if (iommu_fixed_is_weak ==dma_get_attr (DMA_ATTR_WEAK_ORDERING , attrs)) +if (iommu_fixed_is_weak == (attrs &DMA_ATTR_WEAK_ORDERING ))return dma_direct_ops.map_page (dev, page, offset, size, direction, attrs);else
@@ -611,9 +611,9 @@ static dma_addr_t dma_fixed_map_page(strstatic void dma_fixed_unmap_page (struct device *dev,dma_addr_t dma_addr,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) { -if (iommu_fixed_is_weak ==dma_get_attr (DMA_ATTR_WEAK_ORDERING , attrs)) +if (iommu_fixed_is_weak == (attrs &DMA_ATTR_WEAK_ORDERING )) dma_direct_ops.unmap_page (dev, dma_addr, size, direction, attrs);else
@@ -623,9 +623,9 @@ static void dma_fixed_unmap_page(structstatic int dma_fixed_map_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) { -if (iommu_fixed_is_weak ==dma_get_attr (DMA_ATTR_WEAK_ORDERING , attrs)) +if (iommu_fixed_is_weak == (attrs &DMA_ATTR_WEAK_ORDERING ))return dma_direct_ops.map_sg (dev, sg, nents, direction, attrs);else return ppc_iommu_map_sg(dev, cell_get_iommu_table(dev), sg,
@@ -635,9 +635,9 @@ static int dma_fixed_map_sg(struct devicstatic void dma_fixed_unmap_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) { -if (iommu_fixed_is_weak ==dma_get_attr (DMA_ATTR_WEAK_ORDERING , attrs)) +if (iommu_fixed_is_weak == (attrs &DMA_ATTR_WEAK_ORDERING )) dma_direct_ops.unmap_sg (dev, sg, nents, direction, attrs);else ppc_iommu_unmap_sg(cell_get_iommu_table(dev), sg, nents,
@@ -1162,7 +1162,7 @@ static int __init setup_iommu_fixed(char pciep =of_find_node_by_type (NULL ,"pcie-endpoint" );if (strcmp (str,"weak" ) ==0 || (pciep &&strcmp (str,"strong" ) !=0 )) - iommu_fixed_is_weak =1 ; + iommu_fixed_is_weak =DMA_ATTR_WEAK_ORDERING ;of_node_put (pciep);
arch/powerpc/platforms/pasemi/iommu.c renamed from arch/powerpc/platforms/pasemi/iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
@@ -88,7 +88,7 @@ static int iommu_table_iobmap_inited;static int iobmap_build (struct iommu_table *tbl,long index,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {u32 *ip;u32 rpn;
arch/powerpc/platforms/powernv/npu-dma.c renamed from arch/powerpc/platforms/powernv/npu-dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -4
@@ -73,7 +73,7 @@ EXPORT_SYMBOL(pnv_pci_get_npu_dev);static void *dma_npu_alloc (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) {NPU_DMA_OP_UNSUPPORTED ();return NULL ;
@@ -81,7 +81,7 @@ static void *dma_npu_alloc(struct devicestatic void dma_npu_free (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {NPU_DMA_OP_UNSUPPORTED (); }
@@ -89,7 +89,7 @@ static void dma_npu_free(struct device *static dma_addr_t dma_npu_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {NPU_DMA_OP_UNSUPPORTED ();return 0 ;
@@ -97,7 +97,7 @@ static dma_addr_t dma_npu_map_page(strucstatic int dma_npu_map_sg (struct device *dev,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {NPU_DMA_OP_UNSUPPORTED ();return 0 ;
arch/powerpc/platforms/powernv/pci-ioda.c renamed from arch/powerpc/platforms/powernv/pci-ioda.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
@@ -1806,7 +1806,7 @@ static void pnv_pci_p7ioc_tce_invalidatestatic int pnv_ioda1_tce_build (struct iommu_table *tbl,long index,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {int ret =pnv_tce_build (tbl, index, npages, uaddr, direction, attrs);
@@ -1950,7 +1950,7 @@ static void pnv_pci_ioda2_tce_invalidatestatic int pnv_ioda2_tce_build (struct iommu_table *tbl,long index,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {int ret =pnv_tce_build (tbl, index, npages, uaddr, direction, attrs);
arch/powerpc/platforms/powernv/pci.c renamed from arch/powerpc/platforms/powernv/pci.c~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
@@ -704,7 +704,7 @@ static __be64 *pnv_tce(struct iommu_tablint pnv_tce_build (struct iommu_table *tbl,long index,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {u64 proto_tce =iommu_direction_to_tce_perm (direction);u64 rpn =__pa (uaddr) >> tbl->it_page_shift;
arch/powerpc/platforms/powernv/pci.h renamed from arch/powerpc/platforms/powernv/pci.h~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
@@ -181,7 +181,7 @@ struct pnv_phb {extern struct pci_ops pnv_pci_ops;extern int pnv_tce_build (struct iommu_table *tbl,long index,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs); +unsigned long attrs);extern void pnv_tce_free (struct iommu_table *tbl,long index,long npages);extern int pnv_tce_xchg (struct iommu_table *tbl,long index,unsigned long *hpa,enum dma_data_direction *direction);
arch/powerpc/platforms/ps3/system-bus.c renamed from arch/powerpc/platforms/ps3/system-bus.c~dma-mapping-use-unsigned-long-for-dma_attrs +9 -9
@@ -516,7 +516,7 @@ core_initcall(ps3_system_bus_init);*/ static void *ps3_alloc_coherent (struct device *_dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) {int result;struct ps3_system_bus_device *dev =ps3_dev_to_system_bus_dev (_dev);
@@ -553,7 +553,7 @@ clean_none: }static void ps3_free_coherent (struct device *_dev,size_t size,void *vaddr, -dma_addr_t dma_handle,struct dma_attrs *attrs) +dma_addr_t dma_handle,unsigned long attrs) {struct ps3_system_bus_device *dev =ps3_dev_to_system_bus_dev (_dev);
@@ -569,7 +569,7 @@ static void ps3_free_coherent(struct devstatic dma_addr_t ps3_sb_map_page (struct device *_dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct ps3_system_bus_device *dev =ps3_dev_to_system_bus_dev (_dev);int result;
@@ -592,7 +592,7 @@ static dma_addr_t ps3_sb_map_page(structstatic dma_addr_t ps3_ioc0_map_page (struct device *_dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct ps3_system_bus_device *dev =ps3_dev_to_system_bus_dev (_dev);int result;
@@ -626,7 +626,7 @@ static dma_addr_t ps3_ioc0_map_page(stru }static void ps3_unmap_page (struct device *_dev,dma_addr_t dma_addr, -size_t size,enum dma_data_direction direction,struct dma_attrs *attrs) +size_t size,enum dma_data_direction direction,unsigned long attrs) {struct ps3_system_bus_device *dev =ps3_dev_to_system_bus_dev (_dev);int result;
@@ -640,7 +640,7 @@ static void ps3_unmap_page(struct device }static int ps3_sb_map_sg (struct device *_dev,struct scatterlist *sgl, -int nents,enum dma_data_direction direction,struct dma_attrs *attrs) +int nents,enum dma_data_direction direction,unsigned long attrs) {#if defined(CONFIG_PS3_DYNAMIC_DMA )BUG_ON ("do" );
@@ -670,14 +670,14 @@ static int ps3_sb_map_sg(struct device *static int ps3_ioc0_map_sg (struct device *_dev,struct scatterlist *sg,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {BUG ();return 0 ; }static void ps3_sb_unmap_sg (struct device *_dev,struct scatterlist *sg, -int nents,enum dma_data_direction direction,struct dma_attrs *attrs) +int nents,enum dma_data_direction direction,unsigned long attrs) {#if defined(CONFIG_PS3_DYNAMIC_DMA )BUG_ON ("do" );
@@ -686,7 +686,7 @@ static void ps3_sb_unmap_sg(struct devicstatic void ps3_ioc0_unmap_sg (struct device *_dev,struct scatterlist *sg,int nents,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {BUG (); }
arch/powerpc/platforms/pseries/iommu.c renamed from arch/powerpc/platforms/pseries/iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +3 -3
@@ -123,7 +123,7 @@ static void iommu_pseries_free_group(strstatic int tce_build_pSeries (struct iommu_table *tbl,long index,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {u64 proto_tce;__be64 *tcep, *tces;
@@ -173,7 +173,7 @@ static void tce_freemulti_pSeriesLP(strustatic int tce_build_pSeriesLP (struct iommu_table *tbl,long tcenum,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {u64 rc =0 ;u64 proto_tce, tce;
@@ -216,7 +216,7 @@ static DEFINE_PER_CPU(__be64 *, tce_pagestatic int tce_buildmulti_pSeriesLP (struct iommu_table *tbl,long tcenum,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {u64 rc =0 ;u64 proto_tce;
arch/powerpc/sysdev/dart_iommu.c renamed from arch/powerpc/sysdev/dart_iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
@@ -185,7 +185,7 @@ static void dart_flush(struct iommu_tablstatic int dart_build (struct iommu_table *tbl,long index,long npages,unsigned long uaddr,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned int *dp, *orig_dp;unsigned int rpn;
arch/s390/include/asm/dma-mapping.h renamed from arch/s390/include/asm/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +0 -1
@@ -5,7 +5,6 @@#include <linux/types.h> #include <linux/mm.h> #include <linux/scatterlist.h> -#include <linux/dma-attrs.h> #include <linux/dma-debug.h> #include <linux/io.h>
arch/s390/pci/pci_dma.c renamed from arch/s390/pci/pci_dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +12 -11
@@ -286,7 +286,7 @@ static inline void zpci_err_dma(unsignedstatic dma_addr_t s390_dma_map_pages (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct zpci_dev *zdev =to_zpci (to_pci_dev (dev));unsigned long nr_pages, iommu_page_index;
@@ -332,7 +332,7 @@ out_err:static void s390_dma_unmap_pages (struct device *dev,dma_addr_t dma_addr,size_t size,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct zpci_dev *zdev =to_zpci (to_pci_dev (dev));unsigned long iommu_page_index;
@@ -355,7 +355,7 @@ static void s390_dma_unmap_pages(structstatic void *s390_dma_alloc (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t flag, -struct dma_attrs *attrs) +unsigned long attrs) {struct zpci_dev *zdev =to_zpci (to_pci_dev (dev));struct page *page;
@@ -370,7 +370,7 @@ static void *s390_dma_alloc(struct devic pa =page_to_phys (page);memset ((void *) pa,0 , size); - map =s390_dma_map_pages (dev, page,0 , size,DMA_BIDIRECTIONAL ,NULL ); + map =s390_dma_map_pages (dev, page,0 , size,DMA_BIDIRECTIONAL ,0 );if (dma_mapping_error (dev, map)) {free_pages (pa,get_order (size));return NULL ;
@@ -384,19 +384,19 @@ static void *s390_dma_alloc(struct devicstatic void s390_dma_free (struct device *dev,size_t size,void *pa,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {struct zpci_dev *zdev =to_zpci (to_pci_dev (dev)); size =PAGE_ALIGN (size);atomic64_sub (size /PAGE_SIZE , &zdev->allocated_pages); -s390_dma_unmap_pages (dev, dma_handle, size,DMA_BIDIRECTIONAL ,NULL ); +s390_dma_unmap_pages (dev, dma_handle, size,DMA_BIDIRECTIONAL ,0 );free_pages ((unsigned long ) pa,get_order (size)); }static int s390_dma_map_sg (struct device *dev,struct scatterlist *sg,int nr_elements,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {int mapped_elements =0 ;struct scatterlist *s;
@@ -405,7 +405,7 @@ static int s390_dma_map_sg(struct devicefor_each_sg (sg, s, nr_elements, i) {struct page *page =sg_page (s); s->dma_address =s390_dma_map_pages (dev, page, s->offset, - s->length, dir,NULL ); + s->length, dir,0 );if (!dma_mapping_error (dev, s->dma_address)) { s->dma_length = s->length; mapped_elements++;
@@ -419,7 +419,7 @@ unmap:for_each_sg (sg, s, mapped_elements, i) {if (s->dma_address)s390_dma_unmap_pages (dev, s->dma_address, s->dma_length, - dir,NULL ); + dir,0 ); s->dma_address =0 ; s->dma_length =0 ; }
@@ -429,13 +429,14 @@ unmap:static void s390_dma_unmap_sg (struct device *dev,struct scatterlist *sg,int nr_elements,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *s;int i;for_each_sg (sg, s, nr_elements, i) { -s390_dma_unmap_pages (dev, s->dma_address, s->dma_length, dir,NULL ); +s390_dma_unmap_pages (dev, s->dma_address, s->dma_length, dir, +0 ); s->dma_address =0 ; s->dma_length =0 ; }
arch/sh/include/asm/dma-mapping.h renamed from arch/sh/include/asm/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
@@ -17,9 +17,9 @@ void dma_cache_sync(struct device *dev,/* arch/sh/mm/consistent.c */ extern void *dma_generic_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_addr,gfp_t flag, -struct dma_attrs *attrs); +unsigned long attrs);extern void dma_generic_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs); +unsigned long attrs);#endif /* __ASM_SH_DMA_MAPPING_H */
arch/sh/kernel/dma-nommu.c renamed from arch/sh/kernel/dma-nommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
@@ -13,7 +13,7 @@static dma_addr_t nommu_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {dma_addr_t addr =page_to_phys (page) + offset;
@@ -25,7 +25,7 @@ static dma_addr_t nommu_map_page(structstatic int nommu_map_sg (struct device *dev,struct scatterlist *sg,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *s;int i;
arch/sh/mm/consistent.c renamed from arch/sh/mm/consistent.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
@@ -34,7 +34,7 @@ fs_initcall(dma_init);void *dma_generic_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {void *ret, *ret_nocache;int order =get_order (size);
@@ -66,7 +66,7 @@ void *dma_generic_alloc_coherent(structvoid dma_generic_free_coherent (struct device *dev,size_t size,void *vaddr,dma_addr_t dma_handle, -struct dma_attrs *attrs) +unsigned long attrs) {int order =get_order (size);unsigned long pfn = dma_handle >>PAGE_SHIFT ;
arch/sparc/kernel/iommu.c renamed from arch/sparc/kernel/iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -196,7 +196,7 @@ static inline void iommu_free_ctx(structstatic void *dma_4u_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_addrp,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long order, first_page;struct iommu *iommu;
@@ -245,7 +245,7 @@ static void *dma_4u_alloc_coherent(strucstatic void dma_4u_free_coherent (struct device *dev,size_t size,void *cpu,dma_addr_t dvma, -struct dma_attrs *attrs) +unsigned long attrs) {struct iommu *iommu;unsigned long order, npages;
@@ -263,7 +263,7 @@ static void dma_4u_free_coherent(structstatic dma_addr_t dma_4u_map_page (struct device *dev,struct page *page,unsigned long offset,size_t sz,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct iommu *iommu;struct strbuf *strbuf;
@@ -385,7 +385,7 @@ do_flush_sync:static void dma_4u_unmap_page (struct device *dev,dma_addr_t bus_addr,size_t sz,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct iommu *iommu;struct strbuf *strbuf;
@@ -431,7 +431,7 @@ static void dma_4u_unmap_page(struct devstatic int dma_4u_map_sg (struct device *dev,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *s, *outs, *segstart;unsigned long flags, handle, prot, ctx;
@@ -607,7 +607,7 @@ static unsigned long fetch_sg_ctx(structstatic void dma_4u_unmap_sg (struct device *dev,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long flags, ctx;struct scatterlist *sg;
arch/sparc/kernel/ioport.c renamed from arch/sparc/kernel/ioport.c~dma-mapping-use-unsigned-long-for-dma_attrs +12 -12
@@ -260,7 +260,7 @@ EXPORT_SYMBOL(sbus_set_sbus64);*/ static void *sbus_alloc_coherent (struct device *dev,size_t len,dma_addr_t *dma_addrp,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {struct platform_device *op =to_platform_device (dev);unsigned long len_total =PAGE_ALIGN (len);
@@ -315,7 +315,7 @@ err_nopages: }static void sbus_free_coherent (struct device *dev,size_t n,void *p, -dma_addr_t ba,struct dma_attrs *attrs) +dma_addr_t ba,unsigned long attrs) {struct resource *res;struct page *pgv;
@@ -355,7 +355,7 @@ static void sbus_free_coherent(struct destatic dma_addr_t sbus_map_page (struct device *dev,struct page *page,unsigned long offset,size_t len,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {void *va =page_address (page) + offset;
@@ -371,20 +371,20 @@ static dma_addr_t sbus_map_page(struct d }static void sbus_unmap_page (struct device *dev,dma_addr_t ba,size_t n, -enum dma_data_direction dir,struct dma_attrs *attrs) +enum dma_data_direction dir,unsigned long attrs) {mmu_release_scsi_one (dev, ba, n); }static int sbus_map_sg (struct device *dev,struct scatterlist *sg,int n, -enum dma_data_direction dir,struct dma_attrs *attrs) +enum dma_data_direction dir,unsigned long attrs) {mmu_get_scsi_sgl (dev, sg, n);return n; }static void sbus_unmap_sg (struct device *dev,struct scatterlist *sg,int n, -enum dma_data_direction dir,struct dma_attrs *attrs) +enum dma_data_direction dir,unsigned long attrs) {mmu_release_scsi_sgl (dev, sg, n); }
@@ -429,7 +429,7 @@ arch_initcall(sparc_register_ioport);*/ static void *pci32_alloc_coherent (struct device *dev,size_t len,dma_addr_t *pba,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long len_total =PAGE_ALIGN (len);void *va;
@@ -482,7 +482,7 @@ err_nopages:* past this call are illegal. */ static void pci32_free_coherent (struct device *dev,size_t n,void *p, -dma_addr_t ba,struct dma_attrs *attrs) +dma_addr_t ba,unsigned long attrs) {struct resource *res;
@@ -518,14 +518,14 @@ static void pci32_free_coherent(struct dstatic dma_addr_t pci32_map_page (struct device *dev,struct page *page,unsigned long offset,size_t size,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {/* IIep is write-through, not flushing. */ return page_to_phys (page) + offset; }static void pci32_unmap_page (struct device *dev,dma_addr_t ba,size_t size, -enum dma_data_direction dir,struct dma_attrs *attrs) +enum dma_data_direction dir,unsigned long attrs) {if (dir !=PCI_DMA_TODEVICE )dma_make_coherent (ba,PAGE_ALIGN (size));
@@ -548,7 +548,7 @@ static void pci32_unmap_page(struct devi*/ static int pci32_map_sg (struct device *device,struct scatterlist *sgl,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int n;
@@ -567,7 +567,7 @@ static int pci32_map_sg(struct device *d*/ static void pci32_unmap_sg (struct device *dev,struct scatterlist *sgl,int nents,enum dma_data_direction dir, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *sg;int n;
arch/sparc/kernel/pci_sun4v.c renamed from arch/sparc/kernel/pci_sun4v.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
@@ -130,7 +130,7 @@ static inline long iommu_batch_end(void)static void *dma_4v_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_addrp,gfp_t gfp, -struct dma_attrs *attrs) +unsigned long attrs) {unsigned long flags, order, first_page, npages, n;struct iommu *iommu;
@@ -213,7 +213,7 @@ static void dma_4v_iommu_demap(void *dem }static void dma_4v_free_coherent (struct device *dev,size_t size,void *cpu, -dma_addr_t dvma,struct dma_attrs *attrs) +dma_addr_t dvma,unsigned long attrs) {struct pci_pbm_info *pbm;struct iommu *iommu;
@@ -235,7 +235,7 @@ static void dma_4v_free_coherent(structstatic dma_addr_t dma_4v_map_page (struct device *dev,struct page *page,unsigned long offset,size_t sz,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct iommu *iommu;unsigned long flags, npages, oaddr;
@@ -294,7 +294,7 @@ iommu_map_fail:static void dma_4v_unmap_page (struct device *dev,dma_addr_t bus_addr,size_t sz,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct pci_pbm_info *pbm;struct iommu *iommu;
@@ -322,7 +322,7 @@ static void dma_4v_unmap_page(struct devstatic int dma_4v_map_sg (struct device *dev,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct scatterlist *s, *outs, *segstart;unsigned long flags, handle, prot;
@@ -466,7 +466,7 @@ iommu_map_failed:static void dma_4v_unmap_sg (struct device *dev,struct scatterlist *sglist,int nelems,enum dma_data_direction direction, -struct dma_attrs *attrs) +unsigned long attrs) {struct pci_pbm_info *pbm;struct scatterlist *sg;
arch/tile/kernel/pci-dma.c renamed from arch/tile/kernel/pci-dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +14 -14
@@ -34,7 +34,7 @@ static void *tile_dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp,
Lines of this file are not shown. View the raw message.
arch/unicore32/mm/dma-swiotlb.c renamed from arch/unicore32/mm/dma-swiotlb.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
Lines of this file are not shown. View the raw message.
arch/x86/include/asm/dma-mapping.h renamed from arch/x86/include/asm/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +2 -3
Lines of this file are not shown. View the raw message.
arch/x86/include/asm/swiotlb.h renamed from arch/x86/include/asm/swiotlb.h~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
Lines of this file are not shown. View the raw message.
arch/x86/include/asm/xen/page-coherent.h renamed from arch/x86/include/asm/xen/page-coherent.h~dma-mapping-use-unsigned-long-for-dma_attrs +4 -5
Lines of this file are not shown. View the raw message.
arch/x86/kernel/amd_gart_64.c renamed from arch/x86/kernel/amd_gart_64.c~dma-mapping-use-unsigned-long-for-dma_attrs +10 -10
Lines of this file are not shown. View the raw message.
arch/x86/kernel/pci-calgary_64.c renamed from arch/x86/kernel/pci-calgary_64.c~dma-mapping-use-unsigned-long-for-dma_attrs +7 -7
Lines of this file are not shown. View the raw message.
arch/x86/kernel/pci-dma.c renamed from arch/x86/kernel/pci-dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
Lines of this file are not shown. View the raw message.
arch/x86/kernel/pci-nommu.c renamed from arch/x86/kernel/pci-nommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
Lines of this file are not shown. View the raw message.
arch/x86/kernel/pci-swiotlb.c renamed from arch/x86/kernel/pci-swiotlb.c~dma-mapping-use-unsigned-long-for-dma_attrs +2 -2
Lines of this file are not shown. View the raw message.
arch/x86/pci/sta2x11-fixup.c renamed from arch/x86/pci/sta2x11-fixup.c~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
Lines of this file are not shown. View the raw message.
arch/x86/pci/vmd.c renamed from arch/x86/pci/vmd.c~dma-mapping-use-unsigned-long-for-dma_attrs +8 -8
Lines of this file are not shown. View the raw message.
arch/xtensa/kernel/pci-dma.c renamed from arch/xtensa/kernel/pci-dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/exynos/exynos_drm_fbdev.c renamed from drivers/gpu/drm/exynos/exynos_drm_fbdev.c~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/exynos/exynos_drm_g2d.c renamed from drivers/gpu/drm/exynos/exynos_drm_g2d.c~dma-mapping-use-unsigned-long-for-dma_attrs +5 -7
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/exynos/exynos_drm_gem.c renamed from drivers/gpu/drm/exynos/exynos_drm_gem.c~dma-mapping-use-unsigned-long-for-dma_attrs +10 -10
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/exynos/exynos_drm_gem.h renamed from drivers/gpu/drm/exynos/exynos_drm_gem.h~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mediatek/mtk_drm_gem.c renamed from drivers/gpu/drm/mediatek/mtk_drm_gem.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -7
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mediatek/mtk_drm_gem.h renamed from drivers/gpu/drm/mediatek/mtk_drm_gem.h~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/msm_drv.c renamed from drivers/gpu/drm/msm/msm_drv.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -7
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c renamed from drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -7
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/rockchip_drm_gem.c renamed from drivers/gpu/drm/rockchip/rockchip_drm_gem.c~dma-mapping-use-unsigned-long-for-dma_attrs +7 -10
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/rockchip_drm_gem.h renamed from drivers/gpu/drm/rockchip/rockchip_drm_gem.h~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
Lines of this file are not shown. View the raw message.
drivers/infiniband/core/umem.c renamed from drivers/infiniband/core/umem.c~dma-mapping-use-unsigned-long-for-dma_attrs +3 -4
Lines of this file are not shown. View the raw message.
drivers/iommu/amd_iommu.c renamed from drivers/iommu/amd_iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
Lines of this file are not shown. View the raw message.
drivers/iommu/dma-iommu.c renamed from drivers/iommu/dma-iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +4 -4
Lines of this file are not shown. View the raw message.
drivers/iommu/intel-iommu.c renamed from drivers/iommu/intel-iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
Lines of this file are not shown. View the raw message.
drivers/media/platform/sti/bdisp/bdisp-hw.c renamed from drivers/media/platform/sti/bdisp/bdisp-hw.c~dma-mapping-use-unsigned-long-for-dma_attrs +8 -18
Lines of this file are not shown. View the raw message.
drivers/media/v4l2-core/videobuf2-dma-contig.c renamed from drivers/media/v4l2-core/videobuf2-dma-contig.c~dma-mapping-use-unsigned-long-for-dma_attrs +11 -17
Lines of this file are not shown. View the raw message.
drivers/media/v4l2-core/videobuf2-dma-sg.c renamed from drivers/media/v4l2-core/videobuf2-dma-sg.c~dma-mapping-use-unsigned-long-for-dma_attrs +5 -16
Lines of this file are not shown. View the raw message.
drivers/media/v4l2-core/videobuf2-vmalloc.c renamed from drivers/media/v4l2-core/videobuf2-vmalloc.c~dma-mapping-use-unsigned-long-for-dma_attrs +1 -1
Lines of this file are not shown. View the raw message.
drivers/misc/mic/host/mic_boot.c renamed from drivers/misc/mic/host/mic_boot.c~dma-mapping-use-unsigned-long-for-dma_attrs +10 -10
Lines of this file are not shown. View the raw message.
drivers/parisc/ccio-dma.c renamed from drivers/parisc/ccio-dma.c~dma-mapping-use-unsigned-long-for-dma_attrs +8 -8
Lines of this file are not shown. View the raw message.
drivers/parisc/sba_iommu.c renamed from drivers/parisc/sba_iommu.c~dma-mapping-use-unsigned-long-for-dma_attrs +8 -8
Lines of this file are not shown. View the raw message.
drivers/remoteproc/qcom_q6v5_pil.c renamed from drivers/remoteproc/qcom_q6v5_pil.c~dma-mapping-use-unsigned-long-for-dma_attrs +3 -4
Lines of this file are not shown. View the raw message.
drivers/video/fbdev/omap2/omapfb/omapfb-main.c renamed from drivers/video/fbdev/omap2/omapfb/omapfb-main.c~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
Lines of this file are not shown. View the raw message.
drivers/video/fbdev/omap2/omapfb/omapfb.h renamed from drivers/video/fbdev/omap2/omapfb/omapfb.h~dma-mapping-use-unsigned-long-for-dma_attrs +1 -2
Lines of this file are not shown. View the raw message.
drivers/xen/swiotlb-xen.c renamed from drivers/xen/swiotlb-xen.c~dma-mapping-use-unsigned-long-for-dma_attrs +7 -7
Lines of this file are not shown. View the raw message.
include/linux/dma-attrs.h deleted +0 -71
71 lines not on this page · raw message
include/linux/dma-iommu.h renamed from include/linux/dma-iommu.h~dma-mapping-use-unsigned-long-for-dma_attrs +3 -3
Lines of this file are not shown. View the raw message.
include/linux/dma-mapping.h renamed from include/linux/dma-mapping.h~dma-mapping-use-unsigned-long-for-dma_attrs +84 -44
128 lines not on this page · raw message
include/linux/swiotlb.h renamed from include/linux/swiotlb.h~dma-mapping-use-unsigned-long-for-dma_attrs +5 -5
Lines of this file are not shown. View the raw message.
include/media/videobuf2-core.h renamed from include/media/videobuf2-core.h~dma-mapping-use-unsigned-long-for-dma_attrs +3 -3
Lines of this file are not shown. View the raw message.
include/media/videobuf2-dma-contig.h renamed from include/media/videobuf2-dma-contig.h~dma-mapping-use-unsigned-long-for-dma_attrs +0 -2
Lines of this file are not shown. View the raw message.
include/rdma/ib_verbs.h renamed from include/rdma/ib_verbs.h~dma-mapping-use-unsigned-long-for-dma_attrs +9 -8
Lines of this file are not shown. View the raw message.
include/xen/swiotlb-xen.h renamed from include/xen/swiotlb-xen.h~dma-mapping-use-unsigned-long-for-dma_attrs +6 -6
Lines of this file are not shown. View the raw message.
lib/dma-noop.c renamed from lib/dma-noop.c~dma-mapping-use-unsigned-long-for-dma_attrs +5 -4
Lines of this file are not shown. View the raw message.
lib/swiotlb.c renamed from lib/swiotlb.c~dma-mapping-use-unsigned-long-for-dma_attrs +7 -6
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
_
Part of the diff is not shown here. View the raw message.