Lines Matching refs:fe
64 void (*set)(struct dvb_frontend *fe, u8 *buf);
95 static void thomson_dtt759x_bw(struct dvb_frontend *fe, u8 *buf) in thomson_dtt759x_bw() argument
97 u32 bw = fe->dtv_property_cache.bandwidth_hz; in thomson_dtt759x_bw()
119 static void thomson_dtt7520x_bw(struct dvb_frontend *fe, u8 *buf) in thomson_dtt7520x_bw() argument
121 u32 bw = fe->dtv_property_cache.bandwidth_hz; in thomson_dtt7520x_bw()
213 static void tda665x_bw(struct dvb_frontend *fe, u8 *buf) in tda665x_bw() argument
215 u32 bw = fe->dtv_property_cache.bandwidth_hz; in tda665x_bw()
247 static void tua6034_bw(struct dvb_frontend *fe, u8 *buf) in tua6034_bw() argument
249 u32 bw = fe->dtv_property_cache.bandwidth_hz; in tua6034_bw()
271 static void tded4_bw(struct dvb_frontend *fe, u8 *buf) in tded4_bw() argument
273 u32 bw = fe->dtv_property_cache.bandwidth_hz; in tded4_bw()
346 static void opera1_bw(struct dvb_frontend *fe, u8 *buf) in opera1_bw() argument
348 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in opera1_bw()
349 struct dvb_pll_priv *priv = fe->tuner_priv; in opera1_bw()
360 if (fe->ops.i2c_gate_ctrl) in opera1_bw()
361 fe->ops.i2c_gate_ctrl(fe, 1); in opera1_bw()
419 static void samsung_dtos403ih102a_set(struct dvb_frontend *fe, u8 *buf) in samsung_dtos403ih102a_set() argument
421 struct dvb_pll_priv *priv = fe->tuner_priv; in samsung_dtos403ih102a_set()
430 if (fe->ops.i2c_gate_ctrl) in samsung_dtos403ih102a_set()
431 fe->ops.i2c_gate_ctrl(fe, 1); in samsung_dtos403ih102a_set()
563 static int dvb_pll_configure(struct dvb_frontend *fe, u8 *buf, in dvb_pll_configure() argument
566 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_configure()
594 desc->set(fe, buf); in dvb_pll_configure()
604 static int dvb_pll_release(struct dvb_frontend *fe) in dvb_pll_release() argument
606 kfree(fe->tuner_priv); in dvb_pll_release()
607 fe->tuner_priv = NULL; in dvb_pll_release()
611 static int dvb_pll_sleep(struct dvb_frontend *fe) in dvb_pll_sleep() argument
613 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_sleep()
626 if (fe->ops.i2c_gate_ctrl) in dvb_pll_sleep()
627 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_sleep()
637 static int dvb_pll_set_params(struct dvb_frontend *fe) in dvb_pll_set_params() argument
639 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in dvb_pll_set_params()
640 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_set_params()
651 result = dvb_pll_configure(fe, buf, c->frequency); in dvb_pll_set_params()
657 if (fe->ops.i2c_gate_ctrl) in dvb_pll_set_params()
658 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_set_params()
669 static int dvb_pll_calc_regs(struct dvb_frontend *fe, in dvb_pll_calc_regs() argument
672 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in dvb_pll_calc_regs()
673 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_calc_regs()
680 result = dvb_pll_configure(fe, buf + 1, c->frequency); in dvb_pll_calc_regs()
694 static int dvb_pll_get_frequency(struct dvb_frontend *fe, u32 *frequency) in dvb_pll_get_frequency() argument
696 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_get_frequency()
701 static int dvb_pll_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in dvb_pll_get_bandwidth() argument
703 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_get_bandwidth()
708 static int dvb_pll_init(struct dvb_frontend *fe) in dvb_pll_init() argument
710 struct dvb_pll_priv *priv = fe->tuner_priv; in dvb_pll_init()
722 if (fe->ops.i2c_gate_ctrl) in dvb_pll_init()
723 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_init()
730 if (fe->ops.i2c_gate_ctrl) in dvb_pll_init()
731 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_init()
752 struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, int pll_addr, in dvb_pll_attach() argument
772 if (fe->ops.i2c_gate_ctrl) in dvb_pll_attach()
773 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_pll_attach()
778 if (fe->ops.i2c_gate_ctrl) in dvb_pll_attach()
779 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_pll_attach()
791 memcpy(&fe->ops.tuner_ops, &dvb_pll_tuner_ops, in dvb_pll_attach()
794 strncpy(fe->ops.tuner_ops.info.name, desc->name, in dvb_pll_attach()
795 sizeof(fe->ops.tuner_ops.info.name)); in dvb_pll_attach()
796 fe->ops.tuner_ops.info.frequency_min = desc->min; in dvb_pll_attach()
797 fe->ops.tuner_ops.info.frequency_max = desc->max; in dvb_pll_attach()
799 fe->ops.tuner_ops.init = NULL; in dvb_pll_attach()
801 fe->ops.tuner_ops.sleep = NULL; in dvb_pll_attach()
803 fe->tuner_priv = priv; in dvb_pll_attach()
814 return fe; in dvb_pll_attach()