Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/clk/ingenic/ !
Dcgu.c439 unsigned int div, hw_div; in ingenic_clk_calc_div() local
450 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() local
518 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()