Lines Matching full:gr
94 query_cfi_load(struct hud_graph *gr, struct pipe_context *pipe) in query_cfi_load() argument
96 struct cpufreq_info *cfi = gr->query_data; in query_cfi_load()
100 if (cfi->last_time + gr->pane->period <= now) { in query_cfi_load()
106 hud_graph_add_value(gr, (uint64_t)cfi->KHz * 1000); in query_cfi_load()
127 struct hud_graph *gr; in hud_cpufreq_graph_install() local
138 gr = CALLOC_STRUCT(hud_graph); in hud_cpufreq_graph_install()
139 if (!gr) in hud_cpufreq_graph_install()
145 snprintf(gr->name, sizeof(gr->name), "%s-Min", cfi->name); in hud_cpufreq_graph_install()
148 snprintf(gr->name, sizeof(gr->name), "%s-Cur", cfi->name); in hud_cpufreq_graph_install()
151 snprintf(gr->name, sizeof(gr->name), "%s-Max", cfi->name); in hud_cpufreq_graph_install()
154 free(gr); in hud_cpufreq_graph_install()
158 gr->query_data = cfi; in hud_cpufreq_graph_install()
159 gr->query_new_value = query_cfi_load; in hud_cpufreq_graph_install()
161 hud_pane_add_graph(pane, gr); in hud_cpufreq_graph_install()