MAX_PORTS
struct ahci_port port[MAX_PORTS];
for (p = 0; p < MAX_PORTS && str != NULL; p++, str = next) {
for (p = 0; ports_nvl != NULL && p < MAX_PORTS; p++) {
if (xcap->xcap_max_ports > MAX_PORTS) {
MAX_PORTS, MAX_PORTS);
xcap->xcap_max_ports = MAX_PORTS;
#if MAX_PORTS != 31
MAX_PORTS + 1);
ASSERT(*(data->b_rptr + 2) <= (MAX_PORTS + 1));
if (hubd->h_nports > MAX_PORTS) {
MAX_PORTS, MAX_PORTS, hubd->h_nports);
hubd->h_nports = MAX_PORTS;
for (port = 1; port <= MAX_PORTS; port++) {
if (port > MAX_PORTS) {
kmem_zalloc(MAX_PORTS + 1, KM_SLEEP);
uint16_t h_port_state[MAX_PORTS + 1];
boolean_t h_reset_port[MAX_PORTS + 1];
uint8_t h_child_events[MAX_PORTS + 1];
uint16_t h_port_raw[MAX_PORTS + 1];