Lines Matching defs:adap

214 static void lme2510_update_stats(struct dvb_usb_adapter *adap)
216 struct lme2510_state *st = adap_to_priv(adap);
217 struct dvb_frontend *fe = adap->fe[0];
269 struct dvb_usb_adapter *adap = lme_urb->context;
270 struct lme2510_state *st = adap_to_priv(adap);
302 if (!adap_to_d(adap)->rc_dev)
311 rc_keydown(adap_to_d(adap)->rc_dev, RC_PROTO_NEC32, key,
350 lme2510_update_stats(adap);
371 static int lme2510_int_read(struct dvb_usb_adapter *adap)
373 struct dvb_usb_device *d = adap_to_d(adap);
374 struct lme2510_state *lme_int = adap_to_priv(adap);
388 adap,
403 static int lme2510_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff)
405 struct dvb_usb_device *d = adap_to_d(adap);
406 struct lme2510_state *st = adap_to_priv(adap);
432 static int lme2510_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid,
435 struct dvb_usb_device *d = adap_to_d(adap);
485 static int lme2510_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
488 struct dvb_usb_device *d = i2c_get_adapdata(adap);
559 struct dvb_usb_adapter *adap = fe_to_adap(fe);
560 struct dvb_usb_device *d = adap_to_d(adap);
561 struct lme2510_state *st = adap_to_priv(adap);
871 struct dvb_usb_adapter *adap = fe_to_adap(fe);
875 lme2510_update_stats(adap);
937 static int lme_name(struct dvb_usb_adapter *adap)
939 struct dvb_usb_device *d = adap_to_d(adap);
940 struct lme2510_state *st = adap_to_priv(adap);
945 char *name = adap->fe[0]->ops.info.name;
953 static int dm04_lme2510_frontend_attach(struct dvb_usb_adapter *adap)
955 struct dvb_usb_device *d = adap_to_d(adap);
964 adap->fe[0] = dvb_attach(tda10086_attach,
966 if (adap->fe[0]) {
980 adap->fe[0] = dvb_attach(stv0299_attach,
982 if (adap->fe[0]) {
996 adap->fe[0] = dvb_attach(stv0288_attach, &lme_config,
999 if (adap->fe[0]) {
1014 adap->fe[0] = dvb_attach(m88rs2000_attach,
1017 if (adap->fe[0]) {
1024 adap->fe[0]->ops.set_voltage;
1029 if (adap->fe[0] == NULL) {
1035 if (adap->fe[0]) {
1036 dvb_frontend_detach(adap->fe[0]);
1037 adap->fe[0] = NULL;
1043 st->fe_read_status = adap->fe[0]->ops.read_status;
1044 st->fe_read_signal_strength = adap->fe[0]->ops.read_signal_strength;
1045 st->fe_read_snr = adap->fe[0]->ops.read_snr;
1046 st->fe_read_ber = adap->fe[0]->ops.read_ber;
1047 st->fe_read_ucblocks = adap->fe[0]->ops.read_ucblocks;
1049 adap->fe[0]->ops.read_status = dm04_read_status;
1050 adap->fe[0]->ops.read_signal_strength = dm04_read_signal_strength;
1051 adap->fe[0]->ops.read_snr = dm04_read_snr;
1052 adap->fe[0]->ops.read_ber = dm04_read_ber;
1053 adap->fe[0]->ops.read_ucblocks = dm04_read_ucblocks;
1054 adap->fe[0]->ops.set_voltage = dm04_lme2510_set_voltage;
1056 ret = lme_name(adap);
1060 static int dm04_lme2510_tuner(struct dvb_usb_adapter *adap)
1062 struct dvb_usb_device *d = adap_to_d(adap);
1063 struct lme2510_state *st = adap_to_priv(adap);
1069 if (dvb_attach(tda826x_attach, adap->fe[0], 0x60,
1074 if (dvb_attach(ix2505v_attach , adap->fe[0], &lme_tuner,
1079 if (dvb_attach(dvb_pll_attach , adap->fe[0], 0x60,
1084 if (dvb_attach(ts2020_attach, adap->fe[0],
1100 ret = lme2510_int_read(adap);
1155 struct dvb_usb_adapter *adap = fe_to_adap(fe);
1158 if (adap == NULL)
1161 d = adap_to_d(adap);
1165 adap->pid_filtering = true;
1166 adap->max_feed_count = 15;