Searched refs:nfrac (Results 1 – 2 of 2) sorted by relevance
/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()
|
/drivers/clk/at91/ |
D | clk-sam9x60-pll.c | 183 unsigned long nfrac = 0; in sam9x60_frac_pll_compute_mul_frac() local 197 nfrac = DIV_ROUND_CLOSEST_ULL((u64)remainder * (1 << 22), in sam9x60_frac_pll_compute_mul_frac() 200 tmprate += DIV_ROUND_CLOSEST_ULL((u64)nfrac * parent_rate, in sam9x60_frac_pll_compute_mul_frac() 210 frac->frac = nfrac; in sam9x60_frac_pll_compute_mul_frac()
|