Home
last modified time | relevance | path

Searched refs:devfn (Results 1 – 25 of 29) sorted by relevance

12

/netbsd-src/sys/arch/macppc/pci/
H A Du3.c182 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 Dphysdev.h170 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 Dplatform.h296 uint8_t devfn; member
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/
H A Damdgpu_smu_helper.c603 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 Dlinux_pci.c133 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 Dpintr.c191 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 Ddrm_pci.c152 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 Dpciif.h80 uint32_t devfn; member
106 uint32_t devfn; member
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/
H A Dkfd_iommu.c200 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 Damdgpu_smu_v11_0.c1539 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 Dnouveau_nvkm_engine_device_pci.c1723 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 Damdgpu_bios.c442 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 Damdgpu_acpi.c722 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 Dintel_sideband.c98 u32 devfn, u32 port, u32 opcode, in vlv_sideband_rw() argument
123 (devfn << IOSF_DEVFN_SHIFT) | in vlv_sideband_rw()
H A Di915_pmu.c1119 PCI_SLOT(pdev->devfn) == 2 && in is_igp()
1120 PCI_FUNC(pdev->devfn) == 0; in is_igp()
H A Di915_pci.c996 if (PCI_FUNC(pdev->devfn)) in i915_pci_probe()
/netbsd-src/sys/arch/xen/xen/
H A Dxpci_xenbus.c442 op.devfn = (dev << 3) | func; in xpci_conf_read()
476 op.devfn = (dev << 3) | func; in xpci_conf_write()
H A Dpciback.c736 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 Dradeon_bios.c717 vhdr->PCIDevice == PCI_SLOT(rdev->pdev->devfn) &&
718 vhdr->PCIFunction == PCI_FUNC(rdev->pdev->devfn) &&
H A Dradeon_acpi.c663 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 Dpci.h191 uint32_t devfn; member
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/
H A Dnouveau_drm.c124 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 Dlinux_syscall_hooks.h1397 #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 Dlinux_syscall_hooks.h1399 #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 Dlinux_syscall_hooks.h1407 #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);

12