Home
last modified time | relevance | path

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

/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()
237 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.c314 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in generic_pcie_read_config()
349 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.c2418 return (PCI_FUNCMAX); in pcib_ari_maxfuncs()
H A Dpci.c6795 func > PCIE_ARI_FUNCMAX || (slot != 0 && func > PCI_FUNCMAX)) in pci_cfg_save_pcie()
/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.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/sys/arm/annapurna/alpine/
H A Dalpine_pci.c134 maxfunc = PCI_FUNCMAX; in al_pcib_fixup()
/freebsd/usr.sbin/acpi/einj/
H A Deinj.c172 if (val[2] != 0 && val[3] > PCI_FUNCMAX) in parse_dbsf()
/freebsd/sys/amd64/vmm/io/
H A Diommu.c224 for (func = 0; func <= PCI_FUNCMAX; func++) { in iommu_init()
/freebsd/sys/dev/cardbus/
H A Dcardbus.c199 cardbusfunchigh = PCI_FUNCMAX; in cardbus_attach_card()
/freebsd/sys/arm64/cavium/
H A Dthunder_pcie_pem.c578 (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in thunder_pem_read_config()
622 (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in thunder_pem_write_config()
/freebsd/sys/powerpc/ofw/
H A Dofw_pcibus.c261 pcifunchigh = PCI_FUNCMAX; in ofw_pcibus_enum_bus()
/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.c438 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in xlnx_pcib_req_valid()
/freebsd/usr.sbin/bhyve/
H A Dpci_emul.c73 #define MAXFUNCS (PCI_FUNCMAX + 1)
2462 cfgfunc = (x >> 8) & PCI_FUNCMAX; in pci_emul_cfgaddr()
/freebsd/sys/arm/mv/
H A Dmv_pci.c830 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.c3143 for (fscan = 0; fscan <= PCI_FUNCMAX; fscan++) in bge_has_multiple_ports()
/freebsd/sys/dev/cxgbe/
H A Dt4_main.c1850 for (i = 0; i < PCI_FUNCMAX; i++) { in notify_siblings()