Home
last modified time | relevance | path

Searched refs:odiv (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/media/dvb-frontends/
A Dstb6100.c302 int psd2, odiv; in stb6100_get_frequency() local
310 odiv = (regs[STB6100_VCO] & STB6100_VCO_ODIV) >> STB6100_VCO_ODIV_SHIFT; in stb6100_get_frequency()
315 *frequency = state->frequency = fvco >> (odiv + 1); in stb6100_get_frequency()
319 state->frequency, odiv, psd2, state->reference, fvco, nint, nfrac); in stb6100_get_frequency()
333 u8 g, psd2, odiv; in stb6100_set_frequency() local
358 odiv = 1; in stb6100_set_frequency()
360 odiv = 0; in stb6100_set_frequency()
363 regs[STB6100_VCO] = 0xe0 | (odiv << STB6100_VCO_ODIV_SHIFT); in stb6100_set_frequency()
384 fvco = frequency << (1 + odiv); in stb6100_set_frequency()
435 frequency, srate, (unsigned int)g, (unsigned int)odiv, in stb6100_set_frequency()
/linux/drivers/clk/axs10x/
A Dpll_clock.c74 u32 odiv; member
143 u32 idiv, fbdiv, odiv; in axs10x_pll_recalc_rate() local
148 odiv = axs10x_div_get_value(axs10x_pll_read(clk, PLL_REG_ODIV)); in axs10x_pll_recalc_rate()
151 do_div(rate, idiv * odiv); in axs10x_pll_recalc_rate()
191 axs10x_encode_div(pll_cfg[i].odiv, 1)); in axs10x_pll_set_rate()
A Di2s_pll_clock.c105 unsigned int idiv, fbdiv, odiv; in i2s_pll_recalc_rate() local
109 odiv = i2s_pll_get_value(i2s_pll_read(clk, PLL_ODIV0_REG)); in i2s_pll_recalc_rate()
111 return ((parent_rate / idiv) * fbdiv) / odiv; in i2s_pll_recalc_rate()
/linux/drivers/clk/
A Dclk-hsdk-pll.c54 u32 odiv; member
147 val |= cfg->odiv << CGU_PLL_CTRL_ODIV_SHIFT; in hsdk_pll_set_cfg()
176 u32 idiv, fbdiv, odiv; in hsdk_pll_recalc_rate() local
196 odiv = 1 << ((val & CGU_PLL_CTRL_ODIV_MASK) >> CGU_PLL_CTRL_ODIV_SHIFT); in hsdk_pll_recalc_rate()
199 do_div(rate, idiv * odiv); in hsdk_pll_recalc_rate()
/linux/drivers/clk/microchip/
A Dclk-core.c591 static inline u32 spll_odiv_to_divider(u32 odiv) in spll_odiv_to_divider() argument
593 odiv = clamp_val(odiv, PLL_ODIV_MIN, PLL_ODIV_MAX); in spll_odiv_to_divider()
595 return 1 << odiv; in spll_odiv_to_divider()
649 u32 mult, odiv, div, v; in spll_clk_recalc_rate() local
653 odiv = ((v >> PLL_ODIV_SHIFT) & PLL_ODIV_MASK); in spll_clk_recalc_rate()
655 div = spll_odiv_to_divider(odiv); in spll_clk_recalc_rate()
681 u32 mult, odiv, v; in spll_clk_set_rate() local
684 ret = spll_calc_mult_div(pll, rate, parent_rate, &mult, &odiv); in spll_clk_set_rate()
705 v |= (mult << PLL_MULT_SHIFT) | (odiv << PLL_ODIV_SHIFT); in spll_clk_set_rate()

Completed in 12 milliseconds