Lines Matching refs:consts
48 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 = rps->min_freq; in get_ia_constants()
67 consts->max_gpu_freq = rps->max_freq; in get_ia_constants()
70 consts->min_gpu_freq /= GEN9_FREQ_SCALER; in get_ia_constants()
71 consts->max_gpu_freq /= GEN9_FREQ_SCALER; in get_ia_constants()
79 const struct ia_constants *consts, in calc_ia_freq() argument
84 const int diff = consts->max_gpu_freq - gpu_freq; in calc_ia_freq()
95 ring_freq = max(consts->min_ring_freq, gpu_freq); in calc_ia_freq()
98 ring_freq = max(consts->min_ring_freq, ring_freq); in calc_ia_freq()
115 ia_freq = consts->max_ia_freq - diff * scale / 2; in calc_ia_freq()
126 struct ia_constants consts; in gen6_update_ring_freq() local
129 if (!get_ia_constants(llc, &consts)) 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()