Home
last modified time | relevance | path

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

12

/freebsd/sys/amd64/pci/
H A Dpci_cfgreg.c184 if (bus <= PCI_BUSMAX && slot <= PCI_SLOTMAX && func <= PCI_FUNCMAX && in pci_cfgenable()
337 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgread()
368 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgwrite()
/freebsd/sys/dev/pci/
H A Dpci_host_generic_den0115.c213 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in pci_host_acpi_smccc_read_config()
238 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.c302 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in generic_pcie_read_config()
337 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in generic_pcie_write_config()
H A Dpci_dw.c155 func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pci_dw_check_dev()
H A Dpci_pci.c2810 return (PCI_FUNCMAX); in pcib_ari_maxfuncs()
H A Dpci.c5991 func > PCIE_ARI_FUNCMAX || (slot != 0 && func > PCI_FUNCMAX)) in pci_lookup()
/freebsd/sys/i386/pci/
H A Dpci_cfgreg.c255 && func <= PCI_FUNCMAX in pci_cfgenable()
656 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgread()
687 if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX) in pciereg_cfgwrite()
H A Dpci_pir.c274 maxfunc = PCI_FUNCMAX; in pci_pir_search_irq()
/freebsd/sys/dev/pci/controller/
H A Dpci_n1sdp.c273 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in n1sdp_pcie_read_config()
319 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in n1sdp_pcie_write_config()
/freebsd/sys/arm/annapurna/alpine/
H A Dalpine_pci.c134 maxfunc = PCI_FUNCMAX; in al_pcib_fixup()
/freebsd/sys/amd64/vmm/io/
H A Diommu.c219 for (func = 0; func <= PCI_FUNCMAX; func++) { in iommu_init()
/freebsd/sys/dev/cardbus/
H A Dcardbus.c209 cardbusfunchigh = PCI_FUNCMAX; in cardbus_attach_card()
/freebsd/sys/powerpc/ofw/
H A Dofw_pcibus.c253 pcifunchigh = PCI_FUNCMAX; in ofw_pcibus_enum_bus()
/freebsd/sys/arm64/cavium/
H A Dthunder_pcie_pem.c590 (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in thunder_pem_read_config()
634 (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in thunder_pem_write_config()
/freebsd/usr.sbin/bhyve/amd64/
H A Dpci_lpc.c491 max_func = PCI_FUNCMAX; in pci_lpc_get_sel()
/freebsd/sys/x86/pci/
H A Dpci_bus.c414 pcifunchigh = PCI_FUNCMAX; in legacy_pcib_identify()
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2838_pci.c297 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in bcm_pcib_is_valid_quad()
/freebsd/sys/dev/xilinx/
H A Dxlnx_pcib.c432 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in xlnx_pcib_req_valid()
/freebsd/sys/dev/acpica/
H A Dacpi_pci_link.c587 maxfunc = PCI_FUNCMAX; in acpi_pci_link_search_irq()
/freebsd/usr.sbin/bhyve/
H A Dpci_emul.c71 #define MAXFUNCS (PCI_FUNCMAX + 1)
2427 cfgfunc = (x >> 8) & PCI_FUNCMAX; in pci_emul_cfgaddr()
/freebsd/sys/arm/mv/
H A Dmv_pci.c829 maxfunc = PCI_FUNCMAX; in mv_pcib_init()
/freebsd/sys/arm64/rockchip/
H A Drk_pcie.c310 func > PCI_FUNCMAX || reg > PCIE_REGMAX) in rk_pcie_check_dev()
/freebsd/sys/dev/bge/
H A Dif_bge.c3145 for (fscan = 0; fscan <= PCI_FUNCMAX; fscan++) in bge_has_multiple_ports()

12