Home
last modified time | relevance | path

Searched refs:pd_dev (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/drivers/cpuidle/
H A Dcpuidle-psci.c57 struct device *pd_dev = data->dev; in __psci_enter_domain_idle_state() local
67 dev_pm_genpd_suspend(pd_dev); in __psci_enter_domain_idle_state()
69 pm_runtime_put_sync_suspend(pd_dev); in __psci_enter_domain_idle_state()
78 dev_pm_genpd_resume(pd_dev); in __psci_enter_domain_idle_state()
80 pm_runtime_get_sync(pd_dev); in __psci_enter_domain_idle_state()
104 struct device *pd_dev = __this_cpu_read(psci_cpuidle_data.dev); in psci_idle_cpuhp_up() local
106 if (pd_dev) in psci_idle_cpuhp_up()
107 pm_runtime_get_sync(pd_dev); in psci_idle_cpuhp_up()
114 struct device *pd_dev = __this_cpu_read(psci_cpuidle_data.dev); in psci_idle_cpuhp_down() local
116 if (pd_dev) { in psci_idle_cpuhp_down()
[all …]
H A Dcpuidle-riscv-sbi.c116 struct device *pd_dev = data->dev; in __sbi_enter_domain_idle_state() local
126 dev_pm_genpd_suspend(pd_dev); in __sbi_enter_domain_idle_state()
128 pm_runtime_put_sync_suspend(pd_dev); in __sbi_enter_domain_idle_state()
142 dev_pm_genpd_resume(pd_dev); in __sbi_enter_domain_idle_state()
144 pm_runtime_get_sync(pd_dev); in __sbi_enter_domain_idle_state()
168 struct device *pd_dev = __this_cpu_read(sbi_cpuidle_data.dev); in sbi_cpuidle_cpuhp_up() local
170 if (pd_dev) in sbi_cpuidle_cpuhp_up()
171 pm_runtime_get_sync(pd_dev); in sbi_cpuidle_cpuhp_up()
178 struct device *pd_dev = __this_cpu_read(sbi_cpuidle_data.dev); in sbi_cpuidle_cpuhp_down() local
180 if (pd_dev) { in sbi_cpuidle_cpuhp_down()
[all...]
/openbmc/linux/drivers/clk/imx/
H A Dclk-imx8-acm.c28 struct device **pd_dev; member
267 dev_pm->pd_dev = devm_kmalloc_array(dev, dev_pm->num_domains, in clk_imx_acm_attach_pm_domains()
268 sizeof(*dev_pm->pd_dev), in clk_imx_acm_attach_pm_domains()
270 if (!dev_pm->pd_dev) in clk_imx_acm_attach_pm_domains()
281 dev_pm->pd_dev[i] = dev_pm_domain_attach_by_id(dev, i); in clk_imx_acm_attach_pm_domains()
282 if (IS_ERR(dev_pm->pd_dev[i])) { in clk_imx_acm_attach_pm_domains()
283 ret = PTR_ERR(dev_pm->pd_dev[i]); in clk_imx_acm_attach_pm_domains()
288 dev_pm->pd_dev[i], in clk_imx_acm_attach_pm_domains()
293 dev_pm_domain_detach(dev_pm->pd_dev[i], false); in clk_imx_acm_attach_pm_domains()
303 dev_pm_domain_detach(dev_pm->pd_dev[i], false); in clk_imx_acm_attach_pm_domains()
[all …]
/openbmc/linux/sound/soc/sof/imx/
H A Dimx8.c64 struct device **pd_dev; member
216 priv->pd_dev = devm_kmalloc_array(&pdev->dev, priv->num_domains, in imx8_probe()
217 sizeof(*priv->pd_dev), GFP_KERNEL); in imx8_probe()
218 if (!priv->pd_dev) in imx8_probe()
227 priv->pd_dev[i] = dev_pm_domain_attach_by_id(&pdev->dev, i); in imx8_probe()
228 if (IS_ERR(priv->pd_dev[i])) { in imx8_probe()
229 ret = PTR_ERR(priv->pd_dev[i]); in imx8_probe()
232 priv->link[i] = device_link_add(&pdev->dev, priv->pd_dev[i], in imx8_probe()
238 dev_pm_domain_detach(priv->pd_dev[i], false); in imx8_probe()
335 dev_pm_domain_detach(priv->pd_dev[i], false); in imx8_probe()
[all …]
/openbmc/linux/sound/soc/apple/
H A Dmca.c132 struct device *pd_dev; member
156 struct device *pd_dev; member
277 cl->pd_link = device_link_add(mca->dev, cl->pd_dev, in mca_fe_enable_clocks()
996 if (!IS_ERR_OR_NULL(cl->pd_dev)) in apple_mca_release()
997 dev_pm_domain_detach(cl->pd_dev, true); in apple_mca_release()
1003 if (!IS_ERR_OR_NULL(mca->pd_dev)) in apple_mca_release()
1004 dev_pm_domain_detach(mca->pd_dev, true); in apple_mca_release()
1051 mca->pd_dev = dev_pm_domain_attach_by_id(&pdev->dev, 0); in apple_mca_probe()
1052 if (IS_ERR(mca->pd_dev)) in apple_mca_probe()
1055 mca->pd_link = device_link_add(&pdev->dev, mca->pd_dev, in apple_mca_probe()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-topcliff-pch.c1439 static int pch_spi_pd_suspend(struct platform_device *pd_dev, in pch_spi_pd_suspend() argument
1443 struct pch_spi_board_data *board_dat = dev_get_platdata(&pd_dev->dev); in pch_spi_pd_suspend()
1444 struct pch_spi_data *data = platform_get_drvdata(pd_dev); in pch_spi_pd_suspend()
1446 dev_dbg(&pd_dev->dev, "%s ENTRY\n", __func__); in pch_spi_pd_suspend()
1449 dev_err(&pd_dev->dev, in pch_spi_pd_suspend()
1471 dev_dbg(&pd_dev->dev, in pch_spi_pd_suspend()
1478 static int pch_spi_pd_resume(struct platform_device *pd_dev) in pch_spi_pd_resume() argument
1480 struct pch_spi_board_data *board_dat = dev_get_platdata(&pd_dev->dev); in pch_spi_pd_resume()
1481 struct pch_spi_data *data = platform_get_drvdata(pd_dev); in pch_spi_pd_resume()
1485 dev_err(&pd_dev->dev, in pch_spi_pd_resume()
[all …]
/openbmc/linux/drivers/remoteproc/
H A Dimx_dsp_rproc.c124 struct device **pd_dev; member
967 priv->pd_dev = devm_kmalloc_array(dev, priv->num_domains, in imx_dsp_attach_pm_domains()
968 sizeof(*priv->pd_dev), in imx_dsp_attach_pm_domains()
970 if (!priv->pd_dev) in imx_dsp_attach_pm_domains()
980 priv->pd_dev[i] = dev_pm_domain_attach_by_id(dev, i); in imx_dsp_attach_pm_domains()
981 if (IS_ERR(priv->pd_dev[i])) { in imx_dsp_attach_pm_domains()
982 ret = PTR_ERR(priv->pd_dev[i]); in imx_dsp_attach_pm_domains()
991 priv->pd_dev[i], in imx_dsp_attach_pm_domains()
995 dev_pm_domain_detach(priv->pd_dev[i], false); in imx_dsp_attach_pm_domains()
1006 dev_pm_domain_detach(priv->pd_dev[i], false); in imx_dsp_attach_pm_domains()
[all …]
H A Dimx_rproc.c118 struct device **pd_dev; member
911 priv->pd_dev = devm_kmalloc_array(dev, priv->num_pd, sizeof(*priv->pd_dev), GFP_KERNEL); in imx_rproc_attach_pd()
912 if (!priv->pd_dev) in imx_rproc_attach_pd()
922 priv->pd_dev[i] = dev_pm_domain_attach_by_id(dev, i); in imx_rproc_attach_pd()
923 if (IS_ERR(priv->pd_dev[i])) { in imx_rproc_attach_pd()
924 ret = PTR_ERR(priv->pd_dev[i]); in imx_rproc_attach_pd()
928 priv->pd_dev_link[i] = device_link_add(dev, priv->pd_dev[i], DL_FLAG_STATELESS | in imx_rproc_attach_pd()
931 dev_pm_domain_detach(priv->pd_dev[i], false); in imx_rproc_attach_pd()
942 dev_pm_domain_detach(priv->pd_dev[i], false); in imx_rproc_attach_pd()
962 dev_pm_domain_detach(priv->pd_dev[i], false); in imx_rproc_detach_pd()
/openbmc/linux/drivers/dma/
H A Dfsl-edma-main.c398 if (fsl_chan->pd_dev) { in fsl_edma3_detach_pd()
399 dev_pm_domain_detach(fsl_chan->pd_dev, false); in fsl_edma3_detach_pd()
400 pm_runtime_dont_use_autosuspend(fsl_chan->pd_dev); in fsl_edma3_detach_pd()
401 pm_runtime_set_suspended(fsl_chan->pd_dev); in fsl_edma3_detach_pd()
441 fsl_chan->pd_dev = pd_chan; in fsl_edma3_attach_pd()
443 pm_runtime_use_autosuspend(fsl_chan->pd_dev); in fsl_edma3_attach_pd()
444 pm_runtime_set_autosuspend_delay(fsl_chan->pd_dev, 200); in fsl_edma3_attach_pd()
445 pm_runtime_set_active(fsl_chan->pd_dev); in fsl_edma3_attach_pd()
H A Dfsl-edma-common.h153 struct device *pd_dev; member
H A Dfsl-edma-common.c247 pm_runtime_allow(fsl_chan->pd_dev); in fsl_edma_terminate_all()
/openbmc/linux/drivers/gpu/drm/tegra/
H A Dgr3d.c381 struct device **opp_virt_devs, *pd_dev; in gr3d_init_power() local
422 pd_dev = opp_virt_devs[i]; in gr3d_init_power()
423 if (!pd_dev) { in gr3d_init_power()
429 link = device_link_add(dev, pd_dev, link_flags); in gr3d_init_power()
431 dev_err(dev, "failed to link to %s\n", dev_name(pd_dev)); in gr3d_init_power()
/openbmc/linux/drivers/nvme/host/
H A Dapple.c175 struct device **pd_dev; member
1340 if (!IS_ERR_OR_NULL(anv->pd_dev[i])) in apple_nvme_detach_genpd()
1341 dev_pm_domain_detach(anv->pd_dev[i], true); in apple_nvme_detach_genpd()
1355 anv->pd_dev = devm_kcalloc(dev, anv->pd_count, sizeof(*anv->pd_dev), in apple_nvme_attach_genpd()
1357 if (!anv->pd_dev) in apple_nvme_attach_genpd()
1366 anv->pd_dev[i] = dev_pm_domain_attach_by_id(dev, i); in apple_nvme_attach_genpd()
1367 if (IS_ERR(anv->pd_dev[i])) { in apple_nvme_attach_genpd()
1369 return PTR_ERR(anv->pd_dev[i]); in apple_nvme_attach_genpd()
1372 anv->pd_link[i] = device_link_add(dev, anv->pd_dev[i], in apple_nvme_attach_genpd()
/openbmc/linux/drivers/media/platform/nxp/imx-jpeg/
H A Dmxc-jpeg.c2677 if (jpeg->pd_dev[i] && !pm_runtime_suspended(jpeg->pd_dev[i])) in mxc_jpeg_detach_pm_domains()
2678 pm_runtime_force_suspend(jpeg->pd_dev[i]); in mxc_jpeg_detach_pm_domains()
2681 if (jpeg->pd_dev[i] && !IS_ERR(jpeg->pd_dev[i])) in mxc_jpeg_detach_pm_domains()
2682 dev_pm_domain_detach(jpeg->pd_dev[i], true); in mxc_jpeg_detach_pm_domains()
2683 jpeg->pd_dev[i] = NULL; in mxc_jpeg_detach_pm_domains()
2707 jpeg->pd_dev = devm_kmalloc_array(dev, jpeg->num_domains, in mxc_jpeg_attach_pm_domains()
2708 sizeof(*jpeg->pd_dev), GFP_KERNEL); in mxc_jpeg_attach_pm_domains()
2709 if (!jpeg->pd_dev) in mxc_jpeg_attach_pm_domains()
2718 jpeg->pd_dev[i] = dev_pm_domain_attach_by_id(dev, i); in mxc_jpeg_attach_pm_domains()
2719 if (IS_ERR(jpeg->pd_dev[i])) { in mxc_jpeg_attach_pm_domains()
[all …]
H A Dmxc-jpeg.h135 struct device **pd_dev; member
/openbmc/linux/drivers/opp/
H A Dcore.c1024 static int _set_performance_state(struct device *dev, struct device *pd_dev, in _set_performance_state() argument
1030 if (!pd_dev) in _set_performance_state()
1033 ret = dev_pm_genpd_set_performance_state(pd_dev, pstate); in _set_performance_state()
1036 dev_name(pd_dev), pstate, ret); in _set_performance_state()