Lines Matching refs:port_cap
2152 struct xhci_port_cap *port_cap;
2201 port_cap = &xhci->port_caps[xhci->num_port_caps++];
2205 port_cap->psi_count = XHCI_EXT_PORT_PSIC(temp);
2207 if (port_cap->psi_count) {
2208 port_cap->psi = kcalloc_node(port_cap->psi_count,
2209 sizeof(*port_cap->psi),
2211 if (!port_cap->psi)
2212 port_cap->psi_count = 0;
2214 port_cap->psi_uid_count++;
2215 for (i = 0; i < port_cap->psi_count; i++) {
2216 port_cap->psi[i] = readl(addr + 4 + i);
2221 if (i && (XHCI_EXT_PORT_PSIV(port_cap->psi[i]) !=
2222 XHCI_EXT_PORT_PSIV(port_cap->psi[i - 1])))
2223 port_cap->psi_uid_count++;
2227 XHCI_EXT_PORT_PSIV(port_cap->psi[i]) >= 5)
2231 XHCI_EXT_PORT_PSIV(port_cap->psi[i]),
2232 XHCI_EXT_PORT_PSIE(port_cap->psi[i]),
2233 XHCI_EXT_PORT_PLT(port_cap->psi[i]),
2234 XHCI_EXT_PORT_PFD(port_cap->psi[i]),
2235 XHCI_EXT_PORT_LP(port_cap->psi[i]),
2236 XHCI_EXT_PORT_PSIM(port_cap->psi[i]));
2245 port_cap->maj_rev = major_revision;
2246 port_cap->min_rev = minor_revision;
2280 hw_port->port_cap = port_cap;