Home
last modified time | relevance | path

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

/drivers/clk/bcm/
Dclk-iproc-asiu.c84 unsigned int div_h, div_l; in iproc_asiu_clk_recalc_rate() local
99 div_h = (val >> clk->div.high_shift) & bit_mask(clk->div.high_width); in iproc_asiu_clk_recalc_rate()
100 div_h++; in iproc_asiu_clk_recalc_rate()
104 clk->rate = parent_rate / (div_h + div_l); in iproc_asiu_clk_recalc_rate()
106 __func__, clk->rate, parent_rate, div_h, div_l); in iproc_asiu_clk_recalc_rate()
134 unsigned int div, div_h, div_l; in iproc_asiu_clk_set_rate() local
152 div_h = div_l = div >> 1; in iproc_asiu_clk_set_rate()
153 div_h--; in iproc_asiu_clk_set_rate()
158 if (div_h) { in iproc_asiu_clk_set_rate()
161 val |= div_h << clk->div.high_shift; in iproc_asiu_clk_set_rate()
/drivers/hwmon/
Daspeed-pwm-tacho.c507 u8 clk_unit, div_h, div_l, tacho_div; in aspeed_get_fan_tach_ch_measure_period() local
511 div_h = priv->type_pwm_clock_division_h[type]; in aspeed_get_fan_tach_ch_measure_period()
512 div_h = 0x1 << div_h; in aspeed_get_fan_tach_ch_measure_period()
523 return clk / (clk_unit * div_h * div_l * tacho_div * tacho_unit); in aspeed_get_fan_tach_ch_measure_period()