Lines Matching refs:self
77 spic_acpi_attach(device_t parent, device_t self, void *aux)
79 struct spic_acpi_softc *sc = device_private(self);
87 sc->sc_spic.sc_dev = self;
91 rv = acpi_resource_parse(self, sc->sc_node->ad_handle,
99 aprint_error_dev(self, "unable to find io resource\n");
104 aprint_error_dev(self, "unable to map data register\n");
109 aprint_error_dev(self, "unable to find irq resource\n");
114 sc->sc_ih = acpi_intr_establish(self,
116 IPL_TTY, false, spic_intr, sc, device_xname(self));
118 aprint_error_dev(self, "unable to establish interrupt\n");
123 if (!pmf_device_register(self, spic_suspend, spic_resume))
124 aprint_error_dev(self, "couldn't establish power handler\n");
126 pmf_class_input_register(self);