Lines Matching refs:self
66 xhci_pci_match(device_t self)
68 (void)self;
73 xhci_pci_probe(device_t self)
75 const char *desc = xhci_pci_match(self);
78 device_set_desc(self, desc);
86 xhci_pci_attach(device_t self)
89 struct xhci_softc *sc = device_get_softc(self);;
92 int unit = device_get_unit(self);
96 res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &unit, 0);
110 res = bus_alloc_resource_any(self, SYS_RES_IRQ, &unit, 0);
123 if (xhci_init(sc, self, usedma32)) {
124 device_printf(self, "Could not initialize softc\n");
130 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
132 device_printf(self, "Could not add USB device\n");
148 device_printf(self, "XHCI halt/start/probe failed err=%d\n", err);
156 device_printf(self, "XHCI halt/start/probe failed err=%d\n", err);
160 (void)xhci_pci_detach(self);
165 xhci_pci_detach(device_t self)
168 struct xhci_softc *sc = device_get_softc(self);
171 (void)device_delete_children(self);
196 xhci_pci_take_controller(device_t self)
198 struct xhci_softc *sc = device_get_softc(self);