Home
last modified time | relevance | path

Searched refs:freq_calc (Results 1 – 1 of 1) sorted by relevance

/drivers/net/can/mscan/
Dmpc5xxx_can.c117 unsigned long freq_calc; in mpc512x_can_get_clock() local
164 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()
165 freq_calc += 499999; in mpc512x_can_get_clock()
166 freq_calc /= 1000000; in mpc512x_can_get_clock()
167 freq_calc *= 1000000; in mpc512x_can_get_clock()
168 if ((freq_calc % 16000000) == 0) { in mpc512x_can_get_clock()
170 clockdiv = freq_calc / 16000000; in mpc512x_can_get_clock()
173 freq_calc, clockdiv, freq_calc / clockdiv); in mpc512x_can_get_clock()
183 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()
186 freq_calc, freq_calc); in mpc512x_can_get_clock()
[all …]