Lines Matching full:phase

180 	/* Use the TD update timer only in the runtime phase */
291 ipc_imem_phase_get_string(ipc_imem->phase),
404 /* Get the internal phase. */
468 /* Consider link power management in the runtime phase. */
487 /* Update & check the current operation phase. */
540 return (ipc_imem->phase == IPC_P_RUN &&
572 if (ipc_imem->phase != IPC_P_RUN) {
645 enum ipc_phase old_phase, phase;
653 /* Get the internal phase. */
654 old_phase = ipc_imem->phase;
663 /* Update the phase controlled by CP. */
664 phase = ipc_imem_phase_update(ipc_imem);
666 switch (phase) {
696 /* Consider power management in the runtime phase. */
703 dev_err(ipc_imem->dev, "confused phase %s",
704 ipc_imem_phase_get_string(phase));
712 /* On CP the PSI phase is already active. */
770 * phase, wake up the flash app to open the pipes.
772 if ((phase == IPC_P_PSI || phase == IPC_P_EBL) &&
808 /* Check the execution stage and update the AP phase */
814 if (ipc_imem->phase != IPC_P_ROM) {
819 ipc_imem->phase = IPC_P_ROM;
823 ipc_imem->phase = IPC_P_PSI;
827 ipc_imem->phase = IPC_P_EBL;
831 if (ipc_imem->phase != IPC_P_RUN &&
835 ipc_imem->phase = IPC_P_RUN;
839 if (ipc_imem->phase != IPC_P_CRASH)
842 ipc_imem->phase = IPC_P_CRASH;
846 if (ipc_imem->phase != IPC_P_CD_READY)
848 ipc_imem->phase = IPC_P_CD_READY;
859 return ipc_imem->phase;
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. */
914 return ipc_imem->phase == IPC_P_OFF_REQ ?
915 ipc_imem->phase :
919 const char *ipc_imem_phase_get_string(enum ipc_phase phase)
921 switch (phase) {
984 if (ipc_imem->phase == IPC_P_RUN) {
1233 ipc_imem->phase = IPC_P_OFF_REQ;
1265 ipc_imem->phase = IPC_P_OFF;
1275 enum ipc_phase phase;
1286 phase = ipc_imem_phase_update(ipc_imem);
1288 /* Either CP shall be in the power off or power on phase. */
1289 switch (phase) {
1319 "Modem is in phase %d, reset Modem to collect CD",
1320 phase);
1323 dev_err(ipc_imem->dev, "unexpected operation phase %d", phase);
1329 ipc_imem->phase = IPC_P_OFF;
1381 /* The phase is set to power off. */
1382 ipc_imem->phase = IPC_P_OFF;
1454 * change the execution phase to ROM
1485 /* First change to the ROM boot phase. */
1487 ipc_imem->phase = ipc_imem_phase_update(ipc_imem);