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()
572 if (ipc_imem->phase != IPC_P_RUN) { in ipc_imem_run_state_worker()
645 enum ipc_phase old_phase, phase; in ipc_imem_handle_irq() local
653 /* Get the internal phase. */ in ipc_imem_handle_irq()
654 old_phase = ipc_imem->phase; in ipc_imem_handle_irq()
663 /* Update the phase controlled by CP. */ in ipc_imem_handle_irq()
664 phase = ipc_imem_phase_update(ipc_imem); in ipc_imem_handle_irq()
666 switch (phase) { in ipc_imem_handle_irq()
696 /* Consider power management in the runtime phase. */ in ipc_imem_handle_irq()
703 dev_err(ipc_imem->dev, "confused phase %s", in ipc_imem_handle_irq()
704 ipc_imem_phase_get_string(phase)); in ipc_imem_handle_irq()
712 /* On CP the PSI phase is already active. */ in ipc_imem_handle_irq()
770 * phase, wake up the flash app to open the pipes. in ipc_imem_handle_irq()
772 if ((phase == IPC_P_PSI || phase == IPC_P_EBL) && in ipc_imem_handle_irq()
808 /* Check the execution stage and update the AP phase */
814 if (ipc_imem->phase != IPC_P_ROM) { in ipc_imem_phase_update_check()
819 ipc_imem->phase = IPC_P_ROM; in ipc_imem_phase_update_check()
823 ipc_imem->phase = IPC_P_PSI; in ipc_imem_phase_update_check()
827 ipc_imem->phase = IPC_P_EBL; in ipc_imem_phase_update_check()
831 if (ipc_imem->phase != IPC_P_RUN && in ipc_imem_phase_update_check()
835 ipc_imem->phase = IPC_P_RUN; in ipc_imem_phase_update_check()
839 if (ipc_imem->phase != IPC_P_CRASH) in ipc_imem_phase_update_check()
842 ipc_imem->phase = IPC_P_CRASH; in ipc_imem_phase_update_check()
846 if (ipc_imem->phase != IPC_P_CD_READY) in ipc_imem_phase_update_check()
848 ipc_imem->phase = IPC_P_CD_READY; in ipc_imem_phase_update_check()
859 return ipc_imem->phase; in ipc_imem_phase_update_check()
908 /* Get the CP execution state and map it to the AP phase. */
913 /* If the CP stage is undef, return the internal precalculated phase. */ in ipc_imem_phase_update()
914 return ipc_imem->phase == IPC_P_OFF_REQ ? in ipc_imem_phase_update()
915 ipc_imem->phase : in ipc_imem_phase_update()
919 const char *ipc_imem_phase_get_string(enum ipc_phase phase) in ipc_imem_phase_get_string() argument
921 switch (phase) { in ipc_imem_phase_get_string()
984 if (ipc_imem->phase == IPC_P_RUN) { in ipc_imem_channel_close()
1233 ipc_imem->phase = IPC_P_OFF_REQ; in ipc_imem_cleanup()
1265 ipc_imem->phase = IPC_P_OFF; in ipc_imem_cleanup()
1275 enum ipc_phase phase; in ipc_imem_config() local
1286 phase = ipc_imem_phase_update(ipc_imem); in ipc_imem_config()
1288 /* Either CP shall be in the power off or power on phase. */ in ipc_imem_config()
1289 switch (phase) { in ipc_imem_config()
1319 "Modem is in phase %d, reset Modem to collect CD", in ipc_imem_config()
1320 phase); in ipc_imem_config()
1323 dev_err(ipc_imem->dev, "unexpected operation phase %d", phase); in ipc_imem_config()
1329 ipc_imem->phase = IPC_P_OFF; in ipc_imem_config()
1381 /* The phase is set to power off. */ in ipc_imem_init()
1382 ipc_imem->phase = IPC_P_OFF; in ipc_imem_init()
1458 * change the execution phase to ROM
1489 /* First change to the ROM boot phase. */ in ipc_imem_devlink_trigger_chip_info_cb()
1491 ipc_imem->phase = ipc_imem_phase_update(ipc_imem); in ipc_imem_devlink_trigger_chip_info_cb()