Home
last modified time | relevance | path

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

/openbsd/src/sys/dev/pci/drm/include/linux/
Dpci.h56 unsigned int devfn; member
112 #define PCI_SLOT(devfn) ((devfn) >> 3) argument
113 #define PCI_FUNC(devfn) ((devfn) & 0x7) argument
114 #define PCI_BUS_NUM(devfn) (((devfn) >> 8) & 0xff) argument
199 pci_bus_read_config_word(struct pci_bus *bus, unsigned int devfn, in pci_bus_read_config_word() argument
203 PCI_SLOT(devfn), PCI_FUNC(devfn)); in pci_bus_read_config_word()
212 pci_bus_read_config_byte(struct pci_bus *bus, unsigned int devfn, in pci_bus_read_config_byte() argument
216 PCI_SLOT(devfn), PCI_FUNC(devfn)); in pci_bus_read_config_byte()
225 pci_bus_write_config_byte(struct pci_bus *bus, unsigned int devfn, in pci_bus_write_config_byte() argument
229 PCI_SLOT(devfn), PCI_FUNC(devfn)); in pci_bus_write_config_byte()
[all …]
/openbsd/src/sys/dev/pci/drm/
Ddrm_pci.c68 PCI_SLOT(pdev->devfn), in drm_pci_set_busid()
69 PCI_FUNC(pdev->devfn)); in drm_pci_set_busid()
Ddrm_file.c988 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)); in drm_show_fdinfo()
Ddrm_drv.c1389 dev->pdev->devfn = PCI_DEVFN(pa->pa_device, pa->pa_function); in drm_attach()
2055 info->dev = PCI_SLOT(dev->pdev->devfn); in drm_getpciinfo()
2056 info->func = PCI_FUNC(dev->pdev->devfn); in drm_getpciinfo()
/openbsd/src/sys/dev/pci/drm/i915/
Dvlv_sideband.c79 u32 devfn, u32 port, u32 opcode, in vlv_sideband_rw() argument
104 (devfn << IOSF_DEVFN_SHIFT) | in vlv_sideband_rw()
Di915_pmu.c1242 PCI_SLOT(pdev->devfn) == 2 && in is_igp()
1243 PCI_FUNC(pdev->devfn) == 0; in is_igp()
Di915_pci.c998 if (PCI_FUNC(pdev->devfn)) in i915_pci_probe()
/openbsd/src/sys/dev/pci/drm/amd/amdgpu/
Damdgpu_bios.c515 vhdr->PCIDevice == PCI_SLOT(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios()
516 vhdr->PCIFunction == PCI_FUNC(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios()
/openbsd/src/sys/dev/pci/drm/i915/gt/
Dintel_gsc.c249 PCI_DEVID(pdev->bus->number, pdev->devfn); in gsc_init_one()
/openbsd/src/sys/dev/pci/drm/radeon/
Dradeon_bios.c787 vhdr->PCIDevice == PCI_SLOT(rdev->pdev->devfn) && in radeon_acpi_vfct_bios()
788 vhdr->PCIFunction == PCI_FUNC(rdev->pdev->devfn) && in radeon_acpi_vfct_bios()
/openbsd/src/gnu/llvm/compiler-rt/include/sanitizer/
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);
/openbsd/src/sys/dev/acpi/
Dacpidmar.c1582 int bus, devfn; in domain_map_device() local
1588 devfn = sid_devfn(sid); in domain_map_device()
1621 ctx = iommu->ctx[bus] + devfn; in domain_map_device()
/openbsd/src/sys/dev/pci/drm/amd/amdkfd/
Dkfd_chardev.c1309 PCI_SLOT(pdev->devfn), in kfd_ioctl_map_memory_to_gpu()
1310 PCI_FUNC(pdev->devfn), in kfd_ioctl_map_memory_to_gpu()
Dkfd_topology.c1110 buf[0] = gpu->adev->pdev->devfn; in kfd_generate_gpu_id()
/openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2433 PRE_SYSCALL(pciconfig_iobase)(long which, long bus, long devfn) {}
2435 POST_SYSCALL(pciconfig_iobase)(long res, long which, long bus, long devfn) {}