| /linux/drivers/pci/controller/dwc/ |
| H A D | pcie-qcom-ep.c | 1 // SPDX-License-Identifier: GPL-2.0 27 #include "pcie-designware.h" 28 #include "pcie-qcom-common.h" 157 #define to_pcie_ep(x) dev_get_drvdata((x)->dev) 167 * struct qcom_pcie_ep_cfg - Per SoC config struct 179 * struct qcom_pcie_ep - Qualcomm PCIe Endpoint Controller 183 * @perst_map: PERST regmap 186 * @reset: PERST# GPIO 193 * @perst_en: Flag for PERST enable 194 * @perst_sep_en: Flag for PERST separation enable [all …]
|
| H A D | pci-imx6.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> 18 #include <linux/mfd/syscon/imx7-iomuxc-gpr.h> 37 #include "pcie-designware.h" 82 #define to_imx_pcie(x) dev_get_drvdata((x)->dev) 118 #define imx_check_flag(pci, val) (pci->drvdata->flags & val) 183 /* PCIe Port Logic registers (memory-mapped) */ 196 /* PHY registers (not memory-mapped) */ 233 WARN_ON(imx_pcie->drvdata->variant != IMX8MQ && in imx_pcie_grp_offset() 234 imx_pcie->drvdata->variant != IMX8MQ_EP && in imx_pcie_grp_offset() [all …]
|
| H A D | pci-keystone.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2013-2014 Texas Instruments., Ltd. 8 * Author: Murali Karicheri <m-karicheri2@ti.com> 9 * Implementation based on pci-exynos.c and pcie-designware.c 31 #include "pcie-designware.h" 59 #define PCIE_LEGACY_IRQ_ENABLE_SET(n) (0x188 + (0x10 * ((n) - 1))) 60 #define PCIE_LEGACY_IRQ_ENABLE_CLR(n) (0x18c + (0x10 * ((n) - 1))) 84 #define ERR_NONFATAL BIT(2) /* Non-fatal error */ 110 #define to_keystone_pcie(x) dev_get_drvdata((x)->dev) 144 return readl(ks_pcie->va_app_base + offset); in ks_pcie_app_readl() [all …]
|
| /linux/arch/arm/boot/dts/marvell/ |
| H A D | armada-388-clearfog.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 /dts-v1/; 9 #include "armada-388-clearfog.dtsi" 13 compatible = "solidrun,clearfog-pro-a1", "solidrun,clearfog-a1", 18 internal-regs { 28 reset-gpios = <&expander0 2 GPIO_ACTIVE_LOW>; 34 gpio-keys { 35 compatible = "gpio-keys"; 36 pinctrl-0 = <&rear_button_pins>; 37 pinctrl-names = "default"; [all …]
|
| H A D | armada-388-clearfog.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 #include "armada-388.dtsi" 9 #include "armada-38x-solidrun-microsom.dtsi" 13 /* So that mvebu u-boot can update the MAC addresses */ 20 stdout-path = "serial0:115200n8"; 23 reg_3p3v: regulator-3p3v { 24 compatible = "regulator-fixed"; 25 regulator-name = "3P3V"; 26 regulator-min-microvolt = <3300000>; 27 regulator-max-microvolt = <3300000>; [all …]
|
| /linux/include/linux/bcma/ |
| H A D | bcma_driver_pcie2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 #define PCIE2_CLKC_DLYPERST 0x0100 /* Delay PeRst to CoE Core */ 134 /* PCIE gen2 config regs */ 151 #define pcie2_read16(pcie2, offset) bcma_read16((pcie2)->core, offset) 152 #define pcie2_read32(pcie2, offset) bcma_read32((pcie2)->core, offset) 153 #define pcie2_write16(pcie2, offset, val) bcma_write16((pcie2)->core, offset, val) 154 #define pcie2_write32(pcie2, offset, val) bcma_write32((pcie2)->core, offset, val) 156 #define pcie2_set32(pcie2, offset, set) bcma_set32((pcie2)->core, offset, set) 157 #define pcie2_mask32(pcie2, offset, mask) bcma_mask32((pcie2)->core, offset, mask)
|
| /linux/drivers/net/ethernet/intel/e1000e/ |
| H A D | ich8lan.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 36 #define E1000_ICH_FWSM_PCIM2PCI 0x01000000 /* ME PCIm-to-PCI active */ 93 /* bit24: RXDCTL thresholds granularity: 0 - cache lines, 1 - descriptors */ 99 #define E1000_FLASH_BASE_ADDR 0xE000 /*offset of NVM access regs */ 106 #define E1000_PCH2_RAR_ENTRIES 5 /* RAR[0], SHRA[0-3] */ 107 #define E1000_PCH_LPT_RAR_ENTRIES 12 /* RAR[0], SHRA[0-10] */ 144 /* Half-duplex collision counts */ 179 /* disable clear of sticky ULP on PERST */ 181 #define I218_ULP_CONFIG1_DISABLE_SMB_PERST 0x1000 /* Disable on PERST# */ [all …]
|
| /linux/drivers/pci/controller/ |
| H A D | pcie-brcmstb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Copyright (C) 2009 - 2019 Broadcom */ 15 #include <linux/irqchip/irq-msi-lib.h> 27 #include <linux/pci-ecam.h> 38 /* BRCM_PCIE_CAP_REGS - Offset for the mandatory capability config regs */ 171 #define BRCM_INT_PCI_MSI_MASK GENMASK(BRCM_INT_PCI_MSI_NR - 1, 0) 173 32 - BRCM_INT_PCI_MSI_LEGACY_NR) 201 #define IDX_ADDR(pcie) ((pcie)->cfg->offsets[EXT_CFG_INDEX]) 202 #define DATA_ADDR(pcie) ((pcie)->cfg->offsets[EXT_CFG_DATA]) 203 #define PCIE_RGR1_SW_INIT_1(pcie) ((pcie)->cfg->offsets[RGR1_SW_INIT_1]) [all …]
|
| H A D | pcie-mediatek-gen3.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/clk-provider.h> 15 #include <linux/irqchip/irq-msi-lib.h> 79 #define PCIE_MSI_ENABLE GENMASK(PCIE_MSI_SET_NUM + 8 - 1, 8) 83 GENMASK(PCIE_INTX_SHIFT + PCI_NUM_INTX - 1, PCIE_INTX_SHIFT) 87 #define PCIE_MSI_SET_ENABLE GENMASK(PCIE_MSI_SET_NUM - 1, 0) 124 (((((size) - 1) << 1) & GENMASK(6, 1)) | PCIE_ATR_EN) 145 SKIP_PCIE_RSTB = BIT(0), /* Skip PERST# assertion during device 152 * struct mtk_gen3_pcie_pdata - differentiate between host generations 169 * struct mtk_msi_set - MSI information for each set [all …]
|
| H A D | pcie-mediatek.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #include <linux/irqchip/irq-msi-lib.h> 75 /* PCIe V2 per-port registers */ 128 (GENMASK(((size) - 1), 0) << ((where) & 0x3)) 146 * struct mtk_pcie_soc - differentiate between host generations 166 * struct mtk_pcie_port - PCIe port information 208 * struct mtk_pcie - PCIe host information 212 * @free_ck: free-run reference clock 214 * @soc: pointer to SoC-dependent operations 228 struct device *dev = pcie->dev; in mtk_pcie_subsys_powerdown() [all …]
|
| H A D | pci-mvebu.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Author: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 27 #include "../pci-bridge-emul.h" 40 #define PCIE_BAR_CTRL_OFF(n) (0x1804 + (((n) - 1) * 4)) 120 struct resource regs; member 130 writel(val, port->base + reg); in mvebu_writel() 135 return readl(port->base + reg); in mvebu_readl() 140 return port->io_target != -1 && port->io_attr != -1; in mvebu_has_ioport() 199 * BAR[0] -> internal registers (needed for MSI) 200 * BAR[1] -> covers all DRAM banks [all …]
|
| H A D | pci-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * Copyright (c) 2008-2009, NVIDIA Corporation. 11 * Bits taken from arch/arm/mach-dove/pcie.c 26 #include <linux/irqchip/irq-msi-lib.h> 258 * Fields in PADS_REFCLK_CFG*. Those registers form an array of 16-bit 319 } regs; member 367 struct resource regs; member 380 writel(value, pcie->afi + offset); in afi_writel() 385 return readl(pcie->afi + offset); in afi_readl() 391 writel(value, pcie->pads + offset); in pads_writel() [all …]
|
| /linux/drivers/misc/genwqe/ |
| H A D | card_base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com> 26 #include <linux/dma-mapping.h> 37 MODULE_AUTHOR("Joerg-Stephan Vogt <jsvogt@de.ibm.com>"); 59 /* Initial SR-IOV bring-up image */ 108 * genwqe_devnode() - Set default access mode for genwqe devices. 110 * @mode: Carrier to pass-back given mode (permissions) 128 * genwqe_dev_alloc() - Create and prepare a new card descriptor 142 return ERR_PTR(-ENODEV); in genwqe_dev_alloc() 146 return ERR_PTR(-ENOMEM); in genwqe_dev_alloc() [all …]
|
| /linux/arch/arm/boot/dts/qcom/ |
| H A D | qcom-sdx65.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 9 #include <dt-bindings/clock/qcom,gcc-sdx65.h> 10 #include <dt-bindings/clock/qcom,rpmh.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/power/qcom-rpmpd.h> 14 #include <dt-bindings/soc/qcom,rpmh-rsc.h> 15 #include <dt-bindings/interconnect/qcom,sdx65.h> 18 #address-cells = <1>; 19 #size-cells = <1>; [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_self_test.c | 1 // SPDX-License-Identifier: GPL-2.0 30 u32 imm1; /* 1st value in predicate condition, left-to-right */ 31 u32 imm2; /* 2nd value in predicate condition, left-to-right */ 32 u32 imm3; /* 3rd value in predicate condition, left-to-right */ 33 u32 imm4; /* 4th value in predicate condition, left-to-right */ 36 /* struct representing self test record - a single test */ 54 return (args->val1 == args->imm1); in peq() 59 return (args->val1 != args->imm1); in pneq() 64 return ((args->val1 & args->imm1) != args->imm2); in pand_neq() 69 return (((args->val1 & args->imm1) != args->imm2) && in pand_neq_x2() [all …]
|