Lines Matching full:frequency

29 	u32			frequency;  member
169 u32 frequency = p->frequency; in horus3a_set_params() local
179 dev_dbg(&priv->i2c->dev, "%s(): frequency %dkHz symbol_rate %dksps\n", in horus3a_set_params()
180 __func__, frequency, symbol_rate); in horus3a_set_params()
186 /* frequency should be X MHz (X : integer) */ in horus3a_set_params()
187 frequency = DIV_ROUND_CLOSEST(frequency, 1000) * 1000; in horus3a_set_params()
188 if (frequency <= 1155000) { in horus3a_set_params()
196 ms = DIV_ROUND_CLOSEST((frequency * mixdiv) / 2, 1000); in horus3a_set_params()
198 dev_err(&priv->i2c->dev, "horus3a: invalid frequency %d\n", in horus3a_set_params()
199 frequency); in horus3a_set_params()
202 if (frequency < 975000) { in horus3a_set_params()
206 } else if (frequency < 1050000) { in horus3a_set_params()
210 } else if (frequency < 1150000) { in horus3a_set_params()
214 } else if (frequency < 1250000) { in horus3a_set_params()
218 } else if (frequency < 1350000) { in horus3a_set_params()
222 } else if (frequency < 1450000) { in horus3a_set_params()
226 } else if (frequency < 1600000) { in horus3a_set_params()
230 } else if (frequency < 1800000) { in horus3a_set_params()
234 } else if (frequency < 2000000) { in horus3a_set_params()
243 /* LPF cutoff frequency setting */ in horus3a_set_params()
300 /* Write LPF cutoff frequency */ in horus3a_set_params()
308 /* Store tuned frequency to the struct */ in horus3a_set_params()
309 priv->frequency = ms * 2 * 1000 / mixdiv; in horus3a_set_params()
313 static int horus3a_get_frequency(struct dvb_frontend *fe, u32 *frequency) in horus3a_get_frequency() argument
317 *frequency = priv->frequency; in horus3a_get_frequency()
357 /* REF_R = Xtal Frequency */ in horus3a_attach()
378 "horus3a: invalid xtal frequency %dMHz\n", in horus3a_attach()