Lines Matching refs:gpu_freq
113 struct gpu_freq gpu_freq; member
139 struct overlay_gpu_freq gpu_freq; member
544 if (gpu_freq_init(&gf->gpu_freq) == 0) { in init_gpu_freq()
551 chart_set_range(&gf->current, 0, gf->gpu_freq.max); in init_gpu_freq()
559 chart_set_range(&gf->request, 0, gf->gpu_freq.max); in init_gpu_freq()
579 int has_freq = gpu_freq_update(&gf->gpu_freq) == 0; in show_gpu_freq()
590 if (gf->gpu_freq.error) { in show_gpu_freq()
602 if (gf->gpu_freq.current) in show_gpu_freq()
603 chart_add_sample(&gf->current, gf->gpu_freq.current); in show_gpu_freq()
604 if (gf->gpu_freq.request) in show_gpu_freq()
605 chart_add_sample(&gf->request, gf->gpu_freq.request); in show_gpu_freq()
649 len = sprintf(buf, "Frequency: %dMHz", gf->gpu_freq.current); in show_gpu_freq()
650 if (gf->gpu_freq.request) in show_gpu_freq()
652 sprintf(buf + len, " (requested %dMHz)", gf->gpu_freq.request); in show_gpu_freq()
660 sprintf(buf, " min: %dMHz, max: %dMHz", gf->gpu_freq.min, gf->gpu_freq.max); in show_gpu_freq()
926 init_gpu_freq(&ctx, &ctx.gpu_freq); in main()
942 show_gpu_freq(&ctx, &ctx.gpu_freq); in main()