| /kernel/linux/linux-5.10/drivers/staging/rts5208/ |
| D | rtsx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Realtek PCI-Express card reader 5 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. 22 MODULE_DESCRIPTION("Realtek PCI-Express card reader rts5208/rts5288 driver"); 57 return "SCSI emulation for PCI-Express Mass Storage devices"; in host_info() 67 sdev->inquiry_len = 36; in slave_alloc() 74 * Scatter-gather buffers (all but the last) must have a length in slave_configure() 77 * transfer. Since high-speed bulk pipes have a maxpacket size in slave_configure() 81 * the end, scatter-gather buffers follow page boundaries. in slave_configure() 83 blk_queue_dma_alignment(sdev->request_queue, (512 - 1)); in slave_configure() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/amd/acp/ |
| D | acp-pci.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 11 * Generic PCI interface for ACP device 16 #include <linux/pci.h> 22 #include "../mach-config.h" 35 .end = ACP3x_REG_END - ACP3x_REG_START, 47 static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) in acp_pci_probe() argument 50 struct device *dev = &pci->dev; in acp_pci_probe() local 57 flag = snd_amd_acp_find_config(pci); in acp_pci_probe() 59 return -ENODEV; in acp_pci_probe() 61 chip = devm_kzalloc(&pci->dev, sizeof(*chip), GFP_KERNEL); in acp_pci_probe() [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/rts5208/ |
| D | rtsx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Realtek PCI-Express card reader 5 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. 22 MODULE_DESCRIPTION("Realtek PCI-Express card reader rts5208/rts5288 driver"); 57 return "SCSI emulation for PCI-Express Mass Storage devices"; in host_info() 67 sdev->inquiry_len = 36; in slave_alloc() 74 * Scatter-gather buffers (all but the last) must have a length in slave_configure() 77 * transfer. Since high-speed bulk pipes have a maxpacket size in slave_configure() 81 * the end, scatter-gather buffers follow page boundaries. in slave_configure() 83 blk_queue_dma_alignment(sdev->request_queue, (512 - 1)); in slave_configure() [all …]
|
| /kernel/linux/linux-5.10/drivers/pci/controller/dwc/ |
| D | pci-dra7xx.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * pcie-dra7xx - PCIe controller driver for TI DRA7xx SoCs 5 * Copyright (C) 2013-2014 Texas Instruments Incorporated - https://www.ti.com 21 #include <linux/pci.h> 31 #include "../../pci.h" 32 #include "pcie-designware.h" 88 struct dw_pcie *pci; member 90 int phy_count; /* DT phy-names count */ 101 #define to_dra7xx_pcie(x) dev_get_drvdata((x)->dev) 105 return readl(pcie->base + offset); in dra7xx_pcie_readl() [all …]
|
| D | pcie-armada8k.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCIe host controller driver for Marvell Armada-8K SoCs 5 * Armada-8K PCIe Glue Layer Source Code 19 #include <linux/pci.h> 26 #include "pcie-designware.h" 31 struct dw_pcie *pci; member 62 * AR/AW Cache defaults: Normal memory, Write-Back, Read / Write 72 #define to_armada8k_pcie(x) dev_get_drvdata((x)->dev) 79 phy_power_off(pcie->phy[i]); in armada8k_pcie_disable_phys() 80 phy_exit(pcie->phy[i]); in armada8k_pcie_disable_phys() [all …]
|
| D | pcie-spear13xx.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2010-2014 ST Microelectronics 17 #include <linux/pci.h> 22 #include "pcie-designware.h" 25 struct dw_pcie *pci; member 67 #define to_spear13xx_pcie(x) dev_get_drvdata((x)->dev) 71 struct dw_pcie *pci = spear13xx_pcie->pci; in spear13xx_pcie_establish_link() local 72 struct pcie_port *pp = &pci->pp; in spear13xx_pcie_establish_link() 73 struct pcie_app_reg *app_reg = spear13xx_pcie->app_base; in spear13xx_pcie_establish_link() 75 u32 exp_cap_off = dw_pcie_find_capability(pci, PCI_CAP_ID_EXP); in spear13xx_pcie_establish_link() [all …]
|
| D | pci-layerscape.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/pci.h> 23 #include "pcie-designware.h" 34 #define PCIE_ABSERR_SETTING 0x9401 /* Forward error of non-posted request */ 47 struct dw_pcie *pci; member 54 #define to_ls_pcie(x) dev_get_drvdata((x)->dev) 58 struct dw_pcie *pci = pcie->pci; in ls_pcie_is_bridge() local 61 header_type = ioread8(pci->dbi_base + PCI_HEADER_TYPE); in ls_pcie_is_bridge() 67 /* Clear multi-function bit */ 70 struct dw_pcie *pci = pcie->pci; in ls_pcie_clear_multifunction() local [all …]
|
| 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 "../../pci.h" 32 #include "pcie-designware.h" 55 #define PCIE_LEGACY_IRQ_ENABLE_SET(n) (0x188 + (0x10 * ((n) - 1))) 56 #define PCIE_LEGACY_IRQ_ENABLE_CLR(n) (0x18c + (0x10 * ((n) - 1))) 80 #define ERR_NONFATAL BIT(2) /* Non-fatal error */ 106 #define to_keystone_pcie(x) dev_get_drvdata((x)->dev) [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/gadget/udc/bdc/ |
| D | bdc_pci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * bdc_pci.c - BRCM BDC USB3.0 device controller PCI interface file. 15 #include <linux/pci.h> 24 struct device *dev; member 28 static int bdc_setup_msi(struct pci_dev *pci) in bdc_setup_msi() argument 32 ret = pci_enable_msi(pci); in bdc_setup_msi() 41 static int bdc_pci_probe(struct pci_dev *pci, const struct pci_device_id *id) in bdc_pci_probe() argument 46 int ret = -ENOMEM; in bdc_pci_probe() 48 glue = devm_kzalloc(&pci->dev, sizeof(*glue), GFP_KERNEL); in bdc_pci_probe() 50 return -ENOMEM; in bdc_pci_probe() [all …]
|
| /kernel/linux/linux-5.10/drivers/pinctrl/ |
| D | pinctrl-rk805.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Author: Joseph Chen <chenjh@rock-chips.com> 9 * Based on the pinctrl-as3722 driver 22 #include <linux/pinctrl/pinconf-generic.h> 30 #include "pinctrl-utils.h" 66 struct device *dev; member 138 struct rk805_pctrl_info *pci = gpiochip_get_data(chip); in rk805_gpio_get() local 141 ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val); in rk805_gpio_get() 143 dev_err(pci->dev, "get gpio%d value failed\n", offset); in rk805_gpio_get() 147 return !!(val & pci->pin_cfg[offset].val_msk); in rk805_gpio_get() [all …]
|
| /kernel/linux/linux-6.6/drivers/edac/ |
| D | edac_pci.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * EDAC PCI component 31 struct edac_pci_ctl_info *pci; in edac_pci_alloc_ctl_info() local 35 pci = kzalloc(sizeof(struct edac_pci_ctl_info), GFP_KERNEL); in edac_pci_alloc_ctl_info() 36 if (!pci) in edac_pci_alloc_ctl_info() 40 pci->pvt_info = kzalloc(sz_pvt, GFP_KERNEL); in edac_pci_alloc_ctl_info() 41 if (!pci->pvt_info) in edac_pci_alloc_ctl_info() 45 pci->op_state = OP_ALLOC; in edac_pci_alloc_ctl_info() 47 snprintf(pci->name, strlen(edac_pci_name) + 1, "%s", edac_pci_name); in edac_pci_alloc_ctl_info() 49 return pci; in edac_pci_alloc_ctl_info() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/amd/yc/ |
| D | pci-acp6x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * AMD Yellow Carp ACP PCI Driver 8 #include <linux/pci.h> 45 return -ETIMEDOUT; in acp6x_power_on() 69 return -ETIMEDOUT; in acp6x_reset() 133 val = acp6x_readl(adata->acp6x_base + ACP_EXTERNAL_INTR_STAT); in acp6x_irq_handler() 135 yc_pdm_data = dev_get_drvdata(&adata->pdev[0]->dev); in acp6x_irq_handler() 136 acp6x_writel(BIT(PDM_DMA_STAT), adata->acp6x_base + ACP_EXTERNAL_INTR_STAT); in acp6x_irq_handler() 137 if (yc_pdm_data->capture_stream) in acp6x_irq_handler() 138 snd_pcm_period_elapsed(yc_pdm_data->capture_stream); in acp6x_irq_handler() [all …]
|
| /kernel/linux/linux-6.6/drivers/pci/controller/dwc/ |
| D | pcie-designware.c | 1 // SPDX-License-Identifier: GPL-2.0 23 #include "../../pci.h" 24 #include "pcie-designware.h" 46 [DW_PCIE_NON_STICKY_RST] = "non-sticky", 55 static int dw_pcie_get_clocks(struct dw_pcie *pci) in dw_pcie_get_clocks() argument 60 pci->app_clks[i].id = dw_pcie_app_clks[i]; in dw_pcie_get_clocks() 63 pci->core_clks[i].id = dw_pcie_core_clks[i]; in dw_pcie_get_clocks() 65 ret = devm_clk_bulk_get_optional(pci->dev, DW_PCIE_NUM_APP_CLKS, in dw_pcie_get_clocks() 66 pci->app_clks); in dw_pcie_get_clocks() 70 return devm_clk_bulk_get_optional(pci->dev, DW_PCIE_NUM_CORE_CLKS, in dw_pcie_get_clocks() [all …]
|
| D | pci-dra7xx.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * pcie-dra7xx - PCIe controller driver for TI DRA7xx SoCs 5 * Copyright (C) 2013-2014 Texas Instruments Incorporated - https://www.ti.com 22 #include <linux/pci.h> 32 #include "../../pci.h" 33 #include "pcie-designware.h" 89 struct dw_pcie *pci; member 91 int phy_count; /* DT phy-names count */ 103 #define to_dra7xx_pcie(x) dev_get_drvdata((x)->dev) 107 return readl(pcie->base + offset); in dra7xx_pcie_readl() [all …]
|
| 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> 23 #include <linux/pci.h> 36 #include "pcie-designware.h" 45 #define to_imx6_pcie(x) dev_get_drvdata((x)->dev) 73 struct dw_pcie *pci; member 109 /* PCIe Port Logic registers (memory-mapped) */ 122 /* PHY registers (not memory-mapped) */ 159 WARN_ON(imx6_pcie->drvdata->variant != IMX8MQ && in imx6_pcie_grp_offset() [all …]
|
| D | pcie-armada8k.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCIe host controller driver for Marvell Armada-8K SoCs 5 * Armada-8K PCIe Glue Layer Source Code 19 #include <linux/pci.h> 25 #include "pcie-designware.h" 30 struct dw_pcie *pci; member 61 * AR/AW Cache defaults: Normal memory, Write-Back, Read / Write 71 #define to_armada8k_pcie(x) dev_get_drvdata((x)->dev) 78 phy_power_off(pcie->phy[i]); in armada8k_pcie_disable_phys() 79 phy_exit(pcie->phy[i]); in armada8k_pcie_disable_phys() [all …]
|
| D | pci-layerscape-ep.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #include <linux/pci.h> 19 #include "pcie-designware.h" 35 #define to_ls_pcie_ep(x) dev_get_drvdata((x)->dev) 44 struct dw_pcie *pci; member 54 struct dw_pcie *pci = pcie->pci; in ls_lut_readl() local 56 if (pcie->big_endian) in ls_lut_readl() 57 return ioread32be(pci->dbi_base + offset); in ls_lut_readl() 59 return ioread32(pci->dbi_base + offset); in ls_lut_readl() 64 struct dw_pcie *pci = pcie->pci; in ls_lut_writel() local [all …]
|
| D | pci-layerscape.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <linux/pci.h> 25 #include "../../pci.h" 26 #include "pcie-designware.h" 31 #define PCIE_ABSERR_SETTING 0x9401 /* Forward error of non-posted request */ 46 struct dw_pcie *pci; member 53 #define to_ls_pcie(x) dev_get_drvdata((x)->dev) 57 struct dw_pcie *pci = pcie->pci; in ls_pcie_is_bridge() local 60 header_type = ioread8(pci->dbi_base + PCI_HEADER_TYPE); in ls_pcie_is_bridge() 66 /* Clear multi-function bit */ [all …]
|
| /kernel/linux/linux-5.10/drivers/edac/ |
| D | edac_pci.c | 2 * EDAC PCI component 34 struct edac_pci_ctl_info *pci; in edac_pci_alloc_ctl_info() local 40 pci = edac_align_ptr(&p, sizeof(*pci), 1); in edac_pci_alloc_ctl_info() 45 pci = kzalloc(size, GFP_KERNEL); in edac_pci_alloc_ctl_info() 46 if (pci == NULL) in edac_pci_alloc_ctl_info() 50 pvt = sz_pvt ? ((char *)pci) + ((unsigned long)pvt) : NULL; in edac_pci_alloc_ctl_info() 52 pci->pvt_info = pvt; in edac_pci_alloc_ctl_info() 53 pci->op_state = OP_ALLOC; in edac_pci_alloc_ctl_info() 55 snprintf(pci->name, strlen(edac_pci_name) + 1, "%s", edac_pci_name); in edac_pci_alloc_ctl_info() 57 return pci; in edac_pci_alloc_ctl_info() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/amd/rpl/ |
| D | rpl-pci-acp6x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * AMD RPL ACP PCI Driver 8 #include <linux/pci.h> 40 return -ETIMEDOUT; in rpl_power_on() 64 return -ETIMEDOUT; in rpl_reset() 103 static int snd_rpl_probe(struct pci_dev *pci, in snd_rpl_probe() argument 111 switch (pci->revision) { in snd_rpl_probe() 115 dev_dbg(&pci->dev, "acp6x pci device not found\n"); in snd_rpl_probe() 116 return -ENODEV; in snd_rpl_probe() 118 if (pci_enable_device(pci)) { in snd_rpl_probe() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/comedi/ |
| D | comedi_pci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Comedi PCI driver specific functions. 6 * COMEDI - Linux Control and Measurement Device Interface 7 * Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org> 16 * comedi_to_pci_dev() - Return PCI device attached to COMEDI device 17 * @dev: COMEDI device. 19 * Assuming @dev->hw_dev is non-%NULL, it is assumed to be pointing to a 22 * Return: Attached PCI device if @dev->hw_dev is non-%NULL. 23 * Return %NULL if @dev->hw_dev is %NULL. 25 struct pci_dev *comedi_to_pci_dev(struct comedi_device *dev) in comedi_to_pci_dev() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/comedi/ |
| D | comedi_pci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Comedi PCI driver specific functions. 6 * COMEDI - Linux Control and Measurement Device Interface 7 * Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org> 15 * comedi_to_pci_dev() - Return PCI device attached to COMEDI device 16 * @dev: COMEDI device. 18 * Assuming @dev->hw_dev is non-%NULL, it is assumed to be pointing to a 21 * Return: Attached PCI device if @dev->hw_dev is non-%NULL. 22 * Return %NULL if @dev->hw_dev is %NULL. 24 struct pci_dev *comedi_to_pci_dev(struct comedi_device *dev) in comedi_to_pci_dev() argument [all …]
|
| /kernel/linux/linux-6.6/sound/soc/amd/vangogh/ |
| D | pci-acp5x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // AMD Vangogh ACP PCI Driver 7 #include <linux/pci.h> 45 return -ETIMEDOUT; in acp5x_power_on() 69 return -ETIMEDOUT; in acp5x_reset() 123 static int snd_acp5x_probe(struct pci_dev *pci, in snd_acp5x_probe() argument 133 flag = snd_amd_acp_find_config(pci); in snd_acp5x_probe() 135 return -ENODEV; in snd_acp5x_probe() 138 if (pci->revision != 0x50) in snd_acp5x_probe() 139 return -ENODEV; in snd_acp5x_probe() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/amd/renoir/ |
| D | rn-pci-acp3x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // AMD Renoir ACP PCI Driver 7 #include <linux/pci.h> 24 * dmic_acpi_check = -1 - Use ACPI/DMI method to detect the DMIC hardware presence at runtime 25 * = 0 - Skip the DMIC device creation and return probe failure 26 * = 1 - Force DMIC support 30 MODULE_PARM_DESC(dmic_acpi_check, "Digital microphone presence (-1=auto, 0=none, 1=force)"); 59 return -ETIMEDOUT; in rn_acp_power_on() 76 return -ETIMEDOUT; in rn_acp_power_off() 100 return -ETIMEDOUT; in rn_acp_reset() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/amd/raven/ |
| D | pci-acp3x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // AMD ACP PCI Driver 7 #include <linux/pci.h> 27 void __iomem *acp3x_base = adata->acp3x_base; in acp3x_power_on() 47 rv_writel(adata->pme_en, acp3x_base + mmACP_PME_EN); in acp3x_power_on() 52 return -ETIMEDOUT; in acp3x_power_on() 76 return -ETIMEDOUT; in acp3x_reset() 94 void __iomem *acp3x_base = adata->acp3x_base; in acp3x_init() 127 static int snd_acp3x_probe(struct pci_dev *pci, in snd_acp3x_probe() argument 137 if (pci->revision != 0x00) in snd_acp3x_probe() [all …]
|