Home
last modified time | relevance | path

Searched refs:pci (Results 1 – 25 of 1716) sorted by relevance

12345678910>>...69

/kernel/linux/linux-5.10/drivers/staging/media/atomisp/
DMakefile7 obj-$(CONFIG_VIDEO_ATOMISP) += pci/atomisp_gmin_platform.o
16 pci/atomisp_acc.o \
17 pci/atomisp_cmd.o \
18 pci/atomisp_compat_css20.o \
19 pci/atomisp_compat_ioctl32.o \
20 pci/atomisp_csi2.o \
21 pci/atomisp_drvfs.o \
22 pci/atomisp_file.o \
23 pci/atomisp_fops.o \
24 pci/atomisp_ioctl.o \
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/pci/
Dbase.c32 nvkm_pci_rd32(struct nvkm_pci *pci, u16 addr) in nvkm_pci_rd32() argument
34 return pci->func->rd32(pci, addr); in nvkm_pci_rd32()
38 nvkm_pci_wr08(struct nvkm_pci *pci, u16 addr, u8 data) in nvkm_pci_wr08() argument
40 pci->func->wr08(pci, addr, data); in nvkm_pci_wr08()
44 nvkm_pci_wr32(struct nvkm_pci *pci, u16 addr, u32 data) in nvkm_pci_wr32() argument
46 pci->func->wr32(pci, addr, data); in nvkm_pci_wr32()
50 nvkm_pci_mask(struct nvkm_pci *pci, u16 addr, u32 mask, u32 value) in nvkm_pci_mask() argument
52 u32 data = pci->func->rd32(pci, addr); in nvkm_pci_mask()
53 pci->func->wr32(pci, addr, (data & ~mask) | value); in nvkm_pci_mask()
58 nvkm_pci_rom_shadow(struct nvkm_pci *pci, bool shadow) in nvkm_pci_rom_shadow() argument
[all …]
Dpcie.c51 nvkm_pcie_get_version(struct nvkm_pci *pci) in nvkm_pcie_get_version() argument
53 if (!pci->func->pcie.version) in nvkm_pcie_get_version()
56 return pci->func->pcie.version(pci); in nvkm_pcie_get_version()
60 nvkm_pcie_get_max_version(struct nvkm_pci *pci) in nvkm_pcie_get_max_version() argument
62 if (!pci->func->pcie.version_supported) in nvkm_pcie_get_max_version()
65 return pci->func->pcie.version_supported(pci); in nvkm_pcie_get_max_version()
69 nvkm_pcie_set_version(struct nvkm_pci *pci, int version) in nvkm_pcie_set_version() argument
71 if (!pci->func->pcie.set_version) in nvkm_pcie_set_version()
74 nvkm_trace(&pci->subdev, "set to version %i\n", version); in nvkm_pcie_set_version()
75 pci->func->pcie.set_version(pci, version); in nvkm_pcie_set_version()
[all …]
Dagp.c44 nvkm_agp_fini(struct nvkm_pci *pci) in nvkm_agp_fini() argument
46 if (pci->agp.acquired) { in nvkm_agp_fini()
47 agp_backend_release(pci->agp.bridge); in nvkm_agp_fini()
48 pci->agp.acquired = false; in nvkm_agp_fini()
56 nvkm_agp_preinit(struct nvkm_pci *pci) in nvkm_agp_preinit() argument
58 struct nvkm_device *device = pci->subdev.device; in nvkm_agp_preinit()
59 u32 mode = nvkm_pci_rd32(pci, 0x004c); in nvkm_agp_preinit()
66 if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { in nvkm_agp_preinit()
67 mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; in nvkm_agp_preinit()
68 agp_enable(pci->agp.bridge, mode); in nvkm_agp_preinit()
[all …]
Dgk104.c27 gk104_pcie_version_supported(struct nvkm_pci *pci) in gk104_pcie_version_supported() argument
29 return (nvkm_rd32(pci->subdev.device, 0x8c1c0) & 0x4) == 0x4 ? 2 : 1; in gk104_pcie_version_supported()
33 gk104_pcie_set_cap_speed(struct nvkm_pci *pci, enum nvkm_pcie_speed speed) in gk104_pcie_set_cap_speed() argument
35 struct nvkm_device *device = pci->subdev.device; in gk104_pcie_set_cap_speed()
39 gf100_pcie_set_cap_speed(pci, false); in gk104_pcie_set_cap_speed()
43 gf100_pcie_set_cap_speed(pci, true); in gk104_pcie_set_cap_speed()
47 gf100_pcie_set_cap_speed(pci, true); in gk104_pcie_set_cap_speed()
54 gk104_pcie_cap_speed(struct nvkm_pci *pci) in gk104_pcie_cap_speed() argument
56 int speed = gf100_pcie_cap_speed(pci); in gk104_pcie_cap_speed()
62 int speed2 = nvkm_rd32(pci->subdev.device, 0x8c1c0) & 0x30000; in gk104_pcie_cap_speed()
[all …]
Dg84.c29 g84_pcie_version_supported(struct nvkm_pci *pci) in g84_pcie_version_supported() argument
36 g84_pcie_version(struct nvkm_pci *pci) in g84_pcie_version() argument
38 struct nvkm_device *device = pci->subdev.device; in g84_pcie_version()
43 g84_pcie_set_version(struct nvkm_pci *pci, u8 ver) in g84_pcie_set_version() argument
45 struct nvkm_device *device = pci->subdev.device; in g84_pcie_set_version()
50 g84_pcie_set_cap_speed(struct nvkm_pci *pci, bool full_speed) in g84_pcie_set_cap_speed() argument
52 struct nvkm_device *device = pci->subdev.device; in g84_pcie_set_cap_speed()
57 g84_pcie_cur_speed(struct nvkm_pci *pci) in g84_pcie_cur_speed() argument
59 u32 reg_v = nvkm_pci_rd32(pci, 0x88) & 0x30000; in g84_pcie_cur_speed()
72 g84_pcie_max_speed(struct nvkm_pci *pci) in g84_pcie_max_speed() argument
[all …]
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/
Dpcie-designware.c24 static u8 __dw_pcie_find_next_cap(struct dw_pcie *pci, u8 cap_ptr, in __dw_pcie_find_next_cap() argument
33 reg = dw_pcie_readw_dbi(pci, cap_ptr); in __dw_pcie_find_next_cap()
43 return __dw_pcie_find_next_cap(pci, next_cap_ptr, cap); in __dw_pcie_find_next_cap()
46 u8 dw_pcie_find_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_find_capability() argument
51 reg = dw_pcie_readw_dbi(pci, PCI_CAPABILITY_LIST); in dw_pcie_find_capability()
54 return __dw_pcie_find_next_cap(pci, next_cap_ptr, cap); in dw_pcie_find_capability()
58 static u16 dw_pcie_find_next_ext_capability(struct dw_pcie *pci, u16 start, in dw_pcie_find_next_ext_capability() argument
71 header = dw_pcie_readl_dbi(pci, pos); in dw_pcie_find_next_ext_capability()
87 header = dw_pcie_readl_dbi(pci, pos); in dw_pcie_find_next_ext_capability()
93 u16 dw_pcie_find_ext_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_find_ext_capability() argument
[all …]
Dpci-layerscape.c47 struct dw_pcie *pci; member
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()
70 struct dw_pcie *pci = pcie->pci; in ls_pcie_clear_multifunction() local
72 iowrite8(PCI_HEADER_TYPE_BRIDGE, pci->dbi_base + PCI_HEADER_TYPE); in ls_pcie_clear_multifunction()
79 struct dw_pcie *pci = pcie->pci; in ls_pcie_drop_msg_tlp() local
81 val = ioread32(pci->dbi_base + PCIE_STRFMR1); in ls_pcie_drop_msg_tlp()
83 iowrite32(val, pci->dbi_base + PCIE_STRFMR1); in ls_pcie_drop_msg_tlp()
91 dw_pcie_disable_atu(pcie->pci, i, DW_PCIE_REGION_OUTBOUND); in ls_pcie_disable_outbound_atus()
94 static int ls1021_pcie_link_up(struct dw_pcie *pci) in ls1021_pcie_link_up() argument
[all …]
Dpcie-armada8k.c31 struct dw_pcie *pci; member
113 struct dw_pcie *pci = pcie->pci; in armada8k_pcie_setup_phys() local
114 struct device *dev = pci->dev; in armada8k_pcie_setup_phys()
143 static int armada8k_pcie_link_up(struct dw_pcie *pci) in armada8k_pcie_link_up() argument
148 reg = dw_pcie_readl_dbi(pci, PCIE_GLOBAL_STATUS_REG); in armada8k_pcie_link_up()
153 dev_dbg(pci->dev, "No link detected (Global-Status: 0x%08x).\n", reg); in armada8k_pcie_link_up()
159 struct dw_pcie *pci = pcie->pci; in armada8k_pcie_establish_link() local
162 if (!dw_pcie_link_up(pci)) { in armada8k_pcie_establish_link()
164 reg = dw_pcie_readl_dbi(pci, PCIE_GLOBAL_CONTROL_REG); in armada8k_pcie_establish_link()
166 dw_pcie_writel_dbi(pci, PCIE_GLOBAL_CONTROL_REG, reg); in armada8k_pcie_establish_link()
[all …]
Dpcie-designware-ep.c56 static void __dw_pcie_ep_reset_bar(struct dw_pcie *pci, u8 func_no, in __dw_pcie_ep_reset_bar() argument
61 struct dw_pcie_ep *ep = &pci->ep; in __dw_pcie_ep_reset_bar()
66 dw_pcie_dbi_ro_wr_en(pci); in __dw_pcie_ep_reset_bar()
67 dw_pcie_writel_dbi2(pci, reg, 0x0); in __dw_pcie_ep_reset_bar()
68 dw_pcie_writel_dbi(pci, reg, 0x0); in __dw_pcie_ep_reset_bar()
70 dw_pcie_writel_dbi2(pci, reg + 4, 0x0); in __dw_pcie_ep_reset_bar()
71 dw_pcie_writel_dbi(pci, reg + 4, 0x0); in __dw_pcie_ep_reset_bar()
73 dw_pcie_dbi_ro_wr_dis(pci); in __dw_pcie_ep_reset_bar()
76 void dw_pcie_ep_reset_bar(struct dw_pcie *pci, enum pci_barno bar) in dw_pcie_ep_reset_bar() argument
80 funcs = pci->ep.epc->max_functions; in dw_pcie_ep_reset_bar()
[all …]
Dpcie-spear13xx.c25 struct dw_pcie *pci; member
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()
75 u32 exp_cap_off = dw_pcie_find_capability(pci, PCI_CAP_ID_EXP); in spear13xx_pcie_establish_link()
77 if (dw_pcie_link_up(pci)) { in spear13xx_pcie_establish_link()
78 dev_err(pci->dev, "link already up\n"); in spear13xx_pcie_establish_link()
89 val = dw_pcie_readw_dbi(pci, exp_cap_off + PCI_EXP_DEVCTL); in spear13xx_pcie_establish_link()
91 dw_pcie_writew_dbi(pci, exp_cap_off + PCI_EXP_DEVCTL, val); in spear13xx_pcie_establish_link()
93 dw_pcie_writew_dbi(pci, PCI_VENDOR_ID, 0x104A); in spear13xx_pcie_establish_link()
94 dw_pcie_writew_dbi(pci, PCI_DEVICE_ID, 0xCD80); in spear13xx_pcie_establish_link()
[all …]
Dpci-layerscape-ep.c32 struct dw_pcie *pci; member
37 static int ls_pcie_establish_link(struct dw_pcie *pci) in ls_pcie_establish_link() argument
49 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_get_features() local
50 struct ls_pcie_ep *pcie = to_ls_pcie_ep(pci); in ls_pcie_ep_get_features()
57 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_init() local
58 struct ls_pcie_ep *pcie = to_ls_pcie_ep(pci); in ls_pcie_ep_init()
67 dw_pcie_ep_reset_bar(pci, bar); in ls_pcie_ep_init()
76 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_raise_irq() local
87 dev_err(pci->dev, "UNKNOWN IRQ type\n"); in ls_pcie_ep_raise_irq()
95 struct dw_pcie *pci = to_dw_pcie_from_ep(ep); in ls_pcie_ep_func_conf_select() local
[all …]
Dpcie-artpec6.c33 struct dw_pcie *pci; member
97 static u64 artpec6_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr) in artpec6_pcie_cpu_addr_fixup() argument
99 struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci); in artpec6_pcie_cpu_addr_fixup()
100 struct pcie_port *pp = &pci->pp; in artpec6_pcie_cpu_addr_fixup()
101 struct dw_pcie_ep *ep = &pci->ep; in artpec6_pcie_cpu_addr_fixup()
109 dev_err(pci->dev, "UNKNOWN device type\n"); in artpec6_pcie_cpu_addr_fixup()
114 static int artpec6_pcie_establish_link(struct dw_pcie *pci) in artpec6_pcie_establish_link() argument
116 struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci); in artpec6_pcie_establish_link()
126 static void artpec6_pcie_stop_link(struct dw_pcie *pci) in artpec6_pcie_stop_link() argument
128 struct artpec6_pcie *artpec6_pcie = to_artpec6_pcie(pci); in artpec6_pcie_stop_link()
[all …]
/kernel/linux/linux-5.10/drivers/edac/
Dedac_pci.c34 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()
61 void edac_pci_free_ctl_info(struct edac_pci_ctl_info *pci) in edac_pci_free_ctl_info() argument
[all …]
Docteon_edac-pci.c23 static void octeon_pci_poll(struct edac_pci_ctl_info *pci) in octeon_pci_poll() argument
29 edac_pci_handle_pe(pci, pci->ctl_name); in octeon_pci_poll()
34 edac_pci_handle_npe(pci, "Signaled System Error"); in octeon_pci_poll()
39 edac_pci_handle_npe(pci, "Received Master Abort"); in octeon_pci_poll()
44 edac_pci_handle_npe(pci, "Received Target Abort"); in octeon_pci_poll()
49 edac_pci_handle_npe(pci, "Signaled Target Abort"); in octeon_pci_poll()
54 edac_pci_handle_npe(pci, "Master Data Parity Error"); in octeon_pci_poll()
62 struct edac_pci_ctl_info *pci; in octeon_pci_probe() local
65 pci = edac_pci_alloc_ctl_info(0, "octeon_pci_err"); in octeon_pci_probe()
66 if (!pci) in octeon_pci_probe()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/
Dpinctrl-rk805.c138 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()
154 struct rk805_pctrl_info *pci = gpiochip_get_data(chip); in rk805_gpio_set() local
157 ret = regmap_update_bits(pci->rk808->regmap, in rk805_gpio_set()
158 pci->pin_cfg[offset].reg, in rk805_gpio_set()
159 pci->pin_cfg[offset].val_msk, in rk805_gpio_set()
160 value ? pci->pin_cfg[offset].val_msk : 0); in rk805_gpio_set()
162 dev_err(pci->dev, "set gpio%d value %d failed\n", in rk805_gpio_set()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-ixp4xx/
DMakefile6 obj-pci-y :=
7 obj-pci-n :=
10 obj-pci-$(CONFIG_MACH_IXP4XX_OF) += ixp4xx-of.o
12 obj-pci-$(CONFIG_ARCH_IXDP4XX) += ixdp425-pci.o
13 obj-pci-$(CONFIG_MACH_AVILA) += avila-pci.o
14 obj-pci-$(CONFIG_MACH_IXDPG425) += ixdpg425-pci.o
15 obj-pci-$(CONFIG_ARCH_ADI_COYOTE) += coyote-pci.o
16 obj-pci-$(CONFIG_MACH_GTWX5715) += gtwx5715-pci.o
17 obj-pci-$(CONFIG_MACH_MICCPT) += miccpt-pci.o
18 obj-pci-$(CONFIG_MACH_NSLU2) += nslu2-pci.o
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/atom/sst/
Dsst_pci.c28 struct pci_dev *pci = ctx->pci; in sst_platform_get_resources() local
30 ret = pci_request_regions(pci, SST_DRV_NAME); in sst_platform_get_resources()
37 ctx->ddr_base = pci_resource_start(pci, 0); in sst_platform_get_resources()
51 ctx->ddr_end = pci_resource_end(pci, 0); in sst_platform_get_resources()
53 ctx->ddr = pcim_iomap(pci, 0, in sst_platform_get_resources()
54 pci_resource_len(pci, 0)); in sst_platform_get_resources()
64 ctx->shim_phy_add = pci_resource_start(pci, 1); in sst_platform_get_resources()
65 ctx->shim = pcim_iomap(pci, 1, pci_resource_len(pci, 1)); in sst_platform_get_resources()
73 ctx->mailbox_add = pci_resource_start(pci, 2); in sst_platform_get_resources()
74 ctx->mailbox = pcim_iomap(pci, 2, pci_resource_len(pci, 2)); in sst_platform_get_resources()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dpci_hw.h77 MLXSW_ITEM32(pci, wqe, c, 0x00, 31, 1);
89 MLXSW_ITEM32(pci, wqe, lp, 0x00, 30, 1);
94 MLXSW_ITEM32(pci, wqe, type, 0x00, 23, 4);
99 MLXSW_ITEM16_INDEXED(pci, wqe, byte_count, 0x02, 0, 14, 0x02, 0x00, false);
105 MLXSW_ITEM64_INDEXED(pci, wqe, address, 0x08, 0, 64, 0x8, 0x0, false);
146 MLXSW_ITEM32(pci, cqe0, lag, 0x00, 23, 1);
147 MLXSW_ITEM32(pci, cqe12, lag, 0x00, 24, 1);
156 MLXSW_ITEM32(pci, cqe, system_port, 0x00, 0, 16);
157 MLXSW_ITEM32(pci, cqe0, lag_id, 0x00, 4, 12);
158 MLXSW_ITEM32(pci, cqe12, lag_id, 0x00, 0, 16);
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/bdc/
Dbdc_pci.c28 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
48 glue = devm_kzalloc(&pci->dev, sizeof(*glue), GFP_KERNEL); in bdc_pci_probe()
52 glue->dev = &pci->dev; in bdc_pci_probe()
53 ret = pci_enable_device(pci); in bdc_pci_probe()
55 dev_err(&pci->dev, "failed to enable pci device\n"); in bdc_pci_probe()
58 pci_set_master(pci); in bdc_pci_probe()
65 bdc_setup_msi(pci); in bdc_pci_probe()
67 res[0].start = pci_resource_start(pci, 0); in bdc_pci_probe()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/
DKconfig15 source "drivers/media/pci/meye/Kconfig"
16 source "drivers/media/pci/solo6x10/Kconfig"
17 source "drivers/media/pci/sta2x11/Kconfig"
18 source "drivers/media/pci/tw5864/Kconfig"
19 source "drivers/media/pci/tw68/Kconfig"
20 source "drivers/media/pci/tw686x/Kconfig"
25 source "drivers/media/pci/ivtv/Kconfig"
26 source "drivers/media/pci/saa7146/Kconfig"
27 source "drivers/media/pci/dt3155/Kconfig"
32 source "drivers/media/pci/cx18/Kconfig"
[all …]
/kernel/linux/linux-5.10/arch/mips/pci/
DMakefile6 obj-y += pci.o
7 obj-$(CONFIG_PCI_DRIVERS_LEGACY)+= pci-legacy.o
8 obj-$(CONFIG_PCI_DRIVERS_GENERIC)+= pci-generic.o
17 obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o
19 obj-$(CONFIG_BCM47XX) += pci-bcm47xx.o
20 obj-$(CONFIG_BCM63XX) += pci-bcm63xx.o fixup-bcm63xx.o \
22 obj-$(CONFIG_MIPS_ALCHEMY) += pci-alchemy.o
23 obj-$(CONFIG_PCI_AR2315) += pci-ar2315.o
24 obj-$(CONFIG_SOC_AR71XX) += pci-ar71xx.o
25 obj-$(CONFIG_PCI_AR724X) += pci-ar724x.o
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/pci/
Dpci.rst4 .. kernel-doc:: drivers/pci/pci.c
7 .. kernel-doc:: drivers/pci/pci-driver.c
10 .. kernel-doc:: drivers/pci/remove.c
13 .. kernel-doc:: drivers/pci/search.c
16 .. kernel-doc:: drivers/pci/msi.c
19 .. kernel-doc:: drivers/pci/bus.c
22 .. kernel-doc:: drivers/pci/access.c
25 .. kernel-doc:: drivers/pci/irq.c
28 .. kernel-doc:: drivers/pci/probe.c
31 .. kernel-doc:: drivers/pci/slot.c
[all …]
/kernel/linux/linux-5.10/sound/soc/amd/renoir/
Drn-pci-acp3x.c198 static int snd_rn_acp_probe(struct pci_dev *pci, in snd_rn_acp_probe() argument
213 if (pci->revision != 0x01) in snd_rn_acp_probe()
216 if (pci_enable_device(pci)) { in snd_rn_acp_probe()
217 dev_err(&pci->dev, "pci_enable_device failed\n"); in snd_rn_acp_probe()
221 ret = pci_request_regions(pci, "AMD ACP3x audio"); in snd_rn_acp_probe()
223 dev_err(&pci->dev, "pci_request_regions failed\n"); in snd_rn_acp_probe()
227 adata = devm_kzalloc(&pci->dev, sizeof(struct acp_dev_data), in snd_rn_acp_probe()
235 ret = pci_enable_msi(pci); in snd_rn_acp_probe()
243 addr = pci_resource_start(pci, 0); in snd_rn_acp_probe()
244 adata->acp_base = devm_ioremap(&pci->dev, addr, in snd_rn_acp_probe()
[all …]
/kernel/linux/linux-5.10/sound/soc/amd/raven/
Dpci-acp3x.c127 static int snd_acp3x_probe(struct pci_dev *pci, in snd_acp3x_probe() argument
137 if (pci->revision != 0x00) in snd_acp3x_probe()
140 if (pci_enable_device(pci)) { in snd_acp3x_probe()
141 dev_err(&pci->dev, "pci_enable_device failed\n"); in snd_acp3x_probe()
145 ret = pci_request_regions(pci, "AMD ACP3x audio"); in snd_acp3x_probe()
147 dev_err(&pci->dev, "pci_request_regions failed\n"); in snd_acp3x_probe()
151 adata = devm_kzalloc(&pci->dev, sizeof(struct acp3x_dev_data), in snd_acp3x_probe()
159 ret = pci_enable_msi(pci); in snd_acp3x_probe()
167 addr = pci_resource_start(pci, 0); in snd_acp3x_probe()
168 adata->acp3x_base = devm_ioremap(&pci->dev, addr, in snd_acp3x_probe()
[all …]

12345678910>>...69