Lines Matching defs:ports
61 #define DEF_PORTS 6 /* Intel ICH8 AHCI supports 6 ports */
62 #define MAX_PORTS 32 /* AHCI supports 32 ports */
195 int ports;
234 for (i = 0; i < sc->ports; i++) {
260 /* Assert respective MSIs for ports that were touched. */
262 if (sc->ports <= nmsg || i < nmsg - 1)
290 if (sc->ports <= nmsg || p->port < nmsg - 1) {
568 for (i = 0; i < sc->ports; i++) {
2198 else if (offset < AHCI_OFFSET + sc->ports * AHCI_STEP)
2296 else if (offset < AHCI_OFFSET + sc->ports * AHCI_STEP)
2331 sc->ports = 0;
2366 sc->ports = p;
2396 sc->ports = p;
2400 if (sc->ports < DEF_PORTS)
2401 sc->ports = DEF_PORTS;
2406 (slots << AHCI_CAP_NCS_SHIFT) | AHCI_CAP_SXS | (sc->ports - 1);
2417 p = MIN(sc->ports, 16);
2421 AHCI_OFFSET + sc->ports * AHCI_STEP);
2427 for (p = 0; p < sc->ports; p++) {