Lines Matching refs:consts
51 struct ia_constants *consts) in get_ia_constants() argument
59 consts->max_ia_freq = cpu_max_MHz(); in get_ia_constants()
61 consts->min_ring_freq = in get_ia_constants()
64 consts->min_ring_freq = mult_frac(consts->min_ring_freq, 8, 3); in get_ia_constants()
66 consts->min_gpu_freq = intel_rps_get_min_raw_freq(rps); in get_ia_constants()
67 consts->max_gpu_freq = intel_rps_get_max_raw_freq(rps); in get_ia_constants()
74 const struct ia_constants *consts, in calc_ia_freq() argument
79 const int diff = consts->max_gpu_freq - gpu_freq; in calc_ia_freq()
90 ring_freq = max(consts->min_ring_freq, gpu_freq); in calc_ia_freq()
93 ring_freq = max(consts->min_ring_freq, ring_freq); in calc_ia_freq()
110 ia_freq = consts->max_ia_freq - diff * scale / 2; in calc_ia_freq()
120 struct ia_constants consts; in gen6_update_ring_freq() local
123 if (!get_ia_constants(llc, &consts)) in gen6_update_ring_freq()
130 if (consts.max_gpu_freq <= consts.min_gpu_freq) in gen6_update_ring_freq()
137 for (gpu_freq = consts.max_gpu_freq; in gen6_update_ring_freq()
138 gpu_freq >= consts.min_gpu_freq; in gen6_update_ring_freq()
142 calc_ia_freq(llc, gpu_freq, &consts, &ia_freq, &ring_freq); in gen6_update_ring_freq()