Lines Matching refs:r1_mod
46 unsigned r1_mod; member
170 st->r1_mod = st->fpfd / chspc; in adf4350_set_freq()
176 } while ((st->r1_mod > ADF4350_MAX_MODULUS) && r_cnt); in adf4350_set_freq()
179 tmp = freq * (u64)st->r1_mod + (st->fpfd >> 1); in adf4350_set_freq()
181 st->r0_fract = do_div(tmp, st->r1_mod); in adf4350_set_freq()
187 if (st->r0_fract && st->r1_mod) { in adf4350_set_freq()
188 div_gcd = gcd(st->r1_mod, st->r0_fract); in adf4350_set_freq()
189 st->r1_mod /= div_gcd; in adf4350_set_freq()
193 st->r1_mod = 1; in adf4350_set_freq()
199 freq, st->fpfd, r_cnt, st->r0_int, st->r0_fract, st->r1_mod, in adf4350_set_freq()
207 ADF4350_REG1_MOD(st->r1_mod) | in adf4350_set_freq()
318 val = (u64)((st->r0_int * st->r1_mod) + st->r0_fract) * in adf4350_read()
320 do_div(val, st->r1_mod * (1 << st->r4_rf_div_sel)); in adf4350_read()