Lines Matching refs:fe

65 	void (*set)(struct dvb_frontend *fe, u8 *buf);
96 static void thomson_dtt759x_bw(struct dvb_frontend *fe, u8 *buf) in thomson_dtt759x_bw() argument
98 u32 bw = fe->dtv_property_cache.bandwidth_hz; in thomson_dtt759x_bw()
120 static void thomson_dtt7520x_bw(struct dvb_frontend *fe, u8 *buf) in thomson_dtt7520x_bw() argument
122 u32 bw = fe->dtv_property_cache.bandwidth_hz; in thomson_dtt7520x_bw()
214 static void tda665x_bw(struct dvb_frontend *fe, u8 *buf) in tda665x_bw() argument
216 u32 bw = fe->dtv_property_cache.bandwidth_hz; in tda665x_bw()
248 static void tua6034_bw(struct dvb_frontend *fe, u8 *buf) in tua6034_bw() argument
250 u32 bw = fe->dtv_property_cache.bandwidth_hz; in tua6034_bw()
272 static void tded4_bw(struct dvb_frontend *fe, u8 *buf) in tded4_bw() argument
274 u32 bw = fe->dtv_property_cache.bandwidth_hz; in tded4_bw()
347 static void opera1_bw(struct dvb_frontend *fe, u8 *buf) in opera1_bw() argument
349 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in opera1_bw()
350 struct dvb_pll_priv *priv = fe->tuner_priv; in opera1_bw()
361 if (fe->ops.i2c_gate_ctrl) in opera1_bw()
362 fe->ops.i2c_gate_ctrl(fe, 1); in opera1_bw()
420 static void samsung_dtos403ih102a_set(struct dvb_frontend *fe, u8 *buf) in samsung_dtos403ih102a_set() argument
422 struct dvb_pll_priv *priv = fe->tuner_priv; in samsung_dtos403ih102a_set()
431 if (fe->ops.i2c_gate_ctrl) in samsung_dtos403ih102a_set()
432 fe->ops.i2c_gate_ctrl(fe, 1); in samsung_dtos403ih102a_set()
605 static int dvb_pll_configure(struct dvb_frontend *fe, u8 *buf, in dvb_pll_configure() argument
608 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_configure()
636 desc->set(fe, buf); in dvb_pll_configure()
646 static void dvb_pll_release(struct dvb_frontend *fe) in dvb_pll_release() argument
648 kfree(fe->tuner_priv); in dvb_pll_release()
649 fe->tuner_priv = NULL; in dvb_pll_release()
652 static int dvb_pll_sleep(struct dvb_frontend *fe) in dvb_pll_sleep() argument
654 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_sleep()
667 if (fe->ops.i2c_gate_ctrl) in dvb_pll_sleep()
668 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_sleep()
678 static int dvb_pll_set_params(struct dvb_frontend *fe) in dvb_pll_set_params() argument
680 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in dvb_pll_set_params()
681 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_set_params()
692 result = dvb_pll_configure(fe, buf, c->frequency); in dvb_pll_set_params()
698 if (fe->ops.i2c_gate_ctrl) in dvb_pll_set_params()
699 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_set_params()
710 static int dvb_pll_calc_regs(struct dvb_frontend *fe, in dvb_pll_calc_regs() argument
713 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in dvb_pll_calc_regs()
714 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_calc_regs()
721 result = dvb_pll_configure(fe, buf + 1, c->frequency); in dvb_pll_calc_regs()
735 static int dvb_pll_get_frequency(struct dvb_frontend *fe, u32 *frequency) in dvb_pll_get_frequency() argument
737 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_get_frequency()
742 static int dvb_pll_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in dvb_pll_get_bandwidth() argument
744 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_get_bandwidth()
749 static int dvb_pll_init(struct dvb_frontend *fe) in dvb_pll_init() argument
751 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_init()
763 if (fe->ops.i2c_gate_ctrl) in dvb_pll_init()
764 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_init()
771 if (fe->ops.i2c_gate_ctrl) in dvb_pll_init()
772 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_init()
793 struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, int pll_addr, in dvb_pll_attach() argument
802 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in dvb_pll_attach()
820 if (fe->ops.i2c_gate_ctrl) in dvb_pll_attach()
821 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_attach()
828 if (fe->ops.i2c_gate_ctrl) in dvb_pll_attach()
829 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_pll_attach()
843 memcpy(&fe->ops.tuner_ops, &dvb_pll_tuner_ops, in dvb_pll_attach()
846 strncpy(fe->ops.tuner_ops.info.name, desc->name, in dvb_pll_attach()
847 sizeof(fe->ops.tuner_ops.info.name)); in dvb_pll_attach()
853 fe->ops.tuner_ops.info.frequency_min_hz = desc->min * kHz; in dvb_pll_attach()
854 fe->ops.tuner_ops.info.frequency_max_hz = desc->max * kHz; in dvb_pll_attach()
857 fe->ops.tuner_ops.info.frequency_min_hz = desc->min; in dvb_pll_attach()
858 fe->ops.tuner_ops.info.frequency_max_hz = desc->max; in dvb_pll_attach()
862 fe->ops.tuner_ops.init = NULL; in dvb_pll_attach()
864 fe->ops.tuner_ops.sleep = NULL; in dvb_pll_attach()
866 fe->tuner_priv = priv; in dvb_pll_attach()
879 return fe; in dvb_pll_attach()
888 struct dvb_frontend *fe; in dvb_pll_probe() local
892 fe = cfg->fe; in dvb_pll_probe()
893 i2c_set_clientdata(client, fe); in dvb_pll_probe()
896 if (!dvb_pll_attach(fe, client->addr, client->adapter, desc_id)) in dvb_pll_probe()
909 fe->ops.tuner_ops.release = NULL; in dvb_pll_probe()
916 struct dvb_frontend *fe; in dvb_pll_remove() local
918 fe = i2c_get_clientdata(client); in dvb_pll_remove()
919 dvb_pll_release(fe); in dvb_pll_remove()