Lines Matching full:fe
105 * @fe: A pointer to the dvb_frontend structure allocated by vidtv_demod
113 struct dvb_frontend *fe; member
119 vidtv_tuner_get_dev(struct dvb_frontend *fe) in vidtv_tuner_get_dev() argument
121 return i2c_get_clientdata(fe->tuner_priv); in vidtv_tuner_get_dev()
124 static int vidtv_tuner_check_frequency_shift(struct dvb_frontend *fe) in vidtv_tuner_check_frequency_shift() argument
126 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_check_frequency_shift()
127 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in vidtv_tuner_check_frequency_shift()
151 dev_warn(fe->dvb->device, in vidtv_tuner_check_frequency_shift()
180 vidtv_tuner_get_signal_strength(struct dvb_frontend *fe, u16 *strength) in vidtv_tuner_get_signal_strength() argument
182 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in vidtv_tuner_get_signal_strength()
183 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_get_signal_strength()
185 struct device *dev = fe->dvb->device; in vidtv_tuner_get_signal_strength()
190 shift = vidtv_tuner_check_frequency_shift(fe); in vidtv_tuner_get_signal_strength()
254 static int vidtv_tuner_init(struct dvb_frontend *fe) in vidtv_tuner_init() argument
256 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_init()
267 static int vidtv_tuner_sleep(struct dvb_frontend *fe) in vidtv_tuner_sleep() argument
269 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_sleep()
275 static int vidtv_tuner_suspend(struct dvb_frontend *fe) in vidtv_tuner_suspend() argument
277 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_suspend()
283 static int vidtv_tuner_resume(struct dvb_frontend *fe) in vidtv_tuner_resume() argument
285 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_resume()
291 static int vidtv_tuner_set_params(struct dvb_frontend *fe) in vidtv_tuner_set_params() argument
293 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_set_params()
295 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in vidtv_tuner_set_params()
298 u32 min_freq = fe->ops.tuner_ops.info.frequency_min_hz; in vidtv_tuner_set_params()
299 u32 max_freq = fe->ops.tuner_ops.info.frequency_max_hz; in vidtv_tuner_set_params()
300 u32 min_bw = fe->ops.tuner_ops.info.bandwidth_min; in vidtv_tuner_set_params()
301 u32 max_bw = fe->ops.tuner_ops.info.bandwidth_max; in vidtv_tuner_set_params()
315 shift = vidtv_tuner_check_frequency_shift(fe); in vidtv_tuner_set_params()
324 static int vidtv_tuner_set_config(struct dvb_frontend *fe, in vidtv_tuner_set_config() argument
327 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_set_config()
334 static int vidtv_tuner_get_frequency(struct dvb_frontend *fe, in vidtv_tuner_get_frequency() argument
337 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_get_frequency()
344 static int vidtv_tuner_get_bandwidth(struct dvb_frontend *fe, in vidtv_tuner_get_bandwidth() argument
347 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_get_bandwidth()
354 static int vidtv_tuner_get_if_frequency(struct dvb_frontend *fe, in vidtv_tuner_get_if_frequency() argument
357 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_get_if_frequency()
364 static int vidtv_tuner_get_status(struct dvb_frontend *fe, u32 *status) in vidtv_tuner_get_status() argument
366 struct vidtv_tuner_dev *tuner_dev = vidtv_tuner_get_dev(fe); in vidtv_tuner_get_status()
396 struct dvb_frontend *fe = config->fe; in vidtv_tuner_i2c_probe() local
403 tuner_dev->fe = config->fe; in vidtv_tuner_i2c_probe()
406 memcpy(&fe->ops.tuner_ops, in vidtv_tuner_i2c_probe()
411 fe->tuner_priv = client; in vidtv_tuner_i2c_probe()