Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/clk/bcm/
Dclk-iproc-asiu.c74 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.1.9/drivers/i2c/busses/
Di2c-meson.c143 unsigned int div_h, div_l; in meson_gxbb_axg_i2c_set_clk_div() local
153 div_h = DIV_ROUND_UP(clk_rate, freq); in meson_gxbb_axg_i2c_set_clk_div()
154 div_l = DIV_ROUND_UP(div_h, 4); in meson_gxbb_axg_i2c_set_clk_div()
155 div_h = DIV_ROUND_UP(div_h, 2) - FILTER_DELAY; in meson_gxbb_axg_i2c_set_clk_div()
157 div_h = DIV_ROUND_UP(clk_rate * 2, freq * 5) - FILTER_DELAY; in meson_gxbb_axg_i2c_set_clk_div()
162 if (div_h > GENMASK(11, 0)) { in meson_gxbb_axg_i2c_set_clk_div()
164 div_h = GENMASK(11, 0); in meson_gxbb_axg_i2c_set_clk_div()
172 FIELD_PREP(REG_CTRL_CLKDIV_MASK, div_h & GENMASK(9, 0))); in meson_gxbb_axg_i2c_set_clk_div()
175 FIELD_PREP(REG_CTRL_CLKDIVEXT_MASK, div_h >> 10)); in meson_gxbb_axg_i2c_set_clk_div()
185 clk_rate, freq, div_h, div_l); in meson_gxbb_axg_i2c_set_clk_div()
/linux-6.1.9/drivers/hwmon/
Daspeed-pwm-tacho.c505 u8 clk_unit, div_h, div_l, tacho_div; in aspeed_get_fan_tach_ch_measure_period() local
509 div_h = priv->type_pwm_clock_division_h[type]; in aspeed_get_fan_tach_ch_measure_period()
510 div_h = 0x1 << div_h; in aspeed_get_fan_tach_ch_measure_period()
521 return clk / (clk_unit * div_h * div_l * tacho_div * tacho_unit); in aspeed_get_fan_tach_ch_measure_period()
/linux-6.1.9/drivers/tty/serial/
Dsunplus-uart.c338 u32 ext, div, div_l, div_h, baud, lcr; in sunplus_set_termios() local
350 div_h = div >> 8; in sunplus_set_termios()
408 writel(div_h, port->membase + SUP_UART_DIV_H); in sunplus_set_termios()