Searched refs:div_h (Results 1 – 4 of 4) sorted by relevance
/linux-6.6.21/drivers/clk/bcm/ |
D | clk-iproc-asiu.c | 74 unsigned int div_h, div_l; in iproc_asiu_clk_recalc_rate() local 89 div_h = (val >> clk->div.high_shift) & bit_mask(clk->div.high_width); in iproc_asiu_clk_recalc_rate() 90 div_h++; in iproc_asiu_clk_recalc_rate() 94 clk->rate = parent_rate / (div_h + div_l); in iproc_asiu_clk_recalc_rate() 96 __func__, clk->rate, parent_rate, div_h, div_l); in iproc_asiu_clk_recalc_rate() 124 unsigned int div, div_h, div_l; in iproc_asiu_clk_set_rate() local 142 div_h = div_l = div >> 1; in iproc_asiu_clk_set_rate() 143 div_h--; in iproc_asiu_clk_set_rate() 148 if (div_h) { in iproc_asiu_clk_set_rate() 151 val |= div_h << clk->div.high_shift; in iproc_asiu_clk_set_rate()
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-meson.c | 142 unsigned int div_h, div_l; in meson_gxbb_axg_i2c_set_clk_div() local 152 div_h = DIV_ROUND_UP(clk_rate, freq); in meson_gxbb_axg_i2c_set_clk_div() 153 div_l = DIV_ROUND_UP(div_h, 4); in meson_gxbb_axg_i2c_set_clk_div() 154 div_h = DIV_ROUND_UP(div_h, 2) - FILTER_DELAY; in meson_gxbb_axg_i2c_set_clk_div() 156 div_h = DIV_ROUND_UP(clk_rate * 2, freq * 5) - FILTER_DELAY; in meson_gxbb_axg_i2c_set_clk_div() 161 if (div_h > GENMASK(11, 0)) { in meson_gxbb_axg_i2c_set_clk_div() 163 div_h = GENMASK(11, 0); in meson_gxbb_axg_i2c_set_clk_div() 171 FIELD_PREP(REG_CTRL_CLKDIV_MASK, div_h & GENMASK(9, 0))); in meson_gxbb_axg_i2c_set_clk_div() 174 FIELD_PREP(REG_CTRL_CLKDIVEXT_MASK, div_h >> 10)); in meson_gxbb_axg_i2c_set_clk_div() 184 clk_rate, freq, div_h, div_l); in meson_gxbb_axg_i2c_set_clk_div()
|
/linux-6.6.21/drivers/hwmon/ |
D | aspeed-pwm-tacho.c | 506 u8 clk_unit, div_h, div_l, tacho_div; in aspeed_get_fan_tach_ch_measure_period() local 510 div_h = priv->type_pwm_clock_division_h[type]; in aspeed_get_fan_tach_ch_measure_period() 511 div_h = 0x1 << div_h; in aspeed_get_fan_tach_ch_measure_period() 522 return clk / (clk_unit * div_h * div_l * tacho_div * tacho_unit); in aspeed_get_fan_tach_ch_measure_period()
|
/linux-6.6.21/drivers/tty/serial/ |
D | sunplus-uart.c | 336 u32 ext, div, div_l, div_h, baud, lcr; in sunplus_set_termios() local 348 div_h = div >> 8; in sunplus_set_termios() 406 writel(div_h, port->membase + SUP_UART_DIV_H); in sunplus_set_termios()
|