Lines Matching full:esc
309 ehci_softc_t *esc;
314 esc = &sc->ehci_softc;
320 if (esc->sc_flags & EHCI_SCFLG_DONEINIT)
321 ehci_detach(esc);
322 if (esc->sc_intr_hdl != NULL)
323 bus_teardown_intr(dev, esc->sc_irq_res,
324 esc->sc_intr_hdl);
332 usb_bus_mem_free_all(&esc->sc_bus, &ehci_iterate_hw_softc);
371 ehci_softc_t *esc;
376 esc = &sc->ehci_softc;
398 esc->sc_io_tag = rman_get_bustag(sc->ehci_mem_res);
399 esc->sc_bus.parent = dev;
400 esc->sc_bus.devices = esc->sc_devices;
401 esc->sc_bus.devices_max = EHCI_MAX_DEVICES;
402 esc->sc_bus.dma_bits = 32;
405 if (usb_bus_mem_alloc_all(&esc->sc_bus, USB_GET_DMA_TAG(dev),
416 err = bus_space_subregion(esc->sc_io_tag,
418 IMX_EHCI_REG_OFF, IMX_EHCI_REG_SIZE, &esc->sc_io_hdl);
427 NULL, (driver_intr_t *)ehci_interrupt, esc, &esc->sc_intr_hdl);
441 esc->sc_bus.bdev = device_add_child(dev, "usbus", DEVICE_UNIT_ANY);
442 if (esc->sc_bus.bdev == NULL) {
446 device_set_ivars(esc->sc_bus.bdev, &esc->sc_bus);
448 esc->sc_id_vendor = USB_VENDOR_FREESCALE;
449 strlcpy(esc->sc_vendor, "Freescale", sizeof(esc->sc_vendor));
455 esc->sc_flags |= EHCI_SCFLG_NORESTERM | EHCI_SCFLG_TT;
456 esc->sc_vendor_post_reset = imx_ehci_post_reset;
457 esc->sc_vendor_get_port_speed = ehci_get_port_speed_portsc;
459 err = ehci_init(esc);
465 esc->sc_flags |= EHCI_SCFLG_DONEINIT;
468 err = device_probe_and_attach(esc->sc_bus.bdev);