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