Lines Matching refs:wakesta

208 void spm_get_wakeup_status(struct wake_status *wakesta)  in spm_get_wakeup_status()  argument
210 wakesta->assert_pc = mmio_read_32(SPM_PCM_REG_DATA_INI); in spm_get_wakeup_status()
211 wakesta->r12 = mmio_read_32(SPM_PCM_REG12_DATA); in spm_get_wakeup_status()
212 wakesta->raw_sta = mmio_read_32(SPM_SLEEP_ISR_RAW_STA); in spm_get_wakeup_status()
213 wakesta->wake_misc = mmio_read_32(SPM_SLEEP_WAKEUP_MISC); in spm_get_wakeup_status()
214 wakesta->timer_out = mmio_read_32(SPM_PCM_TIMER_OUT); in spm_get_wakeup_status()
215 wakesta->r13 = mmio_read_32(SPM_PCM_REG13_DATA); in spm_get_wakeup_status()
216 wakesta->idle_sta = mmio_read_32(SPM_SLEEP_SUBSYS_IDLE_STA); in spm_get_wakeup_status()
217 wakesta->debug_flag = mmio_read_32(SPM_PCM_PASR_DPD_3); in spm_get_wakeup_status()
218 wakesta->event_reg = mmio_read_32(SPM_PCM_EVENT_REG_STA); in spm_get_wakeup_status()
219 wakesta->isr = mmio_read_32(SPM_SLEEP_ISR_STATUS); in spm_get_wakeup_status()
316 enum wake_reason_t spm_output_wake_reason(struct wake_status *wakesta) in spm_output_wake_reason() argument
323 if (wakesta->assert_pc != 0) { in spm_output_wake_reason()
325 wakesta->assert_pc, wakesta->r12, wakesta->r13, in spm_output_wake_reason()
326 wakesta->debug_flag); in spm_output_wake_reason()
330 if (wakesta->r12 & WAKE_SRC_SPM_MERGE) { in spm_output_wake_reason()
331 if (wakesta->wake_misc & WAKE_MISC_PCM_TIMER) in spm_output_wake_reason()
333 if (wakesta->wake_misc & WAKE_MISC_CPU_WAKE) in spm_output_wake_reason()
338 if (wakesta->r12 & (1U << i)) in spm_output_wake_reason()
342 if ((wakesta->event_reg & 0x100000) == 0) { in spm_output_wake_reason()
348 wakesta->timer_out, wakesta->r12, wakesta->r13, in spm_output_wake_reason()
349 wakesta->debug_flag); in spm_output_wake_reason()
352 wakesta->raw_sta, wakesta->idle_sta, wakesta->event_reg, in spm_output_wake_reason()
353 wakesta->isr); in spm_output_wake_reason()