Lines Matching refs:gr
175 query_nic_load(struct hud_graph *gr, struct pipe_context *pipe) in query_nic_load() argument
181 struct nic_info *nic = gr->query_data; in query_nic_load()
185 if (nic->last_time + gr->pane->period <= now) { in query_nic_load()
196 float periodMs = gr->pane->period / 1000.0; in query_nic_load()
208 hud_graph_add_value(gr, (uint64_t) pct); in query_nic_load()
217 hud_graph_add_value(gr, leveldBm); in query_nic_load()
250 struct hud_graph *gr; in hud_nic_graph_install() local
261 gr = CALLOC_STRUCT(hud_graph); in hud_nic_graph_install()
262 if (!gr) in hud_nic_graph_install()
267 snprintf(gr->name, sizeof(gr->name), "%s-rx-%"PRId64"Mbps", nic->name, in hud_nic_graph_install()
271 snprintf(gr->name, sizeof(gr->name), "%s-tx-%"PRId64"Mbps", nic->name, in hud_nic_graph_install()
275 snprintf(gr->name, sizeof(gr->name), "%s-rssi", nic->name); in hud_nic_graph_install()
277 free(gr); in hud_nic_graph_install()
281 gr->query_data = nic; in hud_nic_graph_install()
282 gr->query_new_value = query_nic_load; in hud_nic_graph_install()
284 hud_pane_add_graph(pane, gr); in hud_nic_graph_install()