Lines Matching full:pds

32 	struct device *pds[ARRAY_SIZE(qcom_ssc_block_pd_names)];  member
189 static int qcom_ssc_block_bus_pds_attach(struct device *dev, struct device **pds, in qcom_ssc_block_bus_pds_attach() argument
196 pds[i] = dev_pm_domain_attach_by_name(dev, pd_names[i]); in qcom_ssc_block_bus_pds_attach()
197 if (IS_ERR_OR_NULL(pds[i])) { in qcom_ssc_block_bus_pds_attach()
198 ret = PTR_ERR(pds[i]) ? : -ENODATA; in qcom_ssc_block_bus_pds_attach()
207 dev_pm_domain_detach(pds[i], false); in qcom_ssc_block_bus_pds_attach()
212 static void qcom_ssc_block_bus_pds_detach(struct device *dev, struct device **pds, size_t num_pds) in qcom_ssc_block_bus_pds_detach() argument
217 dev_pm_domain_detach(pds[i], false); in qcom_ssc_block_bus_pds_detach()
220 static int qcom_ssc_block_bus_pds_enable(struct device **pds, size_t num_pds) in qcom_ssc_block_bus_pds_enable() argument
226 dev_pm_genpd_set_performance_state(pds[i], INT_MAX); in qcom_ssc_block_bus_pds_enable()
227 ret = pm_runtime_get_sync(pds[i]); in qcom_ssc_block_bus_pds_enable()
236 dev_pm_genpd_set_performance_state(pds[i], 0); in qcom_ssc_block_bus_pds_enable()
237 pm_runtime_put(pds[i]); in qcom_ssc_block_bus_pds_enable()
243 static void qcom_ssc_block_bus_pds_disable(struct device **pds, size_t num_pds) in qcom_ssc_block_bus_pds_disable() argument
248 dev_pm_genpd_set_performance_state(pds[i], 0); in qcom_ssc_block_bus_pds_disable()
249 pm_runtime_put(pds[i]); in qcom_ssc_block_bus_pds_disable()
271 ret = qcom_ssc_block_bus_pds_attach(&pdev->dev, data->pds, data->pd_names, data->num_pds); in qcom_ssc_block_bus_probe()
275 ret = qcom_ssc_block_bus_pds_enable(data->pds, data->num_pds); in qcom_ssc_block_bus_probe()
362 qcom_ssc_block_bus_pds_disable(data->pds, data->num_pds); in qcom_ssc_block_bus_remove()
363 qcom_ssc_block_bus_pds_detach(&pdev->dev, data->pds, data->num_pds); in qcom_ssc_block_bus_remove()