Home
last modified time | relevance | path

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

12

/linux-6.1.9/sound/soc/sof/intel/
Dhda-dsp.c407 const struct sof_dsp_power_state *target_state) in hda_dsp_set_D0_state() argument
429 sdev->dsp_power_state.state, target_state->state); in hda_dsp_set_D0_state()
434 if (target_state->substate == SOF_HDA_DSP_PM_D0I3) { in hda_dsp_set_D0_state()
526 const struct sof_dsp_power_state *target_state) in hda_dsp_set_power_state() argument
537 if (target_state->substate == SOF_HDA_DSP_PM_D0I3 && in hda_dsp_set_power_state()
545 if (target_state->state == sdev->dsp_power_state.state && in hda_dsp_set_power_state()
546 target_state->substate == sdev->dsp_power_state.substate) in hda_dsp_set_power_state()
550 switch (target_state->state) { in hda_dsp_set_power_state()
552 ret = hda_dsp_set_D0_state(sdev, target_state); in hda_dsp_set_power_state()
562 sdev->dsp_power_state.state, target_state->state); in hda_dsp_set_power_state()
[all …]
Dhda.h577 const struct sof_dsp_power_state *target_state);
579 int hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state);
Dbyt.c86 static int byt_suspend(struct snd_sof_dev *sdev, u32 target_state) in byt_suspend() argument
/linux-6.1.9/drivers/scsi/esas2r/
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()
99 state = 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()
[all …]
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()
Desas2r_ioctl.c560 || t->target_state != TS_PRESENT in csmi_ioctl_callback()
579 || t->target_state != TS_PRESENT in csmi_ioctl_callback()
1082 if (t->target_state != TS_PRESENT) { in hba_ioctl_callback()
1184 if (t->target_state != TS_PRESENT) { in hba_ioctl_callback()
/linux-6.1.9/drivers/acpi/
Dprocessor_throttling.c35 int target_state; /* target T-state */ member
40 int target_state; member
205 int target_state; in acpi_processor_throttling_notifier() local
221 target_state = p_tstate->target_state; in acpi_processor_throttling_notifier()
230 if (p_limit->thermal.tx > target_state) in acpi_processor_throttling_notifier()
231 target_state = p_limit->thermal.tx; in acpi_processor_throttling_notifier()
232 if (p_limit->user.tx > target_state) in acpi_processor_throttling_notifier()
233 target_state = p_limit->user.tx; in acpi_processor_throttling_notifier()
234 if (pr->throttling_platform_limit > target_state) in acpi_processor_throttling_notifier()
235 target_state = pr->throttling_platform_limit; in acpi_processor_throttling_notifier()
[all …]
Ddevice_pm.c164 int target_state = state; in acpi_device_set_power() local
189 target_state = state; in acpi_device_set_power()
240 result = acpi_power_transition(device, target_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()
637 u32 target_state, int *d_min_p, int *d_max_p) in acpi_dev_pm_get_state() argument
639 char method[] = { '_', 'S', '0' + target_state, 'D', '\0' }; in acpi_dev_pm_get_state()
661 if (target_state > ACPI_STATE_S0) { in acpi_dev_pm_get_state()
689 && adev->wakeup.sleep_state >= target_state; in acpi_dev_pm_get_state()
[all …]
/linux-6.1.9/drivers/cpuidle/
Dcpuidle.c143 struct cpuidle_state *target_state = &drv->states[index]; in enter_s2idle_proper() local
154 if (!(target_state->flags & CPUIDLE_FLAG_RCU_IDLE)) in enter_s2idle_proper()
156 target_state->enter_s2idle(dev, drv, index); in enter_s2idle_proper()
159 if (!(target_state->flags & CPUIDLE_FLAG_RCU_IDLE)) in enter_s2idle_proper()
207 struct cpuidle_state *target_state = &drv->states[index]; in cpuidle_enter_state() local
208 bool broadcast = !!(target_state->flags & CPUIDLE_FLAG_TIMER_STOP); in cpuidle_enter_state()
217 index = find_deepest_state(drv, dev, target_state->exit_latency_ns, in cpuidle_enter_state()
223 target_state = &drv->states[index]; in cpuidle_enter_state()
227 if (target_state->flags & CPUIDLE_FLAG_TLB_FLUSHED) in cpuidle_enter_state()
231 sched_idle_set_state(target_state); in cpuidle_enter_state()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/aarch64/
Dpsci_test.c119 uint64_t target_state; in guest_test_cpu_on() local
124 target_state = psci_affinity_info(target_cpu, 0); in guest_test_cpu_on()
126 GUEST_ASSERT((target_state == PSCI_0_2_AFFINITY_LEVEL_ON) || in guest_test_cpu_on()
127 (target_state == PSCI_0_2_AFFINITY_LEVEL_OFF)); in guest_test_cpu_on()
128 } while (target_state != PSCI_0_2_AFFINITY_LEVEL_ON); in guest_test_cpu_on()
/linux-6.1.9/sound/soc/sof/
Dpm.c185 u32 target_state = snd_sof_dsp_power_target(sdev); in sof_suspend() local
212 pm_state.event = target_state; in sof_suspend()
215 if (target_state == SOF_DSP_PM_D0) { in sof_suspend()
260 ret = snd_sof_dsp_suspend(sdev, target_state); in sof_suspend()
267 if (target_state == SOF_DSP_PM_D0) in sof_suspend()
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()
Dsof-priv.h250 u32 target_state); /* optional */
257 const struct sof_dsp_power_state *target_state); /* optional */
Dipc3.c359 const struct sof_dsp_power_state target_state = { in sof_ipc3_tx_msg() local
364 ret = snd_sof_dsp_set_power_state(sdev, &target_state); in sof_ipc3_tx_msg()
/linux-6.1.9/sound/soc/sof/imx/
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()
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()
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()
/linux-6.1.9/sound/soc/intel/skylake/
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()
/linux-6.1.9/sound/pci/hda/
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()
/linux-6.1.9/drivers/usb/typec/tipd/
Dcore.c636 static int cd321x_switch_power_state(struct tps6598x *tps, u8 target_state) in cd321x_switch_power_state() argument
645 if (state == target_state) in cd321x_switch_power_state()
648 ret = tps6598x_exec_cmd(tps, "SSPS", sizeof(u8), &target_state, 0, NULL); in cd321x_switch_power_state()
656 if (state != target_state) in cd321x_switch_power_state()
/linux-6.1.9/drivers/media/platform/ti/cal/
Dcal-camerarx.c164 u32 target_state; in cal_camerarx_power() local
167 target_state = enable ? CAL_CSI2_COMPLEXIO_CFG_PWR_CMD_STATE_ON : in cal_camerarx_power()
171 target_state, CAL_CSI2_COMPLEXIO_CFG_PWR_CMD_MASK); in cal_camerarx_power()
180 if (current_state == target_state) in cal_camerarx_power()
/linux-6.1.9/drivers/pci/
Dpci.c2707 pci_power_t target_state = pci_target_state(dev, wakeup); in pci_prepare_to_sleep() local
2710 if (target_state == PCI_POWER_ERROR) in pci_prepare_to_sleep()
2713 pci_enable_wake(dev, target_state, wakeup); in pci_prepare_to_sleep()
2715 error = pci_set_power_state(dev, target_state); in pci_prepare_to_sleep()
2718 pci_enable_wake(dev, target_state, false); in pci_prepare_to_sleep()
2752 pci_power_t target_state; in pci_finish_runtime_suspend() local
2755 target_state = pci_target_state(dev, device_can_wakeup(&dev->dev)); in pci_finish_runtime_suspend()
2756 if (target_state == PCI_POWER_ERROR) in pci_finish_runtime_suspend()
2759 __pci_enable_wake(dev, target_state, pci_dev_run_wake(dev)); in pci_finish_runtime_suspend()
2761 error = pci_set_power_state(dev, target_state); in pci_finish_runtime_suspend()
[all …]
/linux-6.1.9/sound/soc/sof/amd/
Dacp.h242 int amd_sof_acp_suspend(struct snd_sof_dev *sdev, u32 target_state);
/linux-6.1.9/include/sound/
Dhdaudio.h157 hda_nid_t nid, unsigned int target_state);
159 hda_nid_t nid, unsigned int target_state);
/linux-6.1.9/sound/hda/
Dhdac_device.c1057 hda_nid_t nid, unsigned int target_state) in snd_hdac_check_power_state() argument
1065 return (state == target_state); in snd_hdac_check_power_state()

12