| /netbsd-src/sys/arch/macppc/pci/ |
| H A D | u3.c | 182 u_int32_t bus, dev, func, x, devfn; in ibmcpc_conf_read() local 194 devfn = PCI_DEVFN(dev, func); in ibmcpc_conf_read() 198 if (devfn == 0x0) { in ibmcpc_conf_read() 204 x = daddr + ((devfn << 8) | reg); in ibmcpc_conf_read() 206 x = daddr + ((devfn << 8) | reg) + (bus << 16) + 0x01000000UL; in ibmcpc_conf_read() 221 u_int32_t x, devfn; in ibmcpc_conf_write() local 231 devfn = PCI_DEVFN(dev, func); in ibmcpc_conf_write() 235 if (devfn == 0x0) { in ibmcpc_conf_write() 238 x = (u_int32_t) daddr + ((devfn << 8) | reg); in ibmcpc_conf_write() 240 x = (u_int32_t) daddr + ((devfn << 8) | reg) + (bus << 16) + in ibmcpc_conf_write()
|
| /netbsd-src/sys/external/mit/xen-include-public/dist/xen/include/public/ |
| H A D | physdev.h | 170 int devfn; member 194 uint8_t devfn; member 204 uint8_t devfn; member 213 uint8_t devfn; member 218 uint8_t devfn; member 292 uint8_t devfn; member 296 uint8_t devfn; member 324 uint8_t devfn; member
|
| H A D | platform.h | 296 uint8_t devfn; member
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/ |
| H A D | amdgpu_smu_helper.c | 603 PCI_BUS_NUM(adev->pdev->devfn), in phm_irq_process() 604 PCI_SLOT(adev->pdev->devfn), in phm_irq_process() 605 PCI_FUNC(adev->pdev->devfn)); in phm_irq_process() 608 PCI_BUS_NUM(adev->pdev->devfn), in phm_irq_process() 609 PCI_SLOT(adev->pdev->devfn), in phm_irq_process() 610 PCI_FUNC(adev->pdev->devfn)); in phm_irq_process() 613 PCI_BUS_NUM(adev->pdev->devfn), in phm_irq_process() 614 PCI_SLOT(adev->pdev->devfn), in phm_irq_process() 615 PCI_FUNC(adev->pdev->devfn)); in phm_irq_process() 619 PCI_BUS_NUM(adev->pdev->devfn), in phm_irq_process() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/linux/ |
| H A D | linux_pci.c | 133 parentdev->devfn = device << 3 | function; in alloc_fake_parent_device() 184 pdev->devfn = PCI_DEVFN(pa->pa_device, pa->pa_function); in linux_pci_dev_init() 258 pci_bus_read_config_dword(struct pci_bus *bus, unsigned devfn, int reg, in pci_bus_read_config_dword() argument 261 pcitag_t tag = pci_make_tag(bus->pb_pc, bus->number, PCI_SLOT(devfn), in pci_bus_read_config_dword() 262 PCI_FUNC(devfn)); in pci_bus_read_config_dword() 270 pci_bus_read_config_word(struct pci_bus *bus, unsigned devfn, int reg, in pci_bus_read_config_word() argument 273 pcitag_t tag = pci_make_tag(bus->pb_pc, bus->number, PCI_SLOT(devfn), in pci_bus_read_config_word() 274 PCI_FUNC(devfn)); in pci_bus_read_config_word() 282 pci_bus_read_config_byte(struct pci_bus *bus, unsigned devfn, int reg, in pci_bus_read_config_byte() argument 285 pcitag_t tag = pci_make_tag(bus->pb_pc, bus->number, PCI_SLOT(devfn), in pci_bus_read_config_byte() [all …]
|
| /netbsd-src/sys/arch/xen/x86/ |
| H A D | pintr.c | 191 map_irq.devfn = (msi_i->mp_dev << 3) | msi_i->mp_fun; in xen_map_msi_pirq() 193 map_irq.bus, map_irq.devfn, msi_i->mp_dev, msi_i->mp_fun, in xen_map_msi_pirq() 236 map_irq.devfn = (msi_i->mp_dev << 3) | msi_i->mp_fun; in xen_map_msix_pirq() 240 map_irq.bus, map_irq.devfn, msi_i->mp_dev, msi_i->mp_fun, in xen_map_msix_pirq()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/ |
| H A D | drm_pci.c | 152 PCI_SLOT(dev->pdev->devfn), in drm_pci_set_busid() 153 PCI_FUNC(dev->pdev->devfn)); in drm_pci_set_busid() 165 p->devnum != PCI_SLOT(dev->pdev->devfn) || p->funcnum != PCI_FUNC(dev->pdev->devfn)) in drm_pci_irq_by_busid()
|
| /netbsd-src/sys/external/mit/xen-include-public/dist/xen/include/public/io/ |
| H A D | pciif.h | 80 uint32_t devfn; member 106 uint32_t devfn; member
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/ |
| H A D | kfd_iommu.c | 200 PCI_BUS_NUM(pdev->devfn), in iommu_invalid_ppr_cb() 201 PCI_SLOT(pdev->devfn), in iommu_invalid_ppr_cb() 202 PCI_FUNC(pdev->devfn), in iommu_invalid_ppr_cb()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/ |
| H A D | amdgpu_smu_v11_0.c | 1539 PCI_BUS_NUM(adev->pdev->devfn), in smu_v11_0_irq_process() 1540 PCI_SLOT(adev->pdev->devfn), in smu_v11_0_irq_process() 1541 PCI_FUNC(adev->pdev->devfn)); in smu_v11_0_irq_process() 1545 PCI_BUS_NUM(adev->pdev->devfn), in smu_v11_0_irq_process() 1546 PCI_SLOT(adev->pdev->devfn), in smu_v11_0_irq_process() 1547 PCI_FUNC(adev->pdev->devfn)); in smu_v11_0_irq_process() 1552 PCI_BUS_NUM(adev->pdev->devfn), in smu_v11_0_irq_process() 1553 PCI_SLOT(adev->pdev->devfn), in smu_v11_0_irq_process() 1554 PCI_FUNC(adev->pdev->devfn)); in smu_v11_0_irq_process()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/ |
| H A D | nouveau_nvkm_engine_device_pci.c | 1723 PCI_SLOT(pci_dev->devfn) << 8 | in nvkm_device_pci_new() 1724 PCI_FUNC(pci_dev->devfn), in nvkm_device_pci_new()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
| H A D | amdgpu_bios.c | 442 vhdr->PCIDevice == PCI_SLOT(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios() 443 vhdr->PCIFunction == PCI_FUNC(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios()
|
| H A D | amdgpu_acpi.c | 722 atcs_input.client_id = adev->pdev->devfn | (adev->pdev->bus->number << 8); in amdgpu_acpi_pcie_performance_request()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/ |
| H A D | intel_sideband.c | 98 u32 devfn, u32 port, u32 opcode, in vlv_sideband_rw() argument 123 (devfn << IOSF_DEVFN_SHIFT) | in vlv_sideband_rw()
|
| H A D | i915_pmu.c | 1119 PCI_SLOT(pdev->devfn) == 2 && in is_igp() 1120 PCI_FUNC(pdev->devfn) == 0; in is_igp()
|
| H A D | i915_pci.c | 996 if (PCI_FUNC(pdev->devfn)) in i915_pci_probe()
|
| /netbsd-src/sys/arch/xen/xen/ |
| H A D | xpci_xenbus.c | 442 op.devfn = (dev << 3) | func; in xpci_conf_read() 476 op.devfn = (dev << 3) | func; in xpci_conf_write()
|
| H A D | pciback.c | 736 dev = (op->devfn >> 3) & 0xff; in pciback_xenbus_evthandler() 737 func = (op->devfn) & 0x7; in pciback_xenbus_evthandler()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/ |
| H A D | radeon_bios.c | 717 vhdr->PCIDevice == PCI_SLOT(rdev->pdev->devfn) && 718 vhdr->PCIFunction == PCI_FUNC(rdev->pdev->devfn) &&
|
| H A D | radeon_acpi.c | 663 atcs_input.client_id = rdev->pdev->devfn | (rdev->pdev->bus->number << 8); in radeon_acpi_pcie_performance_request()
|
| /netbsd-src/sys/external/bsd/drm2/include/linux/ |
| H A D | pci.h | 191 uint32_t devfn; member
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/ |
| H A D | nouveau_drm.c | 124 name |= PCI_SLOT(pdev->devfn) << 8; in nouveau_pci_name() 125 return name | PCI_FUNC(pdev->devfn); in nouveau_pci_name()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/ |
| H A D | linux_syscall_hooks.h | 1397 #define __sanitizer_syscall_pre_pciconfig_iobase(which, bus, devfn) \ argument 1399 (long)(devfn)) 1400 #define __sanitizer_syscall_post_pciconfig_iobase(res, which, bus, devfn) \ argument 1402 (long)(bus), (long)(devfn)) 2799 long devfn); 2801 long bus, long devfn);
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/include/sanitizer/ |
| H A D | linux_syscall_hooks.h | 1399 #define __sanitizer_syscall_pre_pciconfig_iobase(which, bus, devfn) \ argument 1401 (long)(devfn)) 1402 #define __sanitizer_syscall_post_pciconfig_iobase(res, which, bus, devfn) \ argument 1404 (long)(bus), (long)(devfn)) 2801 long devfn); 2803 long bus, long devfn);
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/ |
| H A D | linux_syscall_hooks.h | 1407 #define __sanitizer_syscall_pre_pciconfig_iobase(which, bus, devfn) \ argument 1409 (long)(devfn)) 1410 #define __sanitizer_syscall_post_pciconfig_iobase(res, which, bus, devfn) \ argument 1412 (long)(bus), (long)(devfn)) 2816 long devfn); 2818 long bus, long devfn);
|