Lines Matching refs:stat
71 static void qcom_print_stats(struct seq_file *s, const struct sleep_stats *stat)
73 u64 accumulated = stat->accumulated;
78 if (stat->last_entered_at > stat->last_exited_at)
79 accumulated += arch_timer_read_counter() - stat->last_entered_at;
81 seq_printf(s, "Count: %u\n", stat->count);
82 seq_printf(s, "Last Entered At: %llu\n", stat->last_entered_at);
83 seq_printf(s, "Last Exited At: %llu\n", stat->last_exited_at);
90 struct sleep_stats *stat;
93 stat = qcom_smem_get(subsystem->pid, subsystem->smem_item, NULL);
94 if (IS_ERR(stat))
97 qcom_print_stats(s, stat);
106 struct sleep_stats stat;
108 memcpy_fromio(&stat, reg, sizeof(stat));
109 qcom_print_stats(s, &stat);