Lines Matching refs:p
27 unsigned long icst_hz(const struct icst_params *p, struct icst_vco vco) in icst_hz() argument
29 u64 dividend = p->ref * 2 * (u64)(vco.v + 8); in icst_hz()
30 u32 divisor = (vco.r + 2) * p->s2div[vco.s]; in icst_hz()
47 icst_hz_to_vco(const struct icst_params *p, unsigned long freq) in icst_hz_to_vco() argument
49 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max }; in icst_hz_to_vco()
58 f = freq * p->s2div[p->idx2s[i]]; in icst_hz_to_vco()
60 if (f > p->vco_min && f <= p->vco_max) in icst_hz_to_vco()
68 vco.s = p->idx2s[i]; in icst_hz_to_vco()
74 for (rd = p->rd_min; rd <= p->rd_max; rd++) { in icst_hz_to_vco()
79 fref_div = (2 * p->ref) / rd; in icst_hz_to_vco()
82 if (vd < p->vd_min || vd > p->vd_max) in icst_hz_to_vco()