Lines Matching refs:r_cnt
122 static int adf4350_tune_r_cnt(struct adf4350_state *st, unsigned short r_cnt) in adf4350_tune_r_cnt() argument
127 r_cnt++; in adf4350_tune_r_cnt()
129 (r_cnt * (pdata->ref_div2_en ? 2 : 1)); in adf4350_tune_r_cnt()
132 return r_cnt; in adf4350_tune_r_cnt()
140 u16 mdiv, r_cnt = 0; in adf4350_set_freq() local
166 r_cnt = pdata->ref_div_factor - 1; in adf4350_set_freq()
173 r_cnt = adf4350_tune_r_cnt(st, r_cnt); in adf4350_set_freq()
175 if (r_cnt > ADF4350_MAX_R_CNT) { in adf4350_set_freq()
178 r_cnt = 0; in adf4350_set_freq()
180 } while ((st->r1_mod > ADF4350_MAX_MODULUS) && r_cnt); in adf4350_set_freq()
181 } while (r_cnt == 0); in adf4350_set_freq()
203 freq, st->fpfd, r_cnt, st->r0_int, st->r0_fract, st->r1_mod, in adf4350_set_freq()
215 ADF4350_REG2_10BIT_R_CNT(r_cnt) | in adf4350_set_freq()