Lines Matching refs:core_mask
591 bool IntelAudioDsp::IsCoreEnabled(uint8_t core_mask) { in IsCoreEnabled() argument
593 bool enabled = (val & ADSP_REG_ADSPCS_CPA(core_mask)) && in IsCoreEnabled()
594 (val & ADSP_REG_ADSPCS_SPA(core_mask)) && in IsCoreEnabled()
595 !(val & ADSP_REG_ADSPCS_CSTALL(core_mask)) && in IsCoreEnabled()
596 !(val & ADSP_REG_ADSPCS_CRST(core_mask)); in IsCoreEnabled()
600 zx_status_t IntelAudioDsp::ResetCore(uint8_t core_mask) { in ResetCore() argument
602 REG_SET_BITS(®s()->adspcs, ADSP_REG_ADSPCS_CSTALL(core_mask)); in ResetCore()
605 REG_SET_BITS(®s()->adspcs, ADSP_REG_ADSPCS_CRST(core_mask)); in ResetCore()
610 [this, &core_mask]() -> bool { in ResetCore()
612 ADSP_REG_ADSPCS_CRST(core_mask)) != 0; in ResetCore()
616 zx_status_t IntelAudioDsp::UnResetCore(uint8_t core_mask) { in UnResetCore() argument
617 REG_CLR_BITS(®s()->adspcs, ADSP_REG_ADSPCS_CRST(core_mask)); in UnResetCore()
620 [this, &core_mask]() -> bool { in UnResetCore()
622 ADSP_REG_ADSPCS_CRST(core_mask)) == 0; in UnResetCore()
626 zx_status_t IntelAudioDsp::PowerDownCore(uint8_t core_mask) { in PowerDownCore() argument
627 REG_CLR_BITS(®s()->adspcs, ADSP_REG_ADSPCS_SPA(core_mask)); in PowerDownCore()
630 [this, &core_mask]() -> bool { in PowerDownCore()
632 ADSP_REG_ADSPCS_CPA(core_mask)) == 0; in PowerDownCore()
636 zx_status_t IntelAudioDsp::PowerUpCore(uint8_t core_mask) { in PowerUpCore() argument
637 REG_SET_BITS(®s()->adspcs, ADSP_REG_ADSPCS_SPA(core_mask)); in PowerUpCore()
640 [this, &core_mask]() -> bool { in PowerUpCore()
641 return (REG_RD(®s()->adspcs) & ADSP_REG_ADSPCS_CPA(core_mask)) != 0; in PowerUpCore()
645 void IntelAudioDsp::RunCore(uint8_t core_mask) { in RunCore() argument
646 REG_CLR_BITS(®s()->adspcs, ADSP_REG_ADSPCS_CSTALL(core_mask)); in RunCore()