Lines Matching refs:hooks
565 void viafb_pm_register(struct viafb_pm_hooks *hooks) in viafb_pm_register() argument
567 INIT_LIST_HEAD(&hooks->list); in viafb_pm_register()
570 list_add_tail(&hooks->list, &viafb_pm_hooks); in viafb_pm_register()
575 void viafb_pm_unregister(struct viafb_pm_hooks *hooks) in viafb_pm_unregister() argument
578 list_del(&hooks->list); in viafb_pm_unregister()
585 struct viafb_pm_hooks *hooks; in via_suspend() local
597 list_for_each_entry_reverse(hooks, &viafb_pm_hooks, list) in via_suspend()
598 hooks->suspend(hooks->private); in via_suspend()
606 struct viafb_pm_hooks *hooks; in via_resume() local
610 list_for_each_entry(hooks, &viafb_pm_hooks, list) in via_resume()
611 hooks->resume(hooks->private); in via_resume()