Searched refs:hw_div (Results 1 – 1 of 1) sorted by relevance
439 unsigned int div, hw_div; in ingenic_clk_calc_div() local450 hw_div = ingenic_clk_calc_hw_div(clk_info, div); in ingenic_clk_calc_div()452 return clk_info->div.div_table[hw_div]; in ingenic_clk_calc_div()506 unsigned int hw_div, div; in ingenic_clk_set_rate() local518 hw_div = ingenic_clk_calc_hw_div(clk_info, div); in ingenic_clk_set_rate()520 hw_div = ((div / clk_info->div.div) - 1); in ingenic_clk_set_rate()528 reg |= hw_div << clk_info->div.shift; in ingenic_clk_set_rate()