Lines Matching refs:self
66 spkr_audio_tone(device_t self, u_int xhz, u_int ticks)
68 struct spkr_audio_softc *sc = device_private(self);
71 device_printf(self, "%s: %u %u\n", __func__, xhz, ticks);
92 spkr_audio_attach(device_t parent, device_t self, void *aux)
94 struct spkr_audio_softc *sc = device_private(self);
102 if (!pmf_device_register(self, NULL, NULL))
103 aprint_error_dev(self, "couldn't establish power handler\n");
105 spkr_attach(self, spkr_audio_tone);
109 spkr_audio_detach(device_t self, int flags)
113 if ((error = spkr_detach(self, flags)) != 0)
116 pmf_device_deregister(self);
122 spkr_audio_rescan(device_t self, const char *iattr, const int *locators)
125 return spkr_rescan(self, iattr, locators);
129 spkr_audio_childdet(device_t self, device_t child)
132 spkr_childdet(self, child);