Home
last modified time | relevance | path

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

12345678910>>...42

/openbmc/linux/sound/soc/amd/acp/
H A Dacp-pci.c1 // 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 …]
/openbmc/linux/drivers/staging/rts5208/
H A 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 …]
/openbmc/linux/sound/soc/amd/yc/
H A 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 …]
/openbmc/linux/drivers/edac/
H A 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 …]
/openbmc/linux/drivers/pci/controller/dwc/
H A 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 …]
H A Dpcie-designware.c1 // 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 …]
H A 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)
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 …]
H A 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>
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 Dpci-layerscape-ep.c1 // 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 …]
H A Dpci-layerscape.c1 // 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 …]
H A 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 …]
H A 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
30 #include "../../pci.h"
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)
[all …]
H A Dpci-meson.c1 // SPDX-License-Identifier: GPL-2.0
13 #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 …]
H A Dpcie-intel-gw.c1 // SPDX-License-Identifier: GPL-2.0
19 #include "../../pci.h"
20 #include "pcie-designware.h"
22 #define PORT_AFR_N_FTS_GEN12_DFT (SZ_128 - 1)
64 struct dw_pcie pci; member
86 writel(val, pcie->app_base + ofs); in pcie_app_wr()
92 pcie_update_bits(pcie->app_base, ofs, mask, val); in pcie_app_wr_mask()
97 return dw_pcie_readl_dbi(&pcie->pci, ofs); in pcie_rc_cfg_rd()
102 dw_pcie_writel_dbi(&pcie->pci, ofs, val); in pcie_rc_cfg_wr()
108 pcie_update_bits(pcie->pci.dbi_base, ofs, mask, val); in pcie_rc_cfg_wr_mask()
[all …]
H A Dpcie-designware-host.c1 // SPDX-License-Identifier: GPL-2.0
20 #include "../../pci.h"
21 #include "pcie-designware.h"
44 .name = "PCI-MSI",
63 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_handle_msi_irq() local
65 num_ctrls = pp->num_vectors / MAX_MSI_IRQS_PER_CTRL; in dw_handle_msi_irq()
68 status = dw_pcie_readl_dbi(pci, PCIE_MSI_INTR0_STATUS + in dw_handle_msi_irq()
78 generic_handle_domain_irq(pp->irq_domain, in dw_handle_msi_irq()
105 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); in dw_pci_setup_msi_msg() local
108 msi_target = (u64)pp->msi_data; in dw_pci_setup_msi_msg()
[all …]
/openbmc/linux/sound/soc/amd/rpl/
H A 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 …]
/openbmc/linux/drivers/comedi/
H A 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 …]
/openbmc/linux/sound/soc/amd/vangogh/
H A 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 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 …]
/openbmc/linux/sound/pci/ymfpci/
H A 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 …]
/openbmc/linux/sound/soc/amd/raven/
H A 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 …]
/openbmc/linux/arch/alpha/kernel/
H A 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 …]
/openbmc/linux/drivers/net/wwan/iosm/
H A 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 …]
/openbmc/linux/arch/powerpc/kernel/
H A 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 …]
/openbmc/qemu/hw/char/
H A Dserial-pci-multi.c4 * SPDX-License-Identifier: MIT
6 * Copyright (c) 2003-2004 Fabrice Bellard
28 /* see docs/specs/pci-serial.rst */
34 #include "hw/pci/pci_device.h"
35 #include "hw/qdev-properties.h"
36 #include "hw/qdev-properties-system.h"
42 PCIDevice dev; member
52 static void multi_serial_pci_exit(PCIDevice *dev) in multi_serial_pci_exit() argument
54 PCIMultiSerialState *pci = DO_UPCAST(PCIMultiSerialState, dev, dev); in multi_serial_pci_exit() local
58 for (i = 0; i < pci->ports; i++) { in multi_serial_pci_exit()
[all …]
/openbmc/linux/drivers/media/common/saa7146/
H A Dsaa7146_core.c1 // 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 …]

12345678910>>...42