Lines Matching full:phase
155 /* Use the TD update timer only in the runtime phase */ in ipc_imem_td_update_timer_start()
247 ipc_imem_phase_get_string(ipc_imem->phase), in ipc_imem_ipc_init_check()
352 /* Get the internal phase. */ in ipc_imem_ul_pipe_process()
427 /* Consider link power management in the runtime phase. */
446 /* Update & check the current operation phase. */ in ipc_imem_tq_startup_timer_cb()
499 return (ipc_imem->phase == IPC_P_RUN && in ipc_imem_get_exec_stage_buffered()
530 if (ipc_imem->phase != IPC_P_RUN) { in ipc_imem_run_state_worker()
572 enum ipc_phase old_phase, phase; in ipc_imem_handle_irq() local
580 /* Get the internal phase. */ in ipc_imem_handle_irq()
581 old_phase = ipc_imem->phase; in ipc_imem_handle_irq()
590 /* Update the phase controlled by CP. */ in ipc_imem_handle_irq()
591 phase = ipc_imem_phase_update(ipc_imem); in ipc_imem_handle_irq()
593 switch (phase) { in ipc_imem_handle_irq()
623 /* Consider power management in the runtime phase. */ in ipc_imem_handle_irq()
630 dev_err(ipc_imem->dev, "confused phase %s", in ipc_imem_handle_irq()
631 ipc_imem_phase_get_string(phase)); in ipc_imem_handle_irq()
639 /* On CP the PSI phase is already active. */ in ipc_imem_handle_irq()
694 * phase, wake up the flash app to open the pipes. in ipc_imem_handle_irq()
696 if ((phase == IPC_P_PSI || phase == IPC_P_EBL) && in ipc_imem_handle_irq()
735 /* Check the execution stage and update the AP phase */
741 if (ipc_imem->phase != IPC_P_ROM) { in ipc_imem_phase_update_check()
746 ipc_imem->phase = IPC_P_ROM; in ipc_imem_phase_update_check()
750 ipc_imem->phase = IPC_P_PSI; in ipc_imem_phase_update_check()
754 ipc_imem->phase = IPC_P_EBL; in ipc_imem_phase_update_check()
758 if (ipc_imem->phase != IPC_P_RUN && in ipc_imem_phase_update_check()
762 ipc_imem->phase = IPC_P_RUN; in ipc_imem_phase_update_check()
766 if (ipc_imem->phase != IPC_P_CRASH) in ipc_imem_phase_update_check()
769 ipc_imem->phase = IPC_P_CRASH; in ipc_imem_phase_update_check()
773 if (ipc_imem->phase != IPC_P_CD_READY) in ipc_imem_phase_update_check()
775 ipc_imem->phase = IPC_P_CD_READY; in ipc_imem_phase_update_check()
786 return ipc_imem->phase; in ipc_imem_phase_update_check()
835 /* Get the CP execution state and map it to the AP phase. */
840 /* If the CP stage is undef, return the internal precalculated phase. */ in ipc_imem_phase_update()
841 return ipc_imem->phase == IPC_P_OFF_REQ ? in ipc_imem_phase_update()
842 ipc_imem->phase : in ipc_imem_phase_update()
846 const char *ipc_imem_phase_get_string(enum ipc_phase phase) in ipc_imem_phase_get_string() argument
848 switch (phase) { in ipc_imem_phase_get_string()
911 if (ipc_imem->phase == IPC_P_RUN) { in ipc_imem_channel_close()
1160 ipc_imem->phase = IPC_P_OFF_REQ; in ipc_imem_cleanup()
1188 ipc_imem->phase = IPC_P_OFF; in ipc_imem_cleanup()
1198 enum ipc_phase phase; in ipc_imem_config() local
1209 phase = ipc_imem_phase_update(ipc_imem); in ipc_imem_config()
1211 /* Either CP shall be in the power off or power on phase. */ in ipc_imem_config()
1212 switch (phase) { in ipc_imem_config()
1242 "Modem is in phase %d, reset Modem to collect CD", in ipc_imem_config()
1243 phase); in ipc_imem_config()
1246 dev_err(ipc_imem->dev, "unexpected operation phase %d", phase); in ipc_imem_config()
1252 ipc_imem->phase = IPC_P_OFF; in ipc_imem_config()
1307 /* The phase is set to power off. */ in ipc_imem_init()
1308 ipc_imem->phase = IPC_P_OFF; in ipc_imem_init()