Lines Matching defs:cur
194 struct rv6xx_sclk_stepping *cur,
199 next.post_divider = cur->post_divider;
202 next.vco_frequency = (cur->vco_frequency * (100 + step_size)) / 100;
204 next.vco_frequency = (cur->vco_frequency * 100 + 99 + step_size) / (100 + step_size);
210 struct rv6xx_sclk_stepping *cur,
213 return (cur->post_divider > target->post_divider) &&
214 ((cur->vco_frequency * target->post_divider) <=
215 (target->vco_frequency * (cur->post_divider - 1)));
219 struct rv6xx_sclk_stepping *cur,
222 struct rv6xx_sclk_stepping next = *cur;
231 struct rv6xx_sclk_stepping *cur,
235 return (increasing_vco && (cur->vco_frequency >= target->vco_frequency)) ||
236 (!increasing_vco && (cur->vco_frequency <= target->vco_frequency));
243 struct rv6xx_sclk_stepping cur;
248 rv6xx_convert_clock_to_stepping(rdev, low, &cur);
251 rv6xx_output_stepping(rdev, step_index++, &cur);
253 increasing_vco = (target.vco_frequency >= cur.vco_frequency);
255 if (target.post_divider > cur.post_divider)
256 cur.post_divider = target.post_divider;
261 if (rv6xx_can_step_post_div(rdev, &cur, &target))
262 next = rv6xx_next_post_div_step(rdev, &cur, &target);
264 next = rv6xx_next_vco_step(rdev, &cur, increasing_vco, R600_VCOSTEPPCT_DFLT);
271 if (!rv6xx_reached_stepping_target(rdev, &tiny, &cur, !increasing_vco))
289 cur = next;