/freebsd/sys/amd64/pci/ |
H A D | pci_cfgreg.c | 184 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 D | pci_host_generic_den0115.c | 213 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 D | pcireg.h | 47 #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 D | pci_host_generic.c | 302 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 D | pci_dw.c | 154 if (bus < sc->bus_start || bus > sc->bus_end || slot > PCI_SLOTMAX || in pci_dw_check_dev()
|
H A D | pci_pci.c | 2784 return (PCI_SLOTMAX); in pcib_maxslots()
|
H A D | pci.c | 5992 if (domain > PCI_DOMAINMAX || bus > PCI_BUSMAX || slot > PCI_SLOTMAX || in pci_lookup()
|
/freebsd/sys/i386/pci/ |
H A D | pci_cfgreg.c | 530 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 D | pci_n1sdp.c | 273 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 D | alpine_pci.c | 124 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in al_pcib_fixup()
|
/freebsd/sys/arm64/cavium/ |
H A D | thunder_pcie_pem.c | 214 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 D | iommu.c | 218 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in iommu_init()
|
/freebsd/sys/x86/pci/ |
H A D | qpi.c | 119 for (s = 0; s <= PCI_SLOTMAX; s++) { in qpi_probe_pcib()
|
H A D | pci_bus.c | 400 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { in legacy_pcib_identify()
|
/freebsd/sys/dev/agp/ |
H A D | agp_amd64.c | 167 for (i = 0, n = 0; i < PCI_SLOTMAX && n < AMD64_MAX_MCTRL; i++) { in agp_amd64_attach()
|
/freebsd/usr.sbin/bhyve/amd64/ |
H A D | pci_lpc.c | 484 for (uint8_t slot = 0; slot <= PCI_SLOTMAX; ++slot) { in pci_lpc_get_sel()
|
/freebsd/sys/arm/mv/ |
H A D | mv_pci.c | 810 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 D | bcm2838_pci.c | 297 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX)) in bcm_pcib_is_valid_quad()
|
/freebsd/sys/dev/xilinx/ |
H A D | xlnx_pcib.c | 432 if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || in xlnx_pcib_req_valid()
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_pcib.c | 313 return (PCI_SLOTMAX); in ofw_pcib_maxslots()
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | pci_mpc85xx.c | 546 return ((sc->sc_pcie) ? 0 : PCI_SLOTMAX); in fsl_pcib_maxslots()
|
/freebsd/usr.sbin/bhyve/ |
H A D | pci_emul.c | 70 #define MAXSLOTS (PCI_SLOTMAX + 1) 2428 cfgslot = (x >> 11) & PCI_SLOTMAX; in pci_emul_cfgaddr()
|
/freebsd/sys/arm64/rockchip/ |
H A D | rk_pcie.c | 309 if (bus < sc->bus_start || bus > sc->bus_end || slot > PCI_SLOTMAX || in rk_pcie_check_dev()
|
/freebsd/sys/arm64/iommu/ |
H A D | smmu.c | 1792 for (i = 0; i < PCI_SLOTMAX; i++) in smmu_set_buswide()
|