Lines Matching refs:fe
56 void (*set)(struct dvb_frontend *fe, u8 *buf);
87 static void thomson_dtt759x_bw(struct dvb_frontend *fe, u8 *buf) in thomson_dtt759x_bw() argument
89 u32 bw = fe->dtv_property_cache.bandwidth_hz; in thomson_dtt759x_bw()
111 static void thomson_dtt7520x_bw(struct dvb_frontend *fe, u8 *buf) in thomson_dtt7520x_bw() argument
113 u32 bw = fe->dtv_property_cache.bandwidth_hz; in thomson_dtt7520x_bw()
205 static void tda665x_bw(struct dvb_frontend *fe, u8 *buf) in tda665x_bw() argument
207 u32 bw = fe->dtv_property_cache.bandwidth_hz; in tda665x_bw()
239 static void tua6034_bw(struct dvb_frontend *fe, u8 *buf) in tua6034_bw() argument
241 u32 bw = fe->dtv_property_cache.bandwidth_hz; in tua6034_bw()
263 static void tded4_bw(struct dvb_frontend *fe, u8 *buf) in tded4_bw() argument
265 u32 bw = fe->dtv_property_cache.bandwidth_hz; in tded4_bw()
338 static void opera1_bw(struct dvb_frontend *fe, u8 *buf) in opera1_bw() argument
340 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in opera1_bw()
341 struct dvb_pll_priv *priv = fe->tuner_priv; in opera1_bw()
352 if (fe->ops.i2c_gate_ctrl) in opera1_bw()
353 fe->ops.i2c_gate_ctrl(fe, 1); in opera1_bw()
411 static void samsung_dtos403ih102a_set(struct dvb_frontend *fe, u8 *buf) in samsung_dtos403ih102a_set() argument
413 struct dvb_pll_priv *priv = fe->tuner_priv; in samsung_dtos403ih102a_set()
422 if (fe->ops.i2c_gate_ctrl) in samsung_dtos403ih102a_set()
423 fe->ops.i2c_gate_ctrl(fe, 1); in samsung_dtos403ih102a_set()
596 static int dvb_pll_configure(struct dvb_frontend *fe, u8 *buf, in dvb_pll_configure() argument
599 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_configure()
624 desc->set(fe, buf); in dvb_pll_configure()
634 static void dvb_pll_release(struct dvb_frontend *fe) in dvb_pll_release() argument
636 kfree(fe->tuner_priv); in dvb_pll_release()
637 fe->tuner_priv = NULL; in dvb_pll_release()
640 static int dvb_pll_sleep(struct dvb_frontend *fe) in dvb_pll_sleep() argument
642 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_sleep()
655 if (fe->ops.i2c_gate_ctrl) in dvb_pll_sleep()
656 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_sleep()
666 static int dvb_pll_set_params(struct dvb_frontend *fe) in dvb_pll_set_params() argument
668 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in dvb_pll_set_params()
669 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_set_params()
680 result = dvb_pll_configure(fe, buf, c->frequency); in dvb_pll_set_params()
686 if (fe->ops.i2c_gate_ctrl) in dvb_pll_set_params()
687 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_set_params()
698 static int dvb_pll_calc_regs(struct dvb_frontend *fe, in dvb_pll_calc_regs() argument
701 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in dvb_pll_calc_regs()
702 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_calc_regs()
709 result = dvb_pll_configure(fe, buf + 1, c->frequency); in dvb_pll_calc_regs()
723 static int dvb_pll_get_frequency(struct dvb_frontend *fe, u32 *frequency) in dvb_pll_get_frequency() argument
725 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_get_frequency()
730 static int dvb_pll_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in dvb_pll_get_bandwidth() argument
732 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_get_bandwidth()
737 static int dvb_pll_init(struct dvb_frontend *fe) in dvb_pll_init() argument
739 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_init()
751 if (fe->ops.i2c_gate_ctrl) in dvb_pll_init()
752 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_init()
759 if (fe->ops.i2c_gate_ctrl) in dvb_pll_init()
760 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_init()
781 struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, int pll_addr, in dvb_pll_attach() argument
813 if (fe->ops.i2c_gate_ctrl) in dvb_pll_attach()
814 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_attach()
819 if (fe->ops.i2c_gate_ctrl) in dvb_pll_attach()
820 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_pll_attach()
832 memcpy(&fe->ops.tuner_ops, &dvb_pll_tuner_ops, in dvb_pll_attach()
835 strscpy(fe->ops.tuner_ops.info.name, desc->name, in dvb_pll_attach()
836 sizeof(fe->ops.tuner_ops.info.name)); in dvb_pll_attach()
838 fe->ops.tuner_ops.info.frequency_min_hz = desc->min; in dvb_pll_attach()
839 fe->ops.tuner_ops.info.frequency_max_hz = desc->max; in dvb_pll_attach()
845 fe->ops.tuner_ops.init = NULL; in dvb_pll_attach()
847 fe->ops.tuner_ops.sleep = NULL; in dvb_pll_attach()
849 fe->tuner_priv = priv; in dvb_pll_attach()
862 return fe; in dvb_pll_attach()
877 struct dvb_frontend *fe; in dvb_pll_probe() local
881 fe = cfg->fe; in dvb_pll_probe()
882 i2c_set_clientdata(client, fe); in dvb_pll_probe()
885 if (!dvb_pll_attach(fe, client->addr, client->adapter, desc_id)) in dvb_pll_probe()
898 fe->ops.tuner_ops.release = NULL; in dvb_pll_probe()
905 struct dvb_frontend *fe = i2c_get_clientdata(client); in dvb_pll_remove() local
906 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_remove()
909 dvb_pll_release(fe); in dvb_pll_remove()