Lines Matching refs:port_cap
2242 struct xhci_port_cap *port_cap; in xhci_add_in_port() local
2286 port_cap = &xhci->port_caps[xhci->num_port_caps++]; in xhci_add_in_port()
2290 port_cap->maj_rev = major_revision; in xhci_add_in_port()
2291 port_cap->min_rev = minor_revision; in xhci_add_in_port()
2292 port_cap->psi_count = XHCI_EXT_PORT_PSIC(temp); in xhci_add_in_port()
2294 if (port_cap->psi_count) { in xhci_add_in_port()
2295 port_cap->psi = kcalloc_node(port_cap->psi_count, in xhci_add_in_port()
2296 sizeof(*port_cap->psi), in xhci_add_in_port()
2298 if (!port_cap->psi) in xhci_add_in_port()
2299 port_cap->psi_count = 0; in xhci_add_in_port()
2301 port_cap->psi_uid_count++; in xhci_add_in_port()
2302 for (i = 0; i < port_cap->psi_count; i++) { in xhci_add_in_port()
2303 port_cap->psi[i] = readl(addr + 4 + i); in xhci_add_in_port()
2308 if (i && (XHCI_EXT_PORT_PSIV(port_cap->psi[i]) != in xhci_add_in_port()
2309 XHCI_EXT_PORT_PSIV(port_cap->psi[i - 1]))) in xhci_add_in_port()
2310 port_cap->psi_uid_count++; in xhci_add_in_port()
2313 XHCI_EXT_PORT_PSIV(port_cap->psi[i]), in xhci_add_in_port()
2314 XHCI_EXT_PORT_PSIE(port_cap->psi[i]), in xhci_add_in_port()
2315 XHCI_EXT_PORT_PLT(port_cap->psi[i]), in xhci_add_in_port()
2316 XHCI_EXT_PORT_PFD(port_cap->psi[i]), in xhci_add_in_port()
2317 XHCI_EXT_PORT_LP(port_cap->psi[i]), in xhci_add_in_port()
2318 XHCI_EXT_PORT_PSIM(port_cap->psi[i])); in xhci_add_in_port()
2353 hw_port->port_cap = port_cap; in xhci_add_in_port()