Lines Matching refs:cfg
63 struct qm1d1c0042_config cfg; member
70 return container_of(c, struct qm1d1c0042_state, cfg); in cfg_to_state()
132 __func__, state->cfg.fe->dvb->num, state->cfg.fe->id); in qm1d1c0042_wakeup()
141 struct qm1d1c0042_config *cfg; in qm1d1c0042_set_config() local
144 cfg = priv_cfg; in qm1d1c0042_set_config()
146 if (cfg->fe) in qm1d1c0042_set_config()
147 state->cfg.fe = cfg->fe; in qm1d1c0042_set_config()
149 if (cfg->xtal_freq != QM1D1C0042_CFG_XTAL_DFLT) in qm1d1c0042_set_config()
152 state->cfg.xtal_freq = default_cfg.xtal_freq; in qm1d1c0042_set_config()
154 state->cfg.lpf = cfg->lpf; in qm1d1c0042_set_config()
155 state->cfg.fast_srch = cfg->fast_srch; in qm1d1c0042_set_config()
157 if (cfg->lpf_wait != QM1D1C0042_CFG_WAIT_DFLT) in qm1d1c0042_set_config()
158 state->cfg.lpf_wait = cfg->lpf_wait; in qm1d1c0042_set_config()
160 state->cfg.lpf_wait = default_cfg.lpf_wait; in qm1d1c0042_set_config()
162 if (cfg->fast_srch_wait != QM1D1C0042_CFG_WAIT_DFLT) in qm1d1c0042_set_config()
163 state->cfg.fast_srch_wait = cfg->fast_srch_wait; in qm1d1c0042_set_config()
165 state->cfg.fast_srch_wait = default_cfg.fast_srch_wait; in qm1d1c0042_set_config()
167 if (cfg->normal_srch_wait != QM1D1C0042_CFG_WAIT_DFLT) in qm1d1c0042_set_config()
168 state->cfg.normal_srch_wait = cfg->normal_srch_wait; in qm1d1c0042_set_config()
170 state->cfg.normal_srch_wait = default_cfg.normal_srch_wait; in qm1d1c0042_set_config()
218 a = (freq + state->cfg.xtal_freq / 2) / state->cfg.xtal_freq; in qm1d1c0042_set_params()
234 if (state->cfg.lpf) { in qm1d1c0042_set_params()
248 b = (s32)div64_s64(((s64) freq) << 20, state->cfg.xtal_freq) in qm1d1c0042_set_params()
268 if (!state->cfg.lpf) { in qm1d1c0042_set_params()
276 mask = state->cfg.lpf ? 0x3f : 0x7f; in qm1d1c0042_set_params()
287 if (state->cfg.lpf) in qm1d1c0042_set_params()
288 msleep(state->cfg.lpf_wait); in qm1d1c0042_set_params()
290 msleep(state->cfg.fast_srch_wait); in qm1d1c0042_set_params()
292 msleep(state->cfg.normal_srch_wait); in qm1d1c0042_set_params()
294 if (state->cfg.lpf) { in qm1d1c0042_set_params()
364 msleep(state->cfg.lpf_wait); in qm1d1c0042_init()
382 ret = qm1d1c0042_set_srch_mode(state, state->cfg.fast_srch); in qm1d1c0042_init()
415 struct qm1d1c0042_config *cfg; in qm1d1c0042_probe() local
423 cfg = client->dev.platform_data; in qm1d1c0042_probe()
424 fe = cfg->fe; in qm1d1c0042_probe()
426 qm1d1c0042_set_config(fe, cfg); in qm1d1c0042_probe()
429 i2c_set_clientdata(client, &state->cfg); in qm1d1c0042_probe()
439 state->cfg.fe->tuner_priv = NULL; in qm1d1c0042_remove()