Lines Matching full:esc
115 ehci_softc_t *esc;
124 esc = &sc->ehci_softc;
127 if (esc->sc_flags & EHCI_SCFLG_DONEINIT)
128 ehci_detach(esc);
129 if (esc->sc_intr_hdl != NULL)
130 bus_teardown_intr(dev, esc->sc_irq_res,
131 esc->sc_intr_hdl);
139 usb_bus_mem_free_all(&esc->sc_bus, &ehci_iterate_hw_softc);
148 ehci_softc_t *esc;
154 esc = &sc->ehci_softc;
222 esc->sc_vendor_get_port_speed = ehci_get_port_speed_hostc;
223 esc->sc_vendor_post_reset = tegra_ehci_post_reset;
224 esc->sc_io_tag = rman_get_bustag(sc->ehci_mem_res);
225 esc->sc_bus.parent = dev;
226 esc->sc_bus.devices = esc->sc_devices;
227 esc->sc_bus.devices_max = EHCI_MAX_DEVICES;
228 esc->sc_bus.dma_bits = 32;
231 rv = usb_bus_mem_alloc_all(&esc->sc_bus, USB_GET_DMA_TAG(dev),
244 rv = bus_space_subregion(esc->sc_io_tag,
246 TEGRA_EHCI_REG_OFF, TEGRA_EHCI_REG_SIZE, &esc->sc_io_hdl);
255 NULL, (driver_intr_t *)ehci_interrupt, esc, &esc->sc_intr_hdl);
262 esc->sc_bus.bdev = device_add_child(dev, "usbus", DEVICE_UNIT_ANY);
263 if (esc->sc_bus.bdev == NULL) {
267 device_set_ivars(esc->sc_bus.bdev, &esc->sc_bus);
269 esc->sc_id_vendor = USB_VENDOR_FREESCALE;
270 strlcpy(esc->sc_vendor, "Nvidia", sizeof(esc->sc_vendor));
273 esc->sc_flags |= EHCI_SCFLG_TT;
274 esc->sc_flags |= EHCI_SCFLG_NORESTERM;
275 rv = ehci_init(esc);
281 esc->sc_flags |= EHCI_SCFLG_DONEINIT;
284 rv = device_probe_and_attach(esc->sc_bus.bdev);