Home
last modified time | relevance | path

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

/freebsd/sys/contrib/xen/
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
320 uint8_t devfn; member
H A Dplatform.h298 uint8_t devfn; member
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dpci.h97 #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 Dvmbus_pcib.c485 #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 Dpciif.h80 uint32_t devfn; member
106 uint32_t devfn; member
/freebsd/sys/arm/mv/
H A Dmv_pci.c452 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 Dbnxt_mgmt.h117 uint32_t devfn; member
H A Dbnxt_mgmt.c114 mgmt_dcb.hdr.devfn, NULL); in bnxt_mgmt_process_dcb()
182 mgmt_req.hdr.devfn, NULL); in bnxt_mgmt_process_hwrm()
H A Dbnxt_ulp.c491 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 Dlxcommon.h582 pdev->vendor, pdev->device, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)) \
/freebsd/sys/dev/xen/pcifront/
H A Dpcifront.c598 .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 Dlinux_pci.c316 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 Dstats.c307 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 Dmain.c2207 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 Dbnxt_re.h693 #define BNXT_RE_IS_PORT0(rdev) (!(rdev->en_dev->pdev->devfn & 1))
H A Dib_verbs.c5292 resp.dev_id = rdev->en_dev->pdev->devfn; in bnxt_re_alloc_ucontext()
/freebsd/contrib/llvm-project/compiler-rt/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))
2823 long devfn);
2825 long bus, long devfn);
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_main.c3056 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 Dsanitizer_common_syscalls.inc2446 PRE_SYSCALL(pciconfig_iobase)(long which, long bus, long devfn) {}
2448 POST_SYSCALL(pciconfig_iobase)(long res, long which, long bus, long devfn) {}