| /kernel/linux/linux-5.10/arch/arc/mm/ |
| D | dma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 6 #include <linux/dma-map-ops.h> 11 * ARCH specific callbacks for generic noncoherent DMA ops 12 * - hardware IOC not available (or "dma-coherent" not set for device in DT) 13 * - But still handle both coherent and non-coherent requests from caller 15 * For DMA coherent hardware (IOC) generic code suffices 23 * Yeah this bit us - STAR 9000898266 in arch_dma_prep_coherent() 37 * dma-mapping: provide a generic dma-noncoherent implementation)" 40 * |---------------------------------------------------------------- [all …]
|
| /kernel/linux/linux-4.19/arch/arc/mm/ |
| D | dma.c | 2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 9 #include <linux/dma-noncoherent.h> 14 * ARCH specific callbacks for generic noncoherent DMA ops (dma/noncoherent.c) 15 * - hardware IOC not available (or "dma-coherent" not set for device in DT) 16 * - But still handle both coherent and non-coherent requests from caller 18 * For DMA coherent hardware (IOC) generic code suffices 31 * (in include/linux/dma-mapping.h) so we should never get a in arch_dma_alloc() 46 * A coherent buffer needs MMU mapping to enforce non-cachability. in arch_dma_alloc() 62 * Yeah this bit us - STAR 9000898266 in arch_dma_alloc() 94 unsigned long off = vma->vm_pgoff; in arch_dma_mmap() [all …]
|
| /kernel/linux/linux-5.10/arch/arc/boot/dts/ |
| D | axc003_idu.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #address-cells = <2>; 15 #size-cells = <2>; 18 compatible = "simple-bus"; 19 #address-cells = <1>; 20 #size-cells = <1>; 24 input_clk: input-clk { 25 #clock-cells = <0>; 26 compatible = "fixed-clock"; 27 clock-frequency = <33333333>; [all …]
|
| D | axc003.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) 14 #address-cells = <2>; 15 #size-cells = <2>; 18 compatible = "simple-bus"; 19 #address-cells = <1>; 20 #size-cells = <1>; 24 input_clk: input-clk { 25 #clock-cells = <0>; 26 compatible = "fixed-clock"; [all …]
|
| /kernel/linux/linux-4.19/arch/arc/boot/dts/ |
| D | axc003_idu.dtsi | 17 #address-cells = <2>; 18 #size-cells = <2>; 21 compatible = "simple-bus"; 22 #address-cells = <1>; 23 #size-cells = <1>; 27 input_clk: input-clk { 28 #clock-cells = <0>; 29 compatible = "fixed-clock"; 30 clock-frequency = <33333333>; 33 core_clk: core-clk@80 { [all …]
|
| D | axc003.dtsi | 2 * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) 17 #address-cells = <2>; 18 #size-cells = <2>; 21 compatible = "simple-bus"; 22 #address-cells = <1>; 23 #size-cells = <1>; 27 input_clk: input-clk { 28 #clock-cells = <0>; 29 compatible = "fixed-clock"; 30 clock-frequency = <33333333>; [all …]
|
| /kernel/linux/linux-5.10/arch/c6x/mm/ |
| D | dma-coherent.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * DMA uncached mapping support. 11 * Copyright (C) 2000-2004 Russell King 18 #include <linux/dma-map-ops.h> 26 * DMA coherent memory management, can be redefined using the memdma= 41 * Return a DMA coherent and contiguous memory chunk from the DMA memory 58 u32 pos = (addr - dma_base) >> PAGE_SHIFT; in __free_dma_pages() 71 * Allocate DMA coherent memory space and return both the kernel 72 * virtual and DMA address for that space. 84 order = get_count_order(((size - 1) >> PAGE_SHIFT) + 1); in arch_dma_alloc() [all …]
|
| /kernel/linux/linux-4.19/arch/c6x/mm/ |
| D | dma-coherent.c | 11 * DMA uncached mapping support. 14 * Copyright (C) 2000-2004 Russell King 22 #include <linux/dma-noncoherent.h> 30 * DMA coherent memory management, can be redefined using the memdma= 45 * Return a DMA coherent and contiguous memory chunk from the DMA memory 62 u32 pos = (addr - dma_base) >> PAGE_SHIFT; in __free_dma_pages() 75 * Allocate DMA coherent memory space and return both the kernel 76 * virtual and DMA address for that space. 87 order = get_count_order(((size - 1) >> PAGE_SHIFT) + 1); in arch_dma_alloc() 101 * Free DMA coherent memory as defined by the above mapping. [all …]
|
| /kernel/linux/linux-4.19/arch/arm/mm/ |
| D | dma-mapping-nommu.c | 2 * Based on linux/arch/arm/mm/dma-mapping.c 4 * Copyright (C) 2000-2004 Russell King 14 #include <linux/dma-direct.h> 22 #include "dma.h" 26 * - MMU/MPU is off 27 * - cpu is v7m w/o cache support 28 * - device is coherent 31 * arm_nommu_dma_ops rely on consistent DMA memory (please, refer to 34 * [1] Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt 57 * - no consistent DMA region has been defined, so we can't in arm_nommu_dma_alloc() [all …]
|
| D | dma-mapping.c | 2 * linux/arch/arm/mm/dma-mapping.c 4 * Copyright (C) 2000-2004 Russell King 10 * DMA uncached mapping support. 21 #include <linux/dma-mapping.h> 22 #include <linux/dma-contiguous.h> 37 #include <asm/dma-iommu.h> 40 #include <asm/dma-contiguous.h> 42 #include "dma.h" 64 #define COHERENT 1 macro 88 if (buf->virt == virt) { in arm_dma_buffer_find() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/dma/xilinx/ |
| D | zynqmp_dma.txt | 1 Xilinx ZynqMP DMA engine, it does support memory to memory transfers, 3 control and rate control support for slave/peripheral dma access. 6 - compatible : Should be "xlnx,zynqmp-dma-1.0" 7 - reg : Memory map for gdma/adma module access. 8 - interrupts : Should contain DMA channel interrupt. 9 - xlnx,bus-width : Axi buswidth in bits. Should contain 128 or 64 10 - clock-names : List of input clocks "clk_main", "clk_apb" 14 - dma-coherent : Present if dma operations are coherent. 18 fpd_dma_chan1: dma@fd500000 { 19 compatible = "xlnx,zynqmp-dma-1.0"; [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/dma/xilinx/ |
| D | zynqmp_dma.txt | 1 Xilinx ZynqMP DMA engine, it does support memory to memory transfers, 3 control and rate control support for slave/peripheral dma access. 6 - compatible : Should be "xlnx,zynqmp-dma-1.0" 7 - reg : Memory map for gdma/adma module access. 8 - interrupts : Should contain DMA channel interrupt. 9 - xlnx,bus-width : Axi buswidth in bits. Should contain 128 or 64 10 - clock-names : List of input clocks "clk_main", "clk_apb" 14 - dma-coherent : Present if dma operations are coherent. 18 fpd_dma_chan1: dma@fd500000 { 19 compatible = "xlnx,zynqmp-dma-1.0"; [all …]
|
| /kernel/linux/linux-5.10/kernel/dma/ |
| D | coherent.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Coherent per-device memory handling. 10 #include <linux/dma-direct.h> 11 #include <linux/dma-map-ops.h> 27 if (dev && dev->dma_mem) in dev_get_coherent_memory() 28 return dev->dma_mem; in dev_get_coherent_memory() 35 if (mem->use_dev_dma_pfn_offset) in dma_get_device_base() 36 return phys_to_dma(dev, PFN_PHYS(mem->pfn_base)); in dma_get_device_base() 37 return mem->device_base; in dma_get_device_base() 51 ret = -EINVAL; in dma_init_coherent_memory() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/dma/ |
| D | apm-xgene-dma.txt | 1 Applied Micro X-Gene SoC DMA nodes 3 DMA nodes are defined to describe on-chip DMA interfaces in 4 APM X-Gene SoC. 6 Required properties for DMA interfaces: 7 - compatible: Should be "apm,xgene-dma". 8 - device_type: set to "dma". 9 - reg: Address and length of the register set for the device. 11 1st - DMA control and status register address space. 12 2nd - Descriptor ring control and status register address space. 13 3rd - Descriptor ring command register address space. [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/dma/ |
| D | apm-xgene-dma.txt | 1 Applied Micro X-Gene SoC DMA nodes 3 DMA nodes are defined to describe on-chip DMA interfaces in 4 APM X-Gene SoC. 6 Required properties for DMA interfaces: 7 - compatible: Should be "apm,xgene-dma". 8 - device_type: set to "dma". 9 - reg: Address and length of the register set for the device. 11 1st - DMA control and status register address space. 12 2nd - Descriptor ring control and status register address space. 13 3rd - Descriptor ring command register address space. [all …]
|
| /kernel/linux/linux-4.19/kernel/dma/ |
| D | mapping.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * arch-independent dma-mapping routines 10 #include <linux/dma-mapping.h> 18 * Managed DMA API 31 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release() 32 this->attrs); in dmam_release() 39 if (this->vaddr == match->vaddr) { in dmam_match() 40 WARN_ON(this->size != match->size || in dmam_match() 41 this->dma_handle != match->dma_handle); in dmam_match() 48 * dmam_alloc_coherent - Managed dma_alloc_coherent() [all …]
|
| D | coherent.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Coherent per-device memory handling. 10 #include <linux/dma-mapping.h> 27 if (dev && dev->dma_mem) in dev_get_coherent_memory() 28 return dev->dma_mem; in dev_get_coherent_memory() 35 if (mem->use_dev_dma_pfn_offset) in dma_get_device_base() 36 return (mem->pfn_base - dev->dma_pfn_offset) << PAGE_SHIFT; in dma_get_device_base() 38 return mem->device_base; in dma_get_device_base() 52 ret = -EINVAL; in dma_init_coherent_memory() 58 ret = -EINVAL; in dma_init_coherent_memory() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/crypto/ |
| D | ti,sa2ul.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tero Kristo <t-kristo@ti.com> 15 - ti,j721e-sa2ul 16 - ti,am654-sa2ul 21 power-domains: 26 - description: TX DMA Channel 27 - description: RX DMA Channel #1 28 - description: RX DMA Channel #2 [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mm/ |
| D | dma-mapping-nommu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Based on linux/arch/arm/mm/dma-mapping.c 5 * Copyright (C) 2000-2004 Russell King 10 #include <linux/dma-direct.h> 11 #include <linux/dma-map-ops.h> 19 #include "dma.h" 23 * - MMU/MPU is off 24 * - cpu is v7m w/o cache support 25 * - device is coherent 28 * arm_nommu_dma_ops rely on consistent DMA memory (please, refer to [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | bcm-nsp.dtsi | 33 #include <dt-bindings/interrupt-controller/arm-gic.h> 34 #include <dt-bindings/interrupt-controller/irq.h> 35 #include <dt-bindings/clock/bcm-nsp.h> 38 #address-cells = <1>; 39 #size-cells = <1>; 42 interrupt-parent = <&gic>; 53 #address-cells = <1>; 54 #size-cells = <0>; 58 compatible = "arm,cortex-a9"; 59 next-level-cache = <&L2>; [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/broadcom/stingray/ |
| D | stingray-usb.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 or BSD-3-Clause) 6 compatible = "simple-bus"; 7 #address-cells = <2>; 8 #size-cells = <2>; 13 * to 40-bit 15 dma-ranges = <0 0 0 0 0x100 0x0>; 17 usbphy0: usb-phy@0 { 18 compatible = "brcm,sr-usb-combo-phy"; 20 #phy-cells = <1>; 25 compatible = "generic-xhci"; [all …]
|
| /kernel/linux/linux-5.10/arch/arc/plat-hsdk/ |
| D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0-only 36 * --------------------- in hsdk_enable_gpio_intc_wire() 37 * | snps,archs-intc | in hsdk_enable_gpio_intc_wire() 38 * --------------------- in hsdk_enable_gpio_intc_wire() 40 * ---------------------- in hsdk_enable_gpio_intc_wire() 41 * | snps,archs-idu-intc | in hsdk_enable_gpio_intc_wire() 42 * ---------------------- in hsdk_enable_gpio_intc_wire() 46 * ------------------- in hsdk_enable_gpio_intc_wire() 47 * | snps,dw-apb-intc | in hsdk_enable_gpio_intc_wire() 48 * ------------------- in hsdk_enable_gpio_intc_wire() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/boot/dts/ |
| D | bcm-nsp.dtsi | 33 #include <dt-bindings/interrupt-controller/arm-gic.h> 34 #include <dt-bindings/interrupt-controller/irq.h> 35 #include <dt-bindings/clock/bcm-nsp.h> 42 interrupt-parent = <&gic>; 45 #address-cells = <1>; 46 #size-cells = <0>; 50 compatible = "arm,cortex-a9"; 51 next-level-cache = <&L2>; 57 compatible = "arm,cortex-a9"; 58 next-level-cache = <&L2>; [all …]
|
| /kernel/linux/linux-5.10/drivers/of/ |
| D | device.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/dma-direct.h> /* for bus_dma_region */ 9 #include <linux/dma-map-ops.h> 20 * of_match_device - Tell if a struct device matches an of_device_id list 30 if ((!matches) || (!dev->of_node)) in of_match_device() 32 return of_match_node(matches, dev->of_node); in of_match_device() 42 tmp = get_device(&dev->dev); in of_dev_get() 53 put_device(&dev->dev); in of_dev_put() 59 BUG_ON(ofdev->dev.of_node == NULL); in of_device_add() 63 ofdev->name = dev_name(&ofdev->dev); in of_device_add() [all …]
|
| /kernel/linux/linux-4.19/arch/arm64/mm/ |
| D | dma-mapping.c | 2 * SWIOTLB-based DMA API implementation 27 #include <linux/dma-direct.h> 28 #include <linux/dma-contiguous.h> 38 bool coherent) in __get_dma_pgprot() argument 40 if (!coherent || (attrs & DMA_ATTR_WRITE_COMBINE)) in __get_dma_pgprot() 63 WARN(1, "coherent pool not initialised!\n"); in __alloc_from_pool() 100 bool coherent = is_device_dma_coherent(dev); in __dma_alloc() local 105 if (!coherent && !gfpflags_allow_blocking(flags)) { in __dma_alloc() 119 /* no need for non-cacheable mapping if coherent */ in __dma_alloc() 120 if (coherent) in __dma_alloc() [all …]
|