Lines Matching refs:ports
80 * @nports: number of ports to allocate array slots for
86 * We also allocate a port array based on the number of ports.
98 rdi->ports = kcalloc(nports, sizeof(*rdi->ports), GFP_KERNEL);
99 if (!rdi->ports)
114 kfree(rdi->ports);
164 rvp = rdi->ports[port_index];
200 rvp = rdi->ports[port_index];
277 rvp = rdi->ports[port_index];
673 * @port_index: 0 based index of ports, different from IB core port num
676 * Keep track of a list of ports. No need to have a detach port.
685 rdi->ports[port_index] = port;
686 rdi->ports[port_index]->pkey_table = pkey_table;