PCI_SLOTMAX
if (bus <= PCI_BUSMAX && slot <= PCI_SLOTMAX && func <= PCI_FUNCMAX &&
for (slot = 0; slot <= PCI_SLOTMAX; slot++) {
if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX)
if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX)
for (slot = 0; slot <= PCI_SLOTMAX; slot++) {
for (slot = 0; slot <= PCI_SLOTMAX; slot++) {
if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) || (reg > PCIE_REGMAX))
return ((sc->sc_type != MV_TYPE_PCI) ? 1 : PCI_SLOTMAX);
mv_pcib_init(sc, secbus, PCI_SLOTMAX);
return (PCI_SLOTMAX);
if ((bus > PCI_BUSMAX) || (slot > PCI_SLOTMAX) ||
if ((bus > PCI_BUSMAX) || (slot > PCI_SLOTMAX) ||
for (i = 0; i < PCI_SLOTMAX; i++)
if (bus < sc->bus_start || bus > sc->bus_end || slot > PCI_SLOTMAX ||
for (i = 0, n = 0; i < PCI_SLOTMAX && n < AMD64_MAX_MCTRL; i++) {
return (PCI_SLOTMAX);
if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) ||
if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) ||
if (domain > PCI_DOMAINMAX || bus > PCI_BUSMAX || slot > PCI_SLOTMAX ||
if (bus < sc->bus_start || bus > sc->bus_end || slot > PCI_SLOTMAX ||
if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) ||
if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) ||
if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) ||
if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) ||
return (PCI_SLOTMAX);
(((slot) & PCI_SLOTMAX) << PCI_RID_SLOT_SHIFT) | \
#define PCI_RID2SLOT(rid) (((rid) >> PCI_RID_SLOT_SHIFT) & PCI_SLOTMAX)
#define PCIE_ARI_SLOT(func) (((func) >> PCI_RID_SLOT_SHIFT) & PCI_SLOTMAX)
if ((slot > PCI_SLOTMAX) || (func > PCI_FUNCMAX) ||
for (slot = 0; slot <= PCI_SLOTMAX; slot++) {
if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX)
if (slot > PCI_SLOTMAX || func > PCI_FUNCMAX || reg > PCIE_REGMAX)
return ((sc->sc_pcie) ? 0 : PCI_SLOTMAX);
return (PCI_SLOTMAX);
for (slot = 0; slot <= PCI_SLOTMAX; slot++) {
for (s = 0; s <= PCI_SLOTMAX; s++) {
cfgslot = (x >> 11) & PCI_SLOTMAX;
#define MAXSLOTS (PCI_SLOTMAX + 1)