/freebsd/sys/contrib/xen/ |
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 320 uint8_t devfn; member
|
H A D | platform.h | 298 uint8_t devfn; member
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | pci.h | 97 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument 98 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument 99 #define PCI_BUS_NUM(devfn) (((devfn) >> 8) & 0xff) argument 100 #define PCI_DEVID(bus, devfn) ((((uint16_t)(bus)) << 8) | (devfn)) argument 337 unsigned int devfn; member 395 return (PCI_DEVID(pdev->bus->number, pdev->devfn)); in pci_dev_id() 1299 unsigned int bus, unsigned int devfn); 1300 #define pci_get_domain_bus_and_slot(domain, bus, devfn) \ argument 1301 lkpi_pci_get_domain_bus_and_slot(domain, bus, devfn) 1311 pci_bus_read_config(struct pci_bus *bus, unsigned int devfn, in pci_bus_read_config() argument [all …]
|
/freebsd/sys/dev/hyperv/pcib/ |
H A D | vmbus_pcib.c | 485 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument 486 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument 489 devfn_to_wslot(unsigned int devfn) in devfn_to_wslot() argument 494 wslot.bits.slot = PCI_SLOT(devfn); in devfn_to_wslot() 495 wslot.bits.func = PCI_FUNC(devfn); in devfn_to_wslot() 638 int devfn; in hv_pci_delete_device() local 640 devfn = wslot_to_devfn(hpdev->desc.wslot.val); in hv_pci_delete_device() 645 0, PCI_SLOT(devfn), PCI_FUNC(devfn)); in hv_pci_delete_device() 1673 unsigned int devfn; in vmbus_pcib_alloc_resource() local 1684 devfn = PCI_DEVFN(pci_get_slot(child), in vmbus_pcib_alloc_resource() [all …]
|
/freebsd/sys/contrib/xen/io/ |
H A D | pciif.h | 80 uint32_t devfn; member 106 uint32_t devfn; member
|
/freebsd/sys/arm/mv/ |
H A D | mv_pci.c | 452 int err, bus, devfn, port_id; in mv_pcib_attach() local 539 for (devfn = 0; devfn < mv_pcib_maxslots(self); devfn++) { in mv_pcib_attach() 540 reg0 = mv_pcib_read_config(self, bus, devfn, devfn & 0x7, 0x0, 4); in mv_pcib_attach()
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | bnxt_mgmt.h | 117 uint32_t devfn; member
|
H A D | bnxt_mgmt.c | 114 mgmt_dcb.hdr.devfn, NULL); in bnxt_mgmt_process_dcb() 182 mgmt_req.hdr.devfn, NULL); in bnxt_mgmt_process_hwrm()
|
H A D | bnxt_ulp.c | 491 bp->pdev->subsystem_device, bp->pdev->irq, bp->pdev->devfn, in bnxt_rdma_aux_device_add()
|
/freebsd/sys/dev/pms/freebsd/driver/common/ |
H A D | lxcommon.h | 582 pdev->vendor, pdev->device, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)) \
|
/freebsd/sys/dev/xen/pcifront/ |
H A D | pcifront.c | 598 .devfn = PCI_DEVFN(slot, func), in xpcib_read_config() 625 .devfn = PCI_DEVFN(slot, func), in xpcib_write_config()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_pci.c | 316 pdev->devfn = PCI_DEVFN(pci_get_slot(dev), pci_get_function(dev)); in lkpifill_pci_dev() 423 unsigned int devfn) in lkpi_pci_get_domain_bus_and_slot() argument 428 dev = pci_find_dbsf(domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in lkpi_pci_get_domain_bus_and_slot() 533 pdev->devfn = rid; in linux_pci_attach_device()
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | stats.c | 307 fid = PCI_FUNC(rdev->en_dev->pdev->devfn); in bnxt_re_get_ext_stat() 753 if (PCI_FUNC(pdev->devfn) == 0) in bnxt_re_get_hw_stats()
|
H A D | main.c | 2207 rdev->id = rdev->en_dev->pdev->devfn; in bnxt_re_dev_alloc() 3958 int tmp_dev_num, dev_num = PCI_SLOT(pdev_in->devfn); in bnxt_re_get_peer_pf() 3959 int tmp_func_num, func_num = PCI_FUNC(pdev_in->devfn); in bnxt_re_get_peer_pf() 3965 tmp_dev_num = PCI_SLOT(tmp_rdev->en_dev->pdev->devfn); in bnxt_re_get_peer_pf() 3966 tmp_func_num = PCI_FUNC(tmp_rdev->en_dev->pdev->devfn); in bnxt_re_get_peer_pf() 4009 int tmp_dev_num, dev_num = PCI_SLOT(pdev_in->devfn); in bnxt_re_get_slot_pf_count() 4016 tmp_dev_num = PCI_SLOT(tmp_rdev->en_dev->pdev->devfn); in bnxt_re_get_slot_pf_count()
|
H A D | bnxt_re.h | 693 #define BNXT_RE_IS_PORT0(rdev) (!(rdev->en_dev->pdev->devfn & 1))
|
H A D | ib_verbs.c | 5292 resp.dev_id = rdev->en_dev->pdev->devfn; in bnxt_re_alloc_ucontext()
|
/freebsd/contrib/llvm-project/compiler-rt/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)) 2823 long devfn); 2825 long bus, long devfn);
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_main.c | 3056 return PCI_SLOT(pdev->devfn) * 8 + PCI_FUNC(pdev->devfn); in extended_func_num()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 2446 PRE_SYSCALL(pciconfig_iobase)(long which, long bus, long devfn) {} 2448 POST_SYSCALL(pciconfig_iobase)(long res, long which, long bus, long devfn) {}
|