/linux/drivers/dma/ |
H A D | fsl-edma-main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * drivers/dma/fsl-edma.c 5 * Copyright 2013-2014 Freescale Semiconductor, Inc. 8 * Driver for the Freescale eDMA engine with flexible channel multiplexing 9 * capability for DMA request sources. The eDMA block can be found on some 13 #include <dt-bindings/dma/fsl-edma.h> 20 #include <linux/dma-mapping.h> 25 #include "fsl-edma-common.h" 31 vchan_synchronize(&fsl_chan->vchan); in fsl_edma_synchronize() 38 struct edma_regs *regs = &fsl_edma->regs; in fsl_edma_tx_handler() [all …]
|
H A D | fsl-edma-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Copyright (c) 2013-2014 Freescale Semiconductor, Inc 11 #include <linux/dma-mapping.h> 15 #include "fsl-edma-common.h" 49 spin_lock(&fsl_chan->vchan.lock); in fsl_edma_tx_chan_handler() 51 if (!fsl_chan->edes in fsl_edma_tx_chan_handler() 832 struct fsl_edma_engine *edma = fsl_chan->edma; fsl_edma_free_chan_resources() local 877 fsl_edma_setup_regs(struct fsl_edma_engine * edma) fsl_edma_setup_regs() argument [all...] |
/linux/drivers/dma/dw-edma/ |
H A D | dw-edma-pcie.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates. 4 * Synopsys DesignWare eDMA PCIe driver 13 #include <linux/dma/edma.h> 14 #include <linux/pci-epf.h> 18 #include "dw-edma-core.h" 40 /* eDMA registers location */ 42 /* eDMA memory linked list location */ 45 /* eDMA memory data location */ 56 /* eDMA registers location */ [all …]
|
H A D | dw-edma-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates. 4 * Synopsys DesignWare eDMA core driver 13 #include <linux/err.h> 16 #include <linux/dma/edma.h> 17 #include <linux/dma-mapping.h> 19 #include "dw-edma-core.h" 20 #include "dw-edma-v0-core.h" 21 #include "dw-hdma-v0-core.h" 23 #include "../virt-dma.h" [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | snps,dw-pcie-ep.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/pci/snps,dw-pcie-ep.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jingoo Han <jingoohan1@gmail.com> 11 - Gustavo Pimentel <gustavo.pimentel@synopsys.com> 16 # Please create a separate DT-schema for your DWC PCIe Endpoint controller 17 # and make sure it's assigned with the vendor-specific compatible string. 21 const: snps,dw-pcie-ep 23 - compatible [all …]
|
H A D | rockchip-dw-pcie-common.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/rockchip-dw-pcie-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Shawn Lin <shawn.lin@rock-chips.com> 11 - Simon Xue <xxm@rock-chips.com> 12 - Heiko Stuebner <heiko@sntech.de> 22 - description: AHB clock for PCIe master 23 - description: AHB clock for PCIe slave 24 - description: AHB clock for PCIe dbi [all …]
|
/linux/drivers/ata/ |
H A D | sata_mv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * sata_mv.c - Marvell SATA support 5 * Copyright 2008-2009: Marvell Corporation, all rights reserved. 12 * Please ALWAYS copy linux-ide@vger.kernel.org on emails. 18 * --> Develop a low-power-consumption strategy, and implement it. 20 * --> Add sysfs attributes for per-chip / per-HC IRQ coalescing thresholds. 22 * --> [Experiment, Marvell value added] Is it possible to use target 23 * mode to cross-connect two Linux boxes with Marvell cards? If so, 31 * 80x1-B2 errata PCI#11: 34 * should be careful to insert those cards only onto PCI-X bus #0, [all …]
|
/linux/arch/arm/boot/dts/nxp/vf/ |
H A D | vfxxx.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 #include "vf610-pinfunc.h" 6 #include <dt-bindings/clock/vf610-clock.h> 7 #include <dt-bindings/interrupt-controller/irq.h> 8 #include <dt-bindings/gpio/gpio.h> 32 compatible = "fixed-clock"; 33 #clock-cells = <0>; 34 clock-frequency = <24000000>; 38 compatible = "fixed-clock"; 39 #clock-cells = <0>; [all …]
|
/linux/Documentation/devicetree/bindings/iommu/ |
H A D | ti,omap-iommu.txt | 4 - compatible : Should be one of, 5 "ti,omap2-iommu" for OMAP2/OMAP3 IOMMU instances 6 "ti,omap4-iommu" for OMAP4/OMAP5 IOMMU instances 7 "ti,dra7-dsp-iommu" for DRA7xx DSP IOMMU instances 8 "ti,dra7-iommu" for DRA7xx IOMMU instances 9 - ti,hwmods : Name of the hwmod associated with the IOMMU instance 10 - reg : Address space for the configuration registers 11 - interrupts : Interrupt specifier for the IOMMU instance 12 - #iommu-cells : Should be 0. OMAP IOMMUs are all "single-master" devices, 19 - ti,#tlb-entries : Number of entries in the translation look-aside buffer. [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1012a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1012A family SoC. 6 * Copyright 2019-2020 NXP 10 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; 23 rtic-a = &rtic_a; [all …]
|
H A D | fsl-ls1043a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1043A family SoC. 5 * Copyright 2014-2015 Freescale Semiconductor, Inc. 11 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 12 #include <dt-bindings/thermal/thermal.h> 13 #include <dt-bindings/interrupt-controller/arm-gic.h> 14 #include <dt-bindings/gpio/gpio.h> 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; [all …]
|
H A D | fsl-ls1046a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1046A family SoC. 11 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/gpio/gpio.h> 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; 37 #address-cells = <1>; [all …]
|
H A D | fsl-ls1028a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1028A family SoC. 5 * Copyright 2018-2020 NXP 11 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/thermal/thermal.h> 17 interrupt-parent = <&gic>; 18 #address-cells = <2>; 19 #size-cells = <2>; 22 #address-cells = <1>; [all …]
|
/linux/drivers/dma/ti/ |
H A D | dma-crossbar.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com 8 #include <linux/err.h> 25 .compatible = "ti,dra7-dma-crossbar", 29 .compatible = "ti,am335x-edma-crossbar", 44 u32 dma_requests; /* number of DMA requests on eDMA */ 60 writeb_relaxed(val, iomem + (63 - event % 4)); in ti_am335x_xbar_write() 71 map->mux_val, map->dma_line); in ti_am335x_xbar_free() 73 ti_am335x_xbar_write(xbar->iomem, map->dma_line, 0); in ti_am335x_xbar_free() 80 struct platform_device *pdev = of_find_device_by_node(ofdma->of_node); in ti_am335x_xbar_route_allocate() [all …]
|
/linux/drivers/spi/ |
H A D | spi-fsl-lpspi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/dma-mapping.h> 13 #include <linux/err.h> 22 #include <linux/dma/imx-dma.h> 33 /* The maximum bytes that edma can transfer once.*/ 34 #define FSL_LPSPI_MAX_EDMA_BYTES ((1 << 15) - 1) 144 { .compatible = "fsl,imx7ulp-spi", .data = &imx7ulp_lpspi_devtype_data,}, 145 { .compatible = "fsl,imx93-spi", .data = &imx93_lpspi_devtype_data,}, 153 unsigned int val = readl(fsl_lpspi->base + IMX7ULP_RDR); \ 155 if (fsl_lpspi->rx_buf) { \ [all …]
|
/linux/arch/arm/boot/dts/nxp/ls/ |
H A D | ls1021a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Copyright 2013-2014 Freescale Semiconductor, Inc. 6 #include <dt-bindings/interrupt-controller/arm-gic.h> 7 #include <dt-bindings/thermal/thermal.h> 10 #address-cells = <2>; 11 #size-cells = <2>; 12 interrupt-parent = <&gic>; 30 #address-cells = <1>; 31 #size-cells = <0>; 34 compatible = "arm,cortex-a7"; [all …]
|
/linux/drivers/accel/habanalabs/gaudi2/ |
H A D | gaudi2.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2020-2022 HabanaLabs, Ltd. 45 * since the code already has built-in support for binning of up to MAX_FAULTY_TPCS TPCs 126 #define GAUDI2_PMMU_SPI_SEI_ENABLE_MASK GENMASK(GAUDI2_NUM_OF_MMU_SPI_SEI_CAUSE - 2, 0) 127 #define GAUDI2_HMMU_SPI_SEI_ENABLE_MASK GENMASK(GAUDI2_NUM_OF_MMU_SPI_SEI_CAUSE - 1, 0) 131 #define GAUDI2_VDEC_MSIX_ENTRIES (GAUDI2_IRQ_NUM_SHARED_DEC1_ABNRM - \ 134 #define ENGINE_ID_DCORE_OFFSET (GAUDI2_DCORE1_ENGINE_ID_EDMA_0 - GAUDI2_DCORE0_ENGINE_ID_EDMA_0) 164 /* HW scrambles only bits 0-25 */ 904 "wap sei (wbc axi err)", 921 "WBC ERR RESP_0", [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-davinci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2006-2007 David Brownell 13 #include <linux/err.h> 43 #define BINTEN 0x8 /* GPIO Interrupt Per-Bank Enable Register */ 82 /*--------------------------------------------------------------------------*/ 95 g = d->regs[bank]; in __davinci_direction() 96 spin_lock_irqsave(&d->lock, flags); in __davinci_direction() 97 temp = readl_relaxed(&g->dir); in __davinci_direction() 100 writel_relaxed(mask, value ? &g->set_data : &g->clr_data); in __davinci_direction() 104 writel_relaxed(temp, &g->dir); in __davinci_direction() [all …]
|
/linux/arch/s390/pci/ |
H A D | pci_clp.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/err.h> 20 #include <asm/asm-extable.h> 107 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp() 108 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp() 109 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp() 110 zdev->max_msi = response->noi; in clp_store_query_pci_fngrp() 111 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp() 112 zdev->version = response->version; in clp_store_query_pci_fngrp() 113 zdev->maxstbl = response->maxstbl; in clp_store_query_pci_fngrp() [all …]
|
/linux/sound/soc/ti/ |
H A D | davinci-mcasp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Multi-channel Audio Serial Port Driver 7 * Author: Nirmal Pandey <n-pandey@ti.com>, 37 #include "edma-pcm.h" 38 #include "sdma-pcm.h" 39 #include "udma-pcm.h" 40 #include "davinci-mcasp.h" 134 void __iomem *reg = mcasp->base + offset; in mcasp_set_bits() 141 void __iomem *reg = mcasp->base + offset; in mcasp_clr_bits() 148 void __iomem *reg = mcasp->base + offset; in mcasp_mod_bits() [all …]
|
/linux/sound/soc/fsl/ |
H A D | fsl_xcvr.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include "imx-pcm.h" 78 * HDMI2.1 spec defines 6- and 12-channels layout for one bit audio 116 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in fsl_xcvr_arc_mode_put() 117 unsigned int *item = ucontrol->value.enumerated.item; in fsl_xcvr_arc_mode_put() 119 xcvr->arc_mode = snd_soc_enum_item_to_val(e, item[0]); in fsl_xcvr_arc_mode_put() 130 ucontrol->value.enumerated.item[0] = xcvr->arc_mode; in fsl_xcvr_arc_mode_get() 150 uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES; in fsl_xcvr_type_capds_bytes_info() 151 uinfo->count = FSL_XCVR_CAPDS_SIZE; in fsl_xcvr_type_capds_bytes_info() 162 memcpy(ucontrol->value.bytes.data, xcvr->cap_ds, FSL_XCVR_CAPDS_SIZE); in fsl_xcvr_capds_get() [all …]
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | txrx_edma.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. 32 dma_addr_t pa = wil_tx_desc_get_addr_edma(&d->dma); in wil_tx_desc_unmap_edma() 33 u16 dmalen = le16_to_cpu(d->dma.length); in wil_tx_desc_unmap_edma() 35 switch (ctx->mapped_as) { in wil_tx_desc_unmap_edma() 52 if (!wil->srings[i].va) in wil_find_free_sring() 56 return -EINVAL; in wil_find_free_sring() 65 if (!sring || !sring->va) in wil_sring_free() 68 sz = sring->elem_size * sring->size; in wil_sring_free() 71 sz, sring->va, &sring->pa); in wil_sring_free() [all …]
|
/linux/drivers/accel/habanalabs/common/ |
H A D | firmware_if.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2016-2022 HabanaLabs, Ltd. 45 * hl_fw_version_cmp() - compares the FW version to a specific version 50 * @subminor: sub-minor number of a reference version 52 * Return 1 if FW version greater than the reference version, -1 if it's 57 if (hdev->fw_sw_major_ver != major) in hl_fw_version_cmp() 58 return (hdev->fw_sw_major_ver > major) ? 1 : -1; in hl_fw_version_cmp() 60 if (hdev->fw_sw_minor_ver != minor) in hl_fw_version_cmp() 61 return (hdev->fw_sw_minor_ver > minor) ? 1 : -1; in hl_fw_version_cmp() 63 if (hdev->fw_sw_sub_minor_ver != subminor) in hl_fw_version_cmp() [all …]
|
H A D | habanalabs.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * Copyright 2016-2023 HabanaLabs, Ltd. 19 #include <linux/dma-direction.h> 28 #include <linux/io-64-nonatomic-lo-hi.h> 30 #include <linux/dma-buf.h> 45 * bits[63:59] - Encode mmap type 46 * bits[45:0] - mmap offset value 51 #define HL_MMAP_TYPE_SHIFT (59 - PAGE_SHIFT) 110 * enum hl_mmu_page_table_location - mmu page table location 111 * @MMU_DR_PGT: page-table is located on device DRAM. [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 This is the driver for the ST MAC 10/100/1000 on-chip Ethernet controllers. 6 Copyright(C) 2007-2011 STMicroelectronics Ltd 29 #include <linux/dma-mapping.h> 56 * with fine resolution and binary rollover. This avoid non-monotonic behavior 63 #define TSO_MAX_BUFF_SIZE (SZ_16K - 1) 71 static int debug = -1; 73 MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)"); 75 static int phyaddr = -1; 79 #define STMMAC_TX_THRESH(x) ((x)->dma_conf.dma_tx_size / 4) [all …]
|