Home
last modified time | relevance | path

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

/linux/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.c411 core->pm_ops = venus_pm_get(core->res->hfi_version); in venus_probe()
412 if (!core->pm_ops) in venus_probe()
415 if (core->pm_ops->core_get) { in venus_probe()
416 ret = core->pm_ops->core_get(core); in venus_probe()
526 if (core->pm_ops->core_put) in venus_probe()
527 core->pm_ops->core_put(core); in venus_probe()
534 const struct venus_pm_ops *pm_ops = core->pm_ops; in venus_remove() local
555 if (pm_ops->core_put) in venus_remove()
556 pm_ops->core_put(core); in venus_remove()
580 const struct venus_pm_ops *pm_ops = core->pm_ops; in venus_runtime_suspend() local
[all …]
H A Dvenc.c1571 if (core->pm_ops->venc_get) { in venc_probe()
1572 ret = core->pm_ops->venc_get(dev); in venc_probe()
1615 if (core->pm_ops->venc_put) in venc_remove()
1616 core->pm_ops->venc_put(core->dev_enc); in venc_remove()
1622 const struct venus_pm_ops *pm_ops = core->pm_ops; in venc_runtime_suspend() local
1625 if (pm_ops->venc_power) in venc_runtime_suspend()
1626 ret = pm_ops->venc_power(dev, POWER_OFF); in venc_runtime_suspend()
1634 const struct venus_pm_ops *pm_ops = core->pm_ops; in venc_runtime_resume() local
1637 if (pm_ops->venc_power) in venc_runtime_resume()
1638 ret = pm_ops->venc_power(dev, POWER_ON); in venc_runtime_resume()
H A Dvdec.c1795 if (core->pm_ops->vdec_get) { in vdec_probe()
1796 ret = core->pm_ops->vdec_get(dev); in vdec_probe()
1839 if (core->pm_ops->vdec_put) in vdec_remove()
1840 core->pm_ops->vdec_put(core->dev_dec); in vdec_remove()
1846 const struct venus_pm_ops *pm_ops = core->pm_ops; in vdec_runtime_suspend() local
1849 if (pm_ops->vdec_power) in vdec_runtime_suspend()
1850 ret = pm_ops->vdec_power(dev, POWER_OFF); in vdec_runtime_suspend()
1858 const struct venus_pm_ops *pm_ops = core->pm_ops; in vdec_runtime_resume() local
1861 if (pm_ops->vdec_power) in vdec_runtime_resume()
1862 ret = pm_ops->vdec_power(dev, POWER_ON); in vdec_runtime_resume()
/linux/drivers/soc/ti/
H A Dpm33xx.c57 static struct am33xx_pm_platform_data *pm_ops; variable
139 if (!m3_ipc || !pm_ops) in am33xx_do_sram_idle()
145 return pm_ops->cpu_suspend(am33xx_do_wfi_sram, wfi_flags); 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()
203 ret = pm_ops->soc_suspend(suspend_state, am33xx_rtc_only_idle, in am33xx_pm_suspend()
211 pm_ops->restore_context(); in am33xx_pm_suspend()
216 ret = pm_ops->soc_suspend(suspend_state, am33xx_do_wfi_sram, in am33xx_pm_suspend()
251 if (suspend_state == PM_SUSPEND_MEM && pm_ops->check_off_mode_enable()) in am33xx_pm_suspend()
278 if (state == PM_SUSPEND_MEM && pm_ops->check_off_mode_enable()) { in am33xx_pm_begin()
[all …]
/linux/sound/soc/sof/
H A Dpm.c80 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in sof_resume()
140 if (pm_ops && pm_ops->ctx_restore) { in sof_resume()
141 ret = pm_ops->ctx_restore(sdev); in sof_resume()
232 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in sof_suspend()
286 if (pm_ops && pm_ops->ctx_save) { in sof_suspend()
287 ret = pm_ops->ctx_save(sdev); in sof_suspend()
331 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm);
338 pm_ops
76 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); sof_resume() local
199 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); sof_suspend() local
298 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); snd_sof_dsp_power_down_notify() local
[all...]
/linux/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.c674 const struct sof_ipc_pm_ops *pm_ops = sdev->ipc->ops->pm; in mtl_dsp_core_get() local
679 if (pm_ops->set_core_state) in mtl_dsp_core_get()
680 return pm_ops->set_core_state(sdev, core, true); in mtl_dsp_core_get()
687 const struct sof_ipc_pm_ops *pm_ops = sdev->ipc->ops->pm; in mtl_dsp_core_put() local
690 if (pm_ops->set_core_state) { in mtl_dsp_core_put()
691 ret = pm_ops->set_core_state(sdev, core, false); in mtl_dsp_core_put()
/linux/net/mptcp/
H A Dpm.c1076 struct mptcp_pm_ops *pm_ops; in mptcp_pm_find() local
1078 list_for_each_entry_rcu(pm_ops, &mptcp_pm_list, list) { in mptcp_pm_find()
1079 if (!strcmp(pm_ops->name, name)) in mptcp_pm_find()
1080 return pm_ops; in mptcp_pm_find()
1086 int mptcp_pm_validate(struct mptcp_pm_ops *pm_ops) in mptcp_pm_validate() argument
1091 int mptcp_pm_register(struct mptcp_pm_ops *pm_ops) in mptcp_pm_register() argument
1095 ret = mptcp_pm_validate(pm_ops); in mptcp_pm_register()
1100 if (mptcp_pm_find(pm_ops->name)) { in mptcp_pm_register()
1104 list_add_tail_rcu(&pm_ops->list, &mptcp_pm_list); in mptcp_pm_register()
1107 pr_debug("%s registered\n", pm_ops->name); in mptcp_pm_register()
[all …]
H A Dprotocol.h1120 int mptcp_pm_register(struct mptcp_pm_ops *pm_ops);
1121 void mptcp_pm_unregister(struct mptcp_pm_ops *pm_ops);
1122 int mptcp_pm_validate(struct mptcp_pm_ops *pm_ops);
/linux/drivers/firmware/
H A Dti_sci.c3208 struct ti_sci_pm_ops *pmops = &ops->pm_ops; in ti_sci_setup_ops()