Lines Matching refs:sc_ops
298 error = (*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, APM_DEV_ALLDEVS, in apm_suspend()
325 error = (*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, APM_DEV_ALLDEVS, in apm_standby()
397 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
400 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
403 (*sc->sc_ops->aa_enable)(sc->sc_cookie, 1); in apm_event_handle()
420 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
423 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
426 (*sc->sc_ops->aa_enable)(sc->sc_cookie, 1); in apm_event_handle()
435 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
450 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
456 error = (*sc->sc_ops->aa_get_powstat)(sc->sc_cookie, 0, &pi); in apm_event_handle()
506 (*sc->sc_ops->aa_get_capabilities)(sc->sc_cookie, in apm_event_handle()
508 (*sc->sc_ops->aa_get_powstat)(sc->sc_cookie, 0, &pi); in apm_event_handle()
543 (*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, APM_DEV_ALLDEVS, in apm_periodic_check()
546 while ((error = (*sc->sc_ops->aa_get_event)(sc->sc_cookie, &event_code, in apm_periodic_check()
619 (*sc->sc_ops->aa_get_capabilities)(sc->sc_cookie, &numbatts, in apm_attach()
625 (*sc->sc_ops->aa_enable)(sc->sc_cookie, 1); in apm_attach()
627 if (sc->sc_ops->aa_cpu_busy) in apm_attach()
628 (*sc->sc_ops->aa_cpu_busy)(sc->sc_cookie); in apm_attach()
649 if (sc->sc_ops->aa_disconnect) in apm_attach()
650 (*sc->sc_ops->aa_disconnect)(sc->sc_cookie); in apm_attach()
786 error = (*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, actl->dev, in apmioctl()
814 if ((error = (*sc->sc_ops->aa_get_powstat)(sc->sc_cookie, 0, in apmioctl()