Lines Matching refs:cur

195 						      struct rv6xx_sclk_stepping *cur,  in rv6xx_next_vco_step()  argument
200 next.post_divider = cur->post_divider; in rv6xx_next_vco_step()
203 next.vco_frequency = (cur->vco_frequency * (100 + step_size)) / 100; in rv6xx_next_vco_step()
205 next.vco_frequency = (cur->vco_frequency * 100 + 99 + step_size) / (100 + step_size); in rv6xx_next_vco_step()
211 struct rv6xx_sclk_stepping *cur, in rv6xx_can_step_post_div() argument
214 return (cur->post_divider > target->post_divider) && in rv6xx_can_step_post_div()
215 ((cur->vco_frequency * target->post_divider) <= in rv6xx_can_step_post_div()
216 (target->vco_frequency * (cur->post_divider - 1))); in rv6xx_can_step_post_div()
220 struct rv6xx_sclk_stepping *cur, in rv6xx_next_post_div_step() argument
223 struct rv6xx_sclk_stepping next = *cur; in rv6xx_next_post_div_step()
232 struct rv6xx_sclk_stepping *cur, in rv6xx_reached_stepping_target() argument
236 return (increasing_vco && (cur->vco_frequency >= target->vco_frequency)) || in rv6xx_reached_stepping_target()
237 (!increasing_vco && (cur->vco_frequency <= target->vco_frequency)); in rv6xx_reached_stepping_target()
244 struct rv6xx_sclk_stepping cur; in rv6xx_generate_steps() local
249 rv6xx_convert_clock_to_stepping(rdev, low, &cur); in rv6xx_generate_steps()
252 rv6xx_output_stepping(rdev, step_index++, &cur); in rv6xx_generate_steps()
254 increasing_vco = (target.vco_frequency >= cur.vco_frequency); in rv6xx_generate_steps()
256 if (target.post_divider > cur.post_divider) in rv6xx_generate_steps()
257 cur.post_divider = target.post_divider; in rv6xx_generate_steps()
262 if (rv6xx_can_step_post_div(rdev, &cur, &target)) in rv6xx_generate_steps()
263 next = rv6xx_next_post_div_step(rdev, &cur, &target); in rv6xx_generate_steps()
265 next = rv6xx_next_vco_step(rdev, &cur, increasing_vco, R600_VCOSTEPPCT_DFLT); in rv6xx_generate_steps()
272 if (!rv6xx_reached_stepping_target(rdev, &tiny, &cur, !increasing_vco)) in rv6xx_generate_steps()
290 cur = next; in rv6xx_generate_steps()