Searched refs:calc_freq (Results 1 – 2 of 2) sorted by relevance
426 int calc_freq; in mpc512x_clk_setup_ref_clock() local447 calc_freq = clk_get_rate(clks[MPC512x_CLK_REF]); in mpc512x_clk_setup_ref_clock()448 calc_freq *= *sys_mul; in mpc512x_clk_setup_ref_clock()449 calc_freq /= *sys_div; in mpc512x_clk_setup_ref_clock()450 calc_freq /= 2; in mpc512x_clk_setup_ref_clock()451 calc_freq /= *ips_div; in mpc512x_clk_setup_ref_clock()452 if (bus_freq && calc_freq != bus_freq) in mpc512x_clk_setup_ref_clock()454 calc_freq, bus_freq); in mpc512x_clk_setup_ref_clock()456 calc_freq = bus_freq; /* start with IPS */ in mpc512x_clk_setup_ref_clock()457 calc_freq *= *ips_div; /* IPS -> CSB */ in mpc512x_clk_setup_ref_clock()[all …]
31 static int calc_freq(struct spu_gov_info_struct *info) in calc_freq() function57 target_freq = calc_freq(info); in spu_gov_work()