Home
last modified time | relevance | path

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

/freebsd-14.2/sys/dev/iicbus/controller/vybrid/
H A Dvf_i2c.c173 uint8_t div_reg; in vf_i2c_attach_common() local
175 div_reg = READ1(sc, I2C_IBFD); in vf_i2c_attach_common()
177 if (div_reg != 0x00) { in vf_i2c_attach_common()
412 uint8_t div_reg = DIV_REG_UNSET; in i2c_get_div_val() local
417 return div_reg; in i2c_get_div_val()
422 div_reg = MVF600_DIV_REG; in i2c_get_div_val()
444 return div_reg; in i2c_get_div_val()
451 uint8_t div_reg; in i2c_reset() local
454 div_reg = i2c_get_div_val(dev); in i2c_reset()
460 if(div_reg != DIV_REG_UNSET) in i2c_reset()
[all …]
/freebsd-14.2/sys/arm64/rockchip/clk/
H A Drk_clk_composite.c199 uint32_t div, div_reg; in rk_clk_composite_find_best() local
205 for (div_reg = 0; div_reg <= ((sc->div_mask >> sc->div_shift) + 1); in rk_clk_composite_find_best()
206 div_reg++) { in rk_clk_composite_find_best()
208 div = 1 << div_reg; in rk_clk_composite_find_best()
210 div = div_reg + 1; in rk_clk_composite_find_best()
215 best_div_reg = div_reg; in rk_clk_composite_find_best()
231 uint32_t div, div_reg, best_div, best_div_reg, val; in rk_clk_composite_set_freq() local
243 div = rk_clk_composite_find_best(sc, fparent, *fout, &div_reg); in rk_clk_composite_set_freq()
248 best_div_reg = div_reg; in rk_clk_composite_set_freq()