Searched refs:nfrac (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/media/dvb-frontends/ |
D | stb6100.c | 301 u32 nint, nfrac, fvco; in stb6100_get_frequency() local 313 nfrac = ((regs[STB6100_K] & STB6100_K_NF_MSB) << 8) | regs[STB6100_NF_LSB]; in stb6100_get_frequency() 314 fvco = (nfrac * state->reference >> (9 - psd2)) + (nint * state->reference << psd2); in stb6100_get_frequency() 319 state->frequency, odiv, psd2, state->reference, fvco, nint, nfrac); in stb6100_get_frequency() 331 u32 srate = 0, fvco, nint, nfrac; in stb6100_set_frequency() local 388 nfrac = DIV_ROUND_CLOSEST((fvco - (nint * state->reference << psd2)) in stb6100_set_frequency() 398 regs[STB6100_NF_LSB] = nfrac; in stb6100_set_frequency() 405 regs[STB6100_K] = (regs[STB6100_K] & ~STB6100_K_NF_MSB) | ((nfrac >> 8) & STB6100_K_NF_MSB); in stb6100_set_frequency() 437 ptr->reg, fvco, nint, nfrac); in stb6100_set_frequency()
|
/Linux-v6.1/arch/mips/ath79/ |
D | clock.c | 212 static u32 __init ar934x_get_pll_freq(u32 ref, u32 ref_div, u32 nint, u32 nfrac, in ar934x_get_pll_freq() argument 224 t *= nfrac; in ar934x_get_pll_freq() 238 u32 pll, out_div, ref_div, nint, nfrac, frac, clk_ctrl, postdiv; in ar934x_clocks_init() local 260 nfrac = pll & AR934X_SRIF_DPLL1_NFRAC_MASK; in ar934x_clocks_init() 272 nfrac = (pll >> AR934X_PLL_CPU_CONFIG_NFRAC_SHIFT) & in ar934x_clocks_init() 278 nfrac, frac, out_div); in ar934x_clocks_init() 287 nfrac = pll & AR934X_SRIF_DPLL1_NFRAC_MASK; in ar934x_clocks_init() 299 nfrac = (pll >> AR934X_PLL_DDR_CONFIG_NFRAC_SHIFT) & in ar934x_clocks_init() 305 nfrac, frac, out_div); in ar934x_clocks_init()
|
/Linux-v6.1/drivers/clk/at91/ |
D | clk-sam9x60-pll.c | 195 unsigned long nfrac = 0; in sam9x60_frac_pll_compute_mul_frac() local 209 nfrac = DIV_ROUND_CLOSEST_ULL((u64)remainder * (1 << 22), in sam9x60_frac_pll_compute_mul_frac() 212 tmprate += DIV_ROUND_CLOSEST_ULL((u64)nfrac * parent_rate, in sam9x60_frac_pll_compute_mul_frac() 222 frac->frac = nfrac; in sam9x60_frac_pll_compute_mul_frac()
|