Home
last modified time | relevance | path

Searched refs:target_state (Results 1 – 25 of 36) sorted by relevance

12

/openbmc/linux/sound/soc/sof/intel/
H A Dhda-dsp.c582 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()
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()
828 target_state.state, target_state.substate); in hda_dsp_resume()
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
[all …]
H A Dhda.h590 const struct sof_dsp_power_state *target_state);
592 const struct sof_dsp_power_state *target_state);
594 int hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state);
H A Dbyt.c86 static int byt_suspend(struct snd_sof_dev *sdev, u32 target_state) in byt_suspend() argument
/openbmc/linux/drivers/scsi/esas2r/
H A Desas2r_targdb.c53 t->target_state = TS_NOT_PRESENT; in esas2r_targ_db_initialize()
65 if (t->target_state != TS_PRESENT) in esas2r_targ_db_remove_all()
98 if (t->buffered_target_state != t->target_state) in esas2r_targ_db_report_changes()
135 if (t->target_state == TS_PRESENT) { in esas2r_targ_db_add_raid()
167 t->target_state = TS_PRESENT; in esas2r_targ_db_add_raid()
195 || t->target_state == TS_PRESENT) { in esas2r_targ_db_add_pthru()
216 t->target_state = TS_PRESENT; in esas2r_targ_db_add_pthru()
225 t->target_state = TS_NOT_PRESENT; in esas2r_targ_db_remove()
267 if (t->target_state == TS_PRESENT) in esas2r_targ_db_find_next_present()
282 if (t->target_state != TS_PRESENT) in esas2r_targ_db_find_by_virt_id()
[all …]
H A Desas2r_io.c73 if (unlikely(t->target_state != TS_PRESENT && in esas2r_start_request()
541 && t->target_state == TS_PRESENT in esas2r_build_sg_list_prd()
/openbmc/linux/drivers/acpi/
H A Dprocessor_throttling.c40 int target_state; member
203 int target_state; in acpi_processor_throttling_notifier() local
219 target_state = p_tstate->target_state; in acpi_processor_throttling_notifier()
238 p_tstate->target_state = target_state; in acpi_processor_throttling_notifier()
241 cpu, target_state); in acpi_processor_throttling_notifier()
251 cpu, target_state); in acpi_processor_throttling_notifier()
294 int target_state; in acpi_processor_tstate_has_changed() local
325 target_state = limit->user.tx; in acpi_processor_tstate_has_changed()
1078 t_state.target_state = state; in __acpi_processor_set_throttling()
1099 arg.target_state = state; in __acpi_processor_set_throttling()
[all …]
H A Ddevice_pm.c164 int target_state = state; in acpi_device_set_power() local
189 target_state = state; in acpi_device_set_power()
280 acpi_power_state_string(target_state)); in acpi_device_set_power()
282 device->power.state = target_state; in acpi_device_set_power()
284 acpi_power_state_string(target_state)); in acpi_device_set_power()
669 u32 target_state, int *d_min_p, int *d_max_p) in acpi_dev_pm_get_state() argument
693 if (target_state > ACPI_STATE_S0) { in acpi_dev_pm_get_state()
721 && adev->wakeup.sleep_state >= target_state; in acpi_dev_pm_get_state()
756 if (has_sxd && target_state > ACPI_STATE_S0) in acpi_dev_pm_get_state()
850 u32 target_state) in __acpi_device_wakeup_enable() argument
[all …]
/openbmc/linux/drivers/cpuidle/
H A Dcpuidle.c143 struct cpuidle_state *target_state = &drv->states[index]; in enter_s2idle_proper() local
157 if (!(target_state->flags & CPUIDLE_FLAG_RCU_IDLE)) { in enter_s2idle_proper()
162 target_state->enter_s2idle(dev, drv, index); in enter_s2idle_proper()
165 if (!(target_state->flags & CPUIDLE_FLAG_RCU_IDLE)) { in enter_s2idle_proper()
217 struct cpuidle_state *target_state = &drv->states[index]; in cpuidle_enter_state() local
235 target_state = &drv->states[index]; in cpuidle_enter_state()
239 if (target_state->flags & CPUIDLE_FLAG_TLB_FLUSHED) in cpuidle_enter_state()
243 sched_idle_set_state(target_state); in cpuidle_enter_state()
249 if (!(target_state->flags & CPUIDLE_FLAG_RCU_IDLE)) { in cpuidle_enter_state()
267 entered_state = target_state->enter(dev, drv, index); in cpuidle_enter_state()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Dpsci_test.c118 uint64_t target_state; in guest_test_cpu_on() local
123 target_state = psci_affinity_info(target_cpu, 0); in guest_test_cpu_on()
125 GUEST_ASSERT((target_state == PSCI_0_2_AFFINITY_LEVEL_ON) || in guest_test_cpu_on()
126 (target_state == PSCI_0_2_AFFINITY_LEVEL_OFF)); in guest_test_cpu_on()
127 } while (target_state != PSCI_0_2_AFFINITY_LEVEL_ON); in guest_test_cpu_on()
/openbmc/qemu/tests/qtest/fuzz/
H A Dfuzz.c70 FuzzTargetState *target_state; in fuzz_add_target() local
82 target_state = g_new0(FuzzTargetState, 1); in fuzz_add_target()
83 target_state->target = g_new0(FuzzTarget, 1); in fuzz_add_target()
84 *(target_state->target) = *target; in fuzz_add_target()
85 QSLIST_INSERT_HEAD(fuzz_target_list, target_state, target_list); in fuzz_add_target()
/openbmc/linux/sound/soc/sof/
H A Dpm.c202 u32 target_state = snd_sof_dsp_power_target(sdev); in sof_suspend() local
235 pm_state.event = target_state; in sof_suspend()
244 if (target_state == SOF_DSP_PM_D0) in sof_suspend()
279 ret = snd_sof_dsp_suspend(sdev, target_state); in sof_suspend()
286 if (target_state == SOF_DSP_PM_D0) in sof_suspend()
H A Dops.h227 u32 target_state) in snd_sof_dsp_suspend() argument
230 return sof_ops(sdev)->suspend(sdev, target_state); in snd_sof_dsp_suspend()
276 const struct sof_dsp_power_state *target_state) in snd_sof_dsp_set_power_state() argument
283 ret = sof_ops(sdev)->set_power_state(sdev, target_state); in snd_sof_dsp_set_power_state()
H A Dipc4.c369 const struct sof_dsp_power_state target_state = { in sof_ipc4_tx_msg() local
374 ret = snd_sof_dsp_set_power_state(sdev, &target_state); in sof_ipc4_tx_msg()
405 const struct sof_dsp_power_state target_state = { in sof_ipc4_set_get_data() local
439 ret = snd_sof_dsp_set_power_state(sdev, &target_state); in sof_ipc4_set_get_data()
H A Dsof-priv.h284 u32 target_state); /* optional */
291 const struct sof_dsp_power_state *target_state); /* optional */
/openbmc/linux/sound/soc/sof/imx/
H A Dimx8ulp.c350 static int imx8ulp_dsp_suspend(struct snd_sof_dev *sdev, unsigned int target_state) in imx8ulp_dsp_suspend() argument
353 .state = target_state, in imx8ulp_dsp_suspend()
409 const struct sof_dsp_power_state *target_state) in imx8ulp_dsp_set_power_state() argument
411 sdev->dsp_power_state = *target_state; in imx8ulp_dsp_set_power_state()
H A Dimx8m.c321 const struct sof_dsp_power_state *target_state) in imx8m_dsp_set_power_state() argument
323 sdev->dsp_power_state = *target_state; in imx8m_dsp_set_power_state()
402 static int imx8m_dsp_suspend(struct snd_sof_dev *sdev, unsigned int target_state) in imx8m_dsp_suspend() argument
405 .state = target_state, in imx8m_dsp_suspend()
H A Dimx8.c422 static int imx8_dsp_suspend(struct snd_sof_dev *sdev, unsigned int target_state) in imx8_dsp_suspend() argument
425 .state = target_state, in imx8_dsp_suspend()
482 const struct sof_dsp_power_state *target_state) in imx8_dsp_set_power_state() argument
484 sdev->dsp_power_state = *target_state; in imx8_dsp_set_power_state()
/openbmc/linux/sound/soc/intel/skylake/
H A Dbxt-sst.c292 int target_state; in bxt_set_dsp_D0i3() local
303 target_state = bxt_d0i3_target_state(ctx); in bxt_set_dsp_D0i3()
304 if (target_state == SKL_DSP_D0I3_NONE) in bxt_set_dsp_D0i3()
311 if (target_state == SKL_DSP_D0I3_STREAMING) in bxt_set_dsp_D0i3()
325 d0i3->state = target_state; in bxt_set_dsp_D0i3()
/openbmc/linux/sound/pci/hda/
H A Dhda_local.h612 unsigned int target_state) in snd_hda_check_power_state() argument
614 return snd_hdac_check_power_state(&codec->core, nid, target_state); in snd_hda_check_power_state()
619 unsigned int target_state) in snd_hda_sync_power_state() argument
621 return snd_hdac_sync_power_state(&codec->core, nid, target_state); in snd_hda_sync_power_state()
/openbmc/linux/drivers/media/platform/ti/cal/
H A Dcal-camerarx.c170 u32 target_state; in cal_camerarx_power() local
173 target_state = enable ? CAL_CSI2_COMPLEXIO_CFG_PWR_CMD_STATE_ON : in cal_camerarx_power()
177 target_state, CAL_CSI2_COMPLEXIO_CFG_PWR_CMD_MASK); in cal_camerarx_power()
186 if (current_state == target_state) in cal_camerarx_power()
/openbmc/linux/drivers/usb/typec/tipd/
H A Dcore.c664 static int cd321x_switch_power_state(struct tps6598x *tps, u8 target_state) in cd321x_switch_power_state() argument
673 if (state == target_state) in cd321x_switch_power_state()
676 ret = tps6598x_exec_cmd(tps, "SSPS", sizeof(u8), &target_state, 0, NULL); in cd321x_switch_power_state()
684 if (state != target_state) in cd321x_switch_power_state()
/openbmc/linux/drivers/pci/
H A Dpci.c2799 if (target_state == PCI_POWER_ERROR) in pci_prepare_to_sleep()
2802 pci_enable_wake(dev, target_state, wakeup); in pci_prepare_to_sleep()
2804 error = pci_set_power_state(dev, target_state); in pci_prepare_to_sleep()
2807 pci_enable_wake(dev, target_state, false); in pci_prepare_to_sleep()
2841 pci_power_t target_state; in pci_finish_runtime_suspend() local
2845 if (target_state == PCI_POWER_ERROR) in pci_finish_runtime_suspend()
2850 error = pci_set_power_state(dev, target_state); in pci_finish_runtime_suspend()
2853 pci_enable_wake(dev, target_state, false); in pci_finish_runtime_suspend()
2909 pci_power_t target_state; in pci_dev_need_resume() local
2921 return target_state != pci_dev->current_state && in pci_dev_need_resume()
[all …]
/openbmc/linux/sound/soc/sof/amd/
H A Dacp.h290 int amd_sof_acp_suspend(struct snd_sof_dev *sdev, u32 target_state);
/openbmc/linux/sound/hda/
H A Dhdac_device.c1058 hda_nid_t nid, unsigned int target_state) in snd_hdac_check_power_state() argument
1066 return (state == target_state); in snd_hdac_check_power_state()
/openbmc/linux/include/sound/
H A Dhdaudio.h158 hda_nid_t nid, unsigned int target_state);
160 hda_nid_t nid, unsigned int target_state);

12