Home
last modified time | relevance | path

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

/linux/drivers/net/can/mscan/
H A Dmpc5xxx_can.c121 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()
[all …]