Home
last modified time | relevance | path

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

12345

/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_sideband.c87 vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), IOSF_PORT_PUNIT, in vlv_punit_read()
101 err = vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), IOSF_PORT_PUNIT, in vlv_punit_write()
112 vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), IOSF_PORT_BUNIT, in vlv_bunit_read()
120 vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), IOSF_PORT_BUNIT, in vlv_bunit_write()
131 vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), IOSF_PORT_NC, in vlv_nc_read()
141 vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), port, in vlv_iosf_sb_read()
149 vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), port, in vlv_iosf_sb_write()
156 vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), IOSF_PORT_CCK, in vlv_cck_read()
163 vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), IOSF_PORT_CCK, in vlv_cck_write()
170 vlv_sideband_rw(dev_priv, PCI_DEVFN(0, 0), IOSF_PORT_CCU, in vlv_ccu_read()
[all …]
/Linux-v4.19/drivers/pci/hotplug/
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()
226 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(tdevice, 0), PCI_SECONDARY_BUS, &tbus); in PCI_ScanBusForNonBridge()
334 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_config()
355 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), 0x0B, &class_code); in cpqhp_save_config()
359 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_HEADER_TYPE, &header_type); in cpqhp_save_config()
377 …rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &seco… in cpqhp_save_config()
418 …rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(n… in cpqhp_save_config()
[all …]
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()
Dpciehp_pci.c33 dev = pci_get_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device()
46 num = pci_scan_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device()
Dibmphp_pci.c93 unsigned int devfn = PCI_DEVFN(device, function); in ibmphp_configure_card()
353 devfn = PCI_DEVFN(func->device, func->function); in configure_device()
395 io[count]->devfunc = PCI_DEVFN(func->device, func->function); in configure_device()
431 pfmem[count]->devfunc = PCI_DEVFN(func->device, in configure_device()
495 mem[count]->devfunc = PCI_DEVFN(func->device, in configure_device()
580 devfn = PCI_DEVFN(func->function, func->device); in configure_bridge()
660 bus_io[count]->devfunc = PCI_DEVFN(func->device, in configure_bridge()
691 bus_pfmem[count]->devfunc = PCI_DEVFN(func->device, in configure_bridge()
746 bus_mem[count]->devfunc = PCI_DEVFN(func->device, in configure_bridge()
816 io->devfunc = PCI_DEVFN(func->device, func->function); in configure_bridge()
[all …]
/Linux-v4.19/arch/mips/pci/
Dpci-bcm1480.c227 cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), in bcm1480_pcibios_init()
239 cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), 0x40)); in bcm1480_pcibios_init()
240 WRITECFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), 0x40), in bcm1480_pcibios_init()
242 cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), 0x40)); in bcm1480_pcibios_init()
Dfixup-cobalt.c41 if (dev->devfn == PCI_DEVFN(0, 0) && in qube_raq_galileo_early_fixup()
78 if (dev->devfn != PCI_DEVFN(0, 0)) in qube_raq_galileo_fixup()
Dpci-sb1250.c238 (0, PCI_DEVFN(PCI_BRIDGE_DEVICE, 0), in sb1250_pcibios_init()
267 cmdreg = READCFG32(CFGOFFSET(0, PCI_DEVFN(LDT_BRIDGE_DEVICE, 0), in sb1250_pcibios_init()
Dops-loongson2.c190 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _rdmsr()
206 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _wrmsr()
/Linux-v4.19/arch/x86/pci/
Dintel_mid_pci.c160 if (bus == 0 && (devfn == PCI_DEVFN(2, 0) in type1_access_ok()
161 || devfn == PCI_DEVFN(0, 0) in type1_access_ok()
162 || devfn == PCI_DEVFN(3, 0))) in type1_access_ok()
381 if (!offset || PCI_DEVFN(2, 0) == dev->devfn || in pci_fixed_bar_fixup()
382 PCI_DEVFN(2, 2) == dev->devfn) in pci_fixed_bar_fixup()
Dmmconfig-shared.c132 raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0xce, 2, &win); in pci_mmcfg_e7520()
148 raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0x48, 4, &pciexbar); in pci_mmcfg_intel_945()
272 raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), 0, 4, &l); in pci_mmcfg_nvidia_mcp55()
279 raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), extcfg_regnum, in pci_mmcfg_nvidia_mcp55()
311 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
313 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
315 { 0, PCI_DEVFN(0x18, 0), PCI_VENDOR_ID_AMD,
317 { 0xff, PCI_DEVFN(0, 0), PCI_VENDOR_ID_AMD,
319 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_NVIDIA,
Dnumachip.c118 ret = raw_pci_read(0, 0, PCI_DEVFN(0x18, 0), 0x60, sizeof(val), &val); in pci_numachip_init()
123 limit = PCI_DEVFN(0x18 + ((val >> 4) & 7) + 1, 0); in pci_numachip_init()
Dce4100.c65 { PCI_DEVFN(device, func), offset, init_op, read_op, write_op,\
90 pci_direct_conf1.read(0, 1, PCI_DEVFN(14, 0), 0x10, 4, in sata_reg_init()
287 if (bus == 0 && (PCI_DEVFN(1, 0) == devfn) && in ce4100_conf_read()
322 if (bus == 0 && PCI_DEVFN(1, 0) == devfn && in ce4100_conf_write()
/Linux-v4.19/drivers/hwmon/
Dfam15h_power.c95 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show()
112 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show()
349 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 3), in should_load_on_this_node()
380 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), in tweak_runavg_range()
388 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5), in tweak_runavg_range()
413 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in fam15h_power_init_data()
Dk10temp.c129 amd_nb_index_read(pdev, PCI_DEVFN(0, 0), 0xb8, in read_htcreg_nb_f15()
135 amd_nb_index_read(pdev, PCI_DEVFN(0, 0), 0xb8, in read_tempreg_nb_f15()
288 PCI_DEVFN(PCI_SLOT(pdev->devfn), 2), in has_erratum_319()
/Linux-v4.19/arch/alpha/kernel/
Dsys_sio.c91 pci_bus_read_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, in sio_pci_route()
101 pci_bus_write_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, in sio_pci_route()
322 pci_bus_write_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, in sio_kill_arch()
/Linux-v4.19/arch/ia64/sn/pci/
Dtioce_provider.c764 raw_pci_read(seg, bus, PCI_DEVFN(2, 0), PCI_SECONDARY_BUS, 1,&tmp); in tioce_kern_init()
805 raw_pci_read(seg, bus, PCI_DEVFN(dev, 0), in tioce_kern_init()
809 raw_pci_read(seg, bus, PCI_DEVFN(dev, 0), in tioce_kern_init()
823 raw_pci_read(seg, bus, PCI_DEVFN(dev, 0), in tioce_kern_init()
827 raw_pci_read(seg, bus, PCI_DEVFN(dev, 0), in tioce_kern_init()
831 raw_pci_read(seg, bus, PCI_DEVFN(dev, 0), in tioce_kern_init()
837 raw_pci_read(seg, bus, PCI_DEVFN(dev, 0), in tioce_kern_init()
/Linux-v4.19/include/uapi/linux/
Dpci.h31 #define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) macro
/Linux-v4.19/drivers/acpi/
Dreboot.c41 devfn = PCI_DEVFN((rr->address >> 32) & 0xffff, in acpi_reboot()
/Linux-v4.19/arch/arm/mach-iop32x/
Dn2100.c130 (dev->devfn == PCI_DEVFN(1, 0) || in n2100_fixup_r8169()
131 dev->devfn == PCI_DEVFN(2, 0))) in n2100_fixup_r8169()
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramnv1a.c40 bridge = pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 1)); in nv1a_ram_new()
/Linux-v4.19/drivers/pci/
Dvpd.c323 PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); in pci_vpd_f0_read()
338 PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); in pci_vpd_f0_write()
352 PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); in pci_vpd_f0_set_size()
533 f0 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); in quirk_f0_vpd_link()
Dsearch.c86 PCI_DEVFN(0, 0)), data); in pci_for_each_dma_alias()
102 PCI_DEVFN(0, 0)), data); in pci_for_each_dma_alias()
/Linux-v4.19/drivers/vfio/pci/
Dvfio_pci_igd.c224 host_bridge = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0, 0)); in vfio_pci_igd_cfg_init()
244 lpc_bridge = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0x1f, 0)); in vfio_pci_igd_cfg_init()
/Linux-v4.19/drivers/platform/chrome/
Dchromeos_laptop.c422 .pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x2)),
433 .pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x1)),
443 .pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x1)),
452 .pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x2)),

12345