Home
last modified time | relevance | path

Searched refs:PCI_FUNCMAX (Results 1 – 25 of 26) sorted by relevance

12

/freebsd-14.2/sys/amd64/pci/
H A Dpci_cfgreg.c186 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 Dpci_host_generic_den0115.c212 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 Dpcib_support.c52 return (PCI_FUNCMAX); in pcib_maxfuncs()
H A Dpcireg.h48 #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 Dpci_host_generic.c257 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 Dpci_dw.c156 func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pci_dw_check_dev()
H A Dpci_pci.c2695 return (PCI_FUNCMAX); in pcib_ari_maxfuncs()
H A Dpci.c5994 func > PCIE_ARI_FUNCMAX || (slot != 0 && func > PCI_FUNCMAX)) in pci_lookup()
/freebsd-14.2/sys/i386/pci/
H A Dpci_cfgreg.c256 && 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 Dpci_pir.c275 maxfunc = PCI_FUNCMAX; in pci_pir_search_irq()
/freebsd-14.2/sys/dev/pci/controller/
H A Dpci_n1sdp.c274 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 Dalpine_pci.c135 maxfunc = PCI_FUNCMAX; in al_pcib_fixup()
/freebsd-14.2/sys/amd64/vmm/io/
H A Diommu.c220 for (func = 0; func <= PCI_FUNCMAX; func++) { in iommu_init()
/freebsd-14.2/sys/dev/cardbus/
H A Dcardbus.c210 cardbusfunchigh = PCI_FUNCMAX; in cardbus_attach_card()
/freebsd-14.2/sys/arm64/cavium/
H A Dthunder_pcie_pem.c552 (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 Dofw_pcibus.c254 pcifunchigh = PCI_FUNCMAX; in ofw_pcibus_enum_bus()
/freebsd-14.2/usr.sbin/bhyve/amd64/
H A Dpci_lpc.c492 max_func = PCI_FUNCMAX; in pci_lpc_get_sel()
/freebsd-14.2/sys/x86/pci/
H A Dpci_bus.c414 pcifunchigh = PCI_FUNCMAX; in legacy_pcib_identify()
/freebsd-14.2/sys/arm/broadcom/bcm2835/
H A Dbcm2838_pci.c295 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in bcm_pcib_is_valid_quad()
/freebsd-14.2/sys/dev/xilinx/
H A Dxlnx_pcib.c433 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in xlnx_pcib_req_valid()
/freebsd-14.2/sys/dev/acpica/
H A Dacpi_pci_link.c587 maxfunc = PCI_FUNCMAX; in acpi_pci_link_search_irq()
/freebsd-14.2/usr.sbin/bhyve/
H A Dpci_emul.c74 #define MAXFUNCS (PCI_FUNCMAX + 1)
2424 cfgfunc = (x >> 8) & PCI_FUNCMAX; in pci_emul_cfgaddr()
/freebsd-14.2/sys/arm/mv/
H A Dmv_pci.c818 maxfunc = PCI_FUNCMAX; in mv_pcib_init()
/freebsd-14.2/sys/arm64/rockchip/
H A Drk_pcie.c311 func > PCI_FUNCMAX || reg > PCIE_REGMAX) in rk_pcie_check_dev()
/freebsd-14.2/sys/dev/bge/
H A Dif_bge.c3143 for (fscan = 0; fscan <= PCI_FUNCMAX; fscan++) in bge_has_multiple_ports()

12