/linux/sound/soc/amd/acp/ |
H A 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 …]
|
/linux/sound/soc/amd/ps/ |
H A D | pci-ps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AMD Pink Sardine ACP PCI Driver 8 #include <linux/pci.h> 20 #include "../mach-config.h" 70 static int acp63_init(void __iomem *acp_base, struct device *dev) in acp63_init() argument 76 dev_err(dev, "ACP power on failed\n"); in acp63_init() 82 dev_err(dev, "ACP reset failed\n"); in acp63_init() 90 static int acp63_deinit(void __iomem *acp_base, struct device *dev) in acp63_deinit() argument 97 dev_err(dev, "ACP reset failed\n"); in acp63_deinit() 111 sdw_dma_data = dev_get_drvdata(&adata->sdw_dma_dev->dev); in acp63_irq_thread() [all …]
|
/linux/drivers/edac/ |
H A 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 …]
|
H A D | edac_pci_sysfs.c | 20 static int check_pci_errors; /* default NO check PCI parity */ 21 static int edac_pci_panic_on_pe; /* default NO panic on PCI Parity */ 22 static int edac_pci_log_pe = 1; /* log PCI parity errors */ 23 static int edac_pci_log_npe = 1; /* log PCI non-parity error errors */ 58 /**************************** EDAC PCI sysfs instance *******************/ 59 static ssize_t instance_pe_count_show(struct edac_pci_ctl_info *pci, char *data) in instance_pe_count_show() argument 61 return sprintf(data, "%u\n", atomic_read(&pci->counters.pe_count)); in instance_pe_count_show() 64 static ssize_t instance_npe_count_show(struct edac_pci_ctl_info *pci, in instance_npe_count_show() argument 67 return sprintf(data, "%u\n", atomic_read(&pci->counters.npe_count)); in instance_npe_count_show() 76 struct edac_pci_ctl_info *pci; in edac_pci_instance_release() local [all …]
|
/linux/sound/soc/amd/yc/ |
H A 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 …]
|
/linux/sound/soc/amd/rpl/ |
H A 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 …]
|
/linux/drivers/pci/controller/dwc/ |
H A 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_pcie_pf_lut_readl() local 56 if (pcie->big_endian) in ls_pcie_pf_lut_readl() 57 return ioread32be(pci->dbi_base + offset); in ls_pcie_pf_lut_readl() 59 return ioread32(pci->dbi_base + offset); in ls_pcie_pf_lut_readl() 64 struct dw_pcie *pci = pcie->pci; in ls_pcie_pf_lut_writel() local [all …]
|
H A 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 …]
|
H A D | pci-meson.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/pci.h> 21 #include "pcie-designware.h" 23 #define to_meson_pcie(x) dev_get_drvdata((x)->dev) 67 struct dw_pcie pci; member 79 struct device *dev = mp->pci.dev; in meson_pcie_get_reset() local 83 reset = devm_reset_control_get_shared(dev, id); in meson_pcie_get_reset() 85 reset = devm_reset_control_get(dev, id); in meson_pcie_get_reset() 92 struct meson_pcie_rc_reset *mrst = &mp->mrst; in meson_pcie_get_resets() 94 mrst->port = meson_pcie_get_reset(mp, "port", PCIE_NORMAL_RESET); in meson_pcie_get_resets() [all …]
|
H A 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) 69 static int spear13xx_pcie_start_link(struct dw_pcie *pci) in spear13xx_pcie_start_link() argument 71 struct spear13xx_pcie *spear13xx_pcie = to_spear13xx_pcie(pci); in spear13xx_pcie_start_link() 72 struct pcie_app_reg __iomem *app_reg = spear13xx_pcie->app_base; in spear13xx_pcie_start_link() 78 &app_reg->app_ctrl_0); in spear13xx_pcie_start_link() [all …]
|
H A D | pcie-keembay.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <linux/pci.h> 22 #include "pcie-designware.h" 59 struct dw_pcie pci; member 74 gpiod_set_value_cansleep(pcie->reset, 1); in keembay_ep_reset_assert() 83 * For more details, refer to PCI Express Card Electromechanical in keembay_ep_reset_deassert() 84 * Specification Revision 1.1, Table-2.4. in keembay_ep_reset_deassert() 88 gpiod_set_value_cansleep(pcie->reset, 0); in keembay_ep_reset_deassert() 96 val = readl(pcie->apb_base + PCIE_REGS_PCIE_APP_CNTRL); in keembay_pcie_ltssm_set() 101 writel(val, pcie->apb_base + PCIE_REGS_PCIE_APP_CNTRL); in keembay_pcie_ltssm_set() [all …]
|
/linux/drivers/comedi/ |
H A 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 …]
|
/linux/sound/soc/amd/vangogh/ |
H A D | pci-acp5x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // AMD Vangogh ACP PCI Driver 7 #include <linux/pci.h> 16 #include "../mach-config.h" 46 return -ETIMEDOUT; in acp5x_power_on() 70 return -ETIMEDOUT; in acp5x_reset() 124 static int snd_acp5x_probe(struct pci_dev *pci, in snd_acp5x_probe() argument 137 flag = snd_amd_acp_find_config(pci); in snd_acp5x_probe() 140 return -ENODEV; in snd_acp5x_probe() 143 if (pci->revision != 0x50) in snd_acp5x_probe() [all …]
|
/linux/sound/soc/amd/raven/ |
H A 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 …]
|
/linux/sound/pci/ymfpci/ |
H A D | ymfpci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 #include <linux/pci.h> 18 MODULE_DESCRIPTION("Yamaha DS-1 PCI"); 21 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 32 MODULE_PARM_DESC(index, "Index value for the Yamaha DS-1 PCI soundcard."); 34 MODULE_PARM_DESC(id, "ID string for the Yamaha DS-1 PCI soundcard."); 36 MODULE_PARM_DESC(enable, "Enable Yamaha DS-1 soundcard."); 38 MODULE_PARM_DESC(mpu_port, "MPU-401 Port."); 40 MODULE_PARM_DESC(fm_port, "FM OPL-3 Port."); 46 MODULE_PARM_DESC(rear_switch, "Enable shared rear/line-in switch"); [all …]
|
/linux/arch/alpha/kernel/ |
H A D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * linux/arch/alpha/kernel/pci.c 10 /* 2.3.x PCI/resources, 1999 Andrea Arcangeli <andrea@suse.de> */ 14 * PCI-PCI bridges cleanup 17 #include <linux/pci.h> 37 "PCI I 64 quirk_isa_bridge(struct pci_dev * dev) quirk_isa_bridge() argument 70 quirk_cypress(struct pci_dev * dev) quirk_cypress() argument 100 struct pci_iommu_arena *pci = hose->sg_pci; quirk_cypress() local 109 pcibios_fixup_final(struct pci_dev * dev) pcibios_fixup_final() argument 130 struct pci_dev *dev = data; pcibios_align_resource() local 205 struct pci_dev *dev; global() member 210 pdev_save_srm_config(struct pci_dev * dev) pdev_save_srm_config() argument 251 pdev_save_srm_config(dev) global() argument 256 struct pci_dev *dev = bus->self; pcibios_fixup_bus() local 274 pcibios_set_master(struct pci_dev * dev) pcibios_set_master() argument 287 struct pci_dev *dev; pcibios_claim_one_bus() local 425 struct pci_dev *dev; SYSCALL_DEFINE3() local 465 pci_iounmap(struct pci_dev * dev,void __iomem * addr) pci_iounmap() argument [all...] |
/linux/drivers/pci/ |
H A D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCI Bus Services, see include/linux/pci.h for further explanation. 5 * Copyright 1993 -- 1997 Drew Eckhardt, Frederic Potter, 6 * David Mosberger-Tang 8 * Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz> 18 #include <linux/pci.h> 33 #include "pci.h" 60 struct pci_dev *dev; member 80 static void pci_dev_d3_sleep(struct pci_dev *dev) in pci_dev_d3_sleep() argument 82 unsigned int delay_ms = max(dev->d3hot_delay, pci_pm_d3hot_delay); in pci_dev_d3_sleep() [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | pci_of_scan.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Helper routines to scan the device tree for PCI devices and busses 10 * Rework, based on alpha PCI code. 14 #include <linux/pci.h> 17 #include <asm/pci-bridge.h> 20 * get_int_prop - Decode a u32 from a device tree property 34 * pci_parse_of_flags - Parse the flags cell of a device tree PCI address 35 * @addr0: value of 1st cell of a device tree PCI address. 38 * PCI Bus Binding to IEEE Std 1275-1994 49 * t is 1 if the address is aliased (for non-relocatable I/O), [all …]
|
/linux/drivers/media/common/saa7146/ |
H A D | saa7146_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 saa7146.o - driver for generic saa7146-based hardware 5 Copyright (C) 1998-2003 Michael Hunold <michael@mihu.de> 11 #include <media/drv-intf/saa7146.h> 22 static void dump_registers(struct saa7146_dev* dev) 28 pr_info("0x%03x: 0x%08x\n", i, saa7146_read(dev, i)); 36 void saa7146_setgpio(struct saa7146_dev *dev, int port, u32 data) in saa7146_setgpio() argument 43 value = saa7146_read(dev, GPIO_CTRL); in saa7146_setgpio() 46 saa7146_write(dev, GPIO_CTRL, value); in saa7146_setgpio() 50 static inline int saa7146_wait_for_debi_done_sleep(struct saa7146_dev *dev, in saa7146_wait_for_debi_done_sleep() argument [all …]
|
/linux/sound/soc/amd/renoir/ |
H A 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 …]
|
/linux/drivers/pci/pcie/ |
H A D | portdrv.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Purpose: PCI Express Port Bus Driver 13 #include <linux/pci.h> 22 #include "../pci.h" 27 * be one of the first 32 MSI-X entries. Per PCI r3.0, sec 6.8.3.1, MSI 32 #define get_descriptor_id(type, service) (((type - 4) << 8) | service) 36 struct device *dev; member 41 * release_pcie_device - free PCI Express port service device structure 42 * @dev: Port service device to release 45 * device_unregister(dev). Release all resources being claimed. [all …]
|
/linux/sound/soc/intel/atom/sst/ |
H A D | sst_pci.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * sst_pci.c - SST (LPE) driver init file for pci enumeration. 5 * Copyright (C) 2008-14 Intel Corp 15 #include <linux/pci.h> 21 #include "../sst-mfld-platform.h" 27 struct pci_dev *pci = ctx->pci; in sst_platform_get_resources() local 29 ret = pci_request_regions(pci, SST_DRV_NAME); in sst_platform_get_resources() 35 if (ctx->dev_id == PCI_DEVICE_ID_INTEL_SST_TNG) { in sst_platform_get_resources() 36 ctx->ddr_base = pci_resource_start(pci, 0); in sst_platform_get_resources() 38 ddr_base = relocate_imr_addr_mrfld(ctx->ddr_base); in sst_platform_get_resources() [all …]
|
/linux/drivers/pci/msi/ |
H A D | msi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCI Message Signaled Interrupt (MSI) 5 * Copyright (C) 2003-2004 Intel 14 #include "../pci.h" 21 * pci_msi_supported - check whether MSI may be enabled on a device 22 * @dev: pointer to the pci_dev data structure of MSI device function 26 * to determine if MSI/-X are supported for the device. If MSI/-X is 29 static int pci_msi_supported(struct pci_dev *dev, int nvec) in pci_msi_supported() argument 37 if (!dev || dev->no_msi) in pci_msi_supported() 54 * - arch-specific PCI host bus controller drivers (deprecated) in pci_msi_supported() [all …]
|
/linux/sound/pci/au88x0/ |
H A D | au88x0.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 * Now at least i can play Legacy DOOM with MIDI music :-) 20 #include <linux/pci.h> 24 #include <linux/dma-mapping.h> 31 static int pcifix[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 255 }; 40 MODULE_PARM_DESC(pcifix, "Enable VIA-workaround for " CARD_NAME " soundcard."); 44 MODULE_DEVICE_TABLE(pci, snd_vortex_ids); 51 dev_info(&vortex->dev, "vortex latency is 0xff\n"); in vortex_fix_latency() 53 dev_warn(&vortex->dev, in vortex_fix_latency() 54 "could not set vortex latency: pci error 0x%x\n", rc); in vortex_fix_latency() [all …]
|
/linux/sound/soc/sof/ |
H A D | sof-pci-dev.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 14 #include <linux/pci.h> 17 #include <sound/soc-acpi.h> 18 #include <sound/soc-acpi-intel-match.h> 21 #include "sof-pci-dev.h" 25 MODULE_PARM_DESC(fw_path, "deprecated - moved to snd-sof module."); 29 MODULE_PARM_DESC(fw_filename, "deprecated - moved to snd-sof module."); 33 MODULE_PARM_DESC(lib_path, "deprecated - moved to snd-sof module."); 37 MODULE_PARM_DESC(tplg_path, "deprecated - moved to snd-sof module."); 41 MODULE_PARM_DESC(tplg_filename, "deprecated - moved to snd-sof module."); [all …]
|