Lines Matching refs:target_state

456 				const struct sof_dsp_power_state *target_state)  in hda_dsp_set_D0_state()  argument
478 sdev->dsp_power_state.state, target_state->state); in hda_dsp_set_D0_state()
483 if (target_state->substate == SOF_HDA_DSP_PM_D0I3) { in hda_dsp_set_D0_state()
578 const struct sof_dsp_power_state *target_state) in hda_dsp_set_power_state() argument
582 switch (target_state->state) { in hda_dsp_set_power_state()
584 ret = hda_dsp_set_D0_state(sdev, target_state); in hda_dsp_set_power_state()
594 sdev->dsp_power_state.state, target_state->state); in hda_dsp_set_power_state()
598 target_state->state); in hda_dsp_set_power_state()
604 target_state->state, target_state->substate); in hda_dsp_set_power_state()
608 sdev->dsp_power_state = *target_state; in hda_dsp_set_power_state()
614 const struct sof_dsp_power_state *target_state) in hda_dsp_set_power_state_ipc3() argument
623 if (target_state->substate == SOF_HDA_DSP_PM_D0I3 && in hda_dsp_set_power_state_ipc3()
625 return hda_dsp_set_power_state(sdev, target_state); in hda_dsp_set_power_state_ipc3()
631 if (target_state->state == sdev->dsp_power_state.state && in hda_dsp_set_power_state_ipc3()
632 target_state->substate == sdev->dsp_power_state.substate) in hda_dsp_set_power_state_ipc3()
635 return hda_dsp_set_power_state(sdev, target_state); in hda_dsp_set_power_state_ipc3()
639 const struct sof_dsp_power_state *target_state) in hda_dsp_set_power_state_ipc4() argument
642 if (target_state->state == sdev->dsp_power_state.state && in hda_dsp_set_power_state_ipc4()
643 target_state->substate == sdev->dsp_power_state.substate) in hda_dsp_set_power_state_ipc4()
646 return hda_dsp_set_power_state(sdev, target_state); in hda_dsp_set_power_state_ipc4()
805 const struct sof_dsp_power_state target_state = { in hda_dsp_resume() local
825 ret = snd_sof_dsp_set_power_state(sdev, &target_state); in hda_dsp_resume()
828 target_state.state, target_state.substate); in hda_dsp_resume()
849 return snd_sof_dsp_set_power_state(sdev, &target_state); in hda_dsp_resume()
854 const struct sof_dsp_power_state target_state = { in hda_dsp_runtime_resume() local
864 return snd_sof_dsp_set_power_state(sdev, &target_state); in hda_dsp_runtime_resume()
883 const struct sof_dsp_power_state target_state = { in hda_dsp_runtime_suspend() local
898 return snd_sof_dsp_set_power_state(sdev, &target_state); in hda_dsp_runtime_suspend()
901 int hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state) in hda_dsp_suspend() argument
907 .state = target_state, in hda_dsp_suspend()
908 .substate = target_state == SOF_DSP_PM_D0 ? in hda_dsp_suspend()
918 if (target_state == SOF_DSP_PM_D0) { in hda_dsp_suspend()
1058 struct sof_dsp_power_state target_state = { in hda_dsp_d0i3_work() local
1070 ret = snd_sof_dsp_set_power_state(sdev, &target_state); in hda_dsp_d0i3_work()
1074 target_state.state, target_state.substate); in hda_dsp_d0i3_work()