Home
last modified time | relevance | path

Searched +full:pci +full:- +full:dev (Results 1 – 25 of 1064) sorted by relevance

12345678910>>...43

/Linux-v6.1/sound/soc/amd/ps/
Dpci-ps.c1 // SPDX-License-Identifier: GPL-2.0+
3 * AMD Pink Sardine ACP PCI Driver
8 #include <linux/pci.h>
46 return -ETIMEDOUT; in acp62_power_on()
70 return -ETIMEDOUT; in acp62_reset()
86 static int acp62_init(void __iomem *acp_base, struct device *dev) in acp62_init() argument
92 dev_err(dev, "ACP power on failed\n"); in acp62_init()
98 dev_err(dev, "ACP reset failed\n"); in acp62_init()
106 static int acp62_deinit(void __iomem *acp_base, struct device *dev) in acp62_deinit() argument
113 dev_err(dev, "ACP reset failed\n"); in acp62_deinit()
[all …]
/Linux-v6.1/drivers/staging/rts5208/
Drtsx.c1 // 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 …]
/Linux-v6.1/drivers/edac/
Dedac_pci.c1 // 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 …]
Dedac_pci_sysfs.c20 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-v6.1/drivers/pinctrl/
Dpinctrl-rk805.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Author: Joseph Chen <chenjh@rock-chips.com>
9 * Based on the pinctrl-as3722 driver
24 #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 …]
/Linux-v6.1/sound/soc/amd/yc/
Dpci-acp6x.c1 // 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-v6.1/drivers/pci/controller/dwc/
Dpci-dra7xx.c1 // 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 …]
Dpcie-armada8k.c1 // 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 …]
Dpcie-histb.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016-2017 HiSilicon Co., Ltd. http://www.hisilicon.com
18 #include <linux/pci.h>
24 #include "pcie-designware.h"
26 #define to_histb_pcie(x) dev_get_drvdata((x)->dev)
53 struct dw_pcie *pci; member
69 return readl(histb_pcie->ctrl + reg); in histb_pcie_readl()
74 writel(val, histb_pcie->ctrl + reg); in histb_pcie_writel()
79 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in histb_pcie_dbi_w_mode() local
80 struct histb_pcie *hipcie = to_histb_pcie(pci); in histb_pcie_dbi_w_mode()
[all …]
Dpci-imx6.c1 // 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)
69 struct dw_pcie *pci; member
104 /* PCIe Port Logic registers (memory-mapped) */
117 /* PHY registers (not memory-mapped) */
154 WARN_ON(imx6_pcie->drvdata->variant != IMX8MQ && in imx6_pcie_grp_offset()
[all …]
Dpci-meson.c1 // SPDX-License-Identifier: GPL-2.0
14 #include <linux/pci.h>
22 #include "pcie-designware.h"
24 #define to_meson_pcie(x) dev_get_drvdata((x)->dev)
68 struct dw_pcie pci; member
80 struct device *dev = mp->pci.dev; in meson_pcie_get_reset() local
84 reset = devm_reset_control_get_shared(dev, id); in meson_pcie_get_reset()
86 reset = devm_reset_control_get(dev, id); in meson_pcie_get_reset()
93 struct meson_pcie_rc_reset *mrst = &mp->mrst; in meson_pcie_get_resets()
95 mrst->port = meson_pcie_get_reset(mp, "port", PCIE_NORMAL_RESET); in meson_pcie_get_resets()
[all …]
Dpcie-intel-gw.c1 // SPDX-License-Identifier: GPL-2.0
17 #include "../../pci.h"
18 #include "pcie-designware.h"
20 #define PORT_AFR_N_FTS_GEN12_DFT (SZ_128 - 1)
62 struct dw_pcie pci; member
84 writel(val, pcie->app_base + ofs); in pcie_app_wr()
90 pcie_update_bits(pcie->app_base, ofs, mask, val); in pcie_app_wr_mask()
95 return dw_pcie_readl_dbi(&pcie->pci, ofs); in pcie_rc_cfg_rd()
100 dw_pcie_writel_dbi(&pcie->pci, ofs, val); in pcie_rc_cfg_wr()
106 pcie_update_bits(pcie->pci.dbi_base, ofs, mask, val); in pcie_rc_cfg_wr_mask()
[all …]
Dpcie-tegra194.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Copyright (C) 2019-2022 NVIDIA Corporation.
26 #include <linux/pci.h>
35 #include "pcie-designware.h"
37 #include <soc/tegra/bpmp-abi.h>
38 #include "../../pci.h"
246 struct device *dev; member
254 struct dw_pcie pci; member
292 static inline struct tegra_pcie_dw *to_tegra_pcie(struct dw_pcie *pci) in to_tegra_pcie() argument
294 return container_of(pci, struct tegra_pcie_dw, pci); in to_tegra_pcie()
[all …]
Dpci-keystone.c1 // 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 …]
/Linux-v6.1/sound/soc/amd/rpl/
Drpl-pci-acp6x.c1 // 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-v6.1/drivers/comedi/
Dcomedi_pci.c1 // 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-v6.1/sound/soc/amd/raven/
Dpci-acp3x.c1 // 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-v6.1/sound/soc/amd/vangogh/
Dpci-acp5x.c1 // 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 if (pci->revision != 0x50) in snd_acp5x_probe()
134 return -ENODEV; in snd_acp5x_probe()
136 if (pci_enable_device(pci)) { in snd_acp5x_probe()
137 dev_err(&pci->dev, "pci_enable_device failed\n"); in snd_acp5x_probe()
[all …]
/Linux-v6.1/drivers/net/wwan/iosm/
Diosm_ipc_pcie.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-21 Intel Corporation.
28 iounmap(ipc_pcie->scratchpad); in ipc_pcie_resources_release()
31 iounmap(ipc_pcie->ipc_regs); in ipc_pcie_resources_release()
33 /* Releases all PCI I/O and memory resources previously reserved by a in ipc_pcie_resources_release()
35 * after all use of the PCI regions has ceased. in ipc_pcie_resources_release()
37 pci_release_regions(ipc_pcie->pci); in ipc_pcie_resources_release()
43 ipc_imem_cleanup(ipc_pcie->imem); in ipc_pcie_cleanup()
47 /* Signal to the system that the PCI device is not in use. */ in ipc_pcie_cleanup()
48 pci_disable_device(ipc_pcie->pci); in ipc_pcie_cleanup()
[all …]
/Linux-v6.1/drivers/pci/
Dpci.c1 // 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>
35 #include "pci.h"
62 struct pci_dev *dev; member
67 static void pci_dev_d3_sleep(struct pci_dev *dev) in pci_dev_d3_sleep() argument
69 unsigned int delay_ms = max(dev->d3hot_delay, pci_pm_d3hot_delay); in pci_dev_d3_sleep()
[all …]
/Linux-v6.1/arch/alpha/kernel/
Dpci.c1 // 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 IO bus 0", "PCI IO bus 1", "PCI IO bus 2", "PCI IO bus 3",
38 "PCI IO bus 4", "PCI IO bus 5", "PCI IO bus 6", "PCI IO bus 7"
42 "PCI mem bus 0", "PCI mem bus 1", "PCI mem bus 2", "PCI mem bus 3",
43 "PCI mem bus 4", "PCI mem bus 5", "PCI mem bus 6", "PCI mem bus 7"
49 * If PCI_PROBE_ONLY in pci_flags is set, we don't change any PCI resource
[all …]
/Linux-v6.1/sound/pci/ymfpci/
Dymfpci.c1 // 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-v6.1/drivers/pci/pcie/
Dportdrv_core.c1 // SPDX-License-Identifier: GPL-2.0
3 * Purpose: PCI Express Port Bus Driver's Core Functions
10 #include <linux/pci.h>
19 #include "../pci.h"
24 struct device *dev; member
29 * release_pcie_device - free PCI Express port service device structure
30 * @dev: Port service device to release
33 * device_unregister(dev). Release all resources being claimed.
35 static void release_pcie_device(struct device *dev) in release_pcie_device() argument
37 kfree(to_pcie_device(dev)); in release_pcie_device()
[all …]
/Linux-v6.1/arch/powerpc/kernel/
Dpci_of_scan.c1 // 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-v6.1/sound/soc/amd/renoir/
Drn-pci-acp3x.c1 // 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 …]

12345678910>>...43