Lines Matching refs:speed
87 static void print_speed(unsigned long speed) in print_speed() argument
92 if (speed > 1000000) in print_speed()
93 printf("%u.%06u GHz", ((unsigned int) speed/1000000), in print_speed()
94 ((unsigned int) speed%1000000)); in print_speed()
95 else if (speed > 1000) in print_speed()
96 printf("%u.%03u MHz", ((unsigned int) speed/1000), in print_speed()
97 (unsigned int) (speed%1000)); in print_speed()
99 printf("%lu kHz", speed); in print_speed()
101 if (speed > 1000000) { in print_speed()
102 tmp = speed%10000; in print_speed()
104 speed += 10000; in print_speed()
105 printf("%u.%02u GHz", ((unsigned int) speed/1000000), in print_speed()
106 ((unsigned int) (speed%1000000)/10000)); in print_speed()
107 } else if (speed > 100000) { in print_speed()
108 tmp = speed%1000; in print_speed()
110 speed += 1000; in print_speed()
111 printf("%u MHz", ((unsigned int) speed/1000)); in print_speed()
112 } else if (speed > 1000) { in print_speed()
113 tmp = speed%100; in print_speed()
115 speed += 100; in print_speed()
116 printf("%u.%01u MHz", ((unsigned int) speed/1000), in print_speed()
117 ((unsigned int) (speed%1000)/100)); in print_speed()