Home
last modified time | relevance | path

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

123456

/linux/drivers/pci/hotplug/
H A Dcpqphp_pci.c82 PCI_DEVFN(func->device, in cpqhp_configure_device()
89 num = pci_scan_slot(ctrl->pci_dev->bus, PCI_DEVFN(func->device, func->function)); in cpqhp_configure_device()
94 PCI_DEVFN(func->device, in cpqhp_configure_device()
127 PCI_DEVFN(func->device, in cpqhp_unconfigure_device()
327 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_config()
348 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), 0x0B, &class_code); in cpqhp_save_config()
352 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_HEADER_TYPE, &header_type); in cpqhp_save_config()
370 …rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &seco… in cpqhp_save_config()
411 …rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(n… in cpqhp_save_config()
426 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_VENDOR_ID, &ID); in cpqhp_save_config()
[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()
75 dev = pci_get_slot(parent, PCI_DEVFN(0, 0)); in pciehp_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 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 Dacpiphp_glue.c332 if (pci_bus_read_dev_vendor_id(pbus, PCI_DEVFN(device, function), in acpiphp_add_context()
441 return pci_scan_slot(slot->bus, PCI_DEVFN(slot->device, 0)); in acpiphp_rescan_slot()
537 dev = pci_get_slot(bus, PCI_DEVFN(slot->device, in enable_slot()
615 PCI_DEVFN(slot->device, func->function), in get_slot_status()
630 PCI_DEVFN(slot->device, 0), &dvid, 0)) { in get_slot_status()
/linux/drivers/edac/
H A Dskx_base.c78 { 0x2040, { PCI_DEVFN(10, 0), PCI_DEVFN(12, 0) }, 2, 2, CHAN0 },
79 { 0x2044, { PCI_DEVFN(10, 4), PCI_DEVFN(12, 4) }, 2, 2, CHAN1 },
80 { 0x2048, { PCI_DEVFN(11, 0), PCI_DEVFN(13, 0) }, 2, 2, CHAN2 },
81 { 0x2043, { PCI_DEVFN(10, 3), PCI_DEVFN(12, 3) }, 2, 2, ERRCHAN0 },
82 { 0x2047, { PCI_DEVFN(10, 7), PCI_DEVFN(12, 7) }, 2, 2, ERRCHAN1 },
83 { 0x204b, { PCI_DEVFN(11, 3), PCI_DEVFN(13, 3) }, 2, 2, ERRCHAN2 },
/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()
/linux/arch/x86/pci/
H A Dintel_mid.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 Dce4100.c43 { PCI_DEVFN(device, func), offset, init_op, read_op, write_op,\
68 pci_direct_conf1.read(0, 1, PCI_DEVFN(14, 0), 0x10, 4, in sata_reg_init()
265 if (bus == 0 && (PCI_DEVFN(1, 0) == devfn) && in ce4100_conf_read()
300 if (bus == 0 && PCI_DEVFN(1, 0) == devfn && in ce4100_conf_write()
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()
/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)
/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()
/linux/drivers/gpu/drm/xe/
H A Dxe_configfs.c345 pdev = pci_get_domain_bus_and_slot(domain, bus, PCI_DEVFN(slot, function)); in is_bound()
964 PCI_SLOT(PCI_DEVFN(slot, function)), in xe_config_make_device_group()
965 PCI_FUNC(PCI_DEVFN(slot, function))); in xe_config_make_device_group()
969 pdev = pci_get_domain_bus_and_slot(domain, bus, PCI_DEVFN(slot, function)); in xe_config_make_device_group()
974 pdev = pci_get_domain_bus_and_slot(domain, bus, PCI_DEVFN(slot, 0)); in xe_config_make_device_group()
976 pdev = pci_get_domain_bus_and_slot(domain, bus, PCI_DEVFN(0, 0)); in xe_config_make_device_group()
980 if (PCI_DEVFN(slot, function) != pdev->devfn) { in xe_config_make_device_group()
982 vfnumber = PCI_DEVFN(slot, function) - pdev->devfn; in xe_config_make_device_group()
/linux/arch/powerpc/kernel/
H A Dpci-hotplug.c107 pci_scan_slot(bus, PCI_DEVFN(slotno, 0)); in traverse_siblings_and_scan_slot()
120 pci_scan_slot(bus, PCI_DEVFN(slotno, 0)); in traverse_siblings_and_scan_slot()
/linux/drivers/hwmon/
H A Dk10temp.c151 amd_nb_index_read(pdev, PCI_DEVFN(0, 0), 0xb8, in read_htcreg_nb_f15()
157 amd_nb_index_read(pdev, PCI_DEVFN(0, 0), 0xb8, in read_tempreg_nb_f15()
353 PCI_DEVFN(PCI_SLOT(pdev->devfn), 2), in has_erratum_319()
/linux/include/uapi/linux/
H A Dpci.h31 #define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) macro
/linux/drivers/platform/chrome/
H A Dchromeos_laptop.c437 .pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x2)),
449 .pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x1)),
459 .pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x1)),
468 .pci_devid = PCI_DEVID(0, PCI_DEVFN(0x15, 0x2)),
/linux/drivers/char/agp/
H A Dnvidia-agp.c347 PCI_DEVFN(0, 1)); in agp_nvidia_probe()
351 PCI_DEVFN(0, 2)); in agp_nvidia_probe()
355 PCI_DEVFN(30, 0)); in agp_nvidia_probe()
/linux/drivers/platform/x86/x86-android-tablets/
H A Dother.c695 .ctrl.pci.devfn = PCI_DEVFN(0x1e, 3),
713 pdev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(0x11, 0)); in vexia_edu_atla10_9v_init()
715 pr_warn("Could not get PCI SDIO at devfn 0x%02x\n", PCI_DEVFN(0x11, 0)); in vexia_edu_atla10_9v_init()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dramnv1a.c40 bridge = pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 1)); in nv1a_ram_new()
/linux/drivers/xen/xen-pciback/
H A Dvpci.c142 err = publish_cb(pdev, 0, 0, PCI_DEVFN(slot, func), devid); in __xen_pcibk_add_pci_dev()
250 *devfn = PCI_DEVFN(slot, in __xen_pcibk_get_pcifront_dev()

123456