Lines Matching full:drv
54 struct qcom_cpufreq_drv *drv);
74 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_simple_get_version() argument
84 drv->versions = 1 << *speedbin; in qcom_cpufreq_simple_get_version()
170 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_kryo_name_version() argument
200 drv->versions = 1 << (unsigned int)(*speedbin); in qcom_cpufreq_kryo_name_version()
204 drv->versions = 1 << ((unsigned int)(*speedbin) + 4); in qcom_cpufreq_kryo_name_version()
218 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_krait_name_version() argument
247 drv->versions = (1 << speed); in qcom_cpufreq_krait_name_version()
257 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_ipq8064_name_version() argument
282 drv->versions = BIT(IPQ8062_VERSION); in qcom_cpufreq_ipq8064_name_version()
287 drv->versions = BIT(IPQ8064_VERSION); in qcom_cpufreq_ipq8064_name_version()
291 drv->versions = BIT(IPQ8065_VERSION); in qcom_cpufreq_ipq8064_name_version()
297 drv->versions = BIT(IPQ8062_VERSION); in qcom_cpufreq_ipq8064_name_version()
312 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_ipq6018_name_version() argument
337 drv->versions = 1 << (unsigned int)(*speedbin); in qcom_cpufreq_ipq6018_name_version()
346 drv->versions = IPQ6000_VERSION; in qcom_cpufreq_ipq6018_name_version()
352 drv->versions = IPQ6000_VERSION; in qcom_cpufreq_ipq6018_name_version()
363 struct qcom_cpufreq_drv *drv) in qcom_cpufreq_ipq8074_name_version() argument
379 drv->versions = BIT(IPQ8074_ACORN_VERSION); in qcom_cpufreq_ipq8074_name_version()
385 drv->versions = BIT(IPQ8074_HAWKEYE_VERSION); in qcom_cpufreq_ipq8074_name_version()
391 drv->versions = BIT(IPQ8074_ACORN_VERSION); in qcom_cpufreq_ipq8074_name_version()
431 static void qcom_cpufreq_suspend_virt_devs(struct qcom_cpufreq_drv *drv, unsigned int cpu) in qcom_cpufreq_suspend_virt_devs() argument
433 const char * const *name = drv->data->genpd_names; in qcom_cpufreq_suspend_virt_devs()
436 if (!drv->cpus[cpu].virt_devs) in qcom_cpufreq_suspend_virt_devs()
440 device_set_awake_path(drv->cpus[cpu].virt_devs[i]); in qcom_cpufreq_suspend_virt_devs()
443 static void qcom_cpufreq_put_virt_devs(struct qcom_cpufreq_drv *drv, unsigned int cpu) in qcom_cpufreq_put_virt_devs() argument
445 const char * const *name = drv->data->genpd_names; in qcom_cpufreq_put_virt_devs()
448 if (!drv->cpus[cpu].virt_devs) in qcom_cpufreq_put_virt_devs()
452 pm_runtime_put(drv->cpus[cpu].virt_devs[i]); in qcom_cpufreq_put_virt_devs()
457 struct qcom_cpufreq_drv *drv; in qcom_cpufreq_probe() local
480 drv = devm_kzalloc(&pdev->dev, struct_size(drv, cpus, num_possible_cpus()), in qcom_cpufreq_probe()
482 if (!drv) in qcom_cpufreq_probe()
486 drv->data = match->data; in qcom_cpufreq_probe()
487 if (!drv->data) in qcom_cpufreq_probe()
490 if (drv->data->get_version) { in qcom_cpufreq_probe()
496 ret = drv->data->get_version(cpu_dev, in qcom_cpufreq_probe()
497 speedbin_nvmem, &pvs_name, drv); in qcom_cpufreq_probe()
517 if (drv->data->get_version) { in qcom_cpufreq_probe()
518 config.supported_hw = &drv->versions; in qcom_cpufreq_probe()
525 if (drv->data->genpd_names) { in qcom_cpufreq_probe()
526 config.genpd_names = drv->data->genpd_names; in qcom_cpufreq_probe()
531 drv->cpus[cpu].opp_token = dev_pm_opp_set_config(cpu_dev, &config); in qcom_cpufreq_probe()
532 if (drv->cpus[cpu].opp_token < 0) { in qcom_cpufreq_probe()
533 ret = drv->cpus[cpu].opp_token; in qcom_cpufreq_probe()
557 drv->cpus[cpu].virt_devs = virt_devs; in qcom_cpufreq_probe()
564 platform_set_drvdata(pdev, drv); in qcom_cpufreq_probe()
573 qcom_cpufreq_put_virt_devs(drv, cpu); in qcom_cpufreq_probe()
574 dev_pm_opp_clear_config(drv->cpus[cpu].opp_token); in qcom_cpufreq_probe()
581 struct qcom_cpufreq_drv *drv = platform_get_drvdata(pdev); in qcom_cpufreq_remove() local
587 qcom_cpufreq_put_virt_devs(drv, cpu); in qcom_cpufreq_remove()
588 dev_pm_opp_clear_config(drv->cpus[cpu].opp_token); in qcom_cpufreq_remove()
594 struct qcom_cpufreq_drv *drv = dev_get_drvdata(dev); in qcom_cpufreq_suspend() local
598 qcom_cpufreq_suspend_virt_devs(drv, cpu); in qcom_cpufreq_suspend()