Lines Matching full:phase

180 	/* Use the TD update timer only in the runtime phase */  in ipc_imem_td_update_timer_start()
291 ipc_imem_phase_get_string(ipc_imem->phase), in ipc_imem_ipc_init_check()
404 /* Get the internal phase. */ in ipc_imem_ul_pipe_process()
468 /* Consider link power management in the runtime phase. */
487 /* Update & check the current operation phase. */ in ipc_imem_tq_startup_timer_cb()
540 return (ipc_imem->phase == IPC_P_RUN && in ipc_imem_get_exec_stage_buffered()
571 if (ipc_imem->phase != IPC_P_RUN) { in ipc_imem_run_state_worker()
623 enum ipc_phase old_phase, phase; in ipc_imem_handle_irq() local
631 /* Get the internal phase. */ in ipc_imem_handle_irq()
632 old_phase = ipc_imem->phase; in ipc_imem_handle_irq()
641 /* Update the phase controlled by CP. */ in ipc_imem_handle_irq()
642 phase = ipc_imem_phase_update(ipc_imem); in ipc_imem_handle_irq()
644 switch (phase) { in ipc_imem_handle_irq()
674 /* Consider power management in the runtime phase. */ in ipc_imem_handle_irq()
681 dev_err(ipc_imem->dev, "confused phase %s", in ipc_imem_handle_irq()
682 ipc_imem_phase_get_string(phase)); in ipc_imem_handle_irq()
690 /* On CP the PSI phase is already active. */ in ipc_imem_handle_irq()
748 * phase, wake up the flash app to open the pipes. in ipc_imem_handle_irq()
750 if ((phase == IPC_P_PSI || phase == IPC_P_EBL) && in ipc_imem_handle_irq()
786 /* Check the execution stage and update the AP phase */
792 if (ipc_imem->phase != IPC_P_ROM) { in ipc_imem_phase_update_check()
797 ipc_imem->phase = IPC_P_ROM; in ipc_imem_phase_update_check()
801 ipc_imem->phase = IPC_P_PSI; in ipc_imem_phase_update_check()
805 ipc_imem->phase = IPC_P_EBL; in ipc_imem_phase_update_check()
809 if (ipc_imem->phase != IPC_P_RUN && in ipc_imem_phase_update_check()
813 ipc_imem->phase = IPC_P_RUN; in ipc_imem_phase_update_check()
817 if (ipc_imem->phase != IPC_P_CRASH) in ipc_imem_phase_update_check()
820 ipc_imem->phase = IPC_P_CRASH; in ipc_imem_phase_update_check()
824 if (ipc_imem->phase != IPC_P_CD_READY) in ipc_imem_phase_update_check()
826 ipc_imem->phase = IPC_P_CD_READY; in ipc_imem_phase_update_check()
837 return ipc_imem->phase; in ipc_imem_phase_update_check()
886 /* Get the CP execution state and map it to the AP phase. */
891 /* If the CP stage is undef, return the internal precalculated phase. */ in ipc_imem_phase_update()
892 return ipc_imem->phase == IPC_P_OFF_REQ ? in ipc_imem_phase_update()
893 ipc_imem->phase : in ipc_imem_phase_update()
897 const char *ipc_imem_phase_get_string(enum ipc_phase phase) in ipc_imem_phase_get_string() argument
899 switch (phase) { in ipc_imem_phase_get_string()
962 if (ipc_imem->phase == IPC_P_RUN) { in ipc_imem_channel_close()
1211 ipc_imem->phase = IPC_P_OFF_REQ; in ipc_imem_cleanup()
1243 ipc_imem->phase = IPC_P_OFF; in ipc_imem_cleanup()
1253 enum ipc_phase phase; in ipc_imem_config() local
1264 phase = ipc_imem_phase_update(ipc_imem); in ipc_imem_config()
1266 /* Either CP shall be in the power off or power on phase. */ in ipc_imem_config()
1267 switch (phase) { in ipc_imem_config()
1297 "Modem is in phase %d, reset Modem to collect CD", in ipc_imem_config()
1298 phase); in ipc_imem_config()
1301 dev_err(ipc_imem->dev, "unexpected operation phase %d", phase); in ipc_imem_config()
1307 ipc_imem->phase = IPC_P_OFF; in ipc_imem_config()
1359 /* The phase is set to power off. */ in ipc_imem_init()
1360 ipc_imem->phase = IPC_P_OFF; in ipc_imem_init()
1436 * change the execution phase to ROM
1467 /* First change to the ROM boot phase. */ in ipc_imem_devlink_trigger_chip_info_cb()
1469 ipc_imem->phase = ipc_imem_phase_update(ipc_imem); in ipc_imem_devlink_trigger_chip_info_cb()