Home
last modified time | relevance | path

Searched refs:PCI_DEVFN (Results 1 – 25 of 162) sorted by relevance

1234567

/openbmc/linux/drivers/gpu/drm/i915/
H A Dvlv_sideband.c131 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_PUNIT, in vlv_punit_read()
139 return vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_PUNIT, in vlv_punit_write()
147 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_BUNIT, in vlv_bunit_read()
155 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_BUNIT, in vlv_bunit_write()
163 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_NC, in vlv_nc_read()
173 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), port, in vlv_iosf_sb_read()
182 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), port, in vlv_iosf_sb_write()
190 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_CCK, in vlv_cck_read()
198 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_CCK, in vlv_cck_write()
206 vlv_sideband_rw(i915, PCI_DEVFN(0, 0), IOSF_PORT_CCU, in vlv_ccu_read()
[all …]
/openbmc/linux/drivers/pci/hotplug/
H A Dcpqphp_pci.c79 PCI_DEVFN(func->device, in cpqhp_configure_device()
86 num = pci_scan_slot(ctrl->pci_dev->bus, PCI_DEVFN(func->device, func->function)); in cpqhp_configure_device()
91 PCI_DEVFN(func->device, in cpqhp_configure_device()
124 PCI_DEVFN(func->device, in cpqhp_unconfigure_device()
233 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(tdevice, 0), PCI_SECONDARY_BUS, &tbus); in PCI_ScanBusForNonBridge()
341 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_config()
362 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), 0x0B, &class_code); in cpqhp_save_config()
366 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_HEADER_TYPE, &header_type); in cpqhp_save_config()
384 …rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &seco… in cpqhp_save_config()
425 …rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(n… in cpqhp_save_config()
[all …]
H A Dshpchp_pci.c33 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device()
43 num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device()
H A Dibmphp_pci.c93 unsigned int devfn = PCI_DEVFN(device, function); in ibmphp_configure_card()
352 devfn = PCI_DEVFN(func->device, func->function); in configure_device()
394 io[count]->devfunc = PCI_DEVFN(func->device, func->function); in configure_device()
430 pfmem[count]->devfunc = PCI_DEVFN(func->device, in configure_device()
494 mem[count]->devfunc = PCI_DEVFN(func->device, in configure_device()
579 devfn = PCI_DEVFN(func->function, func->device); in configure_bridge()
659 bus_io[count]->devfunc = PCI_DEVFN(func->device, in configure_bridge()
690 bus_pfmem[count]->devfunc = PCI_DEVFN(func->device, in configure_bridge()
745 bus_mem[count]->devfunc = PCI_DEVFN(func->device, in configure_bridge()
815 io->devfunc = PCI_DEVFN(func->device, func->function); in configure_bridge()
[all …]
H A Dpciehp_pci.c41 dev = pci_get_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device()
54 num = pci_scan_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device()
/openbmc/qemu/hw/ppc/
H A Dpegasos2.c186 via = OBJECT(pci_new_multifunction(PCI_DEVFN(12, 0), TYPE_VT8231_ISA)); in pegasos2_init()
345 pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 0) << 8) | in pegasos2_machine_reset()
347 pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 0) << 8) | in pegasos2_machine_reset()
353 pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 0) << 8) | in pegasos2_machine_reset()
355 pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 0) << 8) | in pegasos2_machine_reset()
357 pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 0) << 8) | in pegasos2_machine_reset()
359 pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 0) << 8) | in pegasos2_machine_reset()
362 pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 1) << 8) | in pegasos2_machine_reset()
364 pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 1) << 8) | in pegasos2_machine_reset()
366 pegasos2_pci_config_write(pm, 1, (PCI_DEVFN(12, 1) << 8) | in pegasos2_machine_reset()
[all …]
/openbmc/linux/arch/mips/pci/
H A Dpci-bcm1480.c214 cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), in bcm1480_pcibios_init()
226 cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), 0x40)); in bcm1480_pcibios_init()
227 WRITECFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), 0x40), in bcm1480_pcibios_init()
229 cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), 0x40)); in bcm1480_pcibios_init()
H A Dfixup-cobalt.c56 if (dev->devfn == PCI_DEVFN(0, 0) && in qube_raq_galileo_early_fixup()
93 if (dev->devfn != PCI_DEVFN(0, 0)) in qube_raq_galileo_fixup()
H A Dops-loongson2.c187 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _rdmsr()
203 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _wrmsr()
H A Dpci-sb1250.c225 (0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), in sb1250_pcibios_init()
254 cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(LDT_BRIDGE_DEVICE, 0), in sb1250_pcibios_init()
/openbmc/linux/drivers/edac/
H A Dskx_base.c69 { 0x2040, { PCI_DEVFN(10, 0), PCI_DEVFN(12, 0) }, 2, 2, CHAN0 },
70 { 0x2044, { PCI_DEVFN(10, 4), PCI_DEVFN(12, 4) }, 2, 2, CHAN1 },
71 { 0x2048, { PCI_DEVFN(11, 0), PCI_DEVFN(13, 0) }, 2, 2, CHAN2 },
72 { 0x2043, { PCI_DEVFN(10, 3), PCI_DEVFN(12, 3) }, 2, 2, ERRCHAN0 },
73 { 0x2047, { PCI_DEVFN(10, 7), PCI_DEVFN(12, 7) }, 2, 2, ERRCHAN1 },
74 { 0x204b, { PCI_DEVFN(11, 3), PCI_DEVFN(13, 3) }, 2, 2, ERRCHAN2 },
/openbmc/qemu/hw/pci-host/
H A Duninorth.c71 retval |= PCI_DEVFN(slot, func) << 8; in unin_get_config_reg()
127 PCI_DEVFN(11, 0), 4, TYPE_PCI_BUS); in pci_unin_main_realize()
129 pci_create_simple(h->bus, PCI_DEVFN(11, 0), "uni-north-pci"); in pci_unin_main_realize()
177 PCI_DEVFN(11, 0), 4, TYPE_PCI_BUS); in pci_u3_agp_realize()
179 pci_create_simple(h->bus, PCI_DEVFN(11, 0), "u3-agp"); in pci_u3_agp_realize()
221 PCI_DEVFN(11, 0), 4, TYPE_PCI_BUS); in pci_unin_agp_realize()
223 pci_create_simple(h->bus, PCI_DEVFN(11, 0), "uni-north-agp"); in pci_unin_agp_realize()
254 PCI_DEVFN(14, 0), 4, TYPE_PCI_BUS); in pci_unin_internal_realize()
256 pci_create_simple(h->bus, PCI_DEVFN(14, 0), "uni-north-internal-pci"); in pci_unin_internal_realize()
H A Darticia.c187 &s->io, PCI_DEVFN(8, 0), 4, TYPE_PCI_BUS); in articia_realize()
188 pdev = pci_create_simple_multifunction(h->bus, PCI_DEVFN(0, 0), in articia_realize()
191 pci_create_simple(h->bus, PCI_DEVFN(0, 1), TYPE_ARTICIA_PCI_BRIDGE); in articia_realize()
H A Dsh_pci.c134 PCI_DEVFN(0, 0), PCI_NUM_PINS, in sh_pcic_host_realize()
146 s->dev = pci_create_simple(phb->bus, PCI_DEVFN(0, 0), "sh_pci_host"); in sh_pcic_host_realize()
/openbmc/linux/arch/x86/pci/
H A Dintel_mid_pci.c164 if (bus == 0 && (devfn == PCI_DEVFN(2, 0) in type1_access_ok()
165 || devfn == PCI_DEVFN(0, 0) in type1_access_ok()
166 || devfn == PCI_DEVFN(3, 0))) in type1_access_ok()
396 if (!offset || PCI_DEVFN(2, 0) == dev->devfn || in pci_fixed_bar_fixup()
397 PCI_DEVFN(2, 2) == dev->devfn) in pci_fixed_bar_fixup()
H A Dmmconfig-shared.c134 raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0xce, 2, &win); in pci_mmcfg_e7520()
150 raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0x48, 4, &pciexbar); in pci_mmcfg_intel_945()
274 raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), 0, 4, &l); in pci_mmcfg_nvidia_mcp55()
281 raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), extcfg_regnum, in pci_mmcfg_nvidia_mcp55()
313 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
315 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
317 { 0, PCI_DEVFN(0x18, 0), PCI_VENDOR_ID_AMD,
319 { 0xff, PCI_DEVFN(0, 0), PCI_VENDOR_ID_AMD,
321 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_NVIDIA,
H A Dnumachip.c116 ret = raw_pci_read(0, 0, PCI_DEVFN(0x18, 0), 0x60, sizeof(val), &val); in pci_numachip_init()
121 limit = PCI_DEVFN(0x18 + ((val >> 4) & 7) + 1, 0); in pci_numachip_init()
H A Dce4100.c49 { PCI_DEVFN(device, func), offset, init_op, read_op, write_op,\
74 pci_direct_conf1.read(0, 1, PCI_DEVFN(14, 0), 0x10, 4, in sata_reg_init()
271 if (bus == 0 && (PCI_DEVFN(1, 0) == devfn) && in ce4100_conf_read()
306 if (bus == 0 && PCI_DEVFN(1, 0) == devfn && in ce4100_conf_write()
/openbmc/linux/drivers/hwmon/
H A Dfam15h_power.c79 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show()
96 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show()
333 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 3), in should_load_on_this_node()
364 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), in tweak_runavg_range()
372 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), in tweak_runavg_range()
397 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in fam15h_power_init_data()
/openbmc/qemu/hw/vfio/
H A Digd.c176 host_bridge = pci_find_device(bus, 0, PCI_DEVFN(0, 0)); in vfio_pci_igd_host_init()
200 if (pdev->devfn != PCI_DEVFN(0x1f, 0)) { in vfio_pci_igd_lpc_bridge_realize()
241 0, PCI_DEVFN(0x1f, 0)); in type_init()
244 PCI_DEVFN(0x1f, 0), "vfio-pci-igd-lpc-bridge"); in type_init()
459 0, PCI_DEVFN(0x2, 0))) { in vfio_probe_igd_bar0_quirk()
531 0, PCI_DEVFN(0x2, 0))) { in vfio_probe_igd_bar4_quirk()
541 0, PCI_DEVFN(0x1f, 0)); in vfio_probe_igd_bar4_quirk()
/openbmc/linux/drivers/platform/x86/
H A Dp2sb.c22 #define P2SB_DEVFN_DEFAULT PCI_DEVFN(31, 1)
23 #define P2SB_DEVFN_GOLDMONT PCI_DEVFN(13, 0)
24 #define SPI_DEVFN_GOLDMONT PCI_DEVFN(13, 2)
/openbmc/linux/drivers/clk/x86/
H A Dclk-fch.c54 rdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0)); in fch_clk_probe()
100 rdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0)); in fch_clk_remove()
/openbmc/linux/arch/alpha/kernel/
H A Dsys_sio.c92 pci_bus_read_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, in sio_pci_route()
102 pci_bus_write_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, in sio_pci_route()
323 pci_bus_write_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, in sio_kill_arch()
/openbmc/qemu/hw/alpha/
H A Ddp264.c91 clipper_pci_map_irq, PCI_DEVFN(1, 0)); in clipper_init()
114 i82378_dev = DEVICE(pci_create_simple(pci_bus, PCI_DEVFN(7, 0), "i82378")); in clipper_init()
/openbmc/qemu/hw/i386/
H A Dpc_q35.c112 ehci = pci_new_multifunction(PCI_DEVFN(slot, 7), name); in ehci_create_ich9_with_companions()
117 uhci = pci_new_multifunction(PCI_DEVFN(slot, comp[i].func), in ehci_create_ich9_with_companions()
233 lpc = pci_new_multifunction(PCI_DEVFN(ICH9_LPC_DEV, ICH9_LPC_FUNC), in pc_q35_init()
289 PCI_DEVFN(ICH9_SATA1_DEV, in pc_q35_init()
310 PCI_DEVFN(ICH9_SMB_DEV, in pc_q35_init()

1234567