Lines Matching +full:shutdown +full:- +full:ack
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()
50 seq_printf(s, "\tLast shutdown @ %llu\n", stat.shutdown_req); in master_stats_show()
52 seq_printf(s, "\tLast bringup ack @ %llu\n", stat.bringup_ack); in master_stats_show()
54 seq_printf(s, "\tLast XO shutdown enter @ %llu\n", stat.xo_last_enter); in master_stats_show()
55 seq_printf(s, "\tLast XO shutdown exit @ %llu\n", stat.last_exit); in master_stats_show()
59 seq_printf(s, "\tXO shutdown count: %u\n", stat.xo_count); 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()
110 return dev_err_probe(dev, -EINVAL, 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" },