Lines Matching refs:self
71 generic_ehci_probe(device_t self)
75 if ((h = acpi_get_handle(self)) == NULL ||
79 device_set_desc(self, "Generic EHCI Controller");
84 generic_ehci_attach(device_t self)
86 ehci_softc_t *sc = device_get_softc(self);
91 sc->sc_bus.parent = self;
98 USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) {
105 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid,
108 device_printf(self, "Could not map memory\n");
117 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
120 device_printf(self, "Could not allocate irq\n");
123 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
125 device_printf(self, "Could not add USB device\n");
132 err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
135 device_printf(self, "Could not setup irq, %d\n", err);
151 generic_ehci_detach(self);
156 generic_ehci_detach(device_t self)
158 ehci_softc_t *sc = device_get_softc(self);
162 device_delete_children(self);
170 err = bus_teardown_intr(self, sc->sc_irq_res, sc->sc_intr_hdl);
174 device_printf(self, "Could not tear down irq, %d\n",
180 bus_release_resource(self, SYS_RES_IRQ, 0, sc->sc_irq_res);
184 bus_release_resource(self, SYS_RES_MEMORY, 0,