Lines Matching defs:esc
178 ehci_softc_t *esc;
182 esc = &sc->ehci_softc;
184 if (esc->sc_bus.bdev != NULL)
185 device_delete_child(dev, esc->sc_bus.bdev);
186 if (esc->sc_flags & EHCI_SCFLG_DONEINIT)
187 ehci_detach(esc);
188 if (esc->sc_intr_hdl != NULL)
189 bus_teardown_intr(dev, esc->sc_irq_res,
190 esc->sc_intr_hdl);
198 usb_bus_mem_free_all(&esc->sc_bus, &ehci_iterate_hw_softc);
210 ehci_softc_t *esc;
214 esc = &sc->ehci_softc;
236 esc->sc_io_tag = rman_get_bustag(sc->ehci_mem_res);
237 esc->sc_bus.parent = dev;
238 esc->sc_bus.devices = esc->sc_devices;
239 esc->sc_bus.devices_max = EHCI_MAX_DEVICES;
240 esc->sc_bus.dma_bits = 32;
243 if (usb_bus_mem_alloc_all(&esc->sc_bus, USB_GET_DMA_TAG(dev),
254 err = bus_space_subregion(esc->sc_io_tag,
256 IMX_EHCI_REG_OFF, IMX_EHCI_REG_SIZE, &esc->sc_io_hdl);
265 NULL, (driver_intr_t *)ehci_interrupt, esc, &esc->sc_intr_hdl);
275 esc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
276 if (esc->sc_bus.bdev == NULL) {
280 device_set_ivars(esc->sc_bus.bdev, &esc->sc_bus);
282 esc->sc_id_vendor = USB_VENDOR_FREESCALE;
283 strlcpy(esc->sc_vendor, "Freescale", sizeof(esc->sc_vendor));
286 esc->sc_flags |= EHCI_SCFLG_DONTRESET | EHCI_SCFLG_NORESTERM;
287 err = ehci_init(esc);
293 esc->sc_flags |= EHCI_SCFLG_DONEINIT;
296 err = device_probe_and_attach(esc->sc_bus.bdev);