Lines Matching refs:self
401 mv_pcib_probe(device_t self)
405 node = ofw_bus_get_node(self);
409 if (!(ofw_bus_is_compatible(self, "mrvl,pcie") ||
410 ofw_bus_is_compatible(self, "mrvl,pci")))
413 device_set_desc(self, "Marvell Integrated PCI/PCI-E Controller");
418 mv_pcib_attach(device_t self)
425 sc = device_get_softc(self);
426 sc->sc_dev = self;
427 unit = fdt_get_unit(self);
430 node = ofw_bus_get_node(self);
449 sc->sc_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &sc->sc_rid,
452 device_printf(self, "could not map memory\n");
494 device_add_child(self, "pci", -1);
499 device_add_child(self, "pci_ep", -1);
503 return (bus_generic_attach(self));