Lines Matching full:gr
121 query_dsi_load(struct hud_graph *gr, struct pipe_context *pipe) in query_dsi_load() argument
126 struct diskstat_info *dsi = gr->query_data; in query_dsi_load()
130 if (dsi->last_time + gr->pane->period <= now) { in query_dsi_load()
141 (((float) gr->pane->period / 1000) / 1000); in query_dsi_load()
147 (((float) gr->pane->period / 1000) / 1000); in query_dsi_load()
151 hud_graph_add_value(gr, (uint64_t) val); in query_dsi_load()
178 struct hud_graph *gr; in hud_diskstat_graph_install() local
189 gr = CALLOC_STRUCT(hud_graph); in hud_diskstat_graph_install()
190 if (!gr) in hud_diskstat_graph_install()
195 snprintf(gr->name, sizeof(gr->name), "%s-Read-MB/s", dsi->name); in hud_diskstat_graph_install()
198 snprintf(gr->name, sizeof(gr->name), "%s-Write-MB/s", dsi->name); in hud_diskstat_graph_install()
201 free(gr); in hud_diskstat_graph_install()
205 gr->query_data = dsi; in hud_diskstat_graph_install()
206 gr->query_new_value = query_dsi_load; in hud_diskstat_graph_install()
208 hud_pane_add_graph(pane, gr); in hud_diskstat_graph_install()