Home
last modified time | relevance | path

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

/linux/drivers/iio/frequency/
H A Dadf4350.c47 unsigned r0_fract; member
191 st->r0_fract = do_div(tmp, st->r1_mod); in adf4350_set_freq()
197 if (st->r0_fract && st->r1_mod) { in adf4350_set_freq()
198 div_gcd = gcd(st->r1_mod, st->r0_fract); in adf4350_set_freq()
200 st->r0_fract /= div_gcd; in adf4350_set_freq()
202 st->r0_fract = 0; in adf4350_set_freq()
209 freq, st->fpfd, r_cnt, st->r0_int, st->r0_fract, st->r1_mod, in adf4350_set_freq()
214 ADF4350_REG0_FRACT(st->r0_fract); in adf4350_set_freq()
328 val = (u64)((st->r0_int * st->r1_mod) + st->r0_fract) * in adf4350_read()
403 tmp = (u64)(st->r0_int * st->r1_mod + st->r0_fract) * st->fpfd; in adf4350_clk_recalc_rate()