Lines Matching full:speed
228 void print_speed(unsigned long speed, int no_rounding) in print_speed() argument
233 if (speed > 1000000) in print_speed()
234 printf("%u.%06u GHz", ((unsigned int)speed / 1000000), in print_speed()
235 ((unsigned int)speed % 1000000)); in print_speed()
236 else if (speed > 1000) in print_speed()
237 printf("%u.%03u MHz", ((unsigned int)speed / 1000), in print_speed()
238 (unsigned int)(speed % 1000)); in print_speed()
240 printf("%lu kHz", speed); in print_speed()
242 if (speed > 1000000) { in print_speed()
243 tmp = speed % 10000; in print_speed()
245 speed += 10000; in print_speed()
246 printf("%u.%02u GHz", ((unsigned int)speed / 1000000), in print_speed()
247 ((unsigned int)(speed % 1000000) / 10000)); in print_speed()
248 } else if (speed > 100000) { in print_speed()
249 tmp = speed % 1000; in print_speed()
251 speed += 1000; in print_speed()
252 printf("%u MHz", ((unsigned int)speed / 1000)); in print_speed()
253 } else if (speed > 1000) { in print_speed()
254 tmp = speed % 100; in print_speed()
256 speed += 100; in print_speed()
257 printf("%u.%01u MHz", ((unsigned int)speed / 1000), in print_speed()
258 ((unsigned int)(speed % 1000) / 100)); in print_speed()