Searched refs:div_l (Results 1 – 2 of 2) sorted by relevance
/drivers/clk/bcm/ |
D | clk-iproc-asiu.c | 84 unsigned int div_h, div_l; in iproc_asiu_clk_recalc_rate() local 101 div_l = (val >> clk->div.low_shift) & bit_mask(clk->div.low_width); in iproc_asiu_clk_recalc_rate() 102 div_l++; 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() 154 div_l--; in iproc_asiu_clk_set_rate() 166 if (div_l) { in iproc_asiu_clk_set_rate() 168 val |= div_l << clk->div.low_shift; in iproc_asiu_clk_set_rate()
|
/drivers/hwmon/ |
D | aspeed-pwm-tacho.c | 507 u8 clk_unit, div_h, div_l, tacho_div; in aspeed_get_fan_tach_ch_measure_period() local 513 div_l = priv->type_pwm_clock_division_l[type]; in aspeed_get_fan_tach_ch_measure_period() 514 if (div_l == 0) in aspeed_get_fan_tach_ch_measure_period() 515 div_l = 1; in aspeed_get_fan_tach_ch_measure_period() 517 div_l = div_l * 2; 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()
|