| /freebsd-14.2/sys/amd64/pci/ |
| H A D | pci_cfgreg.c | 186 if (bus <= PCI_BUSMAX && slot <= PCI_SLOTMAX && func <= PCI_FUNCMAX && in pci_cfgenable() 339 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgread() 370 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgwrite()
|
| /freebsd-14.2/sys/dev/pci/ |
| H A D | pci_host_generic_den0115.c | 212 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in pci_host_acpi_smccc_read_config() 236 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in pci_host_acpi_smccc_write_config()
|
| H A D | pcib_support.c | 52 return (PCI_FUNCMAX); in pcib_maxfuncs()
|
| H A D | pcireg.h | 48 #define PCI_FUNCMAX 7 /* highest supported function number */ macro 64 (((func) & PCI_FUNCMAX) << PCI_RID_FUNC_SHIFT)) 72 #define PCI_RID2FUNC(rid) (((rid) >> PCI_RID_FUNC_SHIFT) & PCI_FUNCMAX) 79 #define PCIE_ARI_FUNC(func) (((func) >> PCI_RID_FUNC_SHIFT) & PCI_FUNCMAX)
|
| H A D | pci_host_generic.c | 257 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in generic_pcie_read_config() 292 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in generic_pcie_write_config()
|
| H A D | pci_dw.c | 156 func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pci_dw_check_dev()
|
| H A D | pci_pci.c | 2695 return (PCI_FUNCMAX); in pcib_ari_maxfuncs()
|
| H A D | pci.c | 5994 func > PCIE_ARI_FUNCMAX || (slot != 0 && func > PCI_FUNCMAX)) in pci_lookup()
|
| /freebsd-14.2/sys/i386/pci/ |
| H A D | pci_cfgreg.c | 256 && func <= PCI_FUNCMAX in pci_cfgenable() 657 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgread() 688 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgwrite()
|
| H A D | pci_pir.c | 275 maxfunc = PCI_FUNCMAX; in pci_pir_search_irq()
|
| /freebsd-14.2/sys/dev/pci/controller/ |
| H A D | pci_n1sdp.c | 274 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in n1sdp_pcie_read_config() 320 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in n1sdp_pcie_write_config()
|
| /freebsd-14.2/sys/arm/annapurna/alpine/ |
| H A D | alpine_pci.c | 135 maxfunc = PCI_FUNCMAX; in al_pcib_fixup()
|
| /freebsd-14.2/sys/amd64/vmm/io/ |
| H A D | iommu.c | 220 for (func = 0; func <= PCI_FUNCMAX; func++) { in iommu_init()
|
| /freebsd-14.2/sys/dev/cardbus/ |
| H A D | cardbus.c | 210 cardbusfunchigh = PCI_FUNCMAX; in cardbus_attach_card()
|
| /freebsd-14.2/sys/arm64/cavium/ |
| H A D | thunder_pcie_pem.c | 552 (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in thunder_pem_read_config() 596 (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in thunder_pem_write_config()
|
| /freebsd-14.2/sys/powerpc/ofw/ |
| H A D | ofw_pcibus.c | 254 pcifunchigh = PCI_FUNCMAX; in ofw_pcibus_enum_bus()
|
| /freebsd-14.2/usr.sbin/bhyve/amd64/ |
| H A D | pci_lpc.c | 492 max_func = PCI_FUNCMAX; in pci_lpc_get_sel()
|
| /freebsd-14.2/sys/x86/pci/ |
| H A D | pci_bus.c | 414 pcifunchigh = PCI_FUNCMAX; in legacy_pcib_identify()
|
| /freebsd-14.2/sys/arm/broadcom/bcm2835/ |
| H A D | bcm2838_pci.c | 295 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in bcm_pcib_is_valid_quad()
|
| /freebsd-14.2/sys/dev/xilinx/ |
| H A D | xlnx_pcib.c | 433 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in xlnx_pcib_req_valid()
|
| /freebsd-14.2/sys/dev/acpica/ |
| H A D | acpi_pci_link.c | 587 maxfunc = PCI_FUNCMAX; in acpi_pci_link_search_irq()
|
| /freebsd-14.2/usr.sbin/bhyve/ |
| H A D | pci_emul.c | 74 #define MAXFUNCS (PCI_FUNCMAX + 1) 2424 cfgfunc = (x >> 8) & PCI_FUNCMAX; in pci_emul_cfgaddr()
|
| /freebsd-14.2/sys/arm/mv/ |
| H A D | mv_pci.c | 818 maxfunc = PCI_FUNCMAX; in mv_pcib_init()
|
| /freebsd-14.2/sys/arm64/rockchip/ |
| H A D | rk_pcie.c | 311 func > PCI_FUNCMAX || reg > PCIE_REGMAX) in rk_pcie_check_dev()
|
| /freebsd-14.2/sys/dev/bge/ |
| H A D | if_bge.c | 3143 for (fscan = 0; fscan <= PCI_FUNCMAX; fscan++) in bge_has_multiple_ports()
|