Home | History | Annotate | Download | only in acpi

Lines Matching defs:asc

112 	struct igpio_acpi_softc * const asc = device_private(self);
122 asc->sc_handle = aa->aa_node->ad_handle;
135 asc->sc_isc.sc_dev = self;
137 asc->sc_isc.sc_bst = aa->aa_memt;
139 asc->sc_isc.sc_nbar = nbar;
140 asc->sc_isc.sc_base =
141 kmem_zalloc(sizeof(*asc->sc_isc.sc_base) * nbar, KM_SLEEP);
142 asc->sc_isc.sc_length =
143 kmem_zalloc(sizeof(*asc->sc_isc.sc_length) * nbar, KM_SLEEP);
144 asc->sc_isc.sc_bsh =
145 kmem_zalloc(sizeof(*asc->sc_isc.sc_bsh) * nbar, KM_SLEEP);
147 asc->sc_isc.sc_acpi_hid = ad->HardwareId.String;
156 asc->sc_isc.sc_base[i] = mem->ar_base;
157 asc->sc_isc.sc_length[i] = mem->ar_length;
160 igpio_attach(&asc->sc_isc);
163 if (asc->sc_isc.sc_banks == NULL) {
168 rv = acpi_event_create_gpio(self, asc->sc_handle, igpio_acpi_register_event, asc);
175 asc->sc_intr = acpi_intr_establish(self,
176 (uint64_t)(uintptr_t)asc->sc_handle,
177 IPL_VM, false, igpio_acpi_intr, asc, device_xname(self));
178 if (asc->sc_intr == NULL)
184 asc->sc_pmf = 1;
190 struct igpio_acpi_softc * const asc = device_private(self);
191 struct igpio_softc * const isc = &asc->sc_isc;
194 acpi_intr_disestablish(asc->sc_intr);
196 igpio_detach(&asc->sc_isc);
213 if (asc->sc_pmf) {
215 asc->sc_pmf = 0;
230 struct igpio_acpi_softc *asc = priv;
231 struct igpio_softc * const isc = &asc->sc_isc;