Lines Matching +full:target +full:- +full:rpm
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2011-2021, The Linux Foundation. All rights reserved.
77 u64 accumulated = stat->accumulated; in qcom_print_stats()
82 if (stat->last_entered_at > stat->last_exited_at) in qcom_print_stats()
83 accumulated += arch_timer_read_counter() - stat->last_entered_at; in qcom_print_stats()
85 seq_printf(s, "Count: %u\n", stat->count); in qcom_print_stats()
86 seq_printf(s, "Last Entered At: %llu\n", stat->last_entered_at); in qcom_print_stats()
87 seq_printf(s, "Last Exited At: %llu\n", stat->last_exited_at); in qcom_print_stats()
93 struct subsystem_data *subsystem = s->private; in qcom_subsystem_sleep_stats_show()
97 stat = qcom_smem_get(subsystem->pid, subsystem->smem_item, NULL); in qcom_subsystem_sleep_stats_show()
108 struct stats_data *d = s->private; in qcom_soc_sleep_stats_show()
109 void __iomem *reg = d->base; in qcom_soc_sleep_stats_show()
115 if (d->appended_stats_avail) { in qcom_soc_sleep_stats_show()
133 size_t stats_offset = config->stats_offset; in qcom_create_soc_sleep_stat_files()
138 * On RPM targets, stats offset location is dynamic and changes from target in qcom_create_soc_sleep_stat_files()
139 * to target and sometimes from build to build for same target. in qcom_create_soc_sleep_stat_files()
144 if (config->dynamic_offset) { in qcom_create_soc_sleep_stat_files()
149 for (i = 0; i < config->num_records; i++) { in qcom_create_soc_sleep_stat_files()
156 * For rpmh-sleep-stats: "aosd", "cxsd" and "ddr". in qcom_create_soc_sleep_stat_files()
157 * For rpm-sleep-stats: "vmin" and "vlow". in qcom_create_soc_sleep_stat_files()
179 if (!config->subsystem_stats_in_smem) in qcom_create_subsystem_stat_files()
195 config = device_get_match_data(&pdev->dev); in qcom_stats_probe()
197 return -ENODEV; in qcom_stats_probe()
201 return -ENOMEM; in qcom_stats_probe()
203 d = devm_kcalloc(&pdev->dev, config->num_records, in qcom_stats_probe()
206 return -ENOMEM; in qcom_stats_probe()
208 for (i = 0; i < config->num_records; i++) in qcom_stats_probe()
209 d[i].appended_stats_avail = config->appended_stats_avail; in qcom_stats_probe()
218 device_set_pm_not_required(&pdev->dev); in qcom_stats_probe()
238 /* Older RPM firmwares have the stats at a fixed offset instead */
264 { .compatible = "qcom,apq8084-rpm-stats", .data = &rpm_data_dba0 },
265 { .compatible = "qcom,msm8226-rpm-stats", .data = &rpm_data_dba0 },
266 { .compatible = "qcom,msm8916-rpm-stats", .data = &rpm_data_dba0 },
267 { .compatible = "qcom,msm8974-rpm-stats", .data = &rpm_data_dba0 },
268 { .compatible = "qcom,rpm-stats", .data = &rpm_data },
269 { .compatible = "qcom,rpmh-stats", .data = &rpmh_data },
270 { .compatible = "qcom,sdm845-rpmh-stats", .data = &rpmh_data_sdm845 },