Lines Matching refs:freq_calc
121 unsigned long freq_calc; in mpc512x_can_get_clock() local
168 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()
169 freq_calc += 499999; in mpc512x_can_get_clock()
170 freq_calc /= 1000000; in mpc512x_can_get_clock()
171 freq_calc *= 1000000; in mpc512x_can_get_clock()
172 if ((freq_calc % 16000000) == 0) { in mpc512x_can_get_clock()
174 clockdiv = freq_calc / 16000000; in mpc512x_can_get_clock()
177 freq_calc, clockdiv, freq_calc / clockdiv); in mpc512x_can_get_clock()
187 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()
190 freq_calc, freq_calc); in mpc512x_can_get_clock()
205 freq_calc = clk_get_rate(clk_can); in mpc512x_can_get_clock()
208 *mscan_clksrc, freq_calc); in mpc512x_can_get_clock()
224 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()
225 freq_calc /= clockdiv; in mpc512x_can_get_clock()
226 clk_set_rate(clk_can, freq_calc); in mpc512x_can_get_clock()
227 freq_calc = clk_get_rate(clk_can); in mpc512x_can_get_clock()
230 *mscan_clksrc, freq_calc); in mpc512x_can_get_clock()
248 return freq_calc; in mpc512x_can_get_clock()