Home
last modified time | relevance | path

Searched refs:pm_ops (Results 1 – 17 of 17) sorted by relevance

/linux-6.15/drivers/media/platform/qcom/venus/
H A Dpm_helpers.h36 if (!core->pm_ops || !core->pm_ops->load_scale) in venus_pm_load_scale()
39 return core->pm_ops->load_scale(inst); in venus_pm_load_scale()
45 const struct venus_pm_ops *pm_ops = core->pm_ops; in venus_pm_acquire_core() local
48 if (pm_ops && pm_ops->coreid_power) in venus_pm_acquire_core()
49 ret = pm_ops->coreid_power(inst, POWER_ON); in venus_pm_acquire_core()
57 const struct venus_pm_ops *pm_ops = core->pm_ops; in venus_pm_release_core() local
60 if (pm_ops && pm_ops->coreid_power) in venus_pm_release_core()
61 ret = pm_ops->coreid_power(inst, POWER_OFF); in venus_pm_release_core()
H A Dcore.c407 if (!core->pm_ops) in venus_probe()
410 if (core->pm_ops->core_get) { in venus_probe()
513 if (core->pm_ops->core_put) in venus_probe()
521 const struct venus_pm_ops *pm_ops = core->pm_ops; in venus_remove() local
542 if (pm_ops->core_put) in venus_remove()
543 pm_ops->core_put(core); in venus_remove()
567 const struct venus_pm_ops *pm_ops = core->pm_ops; in venus_runtime_suspend() local
574 if (pm_ops->core_power) { in venus_runtime_suspend()
593 if (pm_ops->core_power) in venus_runtime_suspend()
622 const struct venus_pm_ops *pm_ops = core->pm_ops; in venus_runtime_resume() local
[all …]
H A Dvenc.c1575 if (core->pm_ops->venc_get) { in venc_probe()
1576 ret = core->pm_ops->venc_get(dev); in venc_probe()
1619 if (core->pm_ops->venc_put) in venc_remove()
1620 core->pm_ops->venc_put(core->dev_enc); in venc_remove()
1626 const struct venus_pm_ops *pm_ops = core->pm_ops; in venc_runtime_suspend() local
1629 if (pm_ops->venc_power) in venc_runtime_suspend()
1630 ret = pm_ops->venc_power(dev, POWER_OFF); in venc_runtime_suspend()
1638 const struct venus_pm_ops *pm_ops = core->pm_ops; in venc_runtime_resume() local
1641 if (pm_ops->venc_power) in venc_runtime_resume()
1642 ret = pm_ops->venc_power(dev, POWER_ON); in venc_runtime_resume()
H A Dvdec.c1783 if (core->pm_ops->vdec_get) { in vdec_probe()
1784 ret = core->pm_ops->vdec_get(dev); in vdec_probe()
1827 if (core->pm_ops->vdec_put) in vdec_remove()
1828 core->pm_ops->vdec_put(core->dev_dec); in vdec_remove()
1834 const struct venus_pm_ops *pm_ops = core->pm_ops; in vdec_runtime_suspend() local
1837 if (pm_ops->vdec_power) in vdec_runtime_suspend()
1838 ret = pm_ops->vdec_power(dev, POWER_OFF); in vdec_runtime_suspend()
1846 const struct venus_pm_ops *pm_ops = core->pm_ops; in vdec_runtime_resume() local
1849 if (pm_ops->vdec_power) in vdec_runtime_resume()
1850 ret = pm_ops->vdec_power(dev, POWER_ON); in vdec_runtime_resume()
H A Dcore.h218 const struct venus_pm_ops *pm_ops; member
/linux-6.15/drivers/soc/ti/
H A Dpm33xx.c139 if (!m3_ipc || !pm_ops) in am33xx_do_sram_idle()
193 pm_ops->check_off_mode_enable()) { in am33xx_pm_suspend()
200 pm_ops->save_context(); in am33xx_pm_suspend()
211 pm_ops->restore_context(); in am33xx_pm_suspend()
289 pm_ops->begin_suspend(); in am33xx_pm_begin()
333 pm_ops->finish_suspend(); in am33xx_pm_end()
492 pm_ops = dev->platform_data; in am33xx_pm_probe()
493 if (!pm_ops) { in am33xx_pm_probe()
504 pm_sram = pm_ops->get_sram_addrs(); in am33xx_pm_probe()
580 if (pm_ops->deinit) in am33xx_pm_remove()
[all …]
/linux-6.15/sound/soc/sof/
H A Dpm.c76 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in sof_resume() local
175 if (pm_ops && pm_ops->ctx_restore) { in sof_resume()
176 ret = pm_ops->ctx_restore(sdev); in sof_resume()
199 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in sof_suspend() local
253 if (pm_ops && pm_ops->ctx_save) { in sof_suspend()
254 ret = pm_ops->ctx_save(sdev); in sof_suspend()
298 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in snd_sof_dsp_power_down_notify() local
301 if (sof_ops(sdev)->remove && pm_ops && pm_ops->ctx_save) in snd_sof_dsp_power_down_notify()
302 return pm_ops->ctx_save(sdev); in snd_sof_dsp_power_down_notify()
/linux-6.15/sound/soc/sof/intel/
H A Dtgl.c34 const struct sof_ipc_pm_ops *pm_ops = sdev->ipc->ops->pm; in tgl_dsp_core_get() local
40 if (pm_ops->set_core_state) in tgl_dsp_core_get()
41 return pm_ops->set_core_state(sdev, core, true); in tgl_dsp_core_get()
48 const struct sof_ipc_pm_ops *pm_ops = sdev->ipc->ops->pm; in tgl_dsp_core_put() local
51 if (pm_ops->set_core_state) { in tgl_dsp_core_put()
52 ret = pm_ops->set_core_state(sdev, core, false); in tgl_dsp_core_put()
H A Dmtl.c677 const struct sof_ipc_pm_ops *pm_ops = sdev->ipc->ops->pm; in mtl_dsp_core_get() local
682 if (pm_ops->set_core_state) in mtl_dsp_core_get()
683 return pm_ops->set_core_state(sdev, core, true); in mtl_dsp_core_get()
690 const struct sof_ipc_pm_ops *pm_ops = sdev->ipc->ops->pm; in mtl_dsp_core_put() local
693 if (pm_ops->set_core_state) { in mtl_dsp_core_put()
694 ret = pm_ops->set_core_state(sdev, core, false); in mtl_dsp_core_put()
H A Dhda-dsp.c472 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in hda_dsp_send_pm_gate_ipc() local
474 if (pm_ops && pm_ops->set_pm_gate) in hda_dsp_send_pm_gate_ipc()
475 return pm_ops->set_pm_gate(sdev, flags); in hda_dsp_send_pm_gate_ipc()
1196 const struct sof_ipc_pm_ops *pm_ops = sdev->ipc->ops->pm; in hda_dsp_core_get() local
1212 if (!pm_ops->set_core_state) in hda_dsp_core_get()
1216 ret = pm_ops->set_core_state(sdev, core, true); in hda_dsp_core_get()
/linux-6.15/net/mptcp/
H A Dpm.c1028 struct mptcp_pm_ops *pm_ops; in mptcp_pm_find() local
1031 if (!strcmp(pm_ops->name, name)) in mptcp_pm_find()
1032 return pm_ops; in mptcp_pm_find()
1038 int mptcp_pm_validate(struct mptcp_pm_ops *pm_ops) in mptcp_pm_validate() argument
1047 ret = mptcp_pm_validate(pm_ops); in mptcp_pm_register()
1052 if (mptcp_pm_find(pm_ops->name)) { in mptcp_pm_register()
1059 pr_debug("%s registered\n", pm_ops->name); in mptcp_pm_register()
1066 if (WARN_ON_ONCE(pm_ops == &mptcp_pm_kernel)) in mptcp_pm_unregister()
1070 list_del_rcu(&pm_ops->list); in mptcp_pm_unregister()
1079 struct mptcp_pm_ops *pm_ops; in mptcp_pm_get_available() local
[all …]
H A Dctrl.c186 struct mptcp_pm_ops *pm_ops; in mptcp_set_path_manager() local
190 pm_ops = mptcp_pm_find(name); in mptcp_set_path_manager()
191 if (pm_ops) in mptcp_set_path_manager()
H A Dprotocol.h1058 int mptcp_pm_register(struct mptcp_pm_ops *pm_ops);
1059 void mptcp_pm_unregister(struct mptcp_pm_ops *pm_ops);
1060 int mptcp_pm_validate(struct mptcp_pm_ops *pm_ops);
/linux-6.15/include/trace/events/
H A Dpower.h237 TP_PROTO(struct device *dev, const char *pm_ops, int event),
239 TP_ARGS(dev, pm_ops, event),
245 __string(pm_ops, pm_ops ? pm_ops : "none ")
253 __assign_str(pm_ops);
258 __get_str(device), __get_str(parent), __get_str(pm_ops),
/linux-6.15/drivers/pmdomain/ti/
H A Dti_sci_pm_domains.c72 ret = ti_sci->ops.pm_ops.set_latency_constraint(ti_sci, val_ms, TISCI_MSG_CONSTRAINT_SET); in ti_sci_pd_set_lat_constraint()
99 ret = ti_sci->ops.pm_ops.set_device_constraint(ti_sci, pd->idx, in ti_sci_pd_set_wkup_constraint()
263 if (pd_provider->ti_sci->ops.pm_ops.set_device_constraint && in ti_sci_pm_domain_probe()
264 pd_provider->ti_sci->ops.pm_ops.set_latency_constraint) in ti_sci_pm_domain_probe()
/linux-6.15/include/linux/soc/ti/
H A Dti_sci_protocol.h571 struct ti_sci_pm_ops pm_ops; member
/linux-6.15/drivers/firmware/
H A Dti_sci.c3160 struct ti_sci_pm_ops *pmops = &ops->pm_ops; in ti_sci_setup_ops()