Lines Matching defs:esc

136 	ehci_softc_t *esc;
157 esc = &sc->ehci[i];
158 esc->sc_io_tag = iot;
159 esc->sc_bus.parent = self;
160 esc->sc_bus.devices = esc->sc_devices;
161 esc->sc_bus.devices_max = EHCI_MAX_DEVICES;
163 if (usb_bus_mem_alloc_all(&esc->sc_bus, USB_GET_DMA_TAG(self),
174 FSL_EHCI_REG_SIZE, &esc->sc_io_hdl);
180 NULL, (driver_intr_t *)ehci_interrupt, esc,
181 &esc->sc_intr_hdl);
189 esc->sc_bus.bdev = device_add_child(self, "usbus", -1);
190 if (!esc->sc_bus.bdev) {
192 err = bus_teardown_intr(self, esc->sc_irq_res,
193 esc->sc_intr_hdl);
199 device_set_ivars(esc->sc_bus.bdev, &esc->sc_bus);
201 esc->sc_id_vendor = 0x1234;
202 strlcpy(esc->sc_vendor, "Freescale", sizeof(esc->sc_vendor));
205 esc->sc_flags |= EHCI_SCFLG_DONTRESET | EHCI_SCFLG_NORESTERM;
207 err = ehci_init(esc);
209 esc->sc_flags |= EHCI_SCFLG_DONEINIT;
210 err = device_probe_and_attach(esc->sc_bus.bdev);
214 device_delete_child(self, esc->sc_bus.bdev);
215 esc->sc_bus.bdev = NULL;
217 err = bus_teardown_intr(self, esc->sc_irq_res,
218 esc->sc_intr_hdl);
233 ehci_softc_t *esc;
239 esc = &sc->ehci[i];
240 if (esc->sc_flags & EHCI_SCFLG_DONEINIT)
245 if (esc->sc_flags & EHCI_SCFLG_DONEINIT) {
246 ehci_detach(esc);
247 esc->sc_flags &= ~EHCI_SCFLG_DONEINIT;
254 if (esc->sc_io_tag && esc->sc_io_hdl)
255 bus_space_write_4(esc->sc_io_tag, esc->sc_io_hdl,
258 if (esc->sc_irq_res && esc->sc_intr_hdl) {
259 err = bus_teardown_intr(self, esc->sc_irq_res,
260 esc->sc_intr_hdl);
266 esc->sc_intr_hdl = NULL;
269 if (esc->sc_bus.bdev) {
270 device_delete_child(self, esc->sc_bus.bdev);
271 esc->sc_bus.bdev = NULL;