Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/frequency/
H A Dadf4350.c45 unsigned r1_mod; member
174 st->r1_mod = st->fpfd / chspc; in adf4350_set_freq()
180 } while ((st->r1_mod > ADF4350_MAX_MODULUS) && r_cnt); in adf4350_set_freq()
183 tmp = freq * (u64)st->r1_mod + (st->fpfd >> 1); in adf4350_set_freq()
185 st->r0_fract = do_div(tmp, st->r1_mod); in adf4350_set_freq()
191 if (st->r0_fract && st->r1_mod) { in adf4350_set_freq()
192 div_gcd = gcd(st->r1_mod, st->r0_fract); in adf4350_set_freq()
193 st->r1_mod /= div_gcd; in adf4350_set_freq()
197 st->r1_mod = 1; in adf4350_set_freq()
203 freq, st->fpfd, r_cnt, st->r0_int, st->r0_fract, st->r1_mod, in adf4350_set_freq()
[all …]