Lines Matching refs:ports
38 * @nports: number of ports to allocate array slots for
44 * We also allocate a port array based on the number of ports.
56 rdi->ports = kcalloc(nports, sizeof(*rdi->ports), GFP_KERNEL);
57 if (!rdi->ports)
72 kfree(rdi->ports);
126 rvp = rdi->ports[port_index];
159 rvp = rdi->ports[port_index];
232 rvp = rdi->ports[port_index];
602 * @port_index: 0 based index of ports, different from IB core port num
605 * Keep track of a list of ports. No need to have a detach port.
614 rdi->ports[port_index] = port;
615 rdi->ports[port_index]->pkey_table = pkey_table;