Lines Matching refs:sc_otg
105 sc->sc_otg.sc_bus.parent = dev;
114 sc->sc_otg.sc_mode = DWC_MODE_HOST;
116 sc->sc_otg.sc_mode = DWC_MODE_DEVICE;
124 sc->sc_otg.sc_io_res =
127 if (!(sc->sc_otg.sc_io_res))
141 sc->sc_otg.sc_irq_res =
143 if (sc->sc_otg.sc_irq_res == NULL)
146 sc->sc_otg.sc_bus.bdev = device_add_child(dev, "usbus", -1);
147 if (sc->sc_otg.sc_bus.bdev == NULL)
150 err = dwc_otg_init(&sc->sc_otg);
152 err = device_probe_and_attach(sc->sc_otg.sc_bus.bdev);
172 if (sc->sc_otg.sc_irq_res && sc->sc_otg.sc_intr_hdl) {
176 dwc_otg_uninit(&sc->sc_otg);
178 bus_teardown_intr(dev, sc->sc_otg.sc_irq_res,
179 sc->sc_otg.sc_intr_hdl);
180 sc->sc_otg.sc_intr_hdl = NULL;
183 if (sc->sc_otg.sc_irq_res) {
185 sc->sc_otg.sc_irq_res);
186 sc->sc_otg.sc_irq_res = NULL;
189 if (sc->sc_otg.sc_io_res) {
191 sc->sc_otg.sc_io_res);
192 sc->sc_otg.sc_io_res = NULL;
194 usb_bus_mem_free_all(&sc->sc_otg.sc_bus, NULL);