Home
last modified time | relevance | path

Searched refs:PCI_SLOTMAX (Results 1 – 24 of 24) 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()
268 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in pcie_init_badslots()
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 Dpcireg.h47 #define PCI_SLOTMAX 31 /* highest supported slot number */ macro
63 (((slot) & PCI_SLOTMAX) << PCI_RID_SLOT_SHIFT) | \
71 #define PCI_RID2SLOT(rid) (((rid) >> PCI_RID_SLOT_SHIFT) & PCI_SLOTMAX)
78 #define PCIE_ARI_SLOT(func) (((func) >> PCI_RID_SLOT_SHIFT) & PCI_SLOTMAX)
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.c154 if (bus < sc->bus_start || bus > sc->bus_end || slot > PCI_SLOTMAX || in pci_dw_check_dev()
H A Dpci_pci.c2784 return (PCI_SLOTMAX); in pcib_maxslots()
H A Dpci.c5992 if (domain > PCI_DOMAINMAX || bus > PCI_BUSMAX || slot > PCI_SLOTMAX || in pci_lookup()
/freebsd/sys/i386/pci/
H A Dpci_cfgreg.c530 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in pcie_init_badslots()
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()
/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.c124 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in al_pcib_fixup()
/freebsd/sys/arm64/cavium/
H A Dthunder_pcie_pem.c214 return (PCI_SLOTMAX); in thunder_pem_maxslots()
589 if ((bus > PCI_BUSMAX) || (slot > PCI_SLOTMAX) || in thunder_pem_read_config()
633 if ((bus > PCI_BUSMAX) || (slot > PCI_SLOTMAX) || in thunder_pem_write_config()
/freebsd/sys/amd64/vmm/io/
H A Diommu.c218 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in iommu_init()
/freebsd/sys/x86/pci/
H A Dqpi.c119 for (s = 0; s <= PCI_SLOTMAX; s++) { in qpi_probe_pcib()
H A Dpci_bus.c400 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in legacy_pcib_identify()
/freebsd/sys/dev/agp/
H A Dagp_amd64.c167 for (i = 0, n = 0; i < PCI_SLOTMAX && n < AMD64_MAX_MCTRL; i++) { in agp_amd64_attach()
/freebsd/usr.sbin/bhyve/amd64/
H A Dpci_lpc.c484 for (uint8_t slot = 0; slot <= PCI_SLOTMAX; ++slot) { in pci_lpc_get_sel()
/freebsd/sys/arm/mv/
H A Dmv_pci.c810 mv_pcib_init(sc, secbus, PCI_SLOTMAX); in mv_pcib_init_bridge()
1194 return ((sc->sc_type != MV_TYPE_PCI) ? 1 : PCI_SLOTMAX); in mv_pcib_maxslots()
/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/ofw/
H A Dofw_pcib.c313 return (PCI_SLOTMAX); in ofw_pcib_maxslots()
/freebsd/sys/powerpc/mpc85xx/
H A Dpci_mpc85xx.c546 return ((sc->sc_pcie) ? 0 : PCI_SLOTMAX); in fsl_pcib_maxslots()
/freebsd/usr.sbin/bhyve/
H A Dpci_emul.c70 #define MAXSLOTS (PCI_SLOTMAX + 1)
2428 cfgslot = (x >> 11) & PCI_SLOTMAX; in pci_emul_cfgaddr()
/freebsd/sys/arm64/rockchip/
H A Drk_pcie.c309 if (bus < sc->bus_start || bus > sc->bus_end || slot > PCI_SLOTMAX || in rk_pcie_check_dev()
/freebsd/sys/arm64/iommu/
H A Dsmmu.c1792 for (i = 0; i < PCI_SLOTMAX; i++) in smmu_set_buswide()