Lines Matching refs:r_cnt
118 static int adf4350_tune_r_cnt(struct adf4350_state *st, unsigned short r_cnt) in adf4350_tune_r_cnt() argument
123 r_cnt++; in adf4350_tune_r_cnt()
125 (r_cnt * (pdata->ref_div2_en ? 2 : 1)); in adf4350_tune_r_cnt()
128 return r_cnt; in adf4350_tune_r_cnt()
136 u16 mdiv, r_cnt = 0; in adf4350_set_freq() local
162 r_cnt = pdata->ref_div_factor - 1; in adf4350_set_freq()
169 r_cnt = adf4350_tune_r_cnt(st, r_cnt); in adf4350_set_freq()
171 if (r_cnt > ADF4350_MAX_R_CNT) { in adf4350_set_freq()
174 r_cnt = 0; in adf4350_set_freq()
176 } while ((st->r1_mod > ADF4350_MAX_MODULUS) && r_cnt); in adf4350_set_freq()
177 } while (r_cnt == 0); in adf4350_set_freq()
199 freq, st->fpfd, r_cnt, st->r0_int, st->r0_fract, st->r1_mod, in adf4350_set_freq()
211 ADF4350_REG2_10BIT_R_CNT(r_cnt) | in adf4350_set_freq()