Searched refs:swiotlb (Results 1 - 60 of 60) sorted by relevance

/linux-4.4.14/arch/ia64/include/asm/
H A Dswiotlb.h5 #include <linux/swiotlb.h>
8 extern int swiotlb;
11 #define swiotlb 0 pci_swiotlb_init() macro
H A Ddma-mapping.h10 #include <asm/swiotlb.h>
/linux-4.4.14/arch/x86/kernel/
H A Dpci-swiotlb.c1 /* Glue code to lib/swiotlb.c */
6 #include <linux/swiotlb.h>
11 #include <asm/swiotlb.h>
13 #include <asm/xen/swiotlb-xen.h>
15 int swiotlb __read_mostly;
64 * pci_swiotlb_detect_override - set swiotlb to 1 if necessary
66 * This returns non-zero if we are forced to use swiotlb (by the boot
71 int use_swiotlb = swiotlb | swiotlb_force; pci_swiotlb_detect_override()
74 swiotlb = 1; pci_swiotlb_detect_override()
85 * and set swiotlb to 1.
89 /* don't initialize swiotlb if iommu=off (no_iommu=1) */ pci_swiotlb_detect_4gb()
92 swiotlb = 1; pci_swiotlb_detect_4gb()
94 return swiotlb; pci_swiotlb_detect_4gb()
103 if (swiotlb) { pci_swiotlb_init()
112 if (!swiotlb) pci_swiotlb_late_init()
H A DMakefile103 obj-$(CONFIG_SWIOTLB) += pci-swiotlb.o
H A Dtboot.c41 #include <asm/swiotlb.h>
528 if (no_iommu || swiotlb || dmar_disabled) tboot_force_iommu()
533 swiotlb = 0; tboot_force_iommu()
H A Dpci-dma.c195 swiotlb = 1; iommu_setup()
H A Dsetup.c513 * two parts from lib/swiotlb.c: reserve_crashkernel_low()
514 * -swiotlb size: user-specified with swiotlb= or default. reserve_crashkernel_low()
516 * -swiotlb overflow buffer: now hardcoded to 32k. We round it reserve_crashkernel_low()
H A Damd_gart_64.c40 #include <asm/swiotlb.h>
854 swiotlb = 0; gart_iommu_init()
H A Dpci-calgary_64.c1575 if (no_iommu || swiotlb || !calgary_detected) calgary_fixup_tce_spaces()
/linux-4.4.14/arch/ia64/kernel/
H A Dpci-swiotlb.c1 /* Glue code to lib/swiotlb.c */
9 #include <asm/swiotlb.h>
14 int swiotlb __read_mostly;
15 EXPORT_SYMBOL(swiotlb); variable
58 swiotlb = 1; pci_swiotlb_init()
H A DMakefile43 obj-$(CONFIG_SWIOTLB) += pci-swiotlb.o
H A Dsetup.c261 * IA64 machine flavour. Machines without an IO TLB use swiotlb and require
263 * lib/swiotlb.c. The hpzx1 architecture has an IO TLB but cannot use that
/linux-4.4.14/arch/x86/include/asm/
H A Dswiotlb.h4 #include <linux/swiotlb.h>
7 extern int swiotlb;
13 #define swiotlb 0 pci_swiotlb_detect_override() macro
H A Diommu_table.h4 #include <asm/swiotlb.h>
10 * [xen-swiotlb]
12 * +----[swiotlb *]--+
20 * *: if SWIOTLB detected 'iommu=soft'/'swiotlb=force' it would skip
22 * Also it would surreptitiously initialize set the swiotlb=1 if there were
23 * more than 4GB and if the user did not pass in 'iommu=off'. The swiotlb
H A Ddma-mapping.h14 #include <asm/swiotlb.h>
/linux-4.4.14/arch/unicore32/mm/
H A DMakefile8 obj-$(CONFIG_SWIOTLB) += dma-swiotlb.o
H A Ddma-swiotlb.c2 * Contains routines needed to support swiotlb for UniCore32.
15 #include <linux/swiotlb.h>
/linux-4.4.14/arch/x86/xen/
H A Dpci-swiotlb-xen.c1 /* Glue code to lib/swiotlb-xen.c */
5 #include <xen/swiotlb-xen.h>
12 #include <asm/xen/swiotlb-xen.h>
48 /* If running as PV guest, either iommu=soft, or swiotlb=force will pci_xen_swiotlb_detect()
52 if ((xen_initial_domain() || swiotlb || swiotlb_force)) pci_xen_swiotlb_detect()
57 * the 'swiotlb' flag is the only one turning it on. */ pci_xen_swiotlb_detect()
58 swiotlb = 0; pci_xen_swiotlb_detect()
H A DMakefile24 obj-$(CONFIG_SWIOTLB_XEN) += pci-swiotlb-xen.o
/linux-4.4.14/arch/powerpc/kernel/
H A Ddma-swiotlb.c2 * Contains routines needed to support swiotlb for ppc.
22 #include <asm/swiotlb.h>
44 * swiotlb to be used if we're operating on HIGHMEM. Since
H A DMakefile105 obj-$(CONFIG_SWIOTLB) += dma-swiotlb.o
H A Ddma.c18 #include <asm/swiotlb.h>
/linux-4.4.14/include/trace/events/
H A Dswiotlb.h2 #define TRACE_SYSTEM swiotlb
/linux-4.4.14/arch/powerpc/include/asm/
H A Dswiotlb.h14 #include <linux/swiotlb.h>
H A Ddma-mapping.h19 #include <asm/swiotlb.h>
105 * swiotlb use this function, but it is typically not used by implementations
/linux-4.4.14/arch/ia64/hp/common/
H A Dhwsw_iommu.c17 #include <linux/swiotlb.h>
23 /* swiotlb declarations & definitions: */
H A Dsba_iommu.c2111 * a successful kdump kernel boot is to use the swiotlb. sba_init()
2134 * need to setup the swiotlb and switch to the dig machvec. sba_init()
2149 * hpzx1_swiotlb needs to have a fairly small swiotlb bounce sba_init()
/linux-4.4.14/drivers/xen/
H A DMakefile28 obj-$(CONFIG_SWIOTLB_XEN) += swiotlb-xen.o
H A Dswiotlb-xen.c41 #include <xen/swiotlb-xen.h>
49 #include <trace/events/swiotlb.h>
562 dev_warn(hwdev, "swiotlb buffer is full\n"); for_each_sg()
H A Dgrant-table.c53 #include <xen/swiotlb-xen.h>
/linux-4.4.14/arch/arm/xen/
H A Dmm.c13 #include <linux/swiotlb.h>
19 #include <xen/swiotlb-xen.h>
148 * The swiotlb buffer should be used if xen_arch_need_swiotlb()
H A Dp2m.c9 #include <linux/swiotlb.h>
14 #include <xen/swiotlb-xen.h>
/linux-4.4.14/arch/x86/pci/
H A Dsta2x11-fixup.c3 * glue code for lib/swiotlb.c and DMA translation between STA2x11
72 /* First instance: register your own swiotlb area */ sta2x11_new_instance()
75 dev_emerg(&pdev->dev, "init swiotlb failed\n"); sta2x11_new_instance()
161 * sta2x11_swiotlb_alloc_coherent - Allocate swiotlb bounce buffers
181 /* We have our own dma_ops: the same as swiotlb but from alloc (above) */
214 * The following three functions are exported (used in swiotlb: FIXME)
/linux-4.4.14/arch/unicore32/include/asm/
H A Ddma-mapping.h19 #include <linux/swiotlb.h>
/linux-4.4.14/include/xen/
H A Dswiotlb-xen.h5 #include <linux/swiotlb.h>
/linux-4.4.14/arch/powerpc/platforms/85xx/
H A Dmpc8536_ds.c28 #include <asm/swiotlb.h>
H A Dp1022_rdk.c20 #include <asm/swiotlb.h>
H A Dge_imp3a.c33 #include <asm/swiotlb.h>
H A Dmpc85xx_ds.c32 #include <asm/swiotlb.h>
H A Dmpc85xx_mds.c54 #include <asm/swiotlb.h>
H A Dp1022_ds.c24 #include <asm/swiotlb.h>
/linux-4.4.14/arch/mips/include/asm/mach-loongson64/
H A Ddma-coherence.h15 #include <linux/swiotlb.h>
/linux-4.4.14/lib/
H A Dswiotlb.c12 * 00/12/13 davidm Rename to swiotlb.c and add mark_clean() to avoid
26 #include <linux/swiotlb.h>
42 #include <trace/events/swiotlb.h>
51 * 64bit capable cards will only lightly use the swiotlb. If we can't
114 early_param("swiotlb", setup_io_tlb_npages);
239 * initialize the swiotlb later using the slab allocator if needed.
386 * Bounce: copy the swiotlb buffer back to the original dma location
517 dev_warn(hwdev, "swiotlb buffer is full (sz: %zd bytes)\n", size); swiotlb_tbl_map_single()
683 pr_warn("swiotlb: coherent allocation failed for device %s size=%zu\n", swiotlb_alloc_coherent()
H A DMakefile117 obj-$(CONFIG_SWIOTLB) += swiotlb.o
/linux-4.4.14/arch/powerpc/platforms/86xx/
H A Dmpc86xx_hpcn.c29 #include <asm/swiotlb.h>
/linux-4.4.14/arch/mips/loongson64/common/
H A Ddma-swiotlb.c5 #include <linux/swiotlb.h>
/linux-4.4.14/arch/mips/netlogic/common/
H A Dnlm-dma.c38 #include <linux/swiotlb.h>
/linux-4.4.14/arch/mips/cavium-octeon/
H A Ddma-octeon.c17 #include <linux/swiotlb.h>
/linux-4.4.14/arch/arm64/mm/
H A Dinit.c36 #include <linux/swiotlb.h>
H A Ddma-mapping.c28 #include <linux/swiotlb.h>
/linux-4.4.14/arch/mips/pci/
H A Dpci-octeon.c15 #include <linux/swiotlb.h>
668 /* BAR1 movable regions contiguous to cover the swiotlb */ octeon_pci_setup()
/linux-4.4.14/arch/tile/kernel/
H A Dpci-dma.c17 #include <linux/swiotlb.h>
H A Dsetup.c26 #include <linux/swiotlb.h>
/linux-4.4.14/arch/powerpc/mm/
H A Dmem.c54 #include <asm/swiotlb.h>
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c41 #include <linux/swiotlb.h>
/linux-4.4.14/drivers/pci/
H A Dxen-pcifront.c26 #include <asm/xen/swiotlb-xen.h>
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c41 #include <linux/swiotlb.h>
/linux-4.4.14/drivers/iommu/
H A Damd_iommu.c2831 swiotlb = iommu_pass_through ? 1 : 0; amd_iommu_init_dma_ops()
2840 if (!swiotlb) amd_iommu_init_dma_ops()
H A Dintel-iommu.c4636 swiotlb = 0; intel_iommu_init()
/linux-4.4.14/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c31 #include <linux/swiotlb.h>

Completed in 1621 milliseconds