Lines Matching +full:rpm +full:- +full:msg +full:- +full:ram
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
34 /* Per-subsystem (*not necessarily* SoC-wide) XO shutdown stats */
43 struct master_stats_data *data = s->private; in master_stats_show()
46 memcpy_fromio(&stat, data->base, sizeof(stat)); in master_stats_show()
48 seq_printf(s, "%s:\n", data->label); in master_stats_show()
70 struct device *dev = &pdev->dev; in master_stats_probe()
77 count = of_property_count_strings(dev->of_node, "qcom,master-names"); in master_stats_probe()
83 return -ENOMEM; in master_stats_probe()
89 msgram_np = of_parse_phandle(dev->of_node, "qcom,rpm-msg-ram", i); in master_stats_probe()
92 return dev_err_probe(dev, -ENODEV, in master_stats_probe()
93 "Couldn't parse MSG RAM phandle idx %d", i); in master_stats_probe()
110 return dev_err_probe(dev, -EINVAL, in master_stats_probe()
111 "Could not map the MSG RAM slice idx %d!\n", i); in master_stats_probe()
114 ret = of_property_read_string_index(dev->of_node, "qcom,master-names", i, in master_stats_probe()
148 { .compatible = "qcom,rpm-master-stats" },
166 MODULE_DESCRIPTION("Qualcomm RPM Master Statistics driver");