Lines Matching refs:sc_otg
102 sc->sc_otg.sc_bus.parent = dev; in dwc_otg_attach()
111 sc->sc_otg.sc_mode = DWC_MODE_HOST; in dwc_otg_attach()
113 sc->sc_otg.sc_mode = DWC_MODE_DEVICE; in dwc_otg_attach()
121 sc->sc_otg.sc_io_res = in dwc_otg_attach()
124 if (!(sc->sc_otg.sc_io_res)) in dwc_otg_attach()
138 sc->sc_otg.sc_irq_res = in dwc_otg_attach()
140 if (sc->sc_otg.sc_irq_res == NULL) in dwc_otg_attach()
143 err = dwc_otg_init(&sc->sc_otg); in dwc_otg_attach()
145 err = device_probe_and_attach(sc->sc_otg.sc_bus.bdev); in dwc_otg_attach()
168 if (sc->sc_otg.sc_irq_res && sc->sc_otg.sc_intr_hdl) { in dwc_otg_detach()
172 dwc_otg_uninit(&sc->sc_otg); in dwc_otg_detach()
174 bus_teardown_intr(dev, sc->sc_otg.sc_irq_res, in dwc_otg_detach()
175 sc->sc_otg.sc_intr_hdl); in dwc_otg_detach()
176 sc->sc_otg.sc_intr_hdl = NULL; in dwc_otg_detach()
179 if (sc->sc_otg.sc_irq_res) { in dwc_otg_detach()
181 sc->sc_otg.sc_irq_res); in dwc_otg_detach()
182 sc->sc_otg.sc_irq_res = NULL; in dwc_otg_detach()
185 if (sc->sc_otg.sc_io_res) { in dwc_otg_detach()
187 sc->sc_otg.sc_io_res); in dwc_otg_detach()
188 sc->sc_otg.sc_io_res = NULL; in dwc_otg_detach()
190 usb_bus_mem_free_all(&sc->sc_otg.sc_bus, NULL); in dwc_otg_detach()