Home
last modified time | relevance | path

Searched refs:devfn (Results 1 – 18 of 18) 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.h94 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument
95 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument
96 #define PCI_BUS_NUM(devfn) (((devfn) >> 8) & 0xff) argument
97 #define PCI_DEVID(bus, devfn) ((((uint16_t)(bus)) << 8) | (devfn)) argument
340 unsigned int devfn; member
393 return (PCI_DEVID(pdev->bus->number, pdev->devfn)); in pci_dev_id()
1272 unsigned int bus, unsigned int devfn);
1274 lkpi_pci_get_domain_bus_and_slot(domain, bus, devfn)
1298 ret = pci_bus_read_config(bus, devfn, pos, &tmp, 2); in pci_bus_read_config_word()
1309 ret = pci_bus_read_config(bus, devfn, pos, &tmp, 1); in pci_bus_read_config_byte()
[all …]
/freebsd/sys/contrib/xen/io/
H A Dpciif.h80 uint32_t devfn; member
106 uint32_t devfn; member
/freebsd/sys/dev/hyperv/pcib/
H A Dvmbus_pcib.c486 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument
487 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument
490 devfn_to_wslot(unsigned int devfn) in devfn_to_wslot() argument
495 wslot.bits.slot = PCI_SLOT(devfn); in devfn_to_wslot()
496 wslot.bits.func = PCI_FUNC(devfn); in devfn_to_wslot()
639 int devfn; in hv_pci_delete_device() local
646 0, PCI_SLOT(devfn), PCI_FUNC(devfn)); in hv_pci_delete_device()
1674 unsigned int devfn; in vmbus_pcib_alloc_resource() local
1685 devfn = PCI_DEVFN(pci_get_slot(child), in vmbus_pcib_alloc_resource()
1777 unsigned int devfn = PCI_DEVFN(slot, func); in vmbus_pcib_read_config() local
[all …]
/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()
181 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/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/pms/freebsd/driver/common/
H A Dlxcommon.h582 pdev->vendor, pdev->device, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn)) \
/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()
405 unsigned int devfn) in lkpi_pci_get_domain_bus_and_slot() argument
410 dev = pci_find_dbsf(domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); in lkpi_pci_get_domain_bus_and_slot()
515 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.h691 #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))
2816 long devfn);
2818 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.inc2432 PRE_SYSCALL(pciconfig_iobase)(long which, long bus, long devfn) {}
2434 POST_SYSCALL(pciconfig_iobase)(long res, long which, long bus, long devfn) {}