Lines Matching +full:wait +full:- +full:state
1 /* SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-21 Intel Corporation.
18 * union ipc_pm_cond - Conditions for D3 and the sleep message to CP.
22 * @link: Device link state.
35 * enum ipc_mem_host_pm_state - Possible states of the HOST SLEEP finite state
38 * @IPC_MEM_HOST_PM_ACTIVE_WAIT: Intermediate state before going to
40 * @IPC_MEM_HOST_PM_SLEEP_WAIT_IDLE: Intermediate state to wait for idle
42 * @IPC_MEM_HOST_PM_SLEEP_WAIT_D3: Intermediate state to wait for D3
44 * @IPC_MEM_HOST_PM_SLEEP: after this state the interface is not
46 * @IPC_MEM_HOST_PM_SLEEP_WAIT_EXIT_SLEEP: Intermediate state before exiting
59 * enum ipc_mem_dev_pm_state - Possible states of the DEVICE SLEEP finite state
62 * power management state.
65 * and DOORBELL-IRQ-HPDA(data) values.
66 * @IPC_MEM_DEV_PM_SLEEP: IPC_MEM_DEV_PM_SLEEP is PM state for
68 * @IPC_MEM_DEV_PM_WAKEUP: DOORBELL-IRQ-DEVICE_WAKE(data).
69 * @IPC_MEM_DEV_PM_HOST_SLEEP: DOORBELL-IRQ-HOST_SLEEP(data).
71 * @IPC_MEM_DEV_PM_FORCE_SLEEP: DOORBELL-IRQ-FORCE_SLEEP.
72 * @IPC_MEM_DEV_PM_FORCE_ACTIVE: DOORBELL-IRQ-FORCE_ACTIVE.
85 * struct iosm_pm - Power management instance
90 * @host_sleep_complete: Generic wait-for-completion used in
93 * @ap_state: Current power management state, the
94 * initial state is IPC_MEM_DEV_PM_ACTIVE eq. 0.
95 * @cp_state: PM State of CP
113 * enum ipc_pm_unit - Power management units.
116 * @IPC_PM_UNIT_LINK: Link state controlled by CP.
125 * ipc_pm_init - Allocate power management component
131 * ipc_pm_deinit - Free power management component, invalidating its pointer.
137 * ipc_pm_dev_slp_notification - Handle a sleep notification message from the
138 * device. This can be called from interrupt state
144 * Returns: true if dev sleep state has to be checked, false otherwise.
150 * ipc_pm_set_s2idle_sleep - Set PM variables to sleep/active
157 * ipc_pm_prepare_host_sleep - Prepare the PM for sleep by entering
158 * IPC_MEM_HOST_PM_SLEEP_WAIT_D3 state.
166 * ipc_pm_prepare_host_active - Prepare the PM for wakeup by entering
167 * IPC_MEM_HOST_PM_ACTIVE_WAIT state.
175 * ipc_pm_wait_for_device_active - Wait upto IPC_PM_ACTIVE_TIMEOUT_MS ms
176 * for the device to reach active state
184 * ipc_pm_signal_hpda_doorbell - Wake up the device if it is in low power mode
188 * @host_slp_check: if set to true then Host Sleep state machine check will
189 * be performed. If Host Sleep state machine allows HP
198 * ipc_pm_trigger - Update power manager and wake up the link if needed
201 * @active: Device link state