Lines Matching defs:self
85 ehci_ebus_probe(device_t self)
88 device_set_desc(self, EHCI_HC_DEVSTR);
94 ehci_ebus_attach(device_t self)
96 ehci_softc_t *sc = device_get_softc(self);
102 sc->sc_bus.parent = self;
109 USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) {
116 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY,
119 device_printf(self, "Could not map memory\n");
137 device_get_name(self));
140 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
143 device_printf(self, "Could not allocate irq\n");
144 ehci_ebus_detach(self);
148 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
150 device_printf(self, "Could not add USB device\n");
158 err = bus_setup_intr(self,sc->sc_irq_res,
163 device_printf(self, "Could not setup error irq, %d\n", err);
173 device_printf(self, "USB init failed err=%d\n", err);
179 ehci_ebus_detach(self);
184 ehci_ebus_detach(device_t self)
186 ehci_softc_t *sc = device_get_softc(self);
190 device_delete_children(self);
205 err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl);
209 device_printf(self, "Could not tear down irq, %d\n",
214 bus_release_resource(self, SYS_RES_IRQ, 1, sc->sc_irq_res);
218 bus_release_resource(self, SYS_RES_MEMORY, 0,