Lines Matching refs:psc
83 xhci_pci_port_route(struct xhci_pci_softc *psc)
85 struct xhci_softc * const sc = &psc->sc_xhci;
93 val = pci_conf_read(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_USB3PRM);
97 pci_conf_write(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_USB3_PSSEN, val);
98 val = pci_conf_read(psc->sc_pc, psc->sc_tag,PCI_XHCI_INTEL_USB3_PSSEN);
106 val = pci_conf_read(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_USB2PRM);
110 pci_conf_write(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_XUSB2PR, val);
111 val = pci_conf_read(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_XUSB2PR);
121 struct xhci_pci_softc * const psc = device_private(self);
122 struct xhci_softc * const sc = &psc->sc_xhci;
192 psc->sc_pc = pc;
193 psc->sc_tag = tag;
226 if (pci_intr_alloc(pa, &psc->sc_pihp, counts, PCI_INTR_TYPE_MSIX)) {
230 intrstr = pci_intr_string(pc, psc->sc_pihp[0], intrbuf,
232 pci_intr_setattr(pc, &psc->sc_pihp[0], PCI_INTR_MPSAFE, true);
233 psc->sc_ih = pci_intr_establish_xname(pc, psc->sc_pihp[0], IPL_USB,
235 if (psc->sc_ih == NULL) {
236 pci_intr_release(pc, psc->sc_pihp, 1);
237 psc->sc_pihp = NULL;
284 xhci_pci_port_route(psc);
302 if (psc->sc_ih != NULL) {
303 pci_intr_disestablish(psc->sc_pc, psc->sc_ih);
304 psc->sc_ih = NULL;
306 if (psc->sc_pihp != NULL) {
307 pci_intr_release(psc->sc_pc, psc->sc_pihp, 1);
308 psc->sc_pihp = NULL;
320 struct xhci_pci_softc * const psc = device_private(self);
321 struct xhci_softc * const sc = &psc->sc_xhci;
340 if (psc->sc_ih != NULL) {
341 pci_intr_disestablish(psc->sc_pc, psc->sc_ih);
342 psc->sc_ih = NULL;
344 if (psc->sc_pihp != NULL) {
345 pci_intr_release(psc->sc_pc, psc->sc_pihp, 1);
346 psc->sc_pihp = NULL;