Lines Matching defs:self
91 ar71xx_ehci_probe(device_t self)
94 device_set_desc(self, EHCI_HC_DEVSTR);
109 ar71xx_ehci_attach(device_t self)
111 struct ar71xx_ehci_softc *isc = device_get_softc(self);
117 sc->sc_bus.parent = self;
124 USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) {
133 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE);
135 device_printf(self, "Could not map memory\n");
148 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
151 device_printf(self, "Could not allocate irq\n");
154 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
156 device_printf(self, "Could not add USB device\n");
164 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
167 device_printf(self, "Could not setup irq, %d\n", err);
219 device_printf(self, "USB init failed err=%d\n", err);
225 ar71xx_ehci_detach(self);
230 ar71xx_ehci_detach(device_t self)
232 struct ar71xx_ehci_softc *isc = device_get_softc(self);
237 device_delete_children(self);
245 err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl);
249 device_printf(self, "Could not tear down irq, %d\n",
255 bus_release_resource(self, SYS_RES_IRQ, 0, sc->sc_irq_res);
259 bus_release_resource(self, SYS_RES_MEMORY, 0,