Lines Matching refs:t_params
260 struct tuner_params *t_params, in simple_config_lookup() argument
266 for (i = 0; i < t_params->count; i++) { in simple_config_lookup()
267 if (*frequency > t_params->ranges[i].limit) in simple_config_lookup()
271 if (i == t_params->count) { in simple_config_lookup()
273 *frequency, t_params->ranges[i - 1].limit); in simple_config_lookup()
274 *frequency = t_params->ranges[--i].limit; in simple_config_lookup()
276 *config = t_params->ranges[i].config; in simple_config_lookup()
277 *cb = t_params->ranges[i].cb; in simple_config_lookup()
552 struct tuner_params *t_params; in simple_set_tv_freq() local
581 t_params = simple_tuner_params(fe, desired_type); in simple_set_tv_freq()
583 i = simple_config_lookup(fe, t_params, ¶ms->frequency, in simple_set_tv_freq()
596 if (t_params->cb_first_if_lower_freq && div < priv->last_div) { in simple_set_tv_freq()
608 if (t_params->has_tda9887) { in simple_set_tv_freq()
620 if (t_params->port1_active ^ t_params->port1_invert_for_secam_lc) in simple_set_tv_freq()
622 if (t_params->port2_active ^ t_params->port2_invert_for_secam_lc) in simple_set_tv_freq()
625 if (t_params->port1_active) in simple_set_tv_freq()
627 if (t_params->port2_active) in simple_set_tv_freq()
630 if (t_params->intercarrier_mode) in simple_set_tv_freq()
633 if (i == 0 && t_params->default_top_secam_low) in simple_set_tv_freq()
634 tda_config |= TDA9887_TOP(t_params->default_top_secam_low); in simple_set_tv_freq()
635 else if (i == 1 && t_params->default_top_secam_mid) in simple_set_tv_freq()
636 tda_config |= TDA9887_TOP(t_params->default_top_secam_mid); in simple_set_tv_freq()
637 else if (t_params->default_top_secam_high) in simple_set_tv_freq()
638 tda_config |= TDA9887_TOP(t_params->default_top_secam_high); in simple_set_tv_freq()
640 if (i == 0 && t_params->default_top_low) in simple_set_tv_freq()
641 tda_config |= TDA9887_TOP(t_params->default_top_low); in simple_set_tv_freq()
642 else if (i == 1 && t_params->default_top_mid) in simple_set_tv_freq()
643 tda_config |= TDA9887_TOP(t_params->default_top_mid); in simple_set_tv_freq()
644 else if (t_params->default_top_high) in simple_set_tv_freq()
645 tda_config |= TDA9887_TOP(t_params->default_top_high); in simple_set_tv_freq()
647 if (t_params->default_pll_gating_18) in simple_set_tv_freq()
672 struct tuner_params *t_params; in simple_set_radio_freq() local
682 t_params = &tun->params[j]; in simple_set_radio_freq()
685 switch (t_params->radio_if) { in simple_set_radio_freq()
697 t_params->radio_if); in simple_set_radio_freq()
701 buffer[2] = (t_params->ranges[0].config & ~TUNER_RATIO_MASK) | in simple_set_radio_freq()
713 if (t_params->cb_first_if_lower_freq && div < priv->last_div) { in simple_set_radio_freq()
727 if (t_params->has_tda9887) { in simple_set_radio_freq()
734 if (t_params->port1_active && in simple_set_radio_freq()
735 !t_params->port1_fm_high_sensitivity) in simple_set_radio_freq()
737 if (t_params->port2_active && in simple_set_radio_freq()
738 !t_params->port2_fm_high_sensitivity) in simple_set_radio_freq()
740 if (t_params->intercarrier_mode) in simple_set_radio_freq()
742 if (t_params->port1_set_for_fm_mono && mono) in simple_set_radio_freq()
744 if (t_params->fm_gain_normal) in simple_set_radio_freq()
746 if (t_params->radio_if == 2) in simple_set_radio_freq()
852 struct tuner_params *t_params; in simple_dvb_configure() local
866 t_params = simple_tuner_params(fe, TUNER_PARAM_TYPE_DIGITAL); in simple_dvb_configure()
867 ret = simple_config_lookup(fe, t_params, &frequency, &config, &cb); in simple_dvb_configure()
871 div = ((frequency + t_params->iffreq) * 62500 + offset + in simple_dvb_configure()
885 return (div * tun->stepsize) - t_params->iffreq; in simple_dvb_configure()